Skip to content
This repository was archived by the owner on May 29, 2026. It is now read-only.

Commit 9f8725e

Browse files
committed
chore: migrate to uv
1 parent 918aa98 commit 9f8725e

6 files changed

Lines changed: 667 additions & 662 deletions

File tree

.github/workflows/code-check.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,19 @@ jobs:
2424
- name: Checkout to vrelease-py
2525
uses: actions/checkout@v6
2626

27+
- name: Set up uv
28+
uses: astral-sh/setup-uv@v5
29+
2730
- name: Set up Python 3.8
2831
uses: actions/setup-python@v6
2932
with:
3033
python-version: 3.8
3134

32-
- name: Install poetry
33-
run: pip3 install poetry
34-
3535
- name: Install dependencies
36-
run: poetry install
36+
run: uv sync --group dev
3737

3838
- name: Check code style
39-
run: poetry run poe check:style
39+
run: uv run black -l 120 -S --check vrelease
4040

4141
- name: Check lint
42-
run: poetry run poe check:lint
42+
run: uv run pylint --fail-under 9 --rcfile .pylintrc --output-format colorized --verbose vrelease

.github/workflows/pkg-test.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,21 @@ jobs:
1717
py-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
1818

1919
steps:
20+
- name: Set up uv
21+
uses: astral-sh/setup-uv@v5
22+
2023
- name: Set up Python ${{ matrix.py-version }}
2124
uses: actions/setup-python@v6
2225
with:
2326
python-version: ${{ matrix.py-version }}
2427

2528
- name: Install vrelease-bin
26-
run: pip3 install vrelease-bin
29+
run: |
30+
uv venv .venv
31+
uv pip install -p .venv/bin/python vrelease-bin
2732
2833
- name: Run vrelease (version)
29-
run: vrelease -v
34+
run: .venv/bin/vrelease -v
3035

3136
- name: Run vrelease (help)
32-
run: vrelease -h
37+
run: .venv/bin/vrelease -h

.github/workflows/run-test.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ jobs:
3232
- name: Checkout to vrelease-py
3333
uses: actions/checkout@v6
3434

35+
- name: Set up uv
36+
uses: astral-sh/setup-uv@v5
37+
3538
- name: Configure git
3639
run: |
3740
git config --global user.email "hi@caian.org"
@@ -42,23 +45,20 @@ jobs:
4245
with:
4346
python-version: ${{ matrix.py-version }}
4447

45-
- name: Install pre-release required packages
46-
run: pip3 install requests poetry
47-
4848
- name: Install dependencies
49-
run: poetry install
49+
run: uv sync --group dev
5050

5151
- name: Run pre-release steps
52-
run: poetry run poe prepublish
52+
run: uv run python pre-release-steps.py
5353

5454
- name: Build wheel
55-
run: poetry build
55+
run: uv build
5656

5757
- name: Install vrelease
58-
run: pip3 install dist/vrelease_bin-*.whl
58+
run: uv pip install -p .venv/bin/python dist/vrelease_bin-*.whl
5959

6060
- name: Run vrelease (version)
61-
run: vrelease -v
61+
run: uv run vrelease -v
6262

6363
- name: Run vrelease (help)
64-
run: vrelease -h
64+
run: uv run vrelease -h

0 commit comments

Comments
 (0)