copier-python 0.10.0__tar.gz → 0.11.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.
- {copier_python-0.10.0 → copier_python-0.11.1}/PKG-INFO +1 -1
- {copier_python-0.10.0 → copier_python-0.11.1}/copier_python/repo.py +6 -1
- {copier_python-0.10.0 → copier_python-0.11.1}/copier_python/update.py +1 -1
- {copier_python-0.10.0 → copier_python-0.11.1}/tests/template/__snapshots__/test_workflows.ambr +16 -0
- {copier_python-0.10.0 → copier_python-0.11.1}/tests/test_update.py +4 -4
- {copier_python-0.10.0 → copier_python-0.11.1}/.gitignore +0 -0
- {copier_python-0.10.0 → copier_python-0.11.1}/AGENTS.md +0 -0
- {copier_python-0.10.0 → copier_python-0.11.1}/CONTRIBUTING.md +0 -0
- {copier_python-0.10.0 → copier_python-0.11.1}/LICENSE +0 -0
- {copier_python-0.10.0 → copier_python-0.11.1}/README.md +0 -0
- {copier_python-0.10.0 → copier_python-0.11.1}/copier_python/__init__.py +0 -0
- {copier_python-0.10.0 → copier_python-0.11.1}/copier_python/__main__.py +0 -0
- {copier_python-0.10.0 → copier_python-0.11.1}/copier_python/py.typed +0 -0
- {copier_python-0.10.0 → copier_python-0.11.1}/docs/contributing.md +0 -0
- {copier_python-0.10.0 → copier_python-0.11.1}/docs/development/requirements.md +0 -0
- {copier_python-0.10.0 → copier_python-0.11.1}/docs/development/updates.md +0 -0
- {copier_python-0.10.0 → copier_python-0.11.1}/docs/development/workflow.md +0 -0
- {copier_python-0.10.0 → copier_python-0.11.1}/docs/index.md +0 -0
- {copier_python-0.10.0 → copier_python-0.11.1}/docs/license.md +0 -0
- {copier_python-0.10.0 → copier_python-0.11.1}/docs/project-creation.md +0 -0
- {copier_python-0.10.0 → copier_python-0.11.1}/docs/project-development.md +0 -0
- {copier_python-0.10.0 → copier_python-0.11.1}/docs/project-release.md +0 -0
- {copier_python-0.10.0 → copier_python-0.11.1}/docs/project-setup.md +0 -0
- {copier_python-0.10.0 → copier_python-0.11.1}/docs/project-updates.md +0 -0
- {copier_python-0.10.0 → copier_python-0.11.1}/docs/releasing.md +0 -0
- {copier_python-0.10.0 → copier_python-0.11.1}/docs/requirements.md +0 -0
- {copier_python-0.10.0 → copier_python-0.11.1}/docs/setup.md +0 -0
- {copier_python-0.10.0 → copier_python-0.11.1}/pyproject.toml +0 -0
- {copier_python-0.10.0 → copier_python-0.11.1}/tests/__init__.py +0 -0
- {copier_python-0.10.0 → copier_python-0.11.1}/tests/conftest.py +0 -0
- {copier_python-0.10.0 → copier_python-0.11.1}/tests/template/__init__.py +0 -0
- {copier_python-0.10.0 → copier_python-0.11.1}/tests/template/__snapshots__/test_agents.ambr +0 -0
- {copier_python-0.10.0 → copier_python-0.11.1}/tests/template/__snapshots__/test_compose.ambr +0 -0
- {copier_python-0.10.0 → copier_python-0.11.1}/tests/template/__snapshots__/test_contributing.ambr +0 -0
- {copier_python-0.10.0 → copier_python-0.11.1}/tests/template/__snapshots__/test_dockerfile.ambr +0 -0
- {copier_python-0.10.0 → copier_python-0.11.1}/tests/template/__snapshots__/test_docs.ambr +0 -0
- {copier_python-0.10.0 → copier_python-0.11.1}/tests/template/__snapshots__/test_license.ambr +0 -0
- {copier_python-0.10.0 → copier_python-0.11.1}/tests/template/__snapshots__/test_pyproject.ambr +0 -0
- {copier_python-0.10.0 → copier_python-0.11.1}/tests/template/__snapshots__/test_readme.ambr +0 -0
- {copier_python-0.10.0 → copier_python-0.11.1}/tests/template/__snapshots__/test_zensical.ambr +0 -0
- {copier_python-0.10.0 → copier_python-0.11.1}/tests/template/test_agents.py +0 -0
- {copier_python-0.10.0 → copier_python-0.11.1}/tests/template/test_compose.py +0 -0
- {copier_python-0.10.0 → copier_python-0.11.1}/tests/template/test_contributing.py +0 -0
- {copier_python-0.10.0 → copier_python-0.11.1}/tests/template/test_dockerfile.py +0 -0
- {copier_python-0.10.0 → copier_python-0.11.1}/tests/template/test_docs.py +0 -0
- {copier_python-0.10.0 → copier_python-0.11.1}/tests/template/test_license.py +0 -0
- {copier_python-0.10.0 → copier_python-0.11.1}/tests/template/test_pyproject.py +0 -0
- {copier_python-0.10.0 → copier_python-0.11.1}/tests/template/test_readme.py +0 -0
- {copier_python-0.10.0 → copier_python-0.11.1}/tests/template/test_structure.py +0 -0
- {copier_python-0.10.0 → copier_python-0.11.1}/tests/template/test_template.py +0 -0
- {copier_python-0.10.0 → copier_python-0.11.1}/tests/template/test_version.py +0 -0
- {copier_python-0.10.0 → copier_python-0.11.1}/tests/template/test_workflows.py +0 -0
- {copier_python-0.10.0 → copier_python-0.11.1}/tests/template/test_zensical.py +0 -0
- {copier_python-0.10.0 → copier_python-0.11.1}/tests/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: copier-python
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.11.1
|
|
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
|
|
@@ -3,6 +3,7 @@ from __future__ import annotations
|
|
|
3
3
|
import os
|
|
4
4
|
import re
|
|
5
5
|
import subprocess
|
|
6
|
+
import sys
|
|
6
7
|
import tempfile
|
|
7
8
|
from contextlib import contextmanager, suppress
|
|
8
9
|
from dataclasses import InitVar, dataclass, field
|
|
@@ -14,7 +15,11 @@ import yaml
|
|
|
14
15
|
from rich import print # noqa: A004
|
|
15
16
|
from rich.panel import Panel
|
|
16
17
|
from rich.text import Text
|
|
17
|
-
|
|
18
|
+
|
|
19
|
+
if sys.version_info >= (3, 11):
|
|
20
|
+
from typing import Self
|
|
21
|
+
else:
|
|
22
|
+
from typing_extensions import Self
|
|
18
23
|
|
|
19
24
|
if TYPE_CHECKING:
|
|
20
25
|
from collections.abc import Generator, Sequence
|
|
@@ -34,7 +34,7 @@ class UpdateAction:
|
|
|
34
34
|
end_ref = "v" + copier_status["latest_version"]
|
|
35
35
|
if not copier_status.get("update_available", False):
|
|
36
36
|
return None
|
|
37
|
-
repo.run(["copier", "update", "-
|
|
37
|
+
repo.run(["copier", "update", "--skip-answered"])
|
|
38
38
|
|
|
39
39
|
status = repo.git_status()
|
|
40
40
|
if not status:
|
{copier_python-0.10.0 → copier_python-0.11.1}/tests/template/__snapshots__/test_workflows.ambr
RENAMED
|
@@ -54,6 +54,8 @@
|
|
|
54
54
|
if: ${{ matrix.python-version == '3.14' }}
|
|
55
55
|
with:
|
|
56
56
|
fail_ci_if_error: true
|
|
57
|
+
use_pypi: true
|
|
58
|
+
version: 11.2.8
|
|
57
59
|
|
|
58
60
|
docs:
|
|
59
61
|
name: Documentation
|
|
@@ -234,6 +236,8 @@
|
|
|
234
236
|
if: ${{ matrix.python-version == '3.14' }}
|
|
235
237
|
with:
|
|
236
238
|
fail_ci_if_error: true
|
|
239
|
+
use_pypi: true
|
|
240
|
+
version: 11.2.8
|
|
237
241
|
|
|
238
242
|
|
|
239
243
|
gitleaks:
|
|
@@ -372,6 +376,8 @@
|
|
|
372
376
|
if: ${{ matrix.python-version == '3.12' }}
|
|
373
377
|
with:
|
|
374
378
|
fail_ci_if_error: true
|
|
379
|
+
use_pypi: true
|
|
380
|
+
version: 11.2.8
|
|
375
381
|
|
|
376
382
|
docs:
|
|
377
383
|
name: Documentation
|
|
@@ -463,6 +469,8 @@
|
|
|
463
469
|
if: ${{ matrix.python-version == '3.12' }}
|
|
464
470
|
with:
|
|
465
471
|
fail_ci_if_error: true
|
|
472
|
+
use_pypi: true
|
|
473
|
+
version: 11.2.8
|
|
466
474
|
|
|
467
475
|
docs:
|
|
468
476
|
name: Documentation
|
|
@@ -558,6 +566,8 @@
|
|
|
558
566
|
if: ${{ matrix.python-version == '3.14' }}
|
|
559
567
|
with:
|
|
560
568
|
fail_ci_if_error: true
|
|
569
|
+
use_pypi: true
|
|
570
|
+
version: 11.2.8
|
|
561
571
|
|
|
562
572
|
docs:
|
|
563
573
|
name: Documentation
|
|
@@ -651,6 +661,8 @@
|
|
|
651
661
|
if: ${{ matrix.python-version == '3.14' }}
|
|
652
662
|
with:
|
|
653
663
|
fail_ci_if_error: true
|
|
664
|
+
use_pypi: true
|
|
665
|
+
version: 11.2.8
|
|
654
666
|
|
|
655
667
|
docs:
|
|
656
668
|
name: Documentation
|
|
@@ -746,6 +758,8 @@
|
|
|
746
758
|
if: ${{ matrix.python-version == '3.14' }}
|
|
747
759
|
with:
|
|
748
760
|
fail_ci_if_error: true
|
|
761
|
+
use_pypi: true
|
|
762
|
+
version: 11.2.8
|
|
749
763
|
|
|
750
764
|
docs:
|
|
751
765
|
name: Documentation
|
|
@@ -839,6 +853,8 @@
|
|
|
839
853
|
if: ${{ matrix.python-version == '3.14' }}
|
|
840
854
|
with:
|
|
841
855
|
fail_ci_if_error: true
|
|
856
|
+
use_pypi: true
|
|
857
|
+
version: 11.2.8
|
|
842
858
|
|
|
843
859
|
docs:
|
|
844
860
|
name: Documentation
|
|
@@ -159,8 +159,8 @@ class ExpectRun:
|
|
|
159
159
|
return SimpleNamespace(stdout=json.dumps(data))
|
|
160
160
|
if mock:
|
|
161
161
|
return MagicMock()
|
|
162
|
-
if tuple(cmd) == ("copier", "update", "-
|
|
163
|
-
cmd = [*cmd, "--vcs-ref", DEFAULT_END_REF]
|
|
162
|
+
if tuple(cmd[:3]) == ("copier", "update", "--skip-answered"):
|
|
163
|
+
cmd = [*cmd[:2], "--defaults", "--vcs-ref", DEFAULT_END_REF]
|
|
164
164
|
cmd = [
|
|
165
165
|
(
|
|
166
166
|
str(self.origin)
|
|
@@ -299,7 +299,7 @@ def test_main_update_error(
|
|
|
299
299
|
cwd=worktree,
|
|
300
300
|
capture_output=True,
|
|
301
301
|
)
|
|
302
|
-
expect_run.expect(["copier", "update", "-
|
|
302
|
+
expect_run.expect(["copier", "update", "--skip-answered"], cwd=worktree)
|
|
303
303
|
expect_run.expect(
|
|
304
304
|
["git", "status", "--porcelain"], cwd=worktree, capture_output=True
|
|
305
305
|
)
|
|
@@ -386,7 +386,7 @@ def test_main_update_with_project(
|
|
|
386
386
|
cwd=worktree,
|
|
387
387
|
capture_output=True,
|
|
388
388
|
)
|
|
389
|
-
expect_run.expect(["copier", "update", "-
|
|
389
|
+
expect_run.expect(["copier", "update", "--skip-answered"], cwd=worktree)
|
|
390
390
|
expect_run.expect(
|
|
391
391
|
["git", "status", "--porcelain"], cwd=worktree, capture_output=True
|
|
392
392
|
)
|
|
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
|
{copier_python-0.10.0 → copier_python-0.11.1}/tests/template/__snapshots__/test_compose.ambr
RENAMED
|
File without changes
|
{copier_python-0.10.0 → copier_python-0.11.1}/tests/template/__snapshots__/test_contributing.ambr
RENAMED
|
File without changes
|
{copier_python-0.10.0 → copier_python-0.11.1}/tests/template/__snapshots__/test_dockerfile.ambr
RENAMED
|
File without changes
|
|
File without changes
|
{copier_python-0.10.0 → copier_python-0.11.1}/tests/template/__snapshots__/test_license.ambr
RENAMED
|
File without changes
|
{copier_python-0.10.0 → copier_python-0.11.1}/tests/template/__snapshots__/test_pyproject.ambr
RENAMED
|
File without changes
|
|
File without changes
|
{copier_python-0.10.0 → copier_python-0.11.1}/tests/template/__snapshots__/test_zensical.ambr
RENAMED
|
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
|