copier-python 0.7.1__tar.gz → 0.8.0__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 (49) hide show
  1. copier_python-0.8.0/AGENTS.md +8 -0
  2. {copier_python-0.7.1 → copier_python-0.8.0}/PKG-INFO +1 -1
  3. {copier_python-0.7.1 → copier_python-0.8.0}/docs/development/updates.md +2 -2
  4. {copier_python-0.7.1 → copier_python-0.8.0}/docs/development/workflow.md +3 -1
  5. {copier_python-0.7.1 → copier_python-0.8.0}/docs/project-development.md +3 -1
  6. {copier_python-0.7.1 → copier_python-0.8.0}/docs/project-setup.md +0 -6
  7. {copier_python-0.7.1 → copier_python-0.8.0}/docs/project-updates.md +2 -2
  8. {copier_python-0.7.1 → copier_python-0.8.0}/docs/setup.md +0 -1
  9. {copier_python-0.7.1 → copier_python-0.8.0}/pyproject.toml +12 -5
  10. copier_python-0.8.0/tests/__snapshots__/test_agents.ambr +14 -0
  11. {copier_python-0.7.1 → copier_python-0.8.0}/tests/__snapshots__/test_contributing.ambr +11 -2
  12. {copier_python-0.7.1 → copier_python-0.8.0}/tests/__snapshots__/test_docs.ambr +522 -28
  13. copier_python-0.8.0/tests/__snapshots__/test_pyproject.ambr +8109 -0
  14. copier_python-0.8.0/tests/test_agents.py +13 -0
  15. {copier_python-0.7.1 → copier_python-0.8.0}/tests/test_docs.py +6 -0
  16. {copier_python-0.7.1 → copier_python-0.8.0}/tests/test_pyproject.py +14 -0
  17. {copier_python-0.7.1 → copier_python-0.8.0}/tests/test_template.py +1 -4
  18. copier_python-0.7.1/tests/__snapshots__/test_pyproject.ambr +0 -2945
  19. {copier_python-0.7.1 → copier_python-0.8.0}/.gitignore +0 -0
  20. {copier_python-0.7.1 → copier_python-0.8.0}/CONTRIBUTING.md +0 -0
  21. {copier_python-0.7.1 → copier_python-0.8.0}/LICENSE +0 -0
  22. {copier_python-0.7.1 → copier_python-0.8.0}/README.md +0 -0
  23. {copier_python-0.7.1 → copier_python-0.8.0}/copier_python/__init__.py +0 -0
  24. {copier_python-0.7.1 → copier_python-0.8.0}/copier_python/py.typed +0 -0
  25. {copier_python-0.7.1 → copier_python-0.8.0}/docs/contributing.md +0 -0
  26. {copier_python-0.7.1 → copier_python-0.8.0}/docs/development/requirements.md +0 -0
  27. {copier_python-0.7.1 → copier_python-0.8.0}/docs/index.md +0 -0
  28. {copier_python-0.7.1 → copier_python-0.8.0}/docs/license.md +0 -0
  29. {copier_python-0.7.1 → copier_python-0.8.0}/docs/project-creation.md +0 -0
  30. {copier_python-0.7.1 → copier_python-0.8.0}/docs/project-release.md +0 -0
  31. {copier_python-0.7.1 → copier_python-0.8.0}/docs/releasing.md +0 -0
  32. {copier_python-0.7.1 → copier_python-0.8.0}/docs/requirements.md +0 -0
  33. {copier_python-0.7.1 → copier_python-0.8.0}/tests/__init__.py +0 -0
  34. {copier_python-0.7.1 → copier_python-0.8.0}/tests/__snapshots__/test_compose.ambr +0 -0
  35. {copier_python-0.7.1 → copier_python-0.8.0}/tests/__snapshots__/test_dockerfile.ambr +0 -0
  36. {copier_python-0.7.1 → copier_python-0.8.0}/tests/__snapshots__/test_license.ambr +0 -0
  37. {copier_python-0.7.1 → copier_python-0.8.0}/tests/__snapshots__/test_readme.ambr +0 -0
  38. {copier_python-0.7.1 → copier_python-0.8.0}/tests/__snapshots__/test_workflows.ambr +0 -0
  39. {copier_python-0.7.1 → copier_python-0.8.0}/tests/__snapshots__/test_zensical.ambr +0 -0
  40. {copier_python-0.7.1 → copier_python-0.8.0}/tests/conftest.py +0 -0
  41. {copier_python-0.7.1 → copier_python-0.8.0}/tests/test_compose.py +0 -0
  42. {copier_python-0.7.1 → copier_python-0.8.0}/tests/test_contributing.py +0 -0
  43. {copier_python-0.7.1 → copier_python-0.8.0}/tests/test_dockerfile.py +0 -0
  44. {copier_python-0.7.1 → copier_python-0.8.0}/tests/test_license.py +0 -0
  45. {copier_python-0.7.1 → copier_python-0.8.0}/tests/test_readme.py +0 -0
  46. {copier_python-0.7.1 → copier_python-0.8.0}/tests/test_structure.py +0 -0
  47. {copier_python-0.7.1 → copier_python-0.8.0}/tests/test_version.py +0 -0
  48. {copier_python-0.7.1 → copier_python-0.8.0}/tests/test_workflows.py +0 -0
  49. {copier_python-0.7.1 → copier_python-0.8.0}/tests/test_zensical.py +0 -0
