copier-python 0.25.0__tar.gz → 0.26.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 (60) hide show
  1. {copier_python-0.25.0 → copier_python-0.26.0}/PKG-INFO +1 -1
  2. {copier_python-0.25.0 → copier_python-0.26.0}/copier_python/update.py +2 -9
  3. {copier_python-0.25.0 → copier_python-0.26.0}/docs/project-setup.md +1 -1
  4. {copier_python-0.25.0 → copier_python-0.26.0}/docs/setup.md +1 -1
  5. {copier_python-0.25.0 → copier_python-0.26.0}/tests/test_update.py +2 -4
  6. {copier_python-0.25.0 → copier_python-0.26.0}/.gitignore +0 -0
  7. {copier_python-0.25.0 → copier_python-0.26.0}/AGENTS.md +0 -0
  8. {copier_python-0.25.0 → copier_python-0.26.0}/CONTRIBUTING.md +0 -0
  9. {copier_python-0.25.0 → copier_python-0.26.0}/LICENSE +0 -0
  10. {copier_python-0.25.0 → copier_python-0.26.0}/README.md +0 -0
  11. {copier_python-0.25.0 → copier_python-0.26.0}/copier_python/__init__.py +0 -0
  12. {copier_python-0.25.0 → copier_python-0.26.0}/copier_python/__main__.py +0 -0
  13. {copier_python-0.25.0 → copier_python-0.26.0}/copier_python/py.typed +0 -0
  14. {copier_python-0.25.0 → copier_python-0.26.0}/copier_python/repo.py +0 -0
  15. {copier_python-0.25.0 → copier_python-0.26.0}/docs/contributing.md +0 -0
  16. {copier_python-0.25.0 → copier_python-0.26.0}/docs/development/requirements.md +0 -0
  17. {copier_python-0.25.0 → copier_python-0.26.0}/docs/development/updates.md +0 -0
  18. {copier_python-0.25.0 → copier_python-0.26.0}/docs/development/workflow.md +0 -0
  19. {copier_python-0.25.0 → copier_python-0.26.0}/docs/index.md +0 -0
  20. {copier_python-0.25.0 → copier_python-0.26.0}/docs/license.md +0 -0
  21. {copier_python-0.25.0 → copier_python-0.26.0}/docs/project-creation.md +0 -0
  22. {copier_python-0.25.0 → copier_python-0.26.0}/docs/project-development.md +0 -0
  23. {copier_python-0.25.0 → copier_python-0.26.0}/docs/project-release.md +0 -0
  24. {copier_python-0.25.0 → copier_python-0.26.0}/docs/project-updates.md +0 -0
  25. {copier_python-0.25.0 → copier_python-0.26.0}/docs/releasing.md +0 -0
  26. {copier_python-0.25.0 → copier_python-0.26.0}/docs/requirements.md +0 -0
  27. {copier_python-0.25.0 → copier_python-0.26.0}/pyproject.toml +0 -0
  28. {copier_python-0.25.0 → copier_python-0.26.0}/tests/__init__.py +0 -0
  29. {copier_python-0.25.0 → copier_python-0.26.0}/tests/conftest.py +0 -0
  30. {copier_python-0.25.0 → copier_python-0.26.0}/tests/template/__init__.py +0 -0
  31. {copier_python-0.25.0 → copier_python-0.26.0}/tests/template/__snapshots__/test_agents.ambr +0 -0
  32. {copier_python-0.25.0 → copier_python-0.26.0}/tests/template/__snapshots__/test_commit_check.ambr +0 -0
  33. {copier_python-0.25.0 → copier_python-0.26.0}/tests/template/__snapshots__/test_compose.ambr +0 -0
  34. {copier_python-0.25.0 → copier_python-0.26.0}/tests/template/__snapshots__/test_contributing.ambr +0 -0
  35. {copier_python-0.25.0 → copier_python-0.26.0}/tests/template/__snapshots__/test_dockerfile.ambr +0 -0
  36. {copier_python-0.25.0 → copier_python-0.26.0}/tests/template/__snapshots__/test_docs.ambr +0 -0
  37. {copier_python-0.25.0 → copier_python-0.26.0}/tests/template/__snapshots__/test_license.ambr +0 -0
  38. {copier_python-0.25.0 → copier_python-0.26.0}/tests/template/__snapshots__/test_mise_toml.ambr +0 -0
  39. {copier_python-0.25.0 → copier_python-0.26.0}/tests/template/__snapshots__/test_pre_commit.ambr +0 -0
  40. {copier_python-0.25.0 → copier_python-0.26.0}/tests/template/__snapshots__/test_pyproject.ambr +0 -0
  41. {copier_python-0.25.0 → copier_python-0.26.0}/tests/template/__snapshots__/test_readme.ambr +0 -0
  42. {copier_python-0.25.0 → copier_python-0.26.0}/tests/template/__snapshots__/test_workflows.ambr +0 -0
  43. {copier_python-0.25.0 → copier_python-0.26.0}/tests/template/__snapshots__/test_zensical.ambr +0 -0
  44. {copier_python-0.25.0 → copier_python-0.26.0}/tests/template/test_agents.py +0 -0
  45. {copier_python-0.25.0 → copier_python-0.26.0}/tests/template/test_commit_check.py +0 -0
  46. {copier_python-0.25.0 → copier_python-0.26.0}/tests/template/test_compose.py +0 -0
  47. {copier_python-0.25.0 → copier_python-0.26.0}/tests/template/test_contributing.py +0 -0
  48. {copier_python-0.25.0 → copier_python-0.26.0}/tests/template/test_dockerfile.py +0 -0
  49. {copier_python-0.25.0 → copier_python-0.26.0}/tests/template/test_docs.py +0 -0
  50. {copier_python-0.25.0 → copier_python-0.26.0}/tests/template/test_license.py +0 -0
  51. {copier_python-0.25.0 → copier_python-0.26.0}/tests/template/test_mise_toml.py +0 -0
  52. {copier_python-0.25.0 → copier_python-0.26.0}/tests/template/test_pre_commit.py +0 -0
  53. {copier_python-0.25.0 → copier_python-0.26.0}/tests/template/test_pyproject.py +0 -0
  54. {copier_python-0.25.0 → copier_python-0.26.0}/tests/template/test_readme.py +0 -0
  55. {copier_python-0.25.0 → copier_python-0.26.0}/tests/template/test_structure.py +0 -0
  56. {copier_python-0.25.0 → copier_python-0.26.0}/tests/template/test_template.py +0 -0
  57. {copier_python-0.25.0 → copier_python-0.26.0}/tests/template/test_workflows.py +0 -0
  58. {copier_python-0.25.0 → copier_python-0.26.0}/tests/template/test_zensical.py +0 -0
  59. {copier_python-0.25.0 → copier_python-0.26.0}/tests/test_version.py +0 -0
  60. {copier_python-0.25.0 → copier_python-0.26.0}/tests/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: copier-python
