Skip to content

Commit ce3f38b

Browse files
ci(wheel): use build[uv] frontend (#2244)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Chores** - Updated the build process to include `uv` as a frontend. - Modified the `.gitignore` file to remove obsolete entries and add new relevant ones. - **Refactor** - Removed the `before-test` configuration from `pyproject.toml` to streamline the testing setup. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent b102fc1 commit ce3f38b

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

.github/workflows/wheel.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,18 @@ jobs:
5555
dp_variant: cpu
5656
steps:
5757
- uses: actions/checkout@v4
58+
- name: Install uv
59+
run: curl -LsSf https://astral.sh/uv/install.sh | sh
60+
if: runner.os != 'Linux'
5861
- uses: docker/setup-qemu-action@v3
5962
name: Setup QEMU
6063
if: matrix.platform_id == 'manylinux_aarch64' && matrix.os == 'ubuntu-latest'
6164
- name: Build wheels
62-
uses: pypa/cibuildwheel@v2.18
65+
uses: pypa/cibuildwheel@v2.19
6366
env:
6467
CIBW_ARCHS: all
6568
CIBW_BUILD: cp${{ matrix.python }}-${{ matrix.platform_id }}
69+
CIBW_BUILD_FRONTEND: 'build[uv]'
6670
- uses: actions/upload-artifact@v4
6771
with:
6872
name: cibw-wheels-cp${{ matrix.python }}-${{ matrix.platform_id }}-${{ strategy.job-index }}
@@ -74,14 +78,8 @@ jobs:
7478
steps:
7579
- uses: actions/checkout@v4
7680

77-
- uses: actions/setup-python@v5
78-
name: Install Python
79-
with:
80-
python-version: '3.10'
81-
- run: python -m pip install build
8281
- name: Build sdist
83-
run: python -m build --sdist
84-
82+
run: pipx run uv tool run --with build[uv] --from build python -m build --installer uv --sdist
8583
- uses: actions/upload-artifact@v4
8684
with:
8785
name: cibw-sdist

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,3 +197,4 @@ pip-wheel-metadata/
197197

198198
_build/
199199
reacnetgenerator/_version2.py
200+
.uv/

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ build = ["cp37-*", "cp38-*", "cp39-*", "cp310-*", "cp311-*"]
116116
skip = ["*-win32", "*-manylinux_i686", "*-musllinux*"]
117117
# wait for openbabel
118118
test-skip = "cp37-* *-manylinux_aarch64"
119-
before-test = ["""python -m pip install "replace-pip-with-uv-pip; platform_system!='Linux' or platform_machine!='aarch64'" """]
120119

121120
[tool.cibuildwheel.linux]
122121
environment-pass = ["CIBW_BUILD"]

0 commit comments

Comments
 (0)