Skip to content

Commit c05923d

Browse files
authored
docs: uv setup updates (#19)
1 parent 1289c34 commit c05923d

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

docs/setup.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -192,16 +192,16 @@ __Choose the name wisely.__ Have a look in [PEP-423](https://peps.python.org/pep
192192

193193
`--theme` the structure of the workspace, `loose` is the recommended structure for Python.
194194

195-
#### Edit the configuration
196-
Make sure that the build backend for uv is set to Hatch.
195+
#### Edit the project configuration
196+
Make sure that the build backend for `uv` is set to Hatch, having this section in the `pyproject.toml`:
197197

198198
``` toml
199199
[build-system]
200200
requires = ["hatchling"]
201201
build-backend = "hatchling.build"
202202
```
203203

204-
Make uv (and Hatch) aware of the way Polylith organizes source code:
204+
Make `uv` aware of the way Polylith organizes source code:
205205
``` toml
206206
[tool.hatch.build]
207207
dev-mode-dirs = ["components", "bases", "development", "."]
@@ -213,10 +213,6 @@ Run the `sync` command to update the virtual environment:
213213
uv sync
214214
```
215215

216-
Finally, remove the `src` boilerplate code that was added by uv in the first step:
217-
``` shell
218-
rm -r src
219-
```
220216

221217
### Maturin
222218
Add the `polylith-cli` as a development dependency to your `pyproject.toml` file:

0 commit comments

Comments
 (0)