@@ -0,0 +1,8 @@
1
+ # Environment/Tools
2
+
3
+ * Python project with `uv`, use `uv add`/`uv run python` instead of bare `pip`/`python`
4
+ * `poe setup`: One-time after-clone setup (dependencies, install pre-commit hooks).
5
+ * `poe lint`: Pre-commit hooks (via `pre-commit`-compatible `prek`) including lint, format, type check (ruff, ty)
6
+ * `poe test`: Run tests (accepts pytest arguments)
7
+ * `poe lt`: Lint+test (no arguments)
8
+ * `poe snapup`: Update test snapshots (syrupy, accepts pytest arguments)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: copier-python
3
- Version: 0.7.1
3
+ Version: 0.8.0
4
4
  Summary: Copier template for Python projects with modern tooling
5
5
  Project-URL: Homepage, https://smkent.github.io/copier-python
6
6
  Project-URL: Repository, https://github.com/smkent/copier-python
@@ -21,7 +21,7 @@ To apply updates without being prompted (reusing all previous answers), run:
21
21
  copier update -l
22
22
  ```
23
23
 
24
- When `copier update` is finished, view changes with `git status` and `git diff`.
25
- Resolve any conflicts, and then commit the result.
24
+ When [`copier update`][copier-update] is finished, view changes with
25
+ `git status` and `git diff`. Resolve any conflicts, and then commit the result.
26
26
 
27
27
  [copier-update]: https://copier.readthedocs.io/en/stable/updating/
@@ -57,6 +57,8 @@ Start the development server with:
57
57
  poe docs
58
58
  ```
59
59
 
