cookiecutter-pypackage 0.2.0__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,33 @@
1
+ Metadata-Version: 2.4
2
+ Name: cookiecutter-pypackage
3
+ Version: 0.2.0
4
+ Summary: Cookiecutter template for a Python package
5
+ Author-email: "Audrey M. Roy Greenfeld" <audrey@feldroy.com>
6
+ License: BSD
7
+ Project-URL: homepage, https://github.com/audreyfeldroy/cookiecutter-pypackage
8
+ Keywords: cookiecutter,template,package
9
+ Classifier: Development Status :: 4 - Beta
10
+ Classifier: Environment :: Console
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: Natural Language :: English
13
+ Classifier: License :: OSI Approved :: BSD License
14
+ Classifier: Programming Language :: Python
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: Implementation :: CPython
20
+ Classifier: Programming Language :: Python :: Implementation :: PyPy
21
+ Classifier: Topic :: Software Development
22
+ Requires-Python: >=3.10
23
+ Description-Content-Type: text/markdown
24
+ License-File: LICENSE
25
+ Requires-Dist: cookiecutter>=2.6.0
26
+ Requires-Dist: ruff>=0.12.4
27
+ Requires-Dist: pytest>=8.4.1
28
+ Requires-Dist: pytest-cookies>=0.7.0
29
+ Requires-Dist: typer>=0.16.0
30
+ Requires-Dist: nox>=2025.5.1
31
+ Requires-Dist: alabaster>=1.0.0
32
+ Requires-Dist: watchdog>=6.0.0
33
+ Dynamic: license-file
@@ -0,0 +1,7 @@
1
+ cookiecutter_pypackage-0.2.0.dist-info/licenses/LICENSE,sha256=GPb7Bicu3qGhPElEp2FzlTgIvdrDoeBaFYdpJ470FdY,1551
2
+ hooks/post_gen_project.py,sha256=PF6fIWYiIdgzxtnw94H2tCrKG0qpUeEfGyCTDHrU0HM,332
3
+ hooks/pre_gen_project.py,sha256=SlT833xxMsc1oX0IxUfREgsVsnSbM5VgjOqKiaRUJIg,347
4
+ cookiecutter_pypackage-0.2.0.dist-info/METADATA,sha256=ceVKFBw2cpkr56Ucp6abj2UZaD9uI3Bxov6XsdIIl4E,1309
5
+ cookiecutter_pypackage-0.2.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
+ cookiecutter_pypackage-0.2.0.dist-info/top_level.txt,sha256=I0gcmmeA3xdjjkokY-bVx5WycqQcFVAk4RHQB-wl9h8,6
7
+ cookiecutter_pypackage-0.2.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.9.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,27 @@
1
+ Copyright (c) Audrey Roy Greenfeld and individual contributors.
2
+
3
+ All rights reserved.
4
+
5
+ Redistribution and use in source and binary forms, with or without modification,
6
+ are permitted provided that the following conditions are met:
7
+
8
+ * Redistributions of source code must retain the above copyright notice,
9
+ this list of conditions and the following disclaimer.
10
+ * Redistributions in binary form must reproduce the above copyright notice,
11
+ this list of conditions and the following disclaimer in the documentation
12
+ and/or other materials provided with the distribution.
13
+ * Neither the name of Audrey Roy Greenfeld nor the names of its contributors
14
+ may be used to endorse or promote products derived from this software
15
+ without specific prior written permission.
16
+
17
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
21
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
22
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
23
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
24
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
25
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
26
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env python
2
+ import pathlib
3
+
4
+
5
+ if __name__ == '__main__':
6
+
7
+ if '{{ cookiecutter.create_author_file }}' != 'y':
8
+ pathlib.Path('AUTHORS.rst').unlink()
9
+ pathlib.Path('docs', 'authors.rst').unlink()
10
+
11
+ if 'Not open source' == '{{ cookiecutter.open_source_license }}':
12
+ pathlib.Path('LICENSE').unlink()
@@ -0,0 +1,13 @@
1
+ import re
2
+ import sys
3
+
4
+
5
+ MODULE_REGEX = r'^[_a-zA-Z][_a-zA-Z0-9]+$'
6
+
7
+ module_name = '{{ cookiecutter.project_slug}}'
8
+
9
+ if not re.match(MODULE_REGEX, module_name):
10
+ print('ERROR: The project slug (%s) is not a valid Python module name. '
11
+ 'Please do not use a - and use _ instead' % module_name)
12
+ #Exit to cancel project
13
+ sys.exit(1)