Skip to content

Commit 7ae969a

Browse files
committed
build: add build dep + switch release.yml to uv
1 parent 744f5f6 commit 7ae969a

3 files changed

Lines changed: 31 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,20 @@ jobs:
3131
submodules: recursive
3232
fetch-depth: 0 # hatch-vcs needs full history for tag detection
3333

34-
- uses: actions/setup-python@v5
34+
- uses: astral-sh/setup-uv@v4
3535
with:
3636
python-version: "3.11"
3737

38-
- name: Install protoc + build tools
39-
run: |
40-
sudo apt-get update && sudo apt-get install -y protobuf-compiler
41-
pip install hatchling hatch-vcs grpcio-tools build
38+
- name: Install build tools
39+
run: uv sync
4240

4341
- name: Generate proto stubs (coordinode only)
4442
if: matrix.package.name == 'coordinode'
45-
run: make proto
43+
run: uv run make proto
4644

4745
- name: Build wheel + sdist
4846
working-directory: ${{ matrix.package.path }}
49-
run: python -m build
47+
run: uv run python -m build
5048

5149
- name: Upload dist artifact
5250
uses: actions/upload-artifact@v4

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ coordinode = { workspace = true }
2323

2424
[dependency-groups]
2525
dev = [
26+
"build>=1.2",
2627
"grpcio-tools>=1.60",
2728
"pytest>=8",
2829
"pytest-asyncio>=0.23",

uv.lock

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)