From 531b7fe8bce60689b06ddf5bbd0908126a5e118b Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Fri, 5 Jun 2026 09:20:49 -0400 Subject: [PATCH 1/2] chore: add more wheels Signed-off-by: Henry Schreiner --- .github/workflows/wheels.yml | 4 +--- README.md | 2 +- pyproject.toml | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index b0fb7af..6be3646 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -39,14 +39,12 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest, windows-latest, macos-latest, macos-15-intel] + os: [ubuntu-latest, windows-latest, macos-latest, macos-26-intel, ubuntu-24.04-arm, windows-11-arm] steps: - uses: actions/checkout@v6 - uses: pypa/cibuildwheel@v3.4 - env: - CIBW_ARCHS_MACOS: auto universal2 - name: Verify clean directory run: git diff --exit-code diff --git a/README.md b/README.md index 92522d6..541bae3 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ python_example [actions-wheels-badge]: https://github.com/pybind/python_example/workflows/Wheels/badge.svg An example project built with [pybind11](https://github.com/pybind/pybind11). -This requires Python 3.7+; for older versions of Python, check the commit +This requires Python 3.9+; for older versions of Python, check the commit history. Installation diff --git a/pyproject.toml b/pyproject.toml index 0c7cc8e..376362c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ build-backend = "setuptools.build_meta" [tool.cibuildwheel] test-command = "python {project}/tests/test.py" -test-skip = "*universal2:arm64" +enable = ["pypy", "graalpy"] [tool.ruff] From 718b7d97160a45ee9f85e95846a3c5d33af0fc0c Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Fri, 5 Jun 2026 10:08:56 -0400 Subject: [PATCH 2/2] chore: use build[uv] (fixes build isolation issue) Signed-off-by: Henry Schreiner --- .github/workflows/wheels.yml | 2 ++ .pre-commit-config.yaml | 4 ++-- pyproject.toml | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 6be3646..c0502ea 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -44,6 +44,8 @@ jobs: steps: - uses: actions/checkout@v6 + - uses: astral-sh/setup-uv@v8.1.0 + - uses: pypa/cibuildwheel@v3.4 - name: Verify clean directory diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bbb88b0..9b5380d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -37,8 +37,8 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit rev: "v0.15.15" hooks: - - id: ruff - args: ["--fix", "--show-fixes"] + - id: ruff-check + args: ["--fix"] - id: ruff-format # Changes tabs to spaces diff --git a/pyproject.toml b/pyproject.toml index 376362c..d4d568e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,9 +9,11 @@ build-backend = "setuptools.build_meta" [tool.cibuildwheel] test-command = "python {project}/tests/test.py" enable = ["pypy", "graalpy"] +build-frontend = "build[uv]" [tool.ruff] +show-fixes = true target-version = "py39" [tool.ruff.lint]