copier-python 0.22.1__tar.gz → 0.23.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.22.1 → copier_python-0.23.0}/PKG-INFO +1 -1
- {copier_python-0.22.1 → copier_python-0.23.0}/tests/conftest.py +0 -3
- {copier_python-0.22.1 → copier_python-0.23.0}/tests/template/test_agents.py +8 -4
- {copier_python-0.22.1 → copier_python-0.23.0}/tests/template/test_compose.py +13 -5
- {copier_python-0.22.1 → copier_python-0.23.0}/tests/template/test_contributing.py +8 -4
- {copier_python-0.22.1 → copier_python-0.23.0}/tests/template/test_dockerfile.py +8 -4
- {copier_python-0.22.1 → copier_python-0.23.0}/tests/template/test_docs.py +11 -5
- {copier_python-0.22.1 → copier_python-0.23.0}/tests/template/test_license.py +9 -5
- {copier_python-0.22.1 → copier_python-0.23.0}/tests/template/test_mise_toml.py +13 -5
- {copier_python-0.22.1 → copier_python-0.23.0}/tests/template/test_pyproject.py +11 -5
- {copier_python-0.22.1 → copier_python-0.23.0}/tests/template/test_readme.py +12 -6
- {copier_python-0.22.1 → copier_python-0.23.0}/tests/template/test_workflows.py +8 -4
- {copier_python-0.22.1 → copier_python-0.23.0}/tests/template/test_zensical.py +13 -5
- {copier_python-0.22.1 → copier_python-0.23.0}/tests/test_update.py +2 -2
- {copier_python-0.22.1 → copier_python-0.23.0}/.gitignore +0 -0
- {copier_python-0.22.1 → copier_python-0.23.0}/AGENTS.md +0 -0
- {copier_python-0.22.1 → copier_python-0.23.0}/CONTRIBUTING.md +0 -0
- {copier_python-0.22.1 → copier_python-0.23.0}/LICENSE +0 -0
- {copier_python-0.22.1 → copier_python-0.23.0}/README.md +0 -0
- {copier_python-0.22.1 → copier_python-0.23.0}/copier_python/__init__.py +0 -0
- {copier_python-0.22.1 → copier_python-0.23.0}/copier_python/__main__.py +0 -0
- {copier_python-0.22.1 → copier_python-0.23.0}/copier_python/py.typed +0 -0
- {copier_python-0.22.1 → copier_python-0.23.0}/copier_python/repo.py +0 -0
- {copier_python-0.22.1 → copier_python-0.23.0}/copier_python/update.py +0 -0
- {copier_python-0.22.1 → copier_python-0.23.0}/docs/contributing.md +0 -0
- {copier_python-0.22.1 → copier_python-0.23.0}/docs/development/requirements.md +0 -0
- {copier_python-0.22.1 → copier_python-0.23.0}/docs/development/updates.md +0 -0
- {copier_python-0.22.1 → copier_python-0.23.0}/docs/development/workflow.md +0 -0
- {copier_python-0.22.1 → copier_python-0.23.0}/docs/index.md +0 -0
- {copier_python-0.22.1 → copier_python-0.23.0}/docs/license.md +0 -0
- {copier_python-0.22.1 → copier_python-0.23.0}/docs/project-creation.md +0 -0
- {copier_python-0.22.1 → copier_python-0.23.0}/docs/project-development.md +0 -0
- {copier_python-0.22.1 → copier_python-0.23.0}/docs/project-release.md +0 -0
- {copier_python-0.22.1 → copier_python-0.23.0}/docs/project-setup.md +0 -0
- {copier_python-0.22.1 → copier_python-0.23.0}/docs/project-updates.md +0 -0
- {copier_python-0.22.1 → copier_python-0.23.0}/docs/releasing.md +0 -0
- {copier_python-0.22.1 → copier_python-0.23.0}/docs/requirements.md +0 -0
- {copier_python-0.22.1 → copier_python-0.23.0}/docs/setup.md +0 -0
- {copier_python-0.22.1 → copier_python-0.23.0}/pyproject.toml +0 -0
- {copier_python-0.22.1 → copier_python-0.23.0}/tests/__init__.py +0 -0
- {copier_python-0.22.1 → copier_python-0.23.0}/tests/template/__init__.py +0 -0
- {copier_python-0.22.1 → copier_python-0.23.0}/tests/template/__snapshots__/test_agents.ambr +0 -0
- {copier_python-0.22.1 → copier_python-0.23.0}/tests/template/__snapshots__/test_compose.ambr +0 -0
- {copier_python-0.22.1 → copier_python-0.23.0}/tests/template/__snapshots__/test_contributing.ambr +0 -0
- {copier_python-0.22.1 → copier_python-0.23.0}/tests/template/__snapshots__/test_dockerfile.ambr +0 -0
- {copier_python-0.22.1 → copier_python-0.23.0}/tests/template/__snapshots__/test_docs.ambr +0 -0
- {copier_python-0.22.1 → copier_python-0.23.0}/tests/template/__snapshots__/test_license.ambr +0 -0
- {copier_python-0.22.1 → copier_python-0.23.0}/tests/template/__snapshots__/test_mise_toml.ambr +0 -0
- {copier_python-0.22.1 → copier_python-0.23.0}/tests/template/__snapshots__/test_pre_commit.ambr +0 -0
- {copier_python-0.22.1 → copier_python-0.23.0}/tests/template/__snapshots__/test_pyproject.ambr +0 -0
- {copier_python-0.22.1 → copier_python-0.23.0}/tests/template/__snapshots__/test_readme.ambr +0 -0
- {copier_python-0.22.1 → copier_python-0.23.0}/tests/template/__snapshots__/test_workflows.ambr +0 -0
- {copier_python-0.22.1 → copier_python-0.23.0}/tests/template/__snapshots__/test_zensical.ambr +0 -0
- {copier_python-0.22.1 → copier_python-0.23.0}/tests/template/test_commit_check.py +0 -0
- {copier_python-0.22.1 → copier_python-0.23.0}/tests/template/test_pre_commit.py +0 -0
- {copier_python-0.22.1 → copier_python-0.23.0}/tests/template/test_structure.py +0 -0
- {copier_python-0.22.1 → copier_python-0.23.0}/tests/template/test_template.py +0 -0
- {copier_python-0.22.1 → copier_python-0.23.0}/tests/test_version.py +0 -0
- {copier_python-0.22.1 → copier_python-0.23.0}/tests/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: copier-python
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.23.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
|
|
@@ -20,9 +20,6 @@ if TYPE_CHECKING:
|
|
|
20
20
|
DEFAULT_DATA: dict[str, Any] = {
|
|
21
21
|
"project_name": "PKFire",
|
|
22
22
|
"project_description": "Onett Little League",
|
|
23
|
-
"project_type": "application",
|
|
24
|
-
"project_visibility": "public",
|
|
25
|
-
"python_version_minimum": f"3.{template.python_versions.minor_min}",
|
|
26
23
|
"user_name": "Ness",
|
|
27
24
|
"user_email": "ness@onett.example.com",
|
|
28
25
|
"github_user": "ness",
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
from __future__ import annotations
|
|
2
2
|
|
|
3
|
-
from
|
|
4
|
-
from pathlib import Path
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
5
4
|
|
|
6
5
|
import pytest
|
|
7
|
-
from syrupy.assertion import SnapshotAssertion
|
|
8
6
|
|
|
9
7
|
from tests.utils import template
|
|
10
8
|
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
from collections.abc import Callable
|
|
11
|
+
from pathlib import Path
|
|
12
|
+
|
|
13
|
+
from syrupy.assertion import SnapshotAssertion
|
|
14
|
+
|
|
11
15
|
|
|
12
16
|
@pytest.mark.parametrize(
|
|
13
17
|
"llm_contribution_policy", template.choices.llm_contribution_policy
|
|
@@ -1,13 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
from __future__ import annotations
|
|
2
2
|
|
|
3
|
-
from
|
|
4
|
-
from pathlib import Path
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
5
4
|
|
|
6
5
|
import pytest
|
|
7
|
-
from syrupy.assertion import SnapshotAssertion
|
|
8
6
|
|
|
7
|
+
from tests.utils import template
|
|
9
8
|
|
|
10
|
-
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
from collections.abc import Callable
|
|
11
|
+
from pathlib import Path
|
|
12
|
+
|
|
13
|
+
from syrupy.assertion import SnapshotAssertion
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
@pytest.mark.parametrize(
|
|
17
|
+
"project_visibility", template.choices.project_visibility
|
|
18
|
+
)
|
|
11
19
|
def test_compose_features(
|
|
12
20
|
render_template: Callable[..., Path],
|
|
13
21
|
snapshot: SnapshotAssertion,
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
from __future__ import annotations
|
|
2
2
|
|
|
3
|
-
from
|
|
4
|
-
from pathlib import Path
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
5
4
|
|
|
6
5
|
import pytest
|
|
7
|
-
from syrupy.assertion import SnapshotAssertion
|
|
8
6
|
|
|
9
7
|
from tests.utils import template
|
|
10
8
|
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
from collections.abc import Callable
|
|
11
|
+
from pathlib import Path
|
|
12
|
+
|
|
13
|
+
from syrupy.assertion import SnapshotAssertion
|
|
14
|
+
|
|
11
15
|
|
|
12
16
|
@pytest.mark.parametrize(
|
|
13
17
|
"enable_docs",
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
from __future__ import annotations
|
|
2
2
|
|
|
3
|
-
from
|
|
4
|
-
from pathlib import Path
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
5
4
|
|
|
6
5
|
import pytest
|
|
7
|
-
from syrupy.assertion import SnapshotAssertion
|
|
8
6
|
|
|
9
7
|
from tests.utils import template
|
|
10
8
|
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
from collections.abc import Callable
|
|
11
|
+
from pathlib import Path
|
|
12
|
+
|
|
13
|
+
from syrupy.assertion import SnapshotAssertion
|
|
14
|
+
|
|
11
15
|
|
|
12
16
|
@pytest.mark.parametrize(
|
|
13
17
|
"python_version_minimum", template.python_versions.min_param
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
from __future__ import annotations
|
|
2
2
|
|
|
3
|
-
from
|
|
4
|
-
from pathlib import Path
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
5
4
|
|
|
6
5
|
import pytest
|
|
7
|
-
from syrupy.assertion import SnapshotAssertion
|
|
8
6
|
|
|
9
7
|
from tests.utils import template
|
|
10
8
|
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
from collections.abc import Callable
|
|
11
|
+
from pathlib import Path
|
|
12
|
+
|
|
13
|
+
from syrupy.assertion import SnapshotAssertion
|
|
14
|
+
|
|
11
15
|
|
|
12
16
|
@pytest.mark.parametrize(
|
|
13
17
|
"enable_pypi",
|
|
@@ -37,7 +41,9 @@ def test_docs_features(
|
|
|
37
41
|
assert (rendered / "docs" / doc_file).read_text() == snapshot
|
|
38
42
|
|
|
39
43
|
|
|
40
|
-
@pytest.mark.parametrize(
|
|
44
|
+
@pytest.mark.parametrize(
|
|
45
|
+
"project_visibility", template.choices.project_visibility
|
|
46
|
+
)
|
|
41
47
|
@pytest.mark.parametrize(
|
|
42
48
|
"enable_pypi",
|
|
43
49
|
[pytest.param(True, id="pypi"), pytest.param(False, id="no_pypi")],
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
from __future__ import annotations
|
|
2
2
|
|
|
3
|
-
from
|
|
4
|
-
from pathlib import Path
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
5
4
|
|
|
6
5
|
import pytest
|
|
7
6
|
import yaml
|
|
8
|
-
from syrupy.assertion import SnapshotAssertion
|
|
9
7
|
|
|
10
8
|
from tests.utils import template
|
|
11
9
|
|
|
10
|
+
if TYPE_CHECKING:
|
|
11
|
+
from collections.abc import Callable
|
|
12
|
+
from pathlib import Path
|
|
13
|
+
|
|
14
|
+
from syrupy.assertion import SnapshotAssertion
|
|
15
|
+
|
|
12
16
|
|
|
13
17
|
@pytest.mark.parametrize(
|
|
14
18
|
"copyright_license", template.choices.copyright_license
|
|
@@ -24,7 +28,7 @@ def test_license(
|
|
|
24
28
|
assert (rendered / name).read_text() == snapshot
|
|
25
29
|
|
|
26
30
|
|
|
27
|
-
@pytest.mark.parametrize("project_type",
|
|
31
|
+
@pytest.mark.parametrize("project_type", template.choices.project_type)
|
|
28
32
|
def test_license_default(
|
|
29
33
|
render_template: Callable[..., Path], project_type: str
|
|
30
34
|
) -> None:
|
|
@@ -1,13 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
from __future__ import annotations
|
|
2
2
|
|
|
3
|
-
from
|
|
4
|
-
from pathlib import Path
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
5
4
|
|
|
6
5
|
import pytest
|
|
7
|
-
from syrupy.assertion import SnapshotAssertion
|
|
8
6
|
|
|
7
|
+
from tests.utils import template
|
|
9
8
|
|
|
10
|
-
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
from collections.abc import Callable
|
|
11
|
+
from pathlib import Path
|
|
12
|
+
|
|
13
|
+
from syrupy.assertion import SnapshotAssertion
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
@pytest.mark.parametrize(
|
|
17
|
+
"project_visibility", template.choices.project_visibility
|
|
18
|
+
)
|
|
11
19
|
@pytest.mark.parametrize(
|
|
12
20
|
"enable_docs",
|
|
13
21
|
[pytest.param(True, id="docs"), pytest.param(False, id="no_docs")],
|
|
@@ -1,15 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
from __future__ import annotations
|
|
2
2
|
|
|
3
|
-
from
|
|
4
|
-
from pathlib import Path
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
5
4
|
|
|
6
5
|
import pytest
|
|
7
|
-
from syrupy.assertion import SnapshotAssertion
|
|
8
6
|
|
|
9
7
|
from tests.utils import template
|
|
10
8
|
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
from collections.abc import Callable
|
|
11
|
+
from pathlib import Path
|
|
11
12
|
|
|
12
|
-
|
|
13
|
+
from syrupy.assertion import SnapshotAssertion
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
@pytest.mark.parametrize(
|
|
17
|
+
"project_visibility", template.choices.project_visibility
|
|
18
|
+
)
|
|
13
19
|
@pytest.mark.parametrize(
|
|
14
20
|
"python_version_minimum", template.python_versions.min_param_full_range
|
|
15
21
|
)
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
from __future__ import annotations
|
|
2
2
|
|
|
3
|
-
from
|
|
4
|
-
from pathlib import Path
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
5
4
|
|
|
6
5
|
import pytest
|
|
7
|
-
from syrupy.assertion import SnapshotAssertion
|
|
8
6
|
|
|
9
7
|
from tests.utils import template
|
|
10
8
|
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
from collections.abc import Callable
|
|
11
|
+
from pathlib import Path
|
|
12
|
+
|
|
13
|
+
from syrupy.assertion import SnapshotAssertion
|
|
14
|
+
|
|
11
15
|
|
|
12
16
|
@pytest.mark.parametrize(
|
|
13
17
|
"enable_coverage",
|
|
@@ -40,7 +44,9 @@ def test_readme_features(
|
|
|
40
44
|
assert (rendered / "README.md").read_text() == snapshot
|
|
41
45
|
|
|
42
46
|
|
|
43
|
-
@pytest.mark.parametrize(
|
|
47
|
+
@pytest.mark.parametrize(
|
|
48
|
+
"project_visibility", template.choices.project_visibility
|
|
49
|
+
)
|
|
44
50
|
@pytest.mark.parametrize(
|
|
45
51
|
"copyright_license", template.choices.copyright_license
|
|
46
52
|
)
|
|
@@ -57,7 +63,7 @@ def test_readme_project_visibility(
|
|
|
57
63
|
assert (rendered / "README.md").read_text() == snapshot
|
|
58
64
|
|
|
59
65
|
|
|
60
|
-
@pytest.mark.parametrize("project_type",
|
|
66
|
+
@pytest.mark.parametrize("project_type", template.choices.project_type)
|
|
61
67
|
def test_readme_project_type(
|
|
62
68
|
render_template: Callable[..., Path],
|
|
63
69
|
snapshot: SnapshotAssertion,
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
from __future__ import annotations
|
|
2
2
|
|
|
3
|
-
from
|
|
4
|
-
from pathlib import Path
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
5
4
|
|
|
6
5
|
import pytest
|
|
7
|
-
from syrupy.assertion import SnapshotAssertion
|
|
8
6
|
|
|
9
7
|
from tests.utils import template
|
|
10
8
|
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
from collections.abc import Callable
|
|
11
|
+
from pathlib import Path
|
|
12
|
+
|
|
13
|
+
from syrupy.assertion import SnapshotAssertion
|
|
14
|
+
|
|
11
15
|
|
|
12
16
|
@pytest.mark.parametrize(
|
|
13
17
|
"enable_coverage",
|
|
@@ -1,13 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
from __future__ import annotations
|
|
2
2
|
|
|
3
|
-
from
|
|
4
|
-
from pathlib import Path
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
5
4
|
|
|
6
5
|
import pytest
|
|
7
|
-
from syrupy.assertion import SnapshotAssertion
|
|
8
6
|
|
|
7
|
+
from tests.utils import template
|
|
9
8
|
|
|
10
|
-
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
from collections.abc import Callable
|
|
11
|
+
from pathlib import Path
|
|
12
|
+
|
|
13
|
+
from syrupy.assertion import SnapshotAssertion
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
@pytest.mark.parametrize(
|
|
17
|
+
"project_visibility", template.choices.project_visibility
|
|
18
|
+
)
|
|
11
19
|
@pytest.mark.parametrize(
|
|
12
20
|
"enable_pypi",
|
|
13
21
|
[pytest.param(True, id="pypi"), pytest.param(False, id="no_pypi")],
|
|
@@ -26,7 +26,7 @@ if TYPE_CHECKING:
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
DEFAULT_BRANCH_NAME = "fhqwhgads"
|
|
29
|
-
DEFAULT_END_REF = "v0.
|
|
29
|
+
DEFAULT_END_REF = "v0.22.2"
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
@pytest.fixture(params=["v0.16.0"])
|
|
@@ -250,7 +250,7 @@ def test_main_update_with_project_current(
|
|
|
250
250
|
capture_output=True,
|
|
251
251
|
)
|
|
252
252
|
with expect_run.patch(mock=False):
|
|
253
|
-
update(["gh:ness/pkfire"], dry_run=dry_run)
|
|
253
|
+
update(["gh:ness/pkfire"], vcs_ref=end_ref, dry_run=dry_run)
|
|
254
254
|
|
|
255
255
|
|
|
256
256
|
def test_main_update_error(
|
|
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
|
{copier_python-0.22.1 → copier_python-0.23.0}/tests/template/__snapshots__/test_compose.ambr
RENAMED
|
File without changes
|
{copier_python-0.22.1 → copier_python-0.23.0}/tests/template/__snapshots__/test_contributing.ambr
RENAMED
|
File without changes
|
{copier_python-0.22.1 → copier_python-0.23.0}/tests/template/__snapshots__/test_dockerfile.ambr
RENAMED
|
File without changes
|
|
File without changes
|
{copier_python-0.22.1 → copier_python-0.23.0}/tests/template/__snapshots__/test_license.ambr
RENAMED
|
File without changes
|
{copier_python-0.22.1 → copier_python-0.23.0}/tests/template/__snapshots__/test_mise_toml.ambr
RENAMED
|
File without changes
|
{copier_python-0.22.1 → copier_python-0.23.0}/tests/template/__snapshots__/test_pre_commit.ambr
RENAMED
|
File without changes
|
{copier_python-0.22.1 → copier_python-0.23.0}/tests/template/__snapshots__/test_pyproject.ambr
RENAMED
|
File without changes
|
|
File without changes
|
{copier_python-0.22.1 → copier_python-0.23.0}/tests/template/__snapshots__/test_workflows.ambr
RENAMED
|
File without changes
|
{copier_python-0.22.1 → copier_python-0.23.0}/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
|