Skip to content

Commit a8e32a2

Browse files
committed
Migrate to uv (project + package management) and ruff (formatting + linting)
Also support Python 3.13 and increment version 0.0.4. CMK-21132
1 parent aa3f89f commit a8e32a2

File tree

7 files changed

+193
-332
lines changed

7 files changed

+193
-332
lines changed

.github/workflows/release.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,21 @@
1919
steps:
2020
- uses: actions/checkout@v4
2121

22-
- uses: actions/setup-python@v5
22+
- uses: astral-sh/setup-uv@v5
2323
with:
24-
python-version-file: "pyproject.toml"
24+
version: "latest"
2525

26-
- run: python3 -m pip install poetry
26+
- run: uv sync
2727

28-
- run: poetry build
28+
- run: uv build
2929

3030
- run: tar --create --gzip --verbose --file dist.tar.gz dist
3131

3232
- name: "Set release according to package version"
3333
id: compute-tag
3434
run: |
35-
version="$(poetry version | cut --delimiter " " --fields 2)"
36-
echo "TAG=v${version}" >> "${GITHUB_OUTPUT}"
35+
version="$(uv tree | grep --regexp "^robotframework-robotmklibrary v.*" | cut --delimiter " " --fields 2)"
36+
echo "TAG=${version}" >> "${GITHUB_OUTPUT}"
3737
3838
- name: "Push release tag"
3939
# This is publicly visible and needs to be manually fixed if any
@@ -42,7 +42,7 @@
4242
git tag ${{ steps.compute-tag.outputs.TAG }} # Fails, if tag exists.
4343
git push origin ${{ steps.compute-tag.outputs.TAG }}
4444
45-
- uses: ncipollo/release-action@v1.13.0
45+
- uses: ncipollo/release-action@v1
4646
with:
4747
allowUpdates: false
4848
artifacts: "dist.tar.gz"

.github/workflows/tests.yaml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,26 @@ jobs:
1010

1111
strategy:
1212
matrix:
13-
python_version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
13+
python_version:
14+
- "3.8"
15+
- "3.9"
16+
- "3.10"
17+
- "3.11"
18+
- "3.12"
19+
- "3.13"
1420

1521
steps:
1622
- uses: actions/checkout@v4
1723

18-
- uses: actions/setup-python@v5
24+
- uses: astral-sh/setup-uv@v5
1925
with:
20-
python-version: ${{ matrix.python_version }}
26+
version: "latest"
27+
python-version: ${{ matrix.python-version }}
2128

22-
- run: python3 -m pip install poetry
29+
- run: uv sync
2330

24-
- run: poetry install --with dev
31+
- run: uv run ruff format --diff
2532

26-
- run: poetry run black --check ./
33+
- run: uv run ruff check
2734

28-
- run: poetry run isort --check-only ./
29-
30-
- run: poetry run mypy ./
31-
32-
- run: poetry run pylint RobotmkLibrary/
35+
- run: uv run mypy src

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.13

poetry.lock

Lines changed: 0 additions & 290 deletions
This file was deleted.

0 commit comments

Comments
 (0)