Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f039795

Browse files
authored
tests: avoid broken copier (#555)
* tests: avoid broken copier Signed-off-by: Henry Schreiner * Update README.md --------- Signed-off-by: Henry Schreiner
1 parent e35e689 commit f039795

File tree

2 files changed

+8
-6
lines changed
  • README.md
  • noxfile.py

2 files changed

+8
-6
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,15 @@ Currently, the best choice is probably hatch for pure Python projects, and
6363
scikit-build (such as the scikit-build-core + pybind11 choice) for binary
6464
projects.
6565

66-
#### To use (modern copier version)
66+
#### To use (copier version)
6767

6868
Install `copier` and `copier-templates-extensions`. Using [uv][], that's:
6969

7070
```bash
71-
uv tool install copier --with copier-templates-extensions
71+
uv tool install copier!=9.5.0 --with copier-templates-extensions
7272
```
7373

74+
(Copier 9.5.0 [has a bug](https://github.com/copier-org/copier/issues/1977))
7475
Now, run copier to generate your project:
7576

7677
```bash
@@ -87,7 +88,7 @@ future.
8788
> Note: Add `--vcs-ref=HEAD` to get the latest version instead of the last
8889
> tagged version; HEAD always passes tests (and is what cookiecutter uses).
8990
90-
#### To use (classic cookiecutter version)
91+
#### To use (cookiecutter version)
9192

9293
Install cookiecutter, ideally with `brew install cookiecutter` if you use brew,
9394
otherwise with `uv tool install cookiecutter` (or prepend `uvx` to the command
@@ -100,14 +101,14 @@ cookiecutter gh:scientific-python/cookie
100101
If you are using cookiecutter 2.2.3+, you will get nice descriptions for the
101102
options like copier!
102103

103-
#### To use (classic cruft version)
104+
#### To use (cruft version)
104105

105106
You can also use [cruft][], which adds the ability update to cookiecutter
106107
projects. Install with `uv tool install cruft` (or prepend `uvx` to the command
107108
below, and skip installation). Then run:
108109

109110
```bash
110-
cruft create gh:scientific-python/cookie
111+
cruft create https://github.com/scientific-python/cookie
111112
```
112113

113114
#### Post generation

noxfile.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,8 @@ def nox_session(session: nox.Session, backend: str, vcs: bool) -> None:
324324

325325
@nox.session()
326326
def compare_copier(session):
327-
session.install("cookiecutter", "copier", "copier-templates-extensions")
327+
# Copier 9.5.0 broke `--data`
328+
session.install("cookiecutter", "copier!=9.5.0", "copier-templates-extensions")
328329

329330
tmp_dir = session.create_tmp()
330331
session.cd(tmp_dir)

0 commit comments

Comments
(0)