Skip to content

Commit c22bd98

Browse files
committed
chore: update dependencies, switch to uv
1 parent c43d820 commit c22bd98

5 files changed

Lines changed: 1028 additions & 1004 deletions

File tree

.github/workflows/ci-workflow.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,11 @@ jobs:
1313
fail-fast: false
1414
matrix:
1515
python-version:
16-
- "3.8"
17-
- "3.9"
1816
- "3.10"
1917
- "3.11"
2018
- "3.12"
2119
- "3.13"
20+
- "3.14"
2221
os: [ubuntu-latest, macos-latest, windows-latest]
2322
include:
2423
- python-version: "pypy-3.9"
@@ -33,27 +32,27 @@ jobs:
3332
with:
3433
python-version: ${{ matrix.python-version }}
3534
allow-prereleases: true
35+
- name: Set up uv
36+
uses: astral-sh/setup-uv@v5
3637
- name: Install dependencies
3738
run: |
38-
python -m pip install --upgrade pip twine
39-
pip install poetry
40-
poetry install
39+
python -m pip install --upgrade pip
40+
uv sync --group dev
4141
- name: Run test suite
4242
run: |
43-
poetry run py.test -v --cov=tinydb
43+
uv run py.test -v --cov=tinydb
4444
- name: Perform type check
4545
run: |
46-
poetry run pip install pytest-mypy
47-
poetry run pytest --mypy -m mypy tinydb tests
46+
uv run pytest --mypy -m mypy tinydb tests
4847
- name: Verify dist package format
4948
run: |
50-
poetry build
51-
twine check dist/*
52-
if: ${{ contains(matrix.python-version, '3.12') }}
49+
uv build
50+
uv run --with twine twine check dist/*
51+
if: ${{ contains(matrix.python-version, '3.14') }}
5352
- name: Upload coverage result
5453
if: ${{ env.COVERALLS_REPO_TOKEN != 'windows-latest' }}
5554
env:
5655
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
5756
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5857
run: |
59-
poetry run coveralls
58+
uv run coveralls

.github/workflows/publish-workflow.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,19 @@ jobs:
1616
uses: actions/setup-python@v2
1717
with:
1818
python-version: '3.x'
19+
- name: Set up uv
20+
uses: astral-sh/setup-uv@v5
1921
- name: Install dependencies
2022
run: |
2123
python -m pip install --upgrade pip
22-
pip install poetry
23-
poetry install
24+
uv sync --group dev
2425
- name: Publish package
2526
env:
26-
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.POETRY_PYPI_TOKEN_PYPI }}
27+
TWINE_USERNAME: __token__
28+
TWINE_PASSWORD: ${{ secrets.POETRY_PYPI_TOKEN_PYPI }}
2729
run: |
28-
poetry publish --build
30+
uv build
31+
uv run --with twine twine upload dist/*
2932
- name: Create Release
3033
uses: actions/create-release@v1
3134
env:
@@ -34,4 +37,4 @@ jobs:
3437
tag_name: ${{ github.ref }}
3538
release_name: ${{ github.ref }}
3639
draft: false
37-
prerelease: false
40+
prerelease: false

0 commit comments

Comments
 (0)