From: Federico Caselli Date: Wed, 10 Dec 2025 20:02:34 +0000 (+0100) Subject: Fix wheel pipeline X-Git-Tag: rel_2_0_46~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2bcd83f6b275f6f5758656e7e26f98f08b5df2e;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Fix wheel pipeline Change-Id: I97b47160b619a454e421a94396a2fb8116dada6e --- diff --git a/.github/workflows/create-wheels.yaml b/.github/workflows/create-wheels.yaml index 2cbd617c72..5ec6cf8f2e 100644 --- a/.github/workflows/create-wheels.yaml +++ b/.github/workflows/create-wheels.yaml @@ -20,7 +20,8 @@ jobs: matrix: # emulated wheels on linux take too much time, split wheels into multiple runs python: - - "cp37-* cp38-* cp39-*" + - "cp37-*" + - "cp38-* cp39-*" - "cp310-* cp311-*" - "cp312-* cp313-* cp314-*" - "cp313t-* cp314t-*" @@ -28,8 +29,7 @@ jobs: - compiled os: - "windows-2022" - # TODO: macos-14 uses arm macs (only python 3.10+) - make arm wheel on it - - "macos-13" + - "macos-15" - "ubuntu-22.04" - "ubuntu-22.04-arm" linux_archs: @@ -41,13 +41,15 @@ jobs: # create pure python build - os: ubuntu-22.04 wheel_mode: pure-python - python: "cp-312*" + python: "cp-313*" exclude: - os: "windows-2022" linux_archs: "aarch64" - - os: "macos-13" - linux_archs: "aarch64" + - os: "macos-15" + python: "cp37-*" + - os: "macos-15" + linux_archs: "x86_64" - os: "ubuntu-22.04" linux_archs: "aarch64" - os: "ubuntu-22.04-arm" @@ -80,12 +82,21 @@ jobs: # platforms: all - name: Build compiled wheels - if: ${{ matrix.wheel_mode == 'compiled' }} + if: ${{ matrix.wheel_mode == 'compiled' && matrix.python != 'cp37-*' }} uses: pypa/cibuildwheel@v3.3.0 env: CIBW_ARCHS_LINUX: ${{ matrix.linux_archs }} CIBW_BUILD: ${{ matrix.python }} - CIBW_ENABLE: ${{ matrix.python == 'cp313t-*' && 'cpython-freethreading' || '' }} + CIBW_ENABLE: ${{ matrix.python == 'cp313t-* cp314t-*' && 'cpython-freethreading' || '' }} + # setting it here does not work on linux + # PYTHONNOUSERSITE: "1" + + - name: Build compiled wheels 3.7 + if: ${{ matrix.wheel_mode == 'compiled' && matrix.python == 'cp37-*' }} + uses: pypa/cibuildwheel@v2.23.3 + env: + CIBW_ARCHS_LINUX: ${{ matrix.linux_archs }} + CIBW_BUILD: ${{ matrix.python }} # setting it here does not work on linux # PYTHONNOUSERSITE: "1" diff --git a/pyproject.toml b/pyproject.toml index 0af836aa30..a6f26e19eb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -230,11 +230,9 @@ build = "*" # python 3.6 is no longer supported by sqlalchemy # pypy uses the universal wheel fallback, since it does not use any compiled extension skip = "cp36-* pp*" -# TODO: remove this skip once action support arm macs -test-skip = "*-macosx_arm64" [tool.cibuildwheel.macos] -archs = ["x86_64", "arm64"] +archs = ["arm64"] # On an Linux Intel runner with qemu installed, build Intel and ARM wheels # NOTE: this is overriden in the pipeline using the CIBW_ARCHS_LINUX env variable to speed up the build