Skip to content

Commit 5e3482e

Browse files
committed
patch: change package manager / build system to uv
1 parent 87f40bf commit 5e3482e

File tree

5 files changed

+470
-565
lines changed

5 files changed

+470
-565
lines changed

.github/workflows/python-publish.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,16 @@ jobs:
1717
- name: Set up Python
1818
uses: actions/setup-python@v5
1919
with:
20-
python-version: '3.12'
20+
python-version: '3.13'
2121

2222
- name: Install dependencies
2323
run: |
24-
python -m pip install pipx
25-
pipx install poetry
24+
python -m pip install uv
2625
2726
- name: Build package
28-
run: poetry build
27+
run: uv build
2928

3029
- name: Publish to PyPI
3130
env:
32-
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_API_TOKEN }}
33-
run: poetry publish
31+
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
32+
run: uv publish

.github/workflows/tests.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Tests
22

33
on:
44
push:
5-
branches: ["master"]
5+
branches: ["master", "main"]
66
pull_request:
7-
branches: ["master"]
7+
branches: ["master", "main"]
88

99
env:
1010
TMP_EMAIL_DIR: /tmp/tmp_email_dir
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
python-version: ["3.9", "3.10", "3.11", "3.12"]
19+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
2020

2121
steps:
2222
- uses: actions/checkout@v4
@@ -28,10 +28,8 @@ jobs:
2828

2929
- name: Install dependencies
3030
run: |
31-
python -m pip install pipx
32-
pipx install poetry
33-
poetry install --sync
34-
sudo apt-get install libarchive-tools -y
31+
python -m pip install uv
32+
uv sync
3533
3634
- name: Start a pocketbase database instance for api testing
3735
run: |
@@ -40,13 +38,13 @@ jobs:
4038
sleep 1
4139
4240
- name: Lint with ruff
43-
run: poetry run ruff check .
41+
run: uv run ruff check .
4442

4543
- name: Test with pytest
4644
run: |
47-
poetry run coverage run --source=pocketbase --branch -m pytest tests/
48-
poetry run coverage report -m
45+
uv run coverage run --source=pocketbase --branch -m pytest tests/
46+
uv run coverage report -m
4947
5048
- name: Report coverage results to coveralls.io
5149
run: |
52-
poetry run coveralls --verbose
50+
uv run coveralls --verbose

0 commit comments

Comments
 (0)