@@ -65,7 +65,7 @@ The Cookiecutter template will give you:
6565
6666- a global settings file that all modules can import;
6767
68- - a ` pyproject.toml ` file and an initial Poetry lockfile ;
68+ - a ` pyproject.toml ` file and an initial ` uv.lock ` file ;
6969
7070- a default linter configuration;
7171
@@ -76,7 +76,7 @@ The Cookiecutter template will give you:
7676- a configuration file for Read the Docs;
7777
7878- a set of ` poe ` tasks for running the module scripts, tests and the
79- linter (for details, run ` poetry run poe tasks` );
79+ linter (for details, run ` uv run poe tasks` );
8080
8181- a virtual environment with initial dependencies installed and
8282 ready to use;
@@ -95,117 +95,36 @@ The Cookiecutter template will give you:
9595
9696To use this Cookiecutter template, you need:
9797
98- 1 . The Python version manager ` pyenv ` .
98+ 1 . The Python project management tool [ uv ] ( https://docs.astral.sh/uv ) .
9999
100- 2 . A system-wide Python installation.
100+ 2 . Optionally, Cookiecutter version 2.6.0 or newer.
101101
102- 3 . Cookiecutter version 2.6.0 or newer.
102+ ### Installing uv
103103
104- 4 . The Python dependency manager ` poetry ` .
104+ To install uv, see its
105+ [ installation instructions] ( https://docs.astral.sh/uv/getting-started/installation/ ) .
105106
106- ### Installing pyenv
107-
108- You need the Python version manager ` pyenv ` so you can set up your
109- generated package, and to make sure you can always keep that package
110- up and running, regardless of your system Python.
111-
112- #### Installing pyenv on Windows
113-
114- While ` pyenv ` doesn’t support Windows, you can use a drop-in
115- replacement called ` pyenv-win ` .
116-
117- To install ` pyenv-win ` on Windows, go to
118- [ github.com/pyenv-win/pyenv-win] ( https://github.com/pyenv-win/pyenv-win#installation )
119- and follow one of the installation methods.
120-
121- #### Installing pyenv on Linux
122-
123- To install ` pyenv ` on Linux or WSL2, first make sure Python 3 is
124- installed. Then follow the _ Basic GitHub Checkout_ method described
125- at [ github.com/pyenv/pyenv] ( https://github.com/pyenv/pyenv#basic-github-checkout ) .
126-
127- #### Installing pyenv on macOS
128-
129- To install ` pyenv ` on macOS, run:
130-
131- ``` shell
132- brew install pyenv
133- ```
134-
135- #### Checking your system-wide pyenv installation
136-
137- To verify your ` pyenv ` is working, run:
138-
139- ``` shell
140- pyenv --version
141- ```
142-
143- ### Checking your system-wide Python installation
144-
145- Make sure you have Python 3.8 or higher installed on your system
146- and available in your PATH.
147-
148- To check, run:
149-
150- ``` shell
151- python --version
152- ```
153-
154- If that fails, try:
107+ To verify uv is working, run:
155108
156109``` shell
157- python3 --version
110+ uv
158111```
159112
160- Proceed after you’ve confirmed one of those to work.
161-
162113### Installing Cookiecutter
163114
164- To install Cookiecutter, follow Cookiecutter’s [ installation
165- instructions] ( https://cookiecutter.readthedocs.io/en/stable/installation.html ) .
166-
167- ### Installing Poetry
168-
169- You’ll need ` poetry ` to manage the generated Python package.
170-
171- #### Installing Poetry on Windows
172-
173- To install Poetry on Windows, use one of the
174- [ installation methods] ( https://python-poetry.org/docs/master/#installing-with-the-official-installer )
175- described in Poetry’s documentation.
176-
177- #### Installing Poetry on Linux
178-
179- If you’re on Linux or WSL2, use your system package manager to
180- install Poetry.
181-
182- Alternatively, use one of the
183- [ installation methods] ( https://python-poetry.org/docs/master/#installing-with-the-official-installer )
184- described in Poetry’s documentation.
115+ Installing Cookiecutter is optional, because you can run
116+ ` uvx cookiecutter ` without installing Cookiecutter.
185117
186- #### Installing Poetry on macOS
187-
188- To install Poetry on macOS, run:
189-
190- ``` shell
191- brew install poetry
192- ```
193-
194- #### Checking your Poetry installation
195-
196- To verify Poetry is working, run:
197-
198- ``` shell
199- poetry --version
200- ```
118+ If you prefer to install Cookiecutter, follow Cookiecutter’s [ installation
119+ instructions] ( https://cookiecutter.readthedocs.io/en/stable/installation.html ) .
201120
202121### Basic usage
203122
204123To run the template generator, make sure you have a working
205124Cookiecutter installation. Then run:
206125
207126``` shell
208- cookiecutter gh:claui/cookiecutter-python-package
127+ uvx cookiecutter gh:claui/cookiecutter-python-package
209128```
210129
211130### Alternative usage
@@ -221,12 +140,12 @@ abbreviations:
221140Then, to generate a project, run:
222141
223142` ` ` shell
224- cookiecutter python
143+ uvx cookiecutter python
225144```
226145
227146## License
228147
229- Copyright (c) 2021 –
2024 Claudia Pellegrino
< [email protected] > 148+ Copyright (c) 2021 –
2025 Claudia Pellegrino
< [email protected] > 230149
231150Licensed under the Apache License, Version 2.0 (the "License");
232151you may not use this file except in compliance with the License.
0 commit comments