cmdpackage 0.1.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,114 @@
1
+ #!/usr/bin/python
2
+ # -*- coding: utf-8 -*-
3
+ from string import Template
4
+ from textwrap import dedent
5
+
6
+ pyproject_base_template = Template(dedent("""\
7
+ [project]
8
+
9
+ name = "${name}"
10
+ version = "${version}"
11
+ description = "${description}"
12
+ readme = "${readme}"
13
+ license = {text = "${license}"}
14
+ authors = [
15
+ {name = "${authors}", email = "${authorsEmail}"}
16
+ ]
17
+ maintainers = [
18
+ {name = "${maintainers}", email = "${maintainersEmail}"}
19
+ ]
20
+ ${classifiers}
21
+
22
+ [build-system]
23
+ requires = ["setuptools>=61.0", "wheel"]
24
+ build-backend = "setuptools.build_meta"
25
+
26
+ [tool.setuptools.packages.find]
27
+ [tool.setuptools.package-dir]
28
+ ${name} = "src"
29
+
30
+ [project.scripts]
31
+ ${name} = "src:main"
32
+ """))
33
+
34
+ classifiers_line = Template(
35
+ ' "${classifier}",\n'
36
+ )
37
+
38
+ classifiers_template = Template(
39
+ 'classifiers=[\n'
40
+ '${classifiers}'
41
+ ' ]'
42
+ )
43
+
44
+ gitignore_content = """
45
+ # unmanged package file or directory
46
+ scrach/
47
+
48
+ # Byte-compiled / optimized / DLL files
49
+ __pycache__/
50
+ *.py[cod]
51
+ *$py.class
52
+
53
+ # C extensions
54
+ *.so
55
+
56
+ # Distribution / packaging
57
+ .Python
58
+ env/
59
+ build/
60
+ develop-eggs/
61
+ dist/
62
+ downloads/
63
+ eggs/
64
+ .eggs/
65
+ lib/
66
+ lib64/
67
+ parts/
68
+ sdist/
69
+ var/
70
+ *.egg-info/
71
+ .installed.cfg
72
+ *.egg
73
+
74
+ # PyInstaller
75
+ # Usually these files are written by a python script from a template
76
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
77
+ *.manifest
78
+ *.spec
79
+
80
+ # Installer logs
81
+ pip-log.txt
82
+ pip-delete-this-directory.txt
83
+
84
+ # Unit test / coverage reports
85
+ htmlcov/
86
+ .tox/
87
+ .coverage
88
+ .coverage.*
89
+ .cache
90
+ nosetests.xml
91
+ coverage.xml
92
+ *,cover
93
+ .hypothesis/
94
+
95
+ # Translations
96
+ *.mo
97
+ *.pot
98
+
99
+ # Django stuff:
100
+ *.log
101
+ local_settings.py
102
+
103
+ # Sphinx documentation
104
+ docs/_build/
105
+
106
+ # PyBuilder
107
+ target/
108
+
109
+ #Ipython Notebook
110
+ .ipynb_checkpoints
111
+
112
+ # pyenv
113
+ .python-version
114
+ """
@@ -0,0 +1,113 @@
1
+ #!/usr/bin/python
2
+ # -*- coding: utf-8 -*-
3
+ from string import Template
4
+ from textwrap import dedent
5
+
6
+ setup_base_template = Template(dedent("""\
7
+ # -*- coding: utf-8 -*-
8
+ from setuptools import setup, find_packages
9
+
10
+ try:
11
+ long_description = open("README.rst").read()
12
+ except IOError:
13
+ long_description = ""
14
+
15
+ setup(
16
+ ${setup_lines}\
17
+ packages=find_packages(),
18
+ install_requires=[],
19
+ long_description=long_description,
20
+ entry_points={
21
+ 'console_scripts': [
22
+ '${name}=${name}:main'
23
+ ]
24
+ },
25
+ ${classifiers}
26
+ )
27
+ """))
28
+
29
+ setup_line = Template(
30
+ ' ${name}="${value}",\n'
31
+ )
32
+
33
+ classifiers_line = Template(
34
+ ' "${classifier}",\n'
35
+ )
36
+
37
+ classifiers_template = Template(
38
+ ' classifiers=[\n'
39
+ '${classifiers}'
40
+ ' ]'
41
+ )
42
+
43
+ gitignore_content = """
44
+ # unmanged package file or directory
45
+ scrach/
46
+
47
+ # Byte-compiled / optimized / DLL files
48
+ __pycache__/
49
+ *.py[cod]
50
+ *$py.class
51
+
52
+ # C extensions
53
+ *.so
54
+
55
+ # Distribution / packaging
56
+ .Python
57
+ env/
58
+ build/
59
+ develop-eggs/
60
+ dist/
61
+ downloads/
62
+ eggs/
63
+ .eggs/
64
+ lib/
65
+ lib64/
66
+ parts/
67
+ sdist/
68
+ var/
69
+ *.egg-info/
70
+ .installed.cfg
71
+ *.egg
72
+
73
+ # PyInstaller
74
+ # Usually these files are written by a python script from a template
75
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
76
+ *.manifest
77
+ *.spec
78
+
79
+ # Installer logs
80
+ pip-log.txt
81
+ pip-delete-this-directory.txt
82
+
83
+ # Unit test / coverage reports
84
+ htmlcov/
85
+ .tox/
86
+ .coverage
87
+ .coverage.*
88
+ .cache
89
+ nosetests.xml
90
+ coverage.xml
91
+ *,cover
92
+ .hypothesis/
93
+
94
+ # Translations
95
+ *.mo
96
+ *.pot
97
+
98
+ # Django stuff:
99
+ *.log
100
+ local_settings.py
101
+
102
+ # Sphinx documentation
103
+ docs/_build/
104
+
105
+ # PyBuilder
106
+ target/
107
+
108
+ #Ipython Notebook
109
+ .ipynb_checkpoints
110
+
111
+ # pyenv
112
+ .python-version
113
+ """