From c08b8b257c4ee468dc255c8d4656962b0ad62263 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 24 Jul 2026 01:03:58 +0000 Subject: [PATCH] fix: remove copier from generated project dev dependencies copier should be invoked via `uvx copier` rather than installed as a dev dependency of generated projects. Update docs accordingly. Closes #343 --- .github/CONTRIBUTING.md | 2 +- docs/how-to/update-template.md | 4 ++-- template/pyproject.toml.jinja | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index c77a0c0c..ab9ba790 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -20,7 +20,7 @@ The template has tests for: However, this does not test whether processes like CI and docs work correctly. You can ensure that these are checked by: - Making your changes on a branch of -- Running `copier update --vcs-ref=` in the repo where you would like to demonstrate the behaviour +- Running `uvx copier update --vcs-ref=` in the repo where you would like to demonstrate the behaviour - Linking to that demonstration repo in the PR ## Developer Information diff --git a/docs/how-to/update-template.md b/docs/how-to/update-template.md index 19df87d1..a2b9ea95 100644 --- a/docs/how-to/update-template.md +++ b/docs/how-to/update-template.md @@ -5,7 +5,7 @@ To track changes to the upstream template, run ``` -copier update +uvx copier update ``` This will fetch the latest tagged release of the template, and apply any changes to your working copy. It will prompt for answers again, giving your previous answers as the defaults. @@ -32,7 +32,7 @@ The following steps are recommended to update your project, especially for infre - fix issues found by the above - commit the changes - update the template - - `copier update` + - `uvx copier update` - fix any merge conflicts - validate that the project still works - `tox -p` diff --git a/template/pyproject.toml.jinja b/template/pyproject.toml.jinja index 53452d53..c1bad2d8 100644 --- a/template/pyproject.toml.jinja +++ b/template/pyproject.toml.jinja @@ -21,7 +21,6 @@ requires-python = ">=3.11" [dependency-groups] dev = [ - "copier", {% if type_checker=="mypy" %}"mypy", {% endif %}{% if sphinx %}"myst-parser", {% endif %}"pre-commit",