Skip to content

Commit 1055036

Browse files
committed
migrate to uv
1 parent 219b5d4 commit 1055036

5 files changed

Lines changed: 607 additions & 882 deletions

File tree

.github/workflows/python-tests.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,14 @@ jobs:
2020

2121
steps:
2222
- uses: actions/checkout@v4
23-
- name: Set up Python ${{ matrix.python-version }}
24-
uses: actions/setup-python@v3
23+
- name: Install uv
24+
uses: astral-sh/setup-uv@v6
2525
with:
26-
python-version: ${{ matrix.python-version }}
27-
- name: Install poetry
28-
run: |
29-
python -m pip install --upgrade poetry
30-
python -m poetry config virtualenvs.in-project true
26+
enable-cache: true
27+
- name: Set up Python ${{ matrix.python-version }}
28+
run: uv python install ${{ matrix.python-version }}
3129
- name: Install dependencies
32-
run: |
33-
python -m poetry sync --all-extras
30+
run: uv sync --all-extras
3431
- name: Setup Node.js environment
3532
uses: actions/setup-node@v4.3.0
3633
# with:
@@ -53,4 +50,4 @@ jobs:
5350
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
5451
- name: Test with pytest
5552
run: |
56-
python -m poetry run pytest tests
53+
uv run pytest tests

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def greet(name: str) -> str:
8888
## Development
8989

9090
- Requires Python 3.11+.
91-
- Requires `poetry` for dev dependencies.
91+
- Requires `uv` for dev dependencies.
9292

9393
Generate latest types in one go:
9494
```sh

0 commit comments

Comments
 (0)