Skip to content

Commit

Permalink
Merge branch 'master' into pyproject-metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
bwoodsend authored Sep 28, 2024
2 parents 31178d7 + 6e7997f commit 7843b02
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@ on: [workflow_dispatch]

jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
name: Build wheels on ${{ matrix.os }}${{ matrix.musl && ' for musl' || '' }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
musl: [false]
include:
- os: ubuntu-latest
musl: true

steps:
- uses: actions/checkout@v3
Expand All @@ -33,7 +37,9 @@ jobs:
# Platform options
CIBW_ARCHS_MACOS: "x86_64 arm64"
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.7,<3.13"
CIBW_SKIP: "pp* *-musllinux_*" # Skip PyPy and musl.
CIBW_BUILD: ${{ matrix.musl && '*-musllinux_*' || null }}
# musl: skip unsupported by NumPy; not musl: skip PyPy and musl
CIBW_SKIP: ${{ matrix.musl && 'cp37-musllinux_* cp38-musllinux_*' || 'pp* *-musllinux_*' }}
CIBW_MANYLINUX_X86_64_IMAGE: "manylinux2014"
CIBW_ARCHS_LINUX: x86_64 aarch64
# Testing
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools >= 61.0",
"wheel",
"cython",
# NumPy must be locked in order to support 1.x and 2.x
"numpy==2.0; python_version >= '3.9'",
Expand Down

0 comments on commit 7843b02

Please sign in to comment.