Skip to content

Commit f2301da

Browse files
committed
Migrate from Poetry to uv
- Convert pyproject.toml to PEP 621 (project table, dependency-groups) - Switch build backend from poetry-core to hatchling - Replace poetry.lock with uv.lock - Update CI to use astral-sh/setup-uv (uv sync / uv build) - Bump pytest to ^9 and pre-commit to ^4.6 - Remove invalid 'ignore' option from tox.ini [pytest]
1 parent 76a37e7 commit f2301da

5 files changed

Lines changed: 262 additions & 326 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,15 @@ jobs:
1616
python-version: [ "3.11", "3.12", "3.13", "3.14" ]
1717

1818
steps:
19-
- uses: actions/checkout@v2
20-
- name: Set up Python ${{ matrix.python-version }}
21-
uses: actions/setup-python@v2
19+
- uses: actions/checkout@v4
20+
- name: Install uv
21+
uses: astral-sh/setup-uv@v6
2222
with:
2323
python-version: ${{ matrix.python-version }}
2424
- name: Install dependencies
25-
run: |
26-
python -m pip install --upgrade pip
27-
python -m pip install poetry
28-
poetry install
25+
run: uv sync
2926
- name: Test with pytest
30-
run: |
31-
poetry run pytest
27+
run: uv run pytest
3228

3329
release:
3430
needs: [ tests ]
@@ -43,17 +39,12 @@ jobs:
4339
steps:
4440
- uses: actions/checkout@v5
4541

46-
- uses: actions/setup-python@v5
42+
- name: Install uv
43+
uses: astral-sh/setup-uv@v6
4744
with:
4845
python-version: '3.11'
4946

50-
- uses: snok/install-poetry@v1
51-
with:
52-
virtualenvs-create: true
53-
virtualenvs-in-project: true
54-
installer-parallel: true
55-
5647
- name: Build
57-
run: poetry build
48+
run: uv build
5849

5950
- uses: pypa/gh-action-pypi-publish@release/v1

poetry.lock

Lines changed: 0 additions & 292 deletions
This file was deleted.

0 commit comments

Comments
 (0)