Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 60 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@ jobs:
# explicitly here.
os:
- ubuntu-latest
# Overhead of building ARM wheels on Intel Linux nodes is
# unreasonably high (20s build time per wheel vs 3m);
# it's better to just spin another runner up to build them
# natively
- ubuntu-24.04-arm
- macOS-latest
- windows-latest
# Since the oldest Python available on windows-11-arm on GitHub
Expand All @@ -142,6 +147,8 @@ jobs:
- name: Enable MSVC 64bit
uses: ilammy/msvc-dev-cmd@v1
if: ${{ startsWith(matrix.os, 'windows-') }} && ${{ contains(matrix.cibw_skip, '*-win32') }}
# Note: Since we're building Linux wheels on their native
# architectures, we don't need QEMU
- name: Set up QEMU
uses: docker/[email protected]
if: runner.os == 'Linux' && matrix.arch != 'auto'
Expand All @@ -155,10 +162,10 @@ jobs:
env:
CIBW_SKIP: ${{ matrix.cibw_skip }}
# We're building on Windows-x64, so ARM64 wheels can't be tested
# locally by `cibuildwheel` (don't worry, we're testing them
# later though in `test_binpy_wheels`)
# locally by `cibuildwheel`
# (don't worry, we're testing them later though in
# `test_binpy_wheels`)
CIBW_TEST_SKIP: '*-win_arm64'
CIBW_ARCHS_LINUX: ${{ matrix.arch }}
CIBW_ENVIRONMENT: PYTHONUTF8=1
PYTHONUTF8: '1'
# `msvc-dev-cmd` sets this envvar, which interferes with
Expand Down Expand Up @@ -228,6 +235,10 @@ jobs:
install-extras: tests-strict,runtime-strict
os: ubuntu-latest
arch: auto
- python-version: '3.8'
install-extras: tests-strict,runtime-strict
os: ubuntu-24.04-arm
arch: auto
- python-version: '3.8'
install-extras: tests-strict,runtime-strict
os: macOS-latest
Expand All @@ -241,6 +252,10 @@ jobs:
install-extras: tests-strict,runtime-strict,optional-strict
os: ubuntu-latest
arch: auto
- python-version: '3.13'
install-extras: tests-strict,runtime-strict,optional-strict
os: ubuntu-24.04-arm
arch: auto
- python-version: '3.13'
install-extras: tests-strict,runtime-strict,optional-strict
os: macOS-latest
Expand All @@ -253,6 +268,14 @@ jobs:
install-extras: tests-strict,runtime-strict,optional-strict
os: windows-11-arm
arch: auto
- python-version: '3.13'
install-extras: tests
os: ubuntu-latest
arch: auto
- python-version: '3.13'
install-extras: tests
os: ubuntu-24.04-arm
arch: auto
- python-version: '3.13'
install-extras: tests
os: macOS-latest
Expand Down Expand Up @@ -289,10 +312,38 @@ jobs:
install-extras: tests,optional
os: ubuntu-latest
arch: auto
- python-version: 3.14.0-rc.1
- python-version: '3.14'
install-extras: tests,optional
os: ubuntu-latest
arch: auto
- python-version: '3.8'
install-extras: tests,optional
os: ubuntu-24.04-arm
arch: auto
- python-version: '3.9'
install-extras: tests,optional
os: ubuntu-24.04-arm
arch: auto
- python-version: '3.10'
install-extras: tests,optional
os: ubuntu-24.04-arm
arch: auto
- python-version: '3.11'
install-extras: tests,optional
os: ubuntu-24.04-arm
arch: auto
- python-version: '3.12'
install-extras: tests,optional
os: ubuntu-24.04-arm
arch: auto
- python-version: '3.13'
install-extras: tests,optional
os: ubuntu-24.04-arm
arch: auto
- python-version: '3.14'
install-extras: tests,optional
os: ubuntu-24.04-arm
arch: auto
- python-version: '3.8'
install-extras: tests,optional
os: macOS-latest
Expand All @@ -317,7 +368,7 @@ jobs:
install-extras: tests,optional
os: macOS-latest
arch: auto
- python-version: 3.14.0-rc.1
- python-version: '3.14'
install-extras: tests,optional
os: macOS-latest
arch: auto
Expand Down Expand Up @@ -345,7 +396,7 @@ jobs:
install-extras: tests,optional
os: windows-latest
arch: auto
- python-version: 3.14.0-rc.1
- python-version: '3.14'
install-extras: tests,optional
os: windows-latest
arch: auto
Expand All @@ -364,7 +415,7 @@ jobs:
install-extras: tests,optional
os: windows-11-arm
arch: auto
- python-version: 3.14.0-rc.1
- python-version: '3.14'
install-extras: tests,optional
os: windows-11-arm
arch: auto
Expand All @@ -378,6 +429,8 @@ jobs:
# # assumes `arch=x64`, so we have to manually set it here...
with:
arch: ${{ contains(matrix.os, 'arm') && 'arm64' || 'x64' }}
# Note: Since we're testing Linux wheels on their native
# architectures, we don't need QEMU
- name: Set up QEMU
uses: docker/[email protected]
if: runner.os == 'Linux' && matrix.arch != 'auto'
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Changes
* FIX: mitigate speed regressions introduced in 5.0.0 #376
* FIX: Use import system to locate module file run by ``kernprof -m`` #389
* FIX: Fixed build on Windows-ARM64 and now building wheels therefor in CI #391
* FIX: Restored building and testing of Linux-ARM64 wheels #402

5.0.0
~~~~~
Expand Down
12 changes: 11 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,23 @@ omit =[

[tool.cibuildwheel]
build = "cp38-* cp39-* cp310-* cp311-* cp312-* cp313-* cp314-*"
skip = ["*-win32", "cp313-musllinux_i686"]
skip = [
# XXX: since `tests.yml` already defines `matrix.cibw_skip` for
# `build_binpy_wheels`, can we deduplicate and just use that?
# Or do we need these when building wheels for release, which may
# run on separate pipelines?
'*-win32',
'cp313-musllinux_i686',
]
build-frontend = "build"
build-verbosity = 1
test-command = "python {project}/run_tests.py"
test-extras = ["tests-strict", "runtime-strict"]

# https://cibuildwheel.readthedocs.io/en/stable/options/#archs
[tool.cibuildwheel.linux]
# We'll build X86 and ARM wheels natively on separate runners
archs = ['auto']
[tool.cibuildwheel.macos]
archs = ["x86_64", "universal2", "arm64"]
[tool.cibuildwheel.windows]
Expand Down
Loading