3
- Version: 0.25.0
3
+ Version: 0.26.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
@@ -1,7 +1,6 @@
1
1
  from __future__ import annotations
2
2
 
3
3
  import json
4
- import os
5
4
  import subprocess
6
5
  from contextlib import contextmanager
7
6
  from dataclasses import dataclass, field
@@ -73,16 +72,10 @@ class UpdateAction:
73
72
  with self._success_or_shell(repo, "Lint/test"):
74
73
  repo.run_task("lt")
75
74
 
76
- title = "Apply template updates"
75
+ title = f"Apply template updates from {start_ref} to {end_ref}"
77
76
  body = ""
78
77
  if start_ref and end_ref and start_ref != end_ref:
79
- ref_range = f"{start_ref}...{end_ref}"
80
- body = os.linesep.join(
81
- (
82
- f"Applied updates from template: {ref_range}",
83
- f"{TEMPLATE_REPO_URL}/compare/{ref_range}",
84
- )
85
- )
78
+ body = f"{TEMPLATE_REPO_URL}/compare/{start_ref}...{end_ref}"
86
79
  repo.run(["git", "add", "-A"])
87
80
  repo.run(["git", "commit", "-m", f"{title}\n\n{body}".strip()])
88
81
 
@@ -22,7 +22,7 @@ icon: lucide/settings
22
22
  [Repository Settings → General][github-settings-docs]:
23
23
 
24
24
  - [x] Allow merge commits
25
- - [ ] Allow squash merging
25
+ - [x] Allow squash merging
26
26
  - [ ] Allow rebase merging
27
27
  - [x] Automatically delete head branches
28
28
 
@@ -14,7 +14,7 @@ icon: lucide/package-plus
14
14
  [Settings → General][repo-settings]:
15
15
 
16
16
  - [x] Allow merge commits
17
- - [ ] Allow squash merging
17
+ - [x] Allow squash merging
18
18
  - [ ] Allow rebase merging
19
19
  - [x] Automatically delete head branches
20
20
 
@@ -282,9 +282,8 @@ def test_main_update_error(
282
282
  create_project(vcs_ref=start_ref, postcreate=_postcreate)
283
283
  commit_message = os.linesep.join(
284
284
  (
285
- "Apply template updates",
285
+ f"Apply template updates from {start_ref} to {end_ref}",
286
286
  "",
287
- (f"Applied updates from template: {start_ref}...{end_ref}"),
288
287
  (
289
288
  f"https://github.com/smkent/copier-python/compare/"
290
289
  f"{start_ref}...{end_ref}"
@@ -385,9 +384,8 @@ def test_main_update_with_project(
385
384
  create_project(vcs_ref=start_ref, project_visibility=project_visibility)
386
385
  commit_message = os.linesep.join(
387
386
  (
388
- "Apply template updates",
387
+ f"Apply template updates from {start_ref} to {end_ref}",
389
388
  "",
390
- (f"Applied updates from template: {start_ref}...{end_ref}"),
391
389
  (
392
390
  f"https://github.com/smkent/copier-python/compare/"
393
391
  f"{start_ref}...{end_ref}"
File without changes
File without changes
File without changes