From 5d2a037937744877ef333d4f536b067f4f979b2c Mon Sep 17 00:00:00 2001 From: Matt Wozniski Date: Mon, 25 Jul 2022 14:01:40 -0400 Subject: [PATCH] Build manylinux2014 wheels for Python 3.11+ For now, retain manylinux2010 wheels for Python 3.10 and earlier. Signed-off-by: Matt Wozniski --- .github/workflows/build_wheels.yml | 5 +---- pyproject.toml | 7 +++++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index def4c3d029..26e33a919e 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -17,14 +17,13 @@ concurrency: jobs: build_wheels: - name: Wheel for ${{ matrix.cibw_python }}-${{ matrix.cibw_arch }}-${{matrix.cibw_manylinux}} + name: Wheel for ${{ matrix.cibw_python }}-${{ matrix.cibw_arch }} runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: os: [ubuntu-latest] cibw_python: [ "cp37-*", "cp38-*", "cp39-*", "cp310-*", "cp311-*"] - cibw_manylinux: [ manylinux2010 ] cibw_arch: [ "x86_64", "i686" ] steps: @@ -35,8 +34,6 @@ jobs: env: CIBW_BUILD: ${{ matrix.cibw_python }} CIBW_ARCHS_LINUX: ${{ matrix.cibw_arch }} - CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.cibw_manylinux }} - CIBW_MANYLINUX_I686_IMAGE: ${{ matrix.cibw_manylinux }} CIBW_PRERELEASE_PYTHONS: True CIBW_TEST_EXTRAS: test CIBW_TEST_COMMAND: pytest {package}/tests diff --git a/pyproject.toml b/pyproject.toml index 5a97fa8215..77925fb071 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -50,6 +50,13 @@ exclude="tests/integration/(native_extension|multithreaded_extension)/" [tool.cibuildwheel] build = ["cp37-*", "cp38-*", "cp39-*", "cp310-*", "cp311-*"] skip = "*musllinux*" +manylinux-x86_64-image = "manylinux2014" +manylinux-i686-image = "manylinux2014" + +[[tool.cibuildwheel.overrides]] +select = "cp3{7,8,9,10}-*" +manylinux-x86_64-image = "manylinux2010" +manylinux-i686-image = "manylinux2010" [tool.cibuildwheel.linux] before-all = "yum install -y libunwind-devel lz4-devel"