Skip to content

Commit

Permalink
Build: Upgrade cibuildwheel to include Py3.13 and exclude old wheel b…
Browse files Browse the repository at this point in the history
…uilds (<3.8).
  • Loading branch information
scoder committed Nov 29, 2024
1 parent 62fe5fc commit 487a687
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,6 @@ jobs:
pyversion: ["cp"]

include:
- image: manylinux_2_24_aarch64
pyversion: "cp37"
- image: manylinux_2_24_aarch64
pyversion: "cp38"
- image: manylinux_2_24_aarch64
Expand Down Expand Up @@ -123,12 +121,6 @@ jobs:
- name: Copy wheels in dist
run: cp -v wheelhouse*/*-m*linux*.whl dist/ # manylinux / musllinux

- name: Release
uses: softprops/action-gh-release@v2
if: github.ref_type == 'tag'
with:
files: dist/*cp27*.whl, dist/*cp35*.whl, dist/*cp36*.whl

- name: Archive Wheels
uses: actions/upload-artifact@v4
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
- uses: actions/checkout@v4
- name: Install cibuildwheel
# Nb. keep cibuildwheel version pin consistent with job below
run: pipx install cibuildwheel==2.17.0
run: pipx install cibuildwheel==2.21.3
- id: set-matrix
run: |
MATRIX=$(
Expand Down Expand Up @@ -107,14 +107,14 @@ jobs:
platforms: all

- name: Build wheels
uses: pypa/cibuildwheel@v2.17.0
uses: pypa/cibuildwheel@v2.21.3
with:
only: ${{ matrix.only }}

- name: Build faster Linux wheels
# also build wheels with the most recent manylinux images and gcc
if: runner.os == 'Linux' && !contains(matrix.only, 'i686')
uses: pypa/cibuildwheel@v2.17.0
uses: pypa/cibuildwheel@v2.21.3
env:
CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_28
CIBW_MANYLINUX_AARCH64_IMAGE: manylinux_2_28
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = ["Cython>=3.0.10, < 3.1.0", "setuptools", "wheel"]

[tool.cibuildwheel]
build-verbosity = 2
skip = ["pp*", "*-musllinux_i686"]
skip = ["pp*", "*-musllinux_i686", "cp35*", "cp36*", "cp37*"]
# test-command = "python -m unittest {package}/test_fractions.py -p -v"

[tool.cibuildwheel.linux]
Expand Down Expand Up @@ -38,4 +38,5 @@ archs = ["AMD64", "x86"]
# https://cibuildwheel.readthedocs.io/en/stable/faq/#what-to-provide suggests to provide
# x86_64 and one of universal2 or arm64 wheels. x86_64 is still required by older pips,
# so additional arm64 wheels suffice.
#archs = ["x86_64", "universal2"]
archs = ["x86_64", "arm64"]

0 comments on commit 487a687

Please sign in to comment.