Skip to content

fix: avoid broken copier (again) #583

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,12 @@ projects.
Install `copier` and `copier-templates-extensions`. Using [uv][], that's:

```bash
uv tool install copier!=9.5.0 --with copier-templates-extensions
uv tool install 'copier!=9.7.*' --with copier-templates-extensions
```

(Copier 9.5.0 [has a bug](https://github.com/copier-org/copier/issues/1977))
(Copier 9.5.0 [has a bug](https://github.com/copier-org/copier/issues/1977), and
9.7.0/9.7.1 [also have one](https://github.com/copier-org/copier/issues/2113))

Now, run copier to generate your project:

```bash
Expand Down
5 changes: 3 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def make_copier(session: nox.Session, backend: str, vcs: bool) -> None:
f"{DIR}",
f"{package_dir}",
"--defaults",
"--UNSAFE",
"--trust",
"--vcs-ref=HEAD",
f"--data=project_name=cookie-{backend}",
"--data=org=org",
Expand Down Expand Up @@ -325,7 +325,8 @@ def nox_session(session: nox.Session, backend: str, vcs: bool) -> None:
@nox.session()
def compare_copier(session):
# Copier 9.5.0 broke `--data`
session.install("cookiecutter", "copier!=9.5.0", "copier-templates-extensions")
# Copier 9.7.0/9.7.1 broke everything
session.install("cookiecutter", "copier!=9.7.*", "copier-templates-extensions")

tmp_dir = session.create_tmp()
session.cd(tmp_dir)
Expand Down
Loading