Skip to content

Commit

Permalink
ci: using uv with cibuildwheel (#999)
Browse files Browse the repository at this point in the history
uv seems to save ~15 seconds to a minute on each job.

---------

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
Co-authored-by: Hans Dembinski <HDembinski@users.noreply.github.com>
  • Loading branch information
henryiii and HDembinski committed Jul 9, 2024
1 parent c51da8c commit ab7e2a6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches:
- main
workflow_dispatch:
pull_request:
paths:
- .github/workflows/release.yml

env:
# Latest Jupyter requires this to acknowledge deprecation
Expand Down Expand Up @@ -56,7 +59,9 @@ jobs:
- if: ${{ matrix.arch == 'aarch64' }}
uses: docker/setup-qemu-action@v3

- uses: pypa/cibuildwheel@v2.17.0
- uses: yezz123/setup-uv@v4

- uses: pypa/cibuildwheel@v2.19
env:
CIBW_BUILD: ${{ matrix.py }}-*
CIBW_ARCHS: ${{ matrix.arch }}
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ files = ["src"]
no_implicit_optional = false

[tool.cibuildwheel]
build-frontend = "build[uv]"
# update skip when numpy wheels become available
skip = ["*-musllinux_*", "cp31?-manylinux_i686"]
test-requires = "pytest"
Expand All @@ -139,3 +140,4 @@ PIP_ONLY_BINARY = ":all:"
select = "cp3?-*"
manylinux-x86_64-image = "manylinux2010"
manylinux-i686-image = "manylinux2010"
build-frontend = "build"

0 comments on commit ab7e2a6

Please sign in to comment.