Skip to content

Commit 551525d

Browse files
authored
maint:uv instead of poetry (#269)
1 parent af2df7d commit 551525d

File tree

6 files changed

+518
-2118
lines changed

6 files changed

+518
-2118
lines changed

.github/actions/test-coverage/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,20 @@ runs:
2121
shell: bash
2222
run: |
2323
cd testproject
24-
poetry run coverage run manage.py test --exclude-tag multiprocess scheduler
24+
uv run coverage run manage.py test --exclude-tag multiprocess scheduler
2525
- name: Coverage report
2626
id: coverage_report
2727
shell: bash
2828
run: |
2929
mv testproject/.coverage .
3030
echo 'REPORT<<EOF' >> $GITHUB_ENV
31-
poetry run coverage report >> $GITHUB_ENV
31+
uv run coverage report >> $GITHUB_ENV
3232
echo 'EOF' >> $GITHUB_ENV
3333
- name: json report
3434
id: json-report
3535
shell: bash
3636
run: |
37-
poetry run coverage json
37+
uv run coverage json
3838
echo "COVERAGE=$(jq '.totals.percent_covered_display|tonumber' coverage.json)" >> $GITHUB_ENV
3939
- uses: mshick/add-pr-comment@v2
4040
if: ${{ github.event_name == 'pull_request' }}

.github/workflows/test.yml

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v4
1818

19-
- name: "Setup Python, Poetry and Dependencies"
20-
uses: dsoftwareinc/setup-python-poetry-action@v1
19+
- name: Install uv
20+
uses: astral-sh/setup-uv@v6
21+
- uses: actions/setup-python@v5
2122
with:
22-
python-version: "3.12"
23-
poetry-version: "2.1.1"
24-
23+
cache-dependency-path: uv.lock
24+
python-version: "3.13"
2525
- name: Run ruff
2626
shell: bash
2727
run: |
28-
poetry run ruff check
28+
uv run ruff check
2929
3030
test-regular:
3131
needs: [ 'ruff' ]
@@ -69,36 +69,33 @@ jobs:
6969

7070
steps:
7171
- uses: actions/checkout@v4
72-
73-
- name: "Setup Python, Poetry and Dependencies"
74-
uses: dsoftwareinc/setup-python-poetry-action@v1
72+
- name: Install uv
73+
uses: astral-sh/setup-uv@v6
74+
- uses: actions/setup-python@v5
7575
with:
76+
cache-dependency-path: uv.lock
7677
python-version: "${{ matrix.python-version }}"
77-
poetry-version: "2.1.1"
78-
poetry-install-additional-args: "-E yaml"
7978

8079
- name: Install django version
8180
shell: bash
8281
run: |
83-
python -m pip --quiet install poetry
84-
echo "$HOME/.poetry/bin" >> $GITHUB_PATH
8582
if [ ${{ matrix.broker == 'valkey' }} == true ]; then
86-
additional_args="-E valkey"
83+
additional_args="--extra valkey"
8784
fi
88-
poetry install -E yaml $additional_args
89-
poetry run pip install django==${{ matrix.django-version }}
85+
uv sync --extra yaml $additional_args
86+
uv pip install django==${{ matrix.django-version }}
9087
9188
- name: Get version
9289
id: getVersion
9390
shell: bash
9491
run: |
95-
VERSION=$(poetry version -s --no-ansi -n)
92+
VERSION=$(uv version --short)
9693
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
9794
9895
- name: Check for missing migrations
9996
run: |
10097
cd testproject
101-
poetry run python manage.py makemigrations --check
98+
uv run python manage.py makemigrations --check
10299
103100
- name: Run Tests without coverage
104101
if: ${{ matrix.coverage != 'yes' }}
@@ -110,7 +107,7 @@ jobs:
110107
else
111108
export BROKER_PORT=6379
112109
fi
113-
poetry run python manage.py test --exclude-tag multiprocess scheduler
110+
uv run python manage.py test --exclude-tag multiprocess scheduler
114111
115112
# Steps for coverage check
116113
- name: Run tests with coverage

docs/changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
### 🧰 Maintenance
1010

1111
- Update dependencies to latest versions
12+
- Migrate to use `uv` instead of `poetry` for package management
1213

1314
## v4.0.0 🌈
1415

0 commit comments

Comments
 (0)