11# Development
22
3- [ poetry ] is a required package to develop.
3+ [ uv ] is a required package to develop.
44
5- ` git clone https://github.com/vcs-python/g.git `
5+ ## Bootstrap the project
66
7- ` cd g `
7+ Install and [ git ] and [ uv ]
88
9- ` poetry install -E "docs test coverage lint" `
9+ Clone:
1010
11- Makefile commands prefixed with ` watch_ ` will watch files and rerun.
11+ ``` console
12+ $ git clone https://github.com/vcs-python/g.git
13+ ```
14+
15+ ``` console
16+ $ cd g
17+ ```
18+
19+ Install packages:
20+
21+ ``` console
22+ $ uv sync --all-extras --dev
23+ ```
24+
25+ [ installation documentation ] : https://docs.astral.sh/uv/getting-started/installation/
26+ [ git ] : https://git-scm.com/
1227
1328## Tests
1429
15- ` poetry run py.test`
30+ ` uv run py.test`
1631
1732Helpers: ` make test `
1833
@@ -54,10 +69,10 @@ The project uses [ruff] to handle formatting, sorting imports and linting.
5469
5570```` {tab} Command
5671
57- poetry :
72+ uv :
5873
5974```console
60- $ poetry run ruff
75+ $ uv run ruff
6176```
6277
6378If you setup manually:
@@ -88,10 +103,10 @@ requires [`entr(1)`].
88103
89104```` {tab} Fix files
90105
91- poetry :
106+ uv :
92107
93108```console
94- $ poetry run ruff check . --fix
109+ $ uv run ruff check . --fix
95110```
96111
97112If you setup manually:
@@ -108,10 +123,10 @@ $ ruff check . --fix
108123
109124```` {tab} Command
110125
111- poetry :
126+ uv :
112127
113128```console
114- $ poetry run ruff format .
129+ $ uv run ruff format .
115130```
116131
117132If you setup manually:
@@ -136,10 +151,10 @@ $ make ruff_format
136151
137152```` {tab} Command
138153
139- poetry :
154+ uv :
140155
141156```console
142- $ poetry run mypy .
157+ $ uv run mypy .
143158```
144159
145160If you setup manually:
@@ -169,7 +184,7 @@ requires [`entr(1)`].
169184
170185## Releasing
171186
172- [ poetry ] handles virtualenv creation, package requirements, versioning,
187+ [ uv ] handles virtualenv creation, package requirements, versioning,
173188building, and publishing. Therefore there is no setup.py or requirements files.
174189
175190Update ` __version__ ` in ` __about__.py ` and ` pyproject.toml ` ::
@@ -178,10 +193,8 @@ Update `__version__` in `__about__.py` and `pyproject.toml`::
178193 git tag v0.1.1
179194 git push
180195 git push --tags
181- poetry build
182- poetry publish
183196
184- [ poetry ] : https://python-poetry.org/
197+ [ uv ] : https://github.com/astral-sh/uv
185198[ entr(1) ] : http://eradman.com/entrproject/
186199[ `entr(1)` ] : http://eradman.com/entrproject/
187200[ ruff format ] : https://docs.astral.sh/ruff/formatter/
0 commit comments