Skip to content

Commit 8e2fc03

Browse files
authored
PYTHON-1396 Linux wheel builds appear to be failing due to retirement of CentOS 7 (#11)
1 parent b5fac88 commit 8e2fc03

2 files changed

Lines changed: 26 additions & 10 deletions

File tree

.github/workflows/build_wheels_linux.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,22 @@ jobs:
1010
CIBW_BUILD: cp38-* cp39-* cp310-* cp311-* cp312-*
1111
CIBW_SKIP: "*musllinux*"
1212
CIBW_ARCHS_LINUX: x86_64 aarch64
13-
CIBW_TEST_REQUIRES: pynose mock pure-sasl eventlet
13+
CIBW_TEST_REQUIRES: pytest mock pure-sasl eventlet
1414
CIBW_TEST_COMMAND: echo "wheel is installed"
1515
CIBW_BEFORE_ALL: yum install -y libev libev-devel
1616
CIBW_ENVIRONMENT: CFLAGS='-s'
1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
1919
with:
2020
submodules: true
2121
- name: Set up QEMU
2222
uses: docker/setup-qemu-action@v2
2323
with:
2424
platforms: linux/arm64
25-
- name: Build wheels
26-
run: cd python-driver && pipx run cibuildwheel==2.16.2
27-
- uses: actions/upload-artifact@v3
25+
- uses: pypa/cibuildwheel@v2.19.2
2826
with:
29-
path: python-driver/wheelhouse/*.whl
27+
package-dir: ./python-driver
28+
- uses: actions/upload-artifact@v4
29+
with:
30+
name: cibw-wheels-linux
31+
path: ./wheelhouse/*.whl

.github/workflows/build_wheels_mac.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,34 @@ jobs:
1010
matrix:
1111
# macos-13 == Intel, macos-14 == ARM
1212
os: [macos-13, macos-14]
13+
min_version: [10.9, 11.0]
14+
exclude:
15+
# Always try for the maximal min version for x86_64 builds
16+
- os: macos-13
17+
min_version: 11.0
18+
# ARM builds require an OSX version of at least 11.0
19+
- os: macos-14
20+
min_version: 10.9
1321
env:
22+
CIBW_ENVIRONMENT: CFLAGS="-mmacosx-version-min=${{ matrix.min_version }}"
1423
CIBW_BUILD: cp38-* cp39-* cp310-* cp311-* cp312-*
1524
CIBW_SKIP: "*musllinux*"
16-
CIBW_TEST_REQUIRES: pynose mock pure-sasl eventlet
25+
CIBW_TEST_REQUIRES: pytest mock pure-sasl eventlet
1726
CIBW_TEST_COMMAND: echo "wheel is installed"
18-
CIBW_BEFORE_ALL: brew install libev
27+
CIBW_BEFORE_ALL: >
28+
curl -O http://dist.schmorp.de/libev/libev-4.33.tar.gz &&
29+
gzip -dc libev-4.33.tar.gz | tar xf - &&
30+
cd libev-4.33 &&
31+
./configure &&
32+
sudo make install
1933
steps:
2034
- uses: actions/checkout@v4
2135
with:
2236
submodules: true
23-
- uses: pypa/cibuildwheel@v2.17.0
37+
- uses: pypa/cibuildwheel@v2.19.2
2438
with:
2539
package-dir: ./python-driver
2640
- uses: actions/upload-artifact@v4
2741
with:
28-
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
42+
name: cibw-wheels-mac-${{ matrix.os }}
2943
path: ./wheelhouse/*.whl

0 commit comments

Comments
 (0)