copier-python 0.16.1__tar.gz → 0.16.2__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 (56) hide show
  1. {copier_python-0.16.1 → copier_python-0.16.2}/PKG-INFO +1 -1
  2. {copier_python-0.16.1 → copier_python-0.16.2}/tests/conftest.py +4 -1
  3. {copier_python-0.16.1 → copier_python-0.16.2}/tests/template/test_structure.py +1 -1
  4. {copier_python-0.16.1 → copier_python-0.16.2}/.gitignore +0 -0
  5. {copier_python-0.16.1 → copier_python-0.16.2}/AGENTS.md +0 -0
  6. {copier_python-0.16.1 → copier_python-0.16.2}/CONTRIBUTING.md +0 -0
  7. {copier_python-0.16.1 → copier_python-0.16.2}/LICENSE +0 -0
  8. {copier_python-0.16.1 → copier_python-0.16.2}/README.md +0 -0
  9. {copier_python-0.16.1 → copier_python-0.16.2}/copier_python/__init__.py +0 -0
  10. {copier_python-0.16.1 → copier_python-0.16.2}/copier_python/__main__.py +0 -0
  11. {copier_python-0.16.1 → copier_python-0.16.2}/copier_python/py.typed +0 -0
  12. {copier_python-0.16.1 → copier_python-0.16.2}/copier_python/repo.py +0 -0
  13. {copier_python-0.16.1 → copier_python-0.16.2}/copier_python/update.py +0 -0
  14. {copier_python-0.16.1 → copier_python-0.16.2}/docs/contributing.md +0 -0
  15. {copier_python-0.16.1 → copier_python-0.16.2}/docs/development/requirements.md +0 -0
  16. {copier_python-0.16.1 → copier_python-0.16.2}/docs/development/updates.md +0 -0
  17. {copier_python-0.16.1 → copier_python-0.16.2}/docs/development/workflow.md +0 -0
  18. {copier_python-0.16.1 → copier_python-0.16.2}/docs/index.md +0 -0
  19. {copier_python-0.16.1 → copier_python-0.16.2}/docs/license.md +0 -0
  20. {copier_python-0.16.1 → copier_python-0.16.2}/docs/project-creation.md +0 -0
  21. {copier_python-0.16.1 → copier_python-0.16.2}/docs/project-development.md +0 -0
  22. {copier_python-0.16.1 → copier_python-0.16.2}/docs/project-release.md +0 -0
  23. {copier_python-0.16.1 → copier_python-0.16.2}/docs/project-setup.md +0 -0
  24. {copier_python-0.16.1 → copier_python-0.16.2}/docs/project-updates.md +0 -0
  25. {copier_python-0.16.1 → copier_python-0.16.2}/docs/releasing.md +0 -0
  26. {copier_python-0.16.1 → copier_python-0.16.2}/docs/requirements.md +0 -0
  27. {copier_python-0.16.1 → copier_python-0.16.2}/docs/setup.md +0 -0
  28. {copier_python-0.16.1 → copier_python-0.16.2}/pyproject.toml +0 -0
  29. {copier_python-0.16.1 → copier_python-0.16.2}/tests/__init__.py +0 -0
  30. {copier_python-0.16.1 → copier_python-0.16.2}/tests/template/__init__.py +0 -0
  31. {copier_python-0.16.1 → copier_python-0.16.2}/tests/template/__snapshots__/test_agents.ambr +0 -0
  32. {copier_python-0.16.1 → copier_python-0.16.2}/tests/template/__snapshots__/test_compose.ambr +0 -0
  33. {copier_python-0.16.1 → copier_python-0.16.2}/tests/template/__snapshots__/test_contributing.ambr +0 -0
  34. {copier_python-0.16.1 → copier_python-0.16.2}/tests/template/__snapshots__/test_dockerfile.ambr +0 -0
  35. {copier_python-0.16.1 → copier_python-0.16.2}/tests/template/__snapshots__/test_docs.ambr +0 -0
  36. {copier_python-0.16.1 → copier_python-0.16.2}/tests/template/__snapshots__/test_license.ambr +0 -0
  37. {copier_python-0.16.1 → copier_python-0.16.2}/tests/template/__snapshots__/test_mise_toml.ambr +0 -0
  38. {copier_python-0.16.1 → copier_python-0.16.2}/tests/template/__snapshots__/test_pyproject.ambr +0 -0
  39. {copier_python-0.16.1 → copier_python-0.16.2}/tests/template/__snapshots__/test_readme.ambr +0 -0
  40. {copier_python-0.16.1 → copier_python-0.16.2}/tests/template/__snapshots__/test_workflows.ambr +0 -0
  41. {copier_python-0.16.1 → copier_python-0.16.2}/tests/template/__snapshots__/test_zensical.ambr +0 -0
  42. {copier_python-0.16.1 → copier_python-0.16.2}/tests/template/test_agents.py +0 -0
  43. {copier_python-0.16.1 → copier_python-0.16.2}/tests/template/test_compose.py +0 -0
  44. {copier_python-0.16.1 → copier_python-0.16.2}/tests/template/test_contributing.py +0 -0
  45. {copier_python-0.16.1 → copier_python-0.16.2}/tests/template/test_dockerfile.py +0 -0
  46. {copier_python-0.16.1 → copier_python-0.16.2}/tests/template/test_docs.py +0 -0
  47. {copier_python-0.16.1 → copier_python-0.16.2}/tests/template/test_license.py +0 -0
  48. {copier_python-0.16.1 → copier_python-0.16.2}/tests/template/test_mise_toml.py +0 -0
  49. {copier_python-0.16.1 → copier_python-0.16.2}/tests/template/test_pyproject.py +0 -0
  50. {copier_python-0.16.1 → copier_python-0.16.2}/tests/template/test_readme.py +0 -0
  51. {copier_python-0.16.1 → copier_python-0.16.2}/tests/template/test_template.py +0 -0
  52. {copier_python-0.16.1 → copier_python-0.16.2}/tests/template/test_workflows.py +0 -0
  53. {copier_python-0.16.1 → copier_python-0.16.2}/tests/template/test_zensical.py +0 -0
  54. {copier_python-0.16.1 → copier_python-0.16.2}/tests/test_update.py +0 -0
  55. {copier_python-0.16.1 → copier_python-0.16.2}/tests/test_version.py +0 -0
  56. {copier_python-0.16.1 → copier_python-0.16.2}/tests/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: copier-python
