Skip to content

Commit 52fca86

Browse files
chore: migrate from poetry to uv
Signed-off-by: Saurav Sharma <[email protected]>
1 parent 65ddc97 commit 52fca86

File tree

5 files changed

+434
-512
lines changed

5 files changed

+434
-512
lines changed

.github/workflows/deploy_pypi.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,13 @@ jobs:
1515
- uses: actions/setup-python@v5
1616
with:
1717
python-version: "3.13"
18-
- name: Install Poetry
19-
uses: snok/install-poetry@v1
20-
with:
21-
version: 1.8.4
22-
virtualenvs-create: true
23-
virtualenvs-in-project: true
18+
- name: Install uv
19+
uses: astral-sh/setup-uv@v4
2420
- name: Publish
2521
env:
26-
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
22+
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }}
2723
run: |
28-
poetry publish --username=__token__ --password="$PYPI_TOKEN" --build
24+
uv build && uv publish
2925
3026
publish_release_note:
3127
name: Publish release note

.github/workflows/python_app.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,9 @@ jobs:
2828
- uses: actions/setup-python@v5
2929
with:
3030
python-version: "3.9"
31-
- name: Install Poetry
32-
uses: snok/install-poetry@v1
33-
with:
34-
version: 1.8.4
35-
virtualenvs-create: true
36-
virtualenvs-in-project: true
31+
- name: Install uv
32+
uses: astral-sh/setup-uv@v4
3733
- name: Install dependencies
38-
run: |
39-
poetry install
34+
run: uv sync --locked --dev
4035
- name: Run nox
41-
run: |
42-
source .venv/bin/activate
43-
nox
36+
run: uv run nox

0 commit comments

Comments
 (0)