copier-python 0.2.1__tar.gz → 0.3.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.
- {copier_python-0.2.1 → copier_python-0.3.0}/PKG-INFO +1 -1
- copier_python-0.3.0/copier_python/__init__.py +9 -0
- {copier_python-0.2.1 → copier_python-0.3.0}/docs/development/updates.md +2 -8
- {copier_python-0.2.1 → copier_python-0.3.0}/docs/development/workflow.md +14 -1
- {copier_python-0.2.1 → copier_python-0.3.0}/tests/__snapshots__/test_workflows.ambr +0 -20
- {copier_python-0.2.1 → copier_python-0.3.0}/tests/test_version.py +1 -1
- copier_python-0.2.1/copier_python/__init__.py +0 -8
- {copier_python-0.2.1 → copier_python-0.3.0}/.gitignore +0 -0
- {copier_python-0.2.1 → copier_python-0.3.0}/CONTRIBUTING.md +0 -0
- {copier_python-0.2.1 → copier_python-0.3.0}/LICENSE +0 -0
- {copier_python-0.2.1 → copier_python-0.3.0}/README.md +0 -0
- {copier_python-0.2.1 → copier_python-0.3.0}/copier_python/py.typed +0 -0
- {copier_python-0.2.1 → copier_python-0.3.0}/docs/contributing.md +0 -0
- {copier_python-0.2.1 → copier_python-0.3.0}/docs/development/requirements.md +0 -0
- {copier_python-0.2.1 → copier_python-0.3.0}/docs/index.md +0 -0
- {copier_python-0.2.1 → copier_python-0.3.0}/docs/license.md +0 -0
- {copier_python-0.2.1 → copier_python-0.3.0}/docs/project-creation.md +0 -0
- {copier_python-0.2.1 → copier_python-0.3.0}/docs/project-development.md +0 -0
- {copier_python-0.2.1 → copier_python-0.3.0}/docs/project-release.md +0 -0
- {copier_python-0.2.1 → copier_python-0.3.0}/docs/project-setup.md +0 -0
- {copier_python-0.2.1 → copier_python-0.3.0}/docs/project-updates.md +0 -0
- {copier_python-0.2.1 → copier_python-0.3.0}/docs/releasing.md +0 -0
- {copier_python-0.2.1 → copier_python-0.3.0}/docs/requirements.md +0 -0
- {copier_python-0.2.1 → copier_python-0.3.0}/docs/setup.md +0 -0
- {copier_python-0.2.1 → copier_python-0.3.0}/pyproject.toml +0 -0
- {copier_python-0.2.1 → copier_python-0.3.0}/tests/__init__.py +0 -0
- {copier_python-0.2.1 → copier_python-0.3.0}/tests/__snapshots__/test_compose.ambr +0 -0
- {copier_python-0.2.1 → copier_python-0.3.0}/tests/__snapshots__/test_contributing.ambr +0 -0
- {copier_python-0.2.1 → copier_python-0.3.0}/tests/__snapshots__/test_docs.ambr +0 -0
- {copier_python-0.2.1 → copier_python-0.3.0}/tests/__snapshots__/test_license.ambr +0 -0
- {copier_python-0.2.1 → copier_python-0.3.0}/tests/__snapshots__/test_pyproject.ambr +0 -0
- {copier_python-0.2.1 → copier_python-0.3.0}/tests/__snapshots__/test_readme.ambr +0 -0
- {copier_python-0.2.1 → copier_python-0.3.0}/tests/__snapshots__/test_zensical.ambr +0 -0
- {copier_python-0.2.1 → copier_python-0.3.0}/tests/conftest.py +0 -0
- {copier_python-0.2.1 → copier_python-0.3.0}/tests/test_compose.py +0 -0
- {copier_python-0.2.1 → copier_python-0.3.0}/tests/test_contributing.py +0 -0
- {copier_python-0.2.1 → copier_python-0.3.0}/tests/test_docs.py +0 -0
- {copier_python-0.2.1 → copier_python-0.3.0}/tests/test_license.py +0 -0
- {copier_python-0.2.1 → copier_python-0.3.0}/tests/test_pyproject.py +0 -0
- {copier_python-0.2.1 → copier_python-0.3.0}/tests/test_readme.py +0 -0
- {copier_python-0.2.1 → copier_python-0.3.0}/tests/test_structure.py +0 -0
- {copier_python-0.2.1 → copier_python-0.3.0}/tests/test_template.py +0 -0
- {copier_python-0.2.1 → copier_python-0.3.0}/tests/test_workflows.py +0 -0
- {copier_python-0.2.1 → copier_python-0.3.0}/tests/test_zensical.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: copier-python
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.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
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"""Copier template for Python projects with modern tooling."""
|
|
2
|
+
|
|
3
|
+
from importlib.metadata import PackageNotFoundError
|
|
4
|
+
from importlib.metadata import version as import_version
|
|
5
|
+
|
|
6
|
+
try:
|
|
7
|
+
version = import_version(__name__)
|
|
8
|
+
except PackageNotFoundError: # pragma: no cover
|
|
9
|
+
version = "0.0.0"
|
|
@@ -5,10 +5,8 @@ icon: lucide/git-merge
|
|
|
5
5
|
|
|
6
6
|
# Applying copier-python template updates
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
the
|
|
10
|
-
|
|
11
|
-
To apply updates, simply run in your project directory:
|
|
8
|
+
**copier-python is managed by its own template!**
|
|
9
|
+
When the template changes, copier-python itself can be updated with:
|
|
12
10
|
|
|
13
11
|
```sh
|
|
14
12
|
copier update
|
|
@@ -17,10 +15,6 @@ copier update
|
|
|
17
15
|
This will repeat the setup prompts, in case any prompts have been added or
|
|
18
16
|
changed.
|
|
19
17
|
|
|
20
|
-
!!! tip
|
|
21
|
-
To change template-provided features in your project, simply change your
|
|
22
|
-
answers in the update prompts.
|
|
23
|
-
|
|
24
18
|
To apply updates without being prompted (reusing all previous answers), run:
|
|
25
19
|
|
|
26
20
|
```sh
|
|
@@ -3,7 +3,7 @@ title: Development workflow
|
|
|
3
3
|
icon: lucide/braces
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
#
|
|
6
|
+
# copier-python development workflow
|
|
7
7
|
|
|
8
8
|
## Cloning the repository
|
|
9
9
|
|
|
@@ -15,6 +15,19 @@ cd copier-python
|
|
|
15
15
|
poe setup # Enables git hooks
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
+
## Local template usage
|
|
19
|
+
|
|
20
|
+
While making development changes to copier-python, the local template can be
|
|
21
|
+
used to create projects. To do so, run `copier copy` with the `-r`/`--vcs-ref`
|
|
22
|
+
argument:
|
|
23
|
+
|
|
24
|
+
```sh
|
|
25
|
+
copier copy -r HEAD path/to/copier-python/clone/ path/to/new/project/
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
This will render the new project from the current template state including
|
|
29
|
+
uncommitted changes.
|
|
30
|
+
|
|
18
31
|
## Development tools
|
|
19
32
|
|
|
20
33
|
* `poe lint`: Run formatters and static checks
|
|
@@ -30,11 +30,6 @@
|
|
|
30
30
|
- name: 💾 Check out repository
|
|
31
31
|
uses: actions/checkout@v6
|
|
32
32
|
|
|
33
|
-
- name: 🪪 Configure git identity for tests
|
|
34
|
-
run: |
|
|
35
|
-
git config --global user.name "github-actions[bot]"
|
|
36
|
-
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
|
37
|
-
|
|
38
33
|
- name: 🦀 Set up Python project with uv
|
|
39
34
|
uses: astral-sh/setup-uv@v7
|
|
40
35
|
with:
|
|
@@ -130,11 +125,6 @@
|
|
|
130
125
|
- name: 💾 Check out repository
|
|
131
126
|
uses: actions/checkout@v6
|
|
132
127
|
|
|
133
|
-
- name: 🪪 Configure git identity for tests
|
|
134
|
-
run: |
|
|
135
|
-
git config --global user.name "github-actions[bot]"
|
|
136
|
-
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
|
137
|
-
|
|
138
128
|
- name: 🦀 Set up Python project with uv
|
|
139
129
|
uses: astral-sh/setup-uv@v7
|
|
140
130
|
with:
|
|
@@ -220,11 +210,6 @@
|
|
|
220
210
|
- name: 💾 Check out repository
|
|
221
211
|
uses: actions/checkout@v6
|
|
222
212
|
|
|
223
|
-
- name: 🪪 Configure git identity for tests
|
|
224
|
-
run: |
|
|
225
|
-
git config --global user.name "github-actions[bot]"
|
|
226
|
-
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
|
227
|
-
|
|
228
213
|
- name: 🦀 Set up Python project with uv
|
|
229
214
|
uses: astral-sh/setup-uv@v7
|
|
230
215
|
with:
|
|
@@ -300,11 +285,6 @@
|
|
|
300
285
|
- name: 💾 Check out repository
|
|
301
286
|
uses: actions/checkout@v6
|
|
302
287
|
|
|
303
|
-
- name: 🪪 Configure git identity for tests
|
|
304
|
-
run: |
|
|
305
|
-
git config --global user.name "github-actions[bot]"
|
|
306
|
-
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
|
307
|
-
|
|
308
288
|
- name: 🦀 Set up Python project with uv
|
|
309
289
|
uses: astral-sh/setup-uv@v7
|
|
310
290
|
with:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|