From ff14261aed247aa5b9d6f83ba616bd8e7f4f329c Mon Sep 17 00:00:00 2001 From: Kyle Harrington Date: Sun, 7 Jun 2026 16:48:15 -0700 Subject: [PATCH 1/2] Build macOS universal2 wheel instead of separate Intel/arm64 GitHub's macos-13 (Intel) runners queue for a long time as capacity shifts to Apple Silicon. Cross-build a single universal2 wheel on the macos-14 arm64 runner instead: covers both Intel and Apple Silicon in one artifact and removes the dependency on the scarce Intel runners. --- .github/workflows/release.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7715ba6..2b4813f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -78,8 +78,9 @@ jobs: - { os: ubuntu-latest, platform: linux, target: x86_64, manylinux: musllinux_1_2 } - { os: ubuntu-latest, platform: linux, target: aarch64, manylinux: musllinux_1_2 } - { os: windows-latest, platform: windows, target: x64 } - - { os: macos-13, platform: macos, target: x86_64 } - - { os: macos-14, platform: macos, target: aarch64 } + # One universal2 wheel (Intel + Apple Silicon) cross-built on the + # fast arm64 runner — avoids the scarce/slow macos-13 Intel runners. + - { os: macos-14, platform: macos, target: universal2-apple-darwin } steps: - uses: actions/checkout@v4 - name: Build wheels From 6e3eda6a3659554a9f5924b5d932652366b6e9b5 Mon Sep 17 00:00:00 2001 From: Kyle Harrington Date: Sun, 7 Jun 2026 16:52:55 -0700 Subject: [PATCH 2/2] Fix release: use clean setup-python for twine check The collect job ran twine on the runner's system Python, whose stale packaging doesn't recognise the Metadata 2.4 License-File field, so twine check failed even though the wheels are valid (and PyPI accepts them). Use actions/setup-python and upgrade twine+packaging. --- .github/workflows/release.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2b4813f..beb8a04 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -126,11 +126,17 @@ jobs: with: name: sdist path: dist + # A clean interpreter so a fresh `packaging` is used: the runner's + # system packaging is too old to recognise the Metadata 2.4 + # `License-File` field and makes `twine check` spuriously fail. + - uses: actions/setup-python@v5 + with: + python-version: "3.12" - name: List and check run: | ls -la dist/ echo "wheels: $(ls dist/*.whl | wc -l), sdists: $(ls dist/*.tar.gz | wc -l)" - pip install twine + python -m pip install --upgrade twine packaging twine check dist/* - uses: actions/upload-artifact@v4 with: