Skip to content

Commit a1aa78f

Browse files
committed
Misc: Switch from poetry to uv
Use uv to maintain the dependencies.
1 parent 65158d4 commit a1aa78f

5 files changed

Lines changed: 1177 additions & 774 deletions

File tree

.github/workflows/ci-python.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ jobs:
2323
uses: greenbone/actions/lint-python@v3
2424
with:
2525
packages: mdit_py_toc tests
26+
package-manager: uv
2627
python-version: ${{ matrix.python-version }}
27-
linter: ruff
28+
linter: ruff check --diff
2829

2930
test:
3031
name: Run all tests
@@ -38,12 +39,12 @@ jobs:
3839
- "3.12"
3940
steps:
4041
- uses: actions/checkout@v6
41-
- name: Install python, poetry and dependencies
42-
uses: greenbone/actions/poetry@v3
42+
- name: Install python and and uv
43+
uses: greenbone/actions/uv@v3
4344
with:
4445
python-version: ${{ matrix.python-version }}
4546
- name: Run unit tests
46-
run: poetry run python -m unittest -v
47+
run: uv run python -m unittest -v
4748

4849
mypy:
4950
name: Check type hints
@@ -57,18 +58,19 @@ jobs:
5758
- "3.12"
5859
steps:
5960
- uses: actions/checkout@v6
60-
- name: Run mypy
61-
uses: greenbone/actions/mypy-python@v3
61+
- uses: greenbone/actions/uv@v3
6262
with:
6363
python-version: ${{ matrix.python-version }}
64+
- name: Run mypy
65+
run: uv run mypy mdit_py_toc tests
6466

6567
check-version:
6668
name: Check versioning for consistency
6769
runs-on: "ubuntu-latest"
6870
steps:
6971
- uses: actions/checkout@v6
70-
- name: Install python, poetry and dependencies
71-
uses: greenbone/actions/poetry@v3
72+
- name: Install python and uv
73+
uses: greenbone/actions/uv@v3
7274
- name: Check version
7375
run: |
74-
poetry run pontos-version verify current
76+
uv run pontos-version verify current

.github/workflows/deploy-pypi.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,11 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v6
1717
- name: Set up Python
18-
uses: greenbone/actions/poetry@v3
18+
uses: greenbone/actions/uv@v3
1919
with:
2020
python-version: "3.10"
21-
install-dependencies: "false"
2221
- name: Build
2322
run: |
24-
poetry build
23+
uv build
2524
- name: Publish
2625
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)