Commit 718a485
fix: copier should not be a dev dependency (#364)
## Summary
`copier` should not be installed as a dev dependency of *generated*
projects — it should be invoked via `uvx copier` instead. This PR
removes it from the template's dev dependency group and updates the docs
to recommend `uvx copier update`.
- `template/pyproject.toml.jinja`: removed `"copier"` from the `dev`
dependency-group list.
- `docs/how-to/update-template.md`: changed the two bare `copier update`
invocations to `uvx copier update`.
- `.github/CONTRIBUTING.md`: changed `copier update
--vcs-ref=<branch_name>` to `uvx copier update --vcs-ref=<branch_name>`.
## Deliberately left untouched
- Root `pyproject.toml` — this template repo's own test suite imports
`copier` (`from copier import run_copy`), so it legitimately needs
`copier` as a dev dependency here.
- `tests/test_example.py` — its bare `copier update` call runs in this
repo's own dev environment, not inside a generated project.
- Tutorial docs (`docs/tutorials/adopt-existing.md`,
`docs/tutorials/create-new.md`) and prose/comment mentions of "copier" —
already correct or out of scope.
## Testing
- `uv run --locked tox -e pre-commit` — passed.
- `uv run --locked tox -e tests` — 5 pre-existing failures unrelated to
this change (sandbox network proxy blocks a docs-build version-switcher
request to `diamondlightsource.github.io`, and one test has a
version-string mismatch from running off an untagged commit rather than
a release tag). No failures caused by this change;
`test_example_repo_updates`'s actual file-content diff was clean aside
from that unrelated version string.
Closes #343
---
_Generated by [Claude
Code](https://claude.ai/code/session_01VuHBQ1iEZogr1q7VBjA2iL)_
Co-authored-by: Claude <noreply@anthropic.com>1 parent b8caef5 commit 718a485
3 files changed
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| |||
0 commit comments