fix: copier should not be a dev dependency#364
Open
coretl wants to merge 1 commit into
Open
Conversation
copier should be invoked via `uvx copier` rather than installed as a dev dependency of generated projects. Update docs accordingly. Closes #343
Contributor
Author
SummaryRemoved CI statusAll checks passed:
Locally, Deliberately left untouched
Closes #343 Generated by Claude Code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
copiershould not be installed as a dev dependency of generated projects — it should be invoked viauvx copierinstead. This PR removes it from the template's dev dependency group and updates the docs to recommenduvx copier update.template/pyproject.toml.jinja: removed"copier"from thedevdependency-group list.docs/how-to/update-template.md: changed the two barecopier updateinvocations touvx copier update..github/CONTRIBUTING.md: changedcopier update --vcs-ref=<branch_name>touvx copier update --vcs-ref=<branch_name>.Deliberately left untouched
pyproject.toml— this template repo's own test suite importscopier(from copier import run_copy), so it legitimately needscopieras a dev dependency here.tests/test_example.py— its barecopier updatecall runs in this repo's own dev environment, not inside a generated project.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 todiamondlightsource.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