File tree Expand file tree Collapse file tree 14 files changed +132
-106
lines changed
Expand file tree Collapse file tree 14 files changed +132
-106
lines changed Original file line number Diff line number Diff line change @@ -21,12 +21,11 @@ jobs:
2121 uses : actions/setup-python@v5
2222 with :
2323 python-version : " 3.13"
24+ - name : Install uv
25+ uses : astral-sh/setup-uv@v6
2426 - name : Install dependencies
2527 run : |
26- python -m pip install --upgrade pip
27- python -m pip install poetry poetry-plugin-export
28- poetry config virtualenvs.create false
29- poetry install --no-root --with dev
28+ make dev-dependencies
3029 - name : Check code style with black
3130 run : |
3231 make format
Original file line number Diff line number Diff line change @@ -21,10 +21,10 @@ jobs:
2121 uses : actions/setup-python@v5
2222 with :
2323 python-version : " 3.13"
24+ - name : Install uv
25+ uses : astral-sh/setup-uv@v6
2426 - name : Install dependencies
2527 run : |
26- python -m pip install --upgrade pip
27- python -m pip install poetry tox poetry-plugin-export
28- make poetry-export
28+ make dev-dependencies
2929 - name : Lint with ruff
3030 run : make lint
Original file line number Diff line number Diff line change @@ -21,12 +21,11 @@ jobs:
2121 uses : actions/setup-python@v5
2222 with :
2323 python-version : " 3.13"
24+ - name : Install uv
25+ uses : astral-sh/setup-uv@v6
2426 - name : Install dependencies
2527 run : |
26- python -m pip install --upgrade pip
27- python -m pip install poetry poetry-plugin-export
28- poetry config virtualenvs.create false
29- poetry install --no-root --with dev
28+ make dev-dependencies
3029 - name : Test & publish code coverage
31303231 env :
Original file line number Diff line number Diff line change @@ -28,12 +28,11 @@ jobs:
2828 uses : actions/setup-python@v5
2929 with :
3030 python-version : " ${{ matrix.version }}"
31+ - name : Install uv
32+ uses : astral-sh/setup-uv@v6
3133 - name : Install dependencies
3234 run : |
33- python -m pip install --upgrade pip
34- python -m pip install poetry poetry-plugin-export
35- poetry config virtualenvs.create false
36- poetry install --no-root --with dev
35+ make dev-dependencies
3736 - name : Test with pytest
3837 id : citest
3938 run : |
6867 --body "$BODY")
6968 if [[ $PINNED == true ]]; then
7069 gh issue pin "$new_issue_url"
71- fi
70+ fi
7271 fi
7372 env :
7473 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -21,10 +21,10 @@ jobs:
2121 uses : actions/setup-python@v5
2222 with :
2323 python-version : " 3.13"
24+ - name : Install uv
25+ uses : astral-sh/setup-uv@v6
2426 - name : Install dependencies
2527 run : |
26- python -m pip install --upgrade pip
27- python -m pip install poetry tox poetry-plugin-export
28- make poetry-export
28+ make dev-dependencies
2929 - name : Check typing
3030 run : make typing
Original file line number Diff line number Diff line change @@ -22,14 +22,15 @@ jobs:
2222 with :
2323 python-version : " 3.13"
2424
25+ - name : Install uv
26+ uses : astral-sh/setup-uv@v6
2527 - name : Install dependencies
2628 run : |
27- python -m pip install --upgrade pip
28- python -m pip install poetry poetry-dynamic-versioning poetry-plugin-export
29+ make dev-dependencies
2930
3031 - name : Build package
3132 run : |
32- poetry build
33+ uv build
3334
3435 - name : Archive the dist folder
3536 uses : actions/upload-artifact@v4
Original file line number Diff line number Diff line change @@ -44,12 +44,11 @@ jobs:
4444 with :
4545 python-version : " 3.13"
4646
47+ - name : Install uv
48+ uses : astral-sh/setup-uv@v6
4749 - name : Install dependencies
4850 run : |
49- python -m pip install --upgrade pip
50- python -m pip install poetry
51- poetry config virtualenvs.create false
52- poetry install --no-root --with dev
51+ make dev-dependencies
5352
5453 - name : Configure Git user
5554 run : |
@@ -62,12 +61,12 @@ jobs:
6261
6362 - name : Build and deploy static pages
6463 run : |
65- mike deploy ${{ inputs.site-version }} ${{ inputs.version-alias }} --update-aliases --push --branch ${{ inputs.branch }}
64+ uv run mike deploy ${{ inputs.site-version }} ${{ inputs.version-alias }} --update-aliases --push --branch ${{ inputs.branch }}
6665
6766 - name : Set default site version
6867 if : ${{ inputs.set-default }}
6968 run : |
70- mike set-default ${{ inputs.site-version }} --push --branch ${{ inputs.branch }}
69+ uv run mike set-default ${{ inputs.site-version }} --push --branch ${{ inputs.branch }}
7170
7271 # `mike` is specifically built to be used together with GitHub pages.
7372 # To upload the website to another service (i.e. AWS S3) uncomment
Original file line number Diff line number Diff line change @@ -282,4 +282,5 @@ dmypy.json
282282
283283# Cython debug symbols
284284cython_debug /
285- poetry.lock
285+ uv.lock
286+ version.py
Original file line number Diff line number Diff line change @@ -8,8 +8,9 @@ Please note that this project is released with a Contributor Code of Conduct. By
88
99## Submitting a pull request
1010
11+ Before running any commands, [ install ` uv ` ] ( https://docs.astral.sh/uv/getting-started/installation/ ) :
12+
11130 . Fork and clone the repository
12- 0 . Install poetry: ` pip install -g poetry `
13140 . Configure and install the dependencies: ` make dev-dependencies `
14150 . Make sure the tests pass on your machine: ` make check `
15160 . Create a new branch: ` git checkout -b my-branch-name `
Original file line number Diff line number Diff line change 1- .PHONY : dev-dependencies update-dependencies test docs fix check typing lint format ci-test ci-coverage poetry-export
1+ .PHONY : dev-dependencies update-dependencies test docs fix check typing lint format ci-test ci-coverage
22
33# ########################
44# ##### dev commands #####
55# ########################
66dev-dependencies :
7- poetry install --with dev --no-root
8-
9- update-dependencies :
10- poetry update --with dev
7+ uv lock --upgrade
8+ uv sync --all-groups --frozen
119
1210test :
13- poetry run pytest -n auto --cov
11+ uv run pytest -n auto --cov
1412
1513docs :
16- poetry run mkdocs serve
14+ uv run mkdocs serve
1715
1816fix :
19- poetry run ruff check . --fix
20- poetry run ruff format .
21-
22- check : poetry-export
23- tox
24-
25- typing : poetry-export
26- tox -e typing
17+ uv run ruff format .
18+ uv run ruff check . --fix
19+ uv run ruff format .
2720
28- lint : poetry-export
29- tox -e lint
21+ check :
22+ uv run tox
3023
31- format : poetry-export
32- tox -e format
24+ typing :
25+ uv run tox -e typing
3326
27+ lint :
28+ uv run tox -e lint
3429
35- # ########################
36- # ### Helper commands ####
37- # ########################
38- poetry-export :
39- poetry export -f requirements.txt --output /tmp/requirements.txt --with dev
30+ format :
31+ uv run tox -e format
4032
4133
4234# ########################
4335# ##### CI commands ######
4436# ########################
4537ci-test :
46- poetry run pytest
38+ uv run pytest
4739
4840ci-coverage :
49- poetry run pytest --cov --cov-report lcov
41+ uv run pytest --cov --cov-report lcov
You can’t perform that action at this time.
0 commit comments