Skip to content

Commit 74261cc

Browse files
committed
ci: Build cp313t wheels with cibuildwheel 3.4.1
cibuildwheel 4.0 drops support for building cp313t wheels, so pin to an older version just for building them, while building all of the rest with a newer version of cibuildwheel. Signed-off-by: Matt Wozniski <mwozniski@bloomberg.net>
1 parent eb47194 commit 74261cc

1 file changed

Lines changed: 36 additions & 1 deletion

File tree

.github/workflows/build_wheels.yml

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,37 @@ jobs:
8080
name: ${{ matrix.wheel_type }}-wheels
8181
path: ./wheelhouse/*.whl
8282

83+
build_cp313t_wheels:
84+
needs: [build_sdist, choose_wheel_types]
85+
name: ${{ matrix.wheel_type }} wheels
86+
runs-on: ${{ matrix.os }}
87+
strategy:
88+
fail-fast: false
89+
matrix:
90+
wheel_type: ${{ fromJSON(needs.choose_wheel_types.outputs.wheel_types) }}
91+
include:
92+
- os: ubuntu-latest
93+
- wheel_type: manylinux_aarch64
94+
os: ubuntu-24.04-arm
95+
96+
steps:
97+
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
98+
with:
99+
name: sdist
100+
- name: Extract sdist
101+
run: |
102+
tar zxvf *.tar.gz --strip-components=1
103+
- name: Build wheels
104+
uses: pypa/cibuildwheel@8d2b08b68458a16aeb24b64e68a09ab1c8e82084 # v3.4.1
105+
env:
106+
CIBW_BUILD: "cp313t-${{ matrix.wheel_type }}"
107+
CIBW_ARCHS_LINUX: auto
108+
CIBW_ENABLE: cpython-freethreading
109+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
110+
with:
111+
name: ${{ matrix.wheel_type }}-cp313t-wheels
112+
path: ./wheelhouse/*.whl
113+
83114
test_attaching_to_eol_interpreters:
84115
needs: [build_wheels]
85116
runs-on: ubuntu-22.04
@@ -161,7 +192,7 @@ jobs:
161192
run: python3 -m pytest tests -n auto -vvv
162193

163194
test_wheels:
164-
needs: [build_wheels]
195+
needs: [build_wheels, build_cp313t_wheels]
165196
runs-on: ubuntu-22.04
166197
strategy:
167198
fail-fast: false
@@ -179,6 +210,10 @@ jobs:
179210
with:
180211
name: "manylinux_x86_64-wheels"
181212
path: dist
213+
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
214+
with:
215+
name: "manylinux_x86_64-cp313t-wheels"
216+
path: dist
182217
- name: Set up dependencies
183218
run: |
184219
sudo add-apt-repository ppa:deadsnakes/ppa

0 commit comments

Comments
 (0)