cookiecutter-pypackage 0.3.0__tar.gz → 0.3.1__tar.gz

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.
Files changed (34) hide show
  1. {cookiecutter_pypackage-0.3.0 → cookiecutter_pypackage-0.3.1}/PKG-INFO +34 -13
  2. cookiecutter_pypackage-0.3.1/README.md +78 -0
  3. {cookiecutter_pypackage-0.3.0 → cookiecutter_pypackage-0.3.1}/pyproject.toml +1 -1
  4. {cookiecutter_pypackage-0.3.0 → cookiecutter_pypackage-0.3.1}/src/cookiecutter_pypackage/__init__.py +1 -1
  5. cookiecutter_pypackage-0.3.0/README.md +0 -57
  6. {cookiecutter_pypackage-0.3.0 → cookiecutter_pypackage-0.3.1}/.gitignore +0 -0
  7. {cookiecutter_pypackage-0.3.0 → cookiecutter_pypackage-0.3.1}/LICENSE +0 -0
  8. {cookiecutter_pypackage-0.3.0 → cookiecutter_pypackage-0.3.1}/cookiecutter.json +0 -0
  9. {cookiecutter_pypackage-0.3.0 → cookiecutter_pypackage-0.3.1}/hooks/post_gen_project.py +0 -0
  10. {cookiecutter_pypackage-0.3.0 → cookiecutter_pypackage-0.3.1}/hooks/pre_gen_project.py +0 -0
  11. {cookiecutter_pypackage-0.3.0 → cookiecutter_pypackage-0.3.1}/src/cookiecutter_pypackage/cli.py +0 -0
  12. {cookiecutter_pypackage-0.3.0 → cookiecutter_pypackage-0.3.1}/{{cookiecutter.pypi_package_name}}/.editorconfig +0 -0
  13. {cookiecutter_pypackage-0.3.0 → cookiecutter_pypackage-0.3.1}/{{cookiecutter.pypi_package_name}}/.github/ISSUE_TEMPLATE.md +0 -0
  14. {cookiecutter_pypackage-0.3.0 → cookiecutter_pypackage-0.3.1}/{{cookiecutter.pypi_package_name}}/.github/workflows/publish.yml +0 -0
  15. {cookiecutter_pypackage-0.3.0 → cookiecutter_pypackage-0.3.1}/{{cookiecutter.pypi_package_name}}/.github/workflows/test.yml +0 -0
  16. {cookiecutter_pypackage-0.3.0 → cookiecutter_pypackage-0.3.1}/{{cookiecutter.pypi_package_name}}/.gitignore +0 -0
  17. {cookiecutter_pypackage-0.3.0 → cookiecutter_pypackage-0.3.1}/{{cookiecutter.pypi_package_name}}/CODE_OF_CONDUCT.md +0 -0
  18. {cookiecutter_pypackage-0.3.0 → cookiecutter_pypackage-0.3.1}/{{cookiecutter.pypi_package_name}}/CONTRIBUTING.md +0 -0
  19. {cookiecutter_pypackage-0.3.0 → cookiecutter_pypackage-0.3.1}/{{cookiecutter.pypi_package_name}}/HISTORY.md +0 -0
  20. {cookiecutter_pypackage-0.3.0 → cookiecutter_pypackage-0.3.1}/{{cookiecutter.pypi_package_name}}/LICENSE +0 -0
  21. {cookiecutter_pypackage-0.3.0 → cookiecutter_pypackage-0.3.1}/{{cookiecutter.pypi_package_name}}/MANIFEST.in +0 -0
  22. {cookiecutter_pypackage-0.3.0 → cookiecutter_pypackage-0.3.1}/{{cookiecutter.pypi_package_name}}/README.md +0 -0
  23. {cookiecutter_pypackage-0.3.0 → cookiecutter_pypackage-0.3.1}/{{cookiecutter.pypi_package_name}}/docs/index.md +0 -0
  24. {cookiecutter_pypackage-0.3.0 → cookiecutter_pypackage-0.3.1}/{{cookiecutter.pypi_package_name}}/docs/installation.md +0 -0
  25. {cookiecutter_pypackage-0.3.0 → cookiecutter_pypackage-0.3.1}/{{cookiecutter.pypi_package_name}}/docs/usage.md +0 -0
  26. {cookiecutter_pypackage-0.3.0 → cookiecutter_pypackage-0.3.1}/{{cookiecutter.pypi_package_name}}/justfile +0 -0
  27. {cookiecutter_pypackage-0.3.0 → cookiecutter_pypackage-0.3.1}/{{cookiecutter.pypi_package_name}}/pyproject.toml +0 -0
  28. {cookiecutter_pypackage-0.3.0 → cookiecutter_pypackage-0.3.1}/{{cookiecutter.pypi_package_name}}/src/{{cookiecutter.project_slug}}/__init__.py +0 -0
  29. {cookiecutter_pypackage-0.3.0 → cookiecutter_pypackage-0.3.1}/{{cookiecutter.pypi_package_name}}/src/{{cookiecutter.project_slug}}/__main__.py +0 -0
  30. {cookiecutter_pypackage-0.3.0 → cookiecutter_pypackage-0.3.1}/{{cookiecutter.pypi_package_name}}/src/{{cookiecutter.project_slug}}/cli.py +0 -0
  31. {cookiecutter_pypackage-0.3.0 → cookiecutter_pypackage-0.3.1}/{{cookiecutter.pypi_package_name}}/src/{{cookiecutter.project_slug}}/utils.py +0 -0
  32. {cookiecutter_pypackage-0.3.0 → cookiecutter_pypackage-0.3.1}/{{cookiecutter.pypi_package_name}}/src/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}.py +0 -0
  33. {cookiecutter_pypackage-0.3.0 → cookiecutter_pypackage-0.3.1}/{{cookiecutter.pypi_package_name}}/tests/__init__.py +0 -0
  34. {cookiecutter_pypackage-0.3.0 → cookiecutter_pypackage-0.3.1}/{{cookiecutter.pypi_package_name}}/tests/test_{{cookiecutter.project_slug}}.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cookiecutter-pypackage
