Skip to content

Commit 334a7cf

Browse files
committed
Switch to use uv python package manager
1 parent 61bd1ce commit 334a7cf

4 files changed

Lines changed: 378 additions & 534 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,23 @@ jobs:
1414
- name: Checkout code
1515
uses: actions/checkout@v4
1616

17-
- name: Install Poetry
18-
uses: snok/install-poetry@v1
19-
with:
20-
virtualenvs-in-project: true
17+
- name: Install uv
18+
uses: astral-sh/setup-uv@v7
2119

2220
- name: Initialize environment
23-
run: poetry install
21+
run: uv sync --locked --all-extras --dev
2422

2523
- name: Run black
26-
run: poetry run black temba_client
24+
run: uv run black temba_client
2725

2826
- name: Run ruff
29-
run: poetry run ruff check temba_client
27+
run: uv run ruff check temba_client
3028

3129
- name: Run isort
32-
run: poetry run isort temba_client
30+
run: uv run isort temba_client
3331

3432
- name: Run tests
35-
run: poetry run nose2 -C --coverage temba_client --coverage-report term --coverage-report xml
33+
run: uv run nose2 -C --coverage temba_client --coverage-report term --coverage-report xml
3634

3735
- name: Upload coverage
3836
if: success()
@@ -53,7 +51,6 @@ jobs:
5351

5452
- name: Publish release
5553
run: |
56-
python -m pip install -U pip poetry
57-
poetry build
58-
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
59-
poetry publish
54+
python -m pip install -U pip uv
55+
uv build
56+
uv publish --token ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)