Skip to content

Commit ca9088b

Browse files
authored
Merge pull request #39 from aiokitchen/feature/migrate-to-uv
Feature/migrate to uv
2 parents 7ecb52f + 2c51753 commit ca9088b

24 files changed

Lines changed: 2651 additions & 2314 deletions

‎.github/workflows/publish.yml‎

Lines changed: 17 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,30 @@
11
name: publish
22

33
on:
4-
push:
5-
branches: [ master ]
4+
release:
5+
types: [published]
66

77
jobs:
8-
sdist:
8+
publish:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
11+
- uses: actions/checkout@v4
1212

13-
- name: Setup python3.10
14-
uses: actions/setup-python@v2
15-
with:
16-
python-version: "3.10"
17-
18-
- name: Resetting git to master
19-
run: git reset --hard master
20-
21-
- name: Resetting git to master
22-
run: git fetch --unshallow --tags || true
13+
- name: Install uv
14+
uses: astral-sh/setup-uv@v5
2315

24-
- name: Install poetry
25-
run: python -m pip install poetry
16+
- name: Setup python3.14
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: "3.14"
2620

27-
- name: Install poem-plugins
28-
run: poetry self add poem-plugins
21+
- name: Set version from tag
22+
run: uv version "${{ github.ref_name }}"
2923

30-
- name: Install requirements
31-
run: poetry install
24+
- name: Build package
25+
run: uv build
3226

33-
- name: Publishing to pypi
34-
run: poetry publish --build --skip-existing --no-interaction
27+
- name: Publish to PyPI
28+
run: uv publish --token $PYPI_TOKEN
3529
env:
36-
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
30+
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}

‎.github/workflows/tests.yml‎

Lines changed: 28 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,35 @@ on:
77
branches: [ master ]
88

99
jobs:
10-
pylama:
10+
ruff:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
14-
- name: Setup python3.10
15-
uses: actions/setup-python@v2
13+
- uses: actions/checkout@v4
14+
- name: Install uv
15+
uses: astral-sh/setup-uv@v5
16+
- name: Setup python3.14
17+
uses: actions/setup-python@v5
1618
with:
17-
python-version: "3.10"
18-
- run: python -m pip install poetry
19-
- run: poetry install
20-
- run: poetry run pylama
19+
python-version: "3.14"
20+
- run: uv sync
21+
- run: uv run ruff check .
22+
env:
23+
FORCE_COLOR: 1
24+
- run: uv run ruff format --check .
2125
env:
2226
FORCE_COLOR: 1
2327
mypy:
2428
runs-on: ubuntu-latest
2529
steps:
26-
- uses: actions/checkout@v2
27-
- name: Setup python3.10
28-
uses: actions/setup-python@v4
30+
- uses: actions/checkout@v4
31+
- name: Install uv
32+
uses: astral-sh/setup-uv@v5
33+
- name: Setup python3.14
34+
uses: actions/setup-python@v5
2935
with:
30-
python-version: "3.10"
31-
- run: python -m pip install poetry
32-
- run: poetry install
33-
- run: poetry run mypy
36+
python-version: "3.14"
37+
- run: uv sync
38+
- run: uv run mypy
3439
env:
3540
FORCE_COLOR: 1
3641

@@ -49,23 +54,23 @@ jobs:
4954

5055
matrix:
5156
python:
52-
- '3.9'
53-
- '3.10'
5457
- '3.11'
5558
- '3.12'
5659
- '3.13'
60+
- '3.14'
5761

5862
steps:
59-
- uses: actions/checkout@v2
63+
- uses: actions/checkout@v4
64+
- name: Install uv
65+
uses: astral-sh/setup-uv@v5
6066
- name: Setup python${{ matrix.python }}
61-
uses: actions/setup-python@v2
67+
uses: actions/setup-python@v5
6268
with:
6369
python-version: "${{ matrix.python }}"
6470

65-
- run: python -m pip install poetry
66-
- run: poetry install
71+
- run: uv sync
6772
- run: >-
68-
poetry run pytest \
73+
uv run pytest \
6974
-vv \
7075
--cov=aiohttp_s3_client \
7176
--cov-report=term-missing \
@@ -74,7 +79,7 @@ jobs:
7479
FORCE_COLOR: 1
7580
S3_URL: http://user:hackme@localhost:9090/test/
7681
77-
- run: poetry run coveralls
82+
- run: uv run coveralls
7883
env:
7984
COVERALLS_PARALLEL: 'true'
8085
COVERALLS_SERVICE_NAME: github

0 commit comments

Comments
 (0)