3
- Version: 0.3.0
3
+ Version: 0.3.1
4
4
  Summary: Cookiecutter template for a Python package
5
5
  Project-URL: homepage, https://github.com/audreyfeldroy/cookiecutter-pypackage
6
6
  Author-email: "Audrey M. Roy Greenfeld" <audrey@feldroy.com>
@@ -47,31 +47,52 @@ Description-Content-Type: text/markdown
47
47
 
48
48
  ## Features
49
49
 
50
- * Testing setup with pytest
51
- * GitHub Actions testing: Setup to easily test for Python 3.10, 3.11, 3.12, and 3.13
52
- * Auto-release to [PyPI](https://pypi.python.org/pypi) when you push a new tag to main (optional)
53
- * Command line interface using Typer
50
+ * Modern tooling: [uv](https://docs.astral.sh/uv/) for dependency management, [justfile](https://github.com/casey/just) for task running
51
+ * Testing with pytest, GitHub Actions for Python 3.10, 3.11, 3.12, 3.13, and 3.14
52
+ * Auto-release to [PyPI](https://pypi.python.org/pypi) via Trusted Publishers when you push a tag
53
+ * Command line interface using [Typer](https://typer.tiangolo.com/)
54
54
 
55
55
  ## Quickstart
56
56
 
57
- Install the latest Cookiecutter if you haven't installed it yet:
57
+ First, install [uv](https://docs.astral.sh/uv/getting-started/installation/) if you haven't already.
58
+
59
+ Generate a new Python package:
58
60
 
59
61
  ```bash
60
- pip install -U cookiecutter
62
+ uvx cookiecutter-pypackage
63
+ ```
64
+
65
+ You'll be prompted for some values:
66
+
67
+ ```
68
+ [1/9] full_name (Audrey M. Roy Greenfeld): Your Name
69
+ [2/9] email (audreyfeldroy@example.com): you@example.com
70
+ [3/9] github_username (audreyfeldroy): your-github-username
71
+ [4/9] pypi_package_name (python-boilerplate): my-package
72
+ [5/9] project_name (Python Boilerplate): My Package
73
+ [6/9] project_slug (my_package):
74
+ [7/9] project_short_description (...): A short description of your package.
75
+ [8/9] pypi_username (your-github-username):
76
+ [9/9] first_version (0.1.0):
61
77
  ```
62
78
 
63
- Generate a Python package project:
79
+ <details>
80
+ <summary>Traditional way (without uvx)</summary>
64
81
 
65
82
  ```bash
66
- cookiecutter https://github.com/audreyfeldroy/cookiecutter-pypackage.git
83
+ uv venv
84
+ source .venv/bin/activate
85
+ uv pip install cookiecutter
86
+ cookiecutter gh:audreyfeldroy/cookiecutter-pypackage
67
87
  ```
68
88
 
89
+ </details>
90
+
69
91
  Then:
70
92
 
71
- * Create a repo and put it there.
72
- * [Register](https://packaging.python.org/tutorials/packaging-projects/#uploading-the-distribution-archives) your project with PyPI.
73
- * Add the repo to your [Read the Docs](https://readthedocs.io/) account + turn on the Read the Docs service hook.
74
- * Release your package by pushing a new tag to main.
93
+ * Create a GitHub repo and push your code
94
+ * Set up [PyPI Trusted Publishing](https://docs.pypi.org/trusted-publishers/) for your repo
95
+ * Release your package by pushing a tag: `git tag v0.1.0 && git push --tags`
75
96
 
76
97
  ## Not Exactly What You Want?
77
98
 
@@ -0,0 +1,78 @@
1
+ # Cookiecutter PyPackage
2
+
3
+ [![PyPI version](https://img.shields.io/pypi/v/cookiecutter-pypackage.svg)](https://pypi.python.org/pypi/cookiecutter-pypackage)
4
+ [![PyPI downloads](https://img.shields.io/pypi/dm/cookiecutter-pypackage.svg)](https://pypi.python.org/pypi/cookiecutter-pypackage)
5
+
6
+ [Cookiecutter](https://github.com/cookiecutter/cookiecutter) template for a Python package.
7
+
8
+ * GitHub repo: [https://github.com/audreyfeldroy/cookiecutter-pypackage/](https://github.com/audreyfeldroy/cookiecutter-pypackage/)
9
+ * Free software: MIT license
10
+ * Discord: [https://discord.gg/PWXJr3upUE](https://discord.gg/PWXJr3upUE)
11
+
12
+ ## Features
13
+
14
+ * Modern tooling: [uv](https://docs.astral.sh/uv/) for dependency management, [justfile](https://github.com/casey/just) for task running
15
+ * Testing with pytest, GitHub Actions for Python 3.10, 3.11, 3.12, 3.13, and 3.14
16
+ * Auto-release to [PyPI](https://pypi.python.org/pypi) via Trusted Publishers when you push a tag
17
+ * Command line interface using [Typer](https://typer.tiangolo.com/)
18
+
19
+ ## Quickstart
20
+
21
+ First, install [uv](https://docs.astral.sh/uv/getting-started/installation/) if you haven't already.
22
+
23
+ Generate a new Python package:
24
+
25
+ ```bash
26
+ uvx cookiecutter-pypackage
27
+ ```
28
+
29
+ You'll be prompted for some values:
30
+
31
+ ```
32
+ [1/9] full_name (Audrey M. Roy Greenfeld): Your Name
33
+ [2/9] email (audreyfeldroy@example.com): you@example.com
34
+ [3/9] github_username (audreyfeldroy): your-github-username
35
+ [4/9] pypi_package_name (python-boilerplate): my-package
36
+ [5/9] project_name (Python Boilerplate): My Package
37
+ [6/9] project_slug (my_package):
38
+ [7/9] project_short_description (...): A short description of your package.
39
+ [8/9] pypi_username (your-github-username):
40
+ [9/9] first_version (0.1.0):
41
+ ```
42
+
43
+ <details>
44
+ <summary>Traditional way (without uvx)</summary>
45
+
46
+ ```bash
47
+ uv venv
48
+ source .venv/bin/activate
49
+ uv pip install cookiecutter
50
+ cookiecutter gh:audreyfeldroy/cookiecutter-pypackage
51
+ ```
52
+
53
+ </details>
54
+
55
+ Then:
56
+
57
+ * Create a GitHub repo and push your code
58
+ * Set up [PyPI Trusted Publishing](https://docs.pypi.org/trusted-publishers/) for your repo
59
+ * Release your package by pushing a tag: `git tag v0.1.0 && git push --tags`
60
+
61
+ ## Not Exactly What You Want?
62
+
63
+ Don't worry, you have options:
64
+
65
+ ### Fork This / Create Your Own
66
+
67
+ If you have differences in your preferred setup, I encourage you to fork this
68
+ to create your own version. Or create your own; it doesn't strictly have to
69
+ be a fork.
70
+
71
+ ### Similar Cookiecutter Templates
72
+
73
+ Explore other forks to get ideas. See the [network](https://github.com/audreyfeldroy/cookiecutter-pypackage/network) and [family tree](https://github.com/audreyfeldroy/cookiecutter-pypackage/network/members) for this repo.
74
+
75
+ ### Or Submit a Pull Request
76
+
77
+ I also accept pull requests on this, if they're small, atomic, and if they
78
+ make my own packaging experience better.
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "cookiecutter-pypackage"
7
- version = "0.3.0"
7
+ version = "0.3.1"
8
8
  description = "Cookiecutter template for a Python package"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -1,3 +1,3 @@
1
1
  """Cookiecutter PyPackage - A modern Python package template."""
2
2
 
3
- __version__ = "0.3.0"
3
+ __version__ = "0.3.1"
@@ -1,57 +0,0 @@
1
- # Cookiecutter PyPackage
2
-
3
- [![PyPI version](https://img.shields.io/pypi/v/cookiecutter-pypackage.svg)](https://pypi.python.org/pypi/cookiecutter-pypackage)
4
- [![PyPI downloads](https://img.shields.io/pypi/dm/cookiecutter-pypackage.svg)](https://pypi.python.org/pypi/cookiecutter-pypackage)
5
-
6
- [Cookiecutter](https://github.com/cookiecutter/cookiecutter) template for a Python package.
7
-
8
- * GitHub repo: [https://github.com/audreyfeldroy/cookiecutter-pypackage/](https://github.com/audreyfeldroy/cookiecutter-pypackage/)
9
- * Free software: MIT license
10
- * Discord: [https://discord.gg/PWXJr3upUE](https://discord.gg/PWXJr3upUE)
11
-
12
- ## Features
13
-
14
- * Testing setup with pytest
15
- * GitHub Actions testing: Setup to easily test for Python 3.10, 3.11, 3.12, and 3.13
16
- * Auto-release to [PyPI](https://pypi.python.org/pypi) when you push a new tag to main (optional)
17
- * Command line interface using Typer
18
-
19
- ## Quickstart
20
-
21
- Install the latest Cookiecutter if you haven't installed it yet:
22
-
23
- ```bash
24
- pip install -U cookiecutter
25
- ```
26
-
27
- Generate a Python package project:
28
-
29
- ```bash
30
- cookiecutter https://github.com/audreyfeldroy/cookiecutter-pypackage.git
31
- ```
32
-
33
- Then:
34
-
35
- * Create a repo and put it there.
36
- * [Register](https://packaging.python.org/tutorials/packaging-projects/#uploading-the-distribution-archives) your project with PyPI.
37
- * Add the repo to your [Read the Docs](https://readthedocs.io/) account + turn on the Read the Docs service hook.
38
- * Release your package by pushing a new tag to main.
39
-
40
- ## Not Exactly What You Want?
41
-
42
- Don't worry, you have options:
43
-
44
- ### Fork This / Create Your Own
45
-
46
- If you have differences in your preferred setup, I encourage you to fork this
47
- to create your own version. Or create your own; it doesn't strictly have to
48
- be a fork.
49
-
50
- ### Similar Cookiecutter Templates
51
-
52
- Explore other forks to get ideas. See the [network](https://github.com/audreyfeldroy/cookiecutter-pypackage/network) and [family tree](https://github.com/audreyfeldroy/cookiecutter-pypackage/network/members) for this repo.
53
-
54
- ### Or Submit a Pull Request
55
-
56
- I also accept pull requests on this, if they're small, atomic, and if they
57
- make my own packaging experience better.