4
4
5
5
## Development environment
6
6
7
- [ poetry ] is a required package to develop.
7
+ [ uv ] is a required package to develop.
8
8
9
9
``` console
10
10
$ git clone https://github.com/vcs-python/libvcs.git
@@ -15,15 +15,15 @@ $ cd libvcs
15
15
```
16
16
17
17
``` console
18
- $ poetry install -E " docs test coverage lint"
18
+ $ uv install -E " docs test coverage lint"
19
19
```
20
20
21
21
Makefile commands prefixed with ` watch_ ` will watch files and rerun.
22
22
23
23
## Tests
24
24
25
25
``` console
26
- $ poetry run py.test
26
+ $ uv run py.test
27
27
```
28
28
29
29
Helpers: ` make test ` Rerun tests on file change: ` make watch_test ` (requires [ entr(1)] )
@@ -57,10 +57,10 @@ The project uses [ruff] to handle formatting, sorting imports and linting.
57
57
58
58
```` {tab} Command
59
59
60
- poetry :
60
+ uv :
61
61
62
62
```console
63
- $ poetry run ruff
63
+ $ uv run ruff
64
64
```
65
65
66
66
If you setup manually:
@@ -91,10 +91,10 @@ requires [`entr(1)`].
91
91
92
92
```` {tab} Fix files
93
93
94
- poetry :
94
+ uv :
95
95
96
96
```console
97
- $ poetry run ruff . --fix
97
+ $ uv run ruff . --fix
98
98
```
99
99
100
100
If you setup manually:
@@ -111,10 +111,10 @@ $ ruff . --fix
111
111
112
112
```` {tab} Command
113
113
114
- poetry :
114
+ uv :
115
115
116
116
```console
117
- $ poetry run ruff format .
117
+ $ uv run ruff format .
118
118
```
119
119
120
120
If you setup manually:
@@ -139,10 +139,10 @@ $ make ruff_format
139
139
140
140
```` {tab} Command
141
141
142
- poetry :
142
+ uv :
143
143
144
144
```console
145
- $ poetry run mypy .
145
+ $ uv run mypy .
146
146
```
147
147
148
148
If you setup manually:
@@ -176,10 +176,10 @@ requires [`entr(1)`].
176
176
177
177
```` {tab} Command
178
178
179
- poetry :
179
+ uv :
180
180
181
181
```console
182
- $ poetry run mypy .
182
+ $ uv run mypy .
183
183
```
184
184
185
185
If you setup manually:
@@ -245,7 +245,7 @@ After `git push` and `git push --tags`, CI will automatically build and deploy t
245
245
246
246
### Releasing (manual)
247
247
248
- As of 0.10, [ poetry ] handles virtualenv creation, package requirements, versioning, building, and
248
+ As of 0.10, [ uv ] handles virtualenv creation, package requirements, versioning, building, and
249
249
publishing. Therefore there is no setup.py or requirements files.
250
250
251
251
Update ` __version__ ` in ` __about__.py ` and ` pyproject.toml ` ::
@@ -254,10 +254,10 @@ Update `__version__` in `__about__.py` and `pyproject.toml`::
254
254
git tag v0.1.1
255
255
git push
256
256
git push --tags
257
- poetry build
258
- poetry publish
257
+ uv build
258
+ uv publish
259
259
260
- [ poetry ] : https://python-poetry.org/
260
+ [ uv ] : https://github.com/astral-sh/uv
261
261
[ entr(1) ] : http://eradman.com/entrproject/
262
262
[ `entr(1)` ] : http://eradman.com/entrproject/
263
263
[ ruff format ] : https://docs.astral.sh/ruff/formatter/
0 commit comments