3
- Version: 0.16.1
3
+ Version: 0.16.2
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
@@ -58,6 +58,9 @@ def render_template(
58
58
  ) -> Callable[..., Path]:
59
59
  def _render(*, vcs_ref: str = "HEAD", **kwargs: Any) -> Path:
60
60
  worktree = tmp_path / "project"
61
+ data = {**DEFAULT_DATA, **(kwargs or {})}
62
+ if data["project_visibility"] == "private":
63
+ data.pop("github_user", None)
61
64
  with warnings.catch_warnings():
62
65
  warnings.filterwarnings(
63
66
  "ignore",
@@ -67,7 +70,7 @@ def render_template(
67
70
  copier.run_copy(
68
71
  src_path=str(TEMPLATE_ROOT),
69
72
  dst_path=str(worktree),
70
- data={**DEFAULT_DATA, **(kwargs or {})},
73
+ data=data,
71
74
  vcs_ref=vcs_ref,
72
75
  defaults=True,
73
76
  overwrite=True,
@@ -44,7 +44,7 @@ import pytest
44
44
  pytest.param(
45
45
  {"project_visibility": "private"},
46
46
  [],
47
- [".github"],
47
+ [".github", "CONTRIBUTING.md"],
48
48
  id="private",
49
49
  ),
50
50
  pytest.param(
File without changes
File without changes
File without changes