2424 run : |
2525 python3 -m pip install build
2626 python3 -m build --sdist
27- - uses : actions/upload-artifact@v3
27+ - uses : actions/upload-artifact@v5
2828 with :
2929 path : " dist/*.tar.gz"
3030 name : dist
@@ -37,33 +37,22 @@ jobs:
3737 if : env.CAN_DEPLOY == 'true' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
3838
3939 build_wheels :
40- name : Build wheels on ${{ matrix.os }}, arch ${{ matrix.arch }}
40+ name : Build wheels on ${{ matrix.os }}
4141 runs-on : ${{ matrix.os }}
4242 needs : sdists_for_pypi
4343 strategy :
4444 fail-fast : false
4545 matrix :
46- include :
47- - os : ubuntu-latest
48- arch : x86_64
49- - os : ubuntu-latest
50- arch : i686
51- - os : macos-latest
52- arch : auto
53- - os : macos-14
54- arch : auto
46+ os :
47+ - ubuntu-latest
48+ - macos-latest
49+ - ubuntu-24.04-arm
50+ - macos-15-intel
5551 env :
5652 # SPKGs to install as system packages
57- SPKGS : _bootstrap _prereq
53+ SPKGS : _bootstrap _prereq gmp mpfr mpc
5854 # Non-Python packages to install as spkgs
5955 TARGETS_PRE : gmp mpfr mpc ppl-ensure
60- # Disable building PyPy wheels on all platforms
61- # Disable musllinux until #33083 provides alpine package information
62- CIBW_SKIP : " pp* *-musllinux*"
63- #
64- CIBW_ARCHS : ${{ matrix.arch }}
65- # https://cibuildwheel.readthedocs.io/en/stable/options/#requires-python
66- CIBW_PROJECT_REQUIRES_PYTHON : " >=3.9"
6756 # Environment during wheel build
6857 CIBW_ENVIRONMENT : " PATH=$(pwd)/local/bin:$PATH CPATH=$(pwd)/local/include:$CPATH LIBRARY_PATH=$(pwd)/local/lib:$LIBRARY_PATH LD_LIBRARY_PATH=$(pwd)/local/lib:$LD_LIBRARY_PATH PKG_CONFIG_PATH=$(pwd)/local/share/pkgconfig:$PKG_CONFIG_PATH ACLOCAL_PATH=/usr/share/aclocal"
6958 # Use 'build', not 'pip wheel'
7463 repository : sagemath/sage
7564 ref : develop
7665
77- - uses : actions/download-artifact@v3
66+ - uses : actions/download-artifact@v6
7867 with :
7968 name : dist
8069 path : dist
8473 # Installing pipx follows the approach of https://github.com/pypa/cibuildwheel/pull/1743
8574 id : python
8675 with :
87- python-version : " 3.8 - 3.12 "
76+ python-version : " 3.12 - 3.14 "
8877 update-environment : false
8978
9079 - name : Build platform wheels
@@ -97,16 +86,16 @@ jobs:
9786 run : |
9887 "${{ steps.python.outputs.python-path }}" -m pip install pipx
9988 export PATH=build/bin:$PATH
100- export CIBW_BEFORE_ALL="( $(sage-print-system-package-command debian --yes --no-install-recommends install $(sage-get-system-packages debian $SPKGS)) || $(sage-print-system-package-command fedora --yes --no-install-recommends install $(sage-get-system-packages fedora $SPKGS | sed s/pkg-config/pkgconfig/)) || ( $(sage-print-system-package-command homebrew --yes --no-install-recommends install $(sage-get-system-packages homebrew $SPKGS)) || echo error ignored) ) && ./bootstrap && ./configure --enable-build-as-root --enable-fat-binary && MAKE=\"make -j6\" make V=0 $TARGETS_PRE"
89+ export CIBW_BEFORE_ALL="( $(sage-print-system-package-command debian --yes --no-install-recommends install $(sage-get-system-packages debian $SPKGS)) || $(sage-print-system-package-command fedora --yes --no-install-recommends install $(sage-get-system-packages fedora $SPKGS | sed s/pkg-config/pkgconfig/)) || ( $(sage-print-system-package-command homebrew --yes --no-install-recommends install $(sage-get-system-packages homebrew $SPKGS)) || $(sage-print-system-package-command alpine --yes --no-install-recommends install $(sage-get-system-packages alpine $SPKGS)) || echo error ignored) ) && ./bootstrap && ./configure --enable-build-as-root --enable-fat-binary --disable-meson-check --disable-boost && MAKE=\"make -j6\" make V=0 $TARGETS_PRE"
10190 mkdir -p unpacked
10291 for pkg in pplpy; do
10392 (cd unpacked && tar xfz - ) < dist/$pkg*.tar.gz
104- "${{ steps.python.outputs.python-path }}" -m pipx run cibuildwheel==2.17.0 unpacked/$pkg*
93+ "${{ steps.python.outputs.python-path }}" -m pipx run cibuildwheel==3.2.1 unpacked/$pkg*
10594 done
10695
107- - uses : actions/upload-artifact@v3
96+ - uses : actions/upload-artifact@v5
10897 with :
109- name : wheels
98+ name : wheels-${{ matrix.os }}
11099 path : ./wheelhouse/*.whl
111100
112101 pypi-publish :
@@ -119,7 +108,7 @@ jobs:
119108 CAN_DEPLOY : ${{ secrets.SAGEMATH_PYPI_API_TOKEN != '' }}
120109 steps :
121110
122- - uses : actions/download-artifact@v3
111+ - uses : actions/download-artifact@v6
123112 with :
124113 name : wheels
125114 path : wheelhouse
0 commit comments