60
- The documentation site will be served at **<http://localhost:8000>**.
60
+ The documentation site will be served at:
61
+
62
+ [**http://localhost:8000**](http://localhost:8000){ .md-button .md-button--primary target="_blank" }
61
63
 
62
64
  To use a different bind host/port, run `poe --help docs` for arguments info.
@@ -34,6 +34,8 @@ Start the development server with:
34
34
  poe docs
35
35
  ```
36
36
 
37
- The documentation site will be served at **<http://localhost:8000>**.
37
+ The documentation site will be served at:
38
+
39
+ [**http://localhost:8000**](http://localhost:8000){ .md-button .md-button--primary target="_blank" }
38
40
 
39
41
  To use a different bind host/port, run `poe --help docs` for arguments info.
@@ -75,13 +75,7 @@ Repository Settings → Actions → General → Workflow permissions
75
75
 
76
76
  Repository Settings → Pages → Source → GitHub Actions
77
77
 
78
- [copier]: https://copier.readthedocs.io
79
- [github-new]: https://github.com/new
80
78
  [github-settings-docs]: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features
81
79
  [pypi-publishing-settings]: https://pypi.org/manage/account/publishing/
82
80
  [pypi-trusted-publishing]: https://docs.pypi.org/trusted-publishers/
83
- [pypi]: https://pypi.org
84
- [pypi-login]: https://pypi.org/account/login/
85
- [pyproject-name]: https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#name
86
81
  [renovate]: https://github.com/apps/renovate
87
- [uv]: https://docs.astral.sh/uv/
@@ -27,7 +27,7 @@ To apply updates without being prompted (reusing all previous answers), run:
27
27
  copier update -l
28
28
  ```
29
29
 
30
- When `copier update` is finished, view changes with `git status` and `git diff`.
31
- Resolve any conflicts, and then commit the result.
30
+ When [`copier update`][copier-update] is finished, view changes with
31
+ `git status` and `git diff`. Resolve any conflicts, and then commit the result.
32
32
 
33
33
  [copier-update]: https://copier.readthedocs.io/en/stable/updating/
@@ -57,7 +57,6 @@ need to be stored as secrets.
57
57
  [pypi-publishing-settings]: https://pypi.org/manage/account/publishing/
58
58
  [pypi-trusted-publishing]: https://docs.pypi.org/trusted-publishers/
59
59
  [renovate]: https://github.com/apps/renovate
60
- [repo-releases]: https://github.com/smkent/copier-python/releases
61
60
  [repo-settings]: https://github.com/smkent/copier-python/settings
62
61
  [repo-settings-envs]: https://github.com/smkent/copier-python/settings/environments
63
62
  [repo-settings-branches]: https://github.com/smkent/copier-python/settings/branches
@@ -46,12 +46,13 @@ dev = [
46
46
  "pytest>=9",
47
47
  "pytest-cov>=7",
48
48
  "pytest-sugar>=1",
49
- "syrupy>=5",
49
+ "pytest-xdist>=3",
50
50
  "ruff>=0.15",
51
- "ty>=0.0.31",
51
+ "syrupy>=5",
52
+ "ty>=0.0.37",
52
53
  ]
53
54
  docs = [
54
- "zensical>=0.0.33",
55
+ "zensical>=0.0.42",
55
56
  ]
56
57
 
57
58
  [tool.bumpversion]
@@ -131,7 +132,7 @@ sequence = [
131
132
  help = "Install project dependencies and git hooks"
132
133
 
133
134
  [tool.poe.tasks.snapup]
134
- cmd = "pytest --snapshot-update"
135
+ cmd = "pytest --snapshot-update --numprocesses 0"
135
136
  help = "Update test snapshots"
136
137
 
137
138
  [tool.poe.tasks.test]
@@ -167,12 +168,18 @@ cmd = "pytest"
167
168
  executor = {isolated = true, python = "3.14"}
168
169
  help = "Run tests using Python 3.14"
169
170
 
171
+ [tool.poe.tasks.ti]
172
+ cmd = "pytest --numprocesses 0 --no-cov -v"
173
+ help = "Run tests with debug friendly options"
174
+
170
175
  [tool.pytest]
171
176
  addopts = [
172
177
  "-ra",
173
- "--cov",
178
+ "--cov=copier_python",
174
179
  "--strict-config",
175
180
  "--strict-markers",
181
+ "--numprocesses",
182
+ "auto",
176
183
  ]
177
184
  testpaths = ["tests"]
178
185
 
@@ -0,0 +1,14 @@
1
+ # serializer version: 1
2
+ # name: test_agents
3
+ '''
4
+ # Environment/Tools
5
+
6
+ * Python project with `uv`, use `uv add`/`uv run python` instead of bare `pip`/`python`
7
+ * `poe setup`: One-time after-clone setup (dependencies, install pre-commit hooks).
8
+ * `poe lint`: Pre-commit hooks (via `pre-commit`-compatible `prek`) including lint, format, type check (ruff, ty)
9
+ * `poe test`: Run tests (accepts pytest arguments)
10
+ * `poe lt`: Lint+test (no arguments)
11
+ * `poe snapup`: Update test snapshots (syrupy, accepts pytest arguments)
12
+
13
+ '''
14
+ # ---
@@ -83,6 +83,15 @@
83
83
  poe lt
84
84
  ```
85
85
 
86
+ ### Test snapshots
87
+
88
+ Some tests compare test results with saved snapshots. Test snapshots can be
89
+ updated by running:
90
+
91
+ ```sh
92
+ poe snapup
93
+ ```
94
+
86
95
  ### Applying copier-python template updates
87
96
 
88
97
  Copier can update your project with template changes that have occurred since
@@ -107,8 +116,8 @@
107
116
  copier update -l
108
117
  ```
109
118
 
110
- When `copier update` is finished, view changes with `git status` and `git diff`.
111
- Resolve any conflicts, and then commit the result.
119
+ When [`copier update`][copier-update] is finished, view changes with
120
+ `git status` and `git diff`. Resolve any conflicts, and then commit the result.
112
121
 
113
122
  [copier-update]: https://copier.readthedocs.io/en/stable/updating/
114
123