Skip to content

Commit 5d67499

Browse files
committed
Switch to uv for environment management to ensure reliable cross-platform builds
1 parent 4cbd9cc commit 5d67499

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

.github/workflows/publish.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,16 @@ jobs:
2222
with:
2323
python-version: "3.10"
2424

25+
- name: Install uv
26+
uses: astral-sh/setup-uv@v5
27+
2528
- name: Install cibuildwheel
26-
run: pip install cibuildwheel==2.21.3
29+
run: uv pip install --system cibuildwheel==2.21.3
2730

2831
- name: Build wheels
2932
run: cibuildwheel --output-dir wheelhouse
3033
env:
31-
CIBW_VENV_TOOL: venv
34+
CIBW_VENV_TOOL: uv
3235
CIBW_SKIP: "pp* *-musllinux*"
3336
CIBW_ARCHS_MACOS: "x86_64 arm64"
3437
CIBW_BEFORE_BUILD: "pip install pybind11"
@@ -43,10 +46,10 @@ jobs:
4346
runs-on: ubuntu-latest
4447
steps:
4548
- uses: actions/checkout@v4
46-
49+
- name: Install uv
50+
uses: astral-sh/setup-uv@v5
4751
- name: Build sdist
48-
run: pipx run build --sdist
49-
52+
run: uvx --from build pyproject-build --sdist
5053
- uses: actions/upload-artifact@v4
5154
with:
5255
name: pip-sdist
@@ -60,7 +63,7 @@ jobs:
6063
url: https://pypi.org/p/fuzzybunny
6164
permissions:
6265
id-token: write
63-
contents: write # Required for creating GitHub Releases
66+
contents: write
6467

6568
steps:
6669
- uses: actions/download-artifact@v4

0 commit comments

Comments
 (0)