Skip to content

Commit 872c671

Browse files
authored
Update cibuildwheel dependency (#37504)
* [DO NOT MERGE] Unpin cibuildwheel * pinned version * move assignment of version
1 parent e41b9b6 commit 872c671

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/build_wheels.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,13 +244,13 @@ jobs:
244244
- name: Install Python
245245
uses: actions/setup-python@v5
246246
with:
247-
python-version: '3.10'
247+
python-version: '3.11'
248248
- uses: docker/setup-qemu-action@v3
249249
if: ${{matrix.os_python.arch == 'aarch64'}}
250250
name: Set up QEMU
251251
- name: Install cibuildwheel
252252
# note: sync cibuildwheel version with gradle task sdks:python:bdistPy* steps
253-
run: pip install cibuildwheel==2.23.3 setuptools
253+
run: pip install cibuildwheel==3.3.1 setuptools
254254
- name: Build wheel
255255
# Only build wheel if it is one of the target versions for this platform, otherwise no-op
256256
if: ${{ contains(matrix.os_python.python, matrix.py_version) }}

sdks/python/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ platform_identifiers_map.each { platform, idsuffix ->
200200
}
201201
getVersionsAsList('python_versions').each { it ->
202202
def pyversion = it.replace('.', '')
203+
def cibuildwheel_version = it == '3.10' ? '2.23.3' : '3.3.1'
203204

204205
project.tasks.register("bdistPy${pyversion}${platform}") {
205206
description "Build a Python wheel distribution for Py${pyversion} ${platform}"
@@ -220,7 +221,7 @@ platform_identifiers_map.each { platform, idsuffix ->
220221
args '-c', ". ${envdir}/bin/activate && " +
221222
// note: sync cibuildwheel version with GitHub Action
222223
// .github/workflows/build_wheel.yml:build_wheels "Install cibuildwheel" step
223-
"pip install cibuildwheel==2.23.3 setuptools && " +
224+
"pip install cibuildwheel==${cibuildwheel_version} setuptools && " +
224225
"cibuildwheel --print-build-identifiers --platform ${platform} --archs ${archs} && " +
225226
"cibuildwheel --output-dir ${buildDir} --platform ${platform} --archs ${archs} "
226227
}

0 commit comments

Comments
 (0)