From bfd7eee83f94d11bdc0ced34ddbd89794f527051 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Mon, 10 Jun 2024 01:19:30 -0400 Subject: [PATCH 1/4] ci: try using uv with cibuildwheel Signed-off-by: Henry Schreiner --- .github/workflows/release.yml | 7 ++++++- pyproject.toml | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 05f4e350..bad5c595 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,6 +5,9 @@ on: branches: - main workflow_dispatch: + pull_request: + paths: + - .github/workflows/release.yml env: # Latest Jupyter requires this to acknowledge deprecation @@ -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@main env: CIBW_BUILD: ${{ matrix.py }}-* CIBW_ARCHS: ${{ matrix.arch }} diff --git a/pyproject.toml b/pyproject.toml index 6c336fb5..c1458e02 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" From 8789633e4d7e5726c92d0eff9323b7d58e876e50 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Mon, 10 Jun 2024 01:24:57 -0400 Subject: [PATCH 2/4] Update pyproject.toml --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index c1458e02..26aa07bd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -140,3 +140,4 @@ PIP_ONLY_BINARY = ":all:" select = "cp3?-*" manylinux-x86_64-image = "manylinux2010" manylinux-i686-image = "manylinux2010" +build-frontend = "build" From 3aa128528716c2f683c3a2388997c4e5c97a10d1 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Mon, 10 Jun 2024 15:40:43 -0400 Subject: [PATCH 3/4] Update .github/workflows/release.yml --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bad5c595..800182e0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -61,7 +61,7 @@ jobs: - uses: yezz123/setup-uv@v4 - - uses: pypa/cibuildwheel@main + - uses: pypa/cibuildwheel@v2.19 env: CIBW_BUILD: ${{ matrix.py }}-* CIBW_ARCHS: ${{ matrix.arch }} From f73cb53c56b077b28fb317f80a78dea8aaece628 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Mon, 10 Jun 2024 15:41:33 -0400 Subject: [PATCH 4/4] Update .pre-commit-config.yaml --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 446a2cc1..5c46fef9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -71,6 +71,6 @@ repos: - id: check-github-workflows - repo: https://github.com/henryiii/validate-pyproject-schema-store - rev: 2024.05.24 + rev: 2024.06.10 hooks: - id: validate-pyproject