diff --git a/.github/workflows/build-kasa-crypt.yml b/.github/workflows/build-kasa-crypt.yml index b059a0d403b..b891b6eab50 100644 --- a/.github/workflows/build-kasa-crypt.yml +++ b/.github/workflows/build-kasa-crypt.yml @@ -49,15 +49,13 @@ jobs: build_wheels: needs: [setup] if: needs.setup.outputs.versions != '[]' - name: Build kasa-crypt ${{ matrix.version }} ${{ matrix.python }}-${{ matrix.libc }}_riscv64 + name: Build kasa-crypt ${{ matrix.version }} ${{ matrix.python }}-${{ matrix.platform }}_riscv64 runs-on: ubuntu-24.04-riscv timeout-minutes: 60 strategy: fail-fast: false matrix: - version: ${{ fromJSON(needs.setup.outputs.versions) }} - python: ["cp312", "cp313", "cp314", "cp314t"] - libc: [manylinux, musllinux] + include: ${{ fromJSON(needs.setup.outputs.matrix) }} env: KASA_CRYPT_VERSION: ${{ matrix.version }} @@ -73,7 +71,7 @@ jobs: - uses: pypa/cibuildwheel@1828c10ab37f080699c7b81cea34097c684a7074 # v4.2.0 env: CIBW_ARCHS: riscv64 - CIBW_BUILD: ${{ matrix.python }}-${{ matrix.libc }}_riscv64 + CIBW_BUILD: ${{ matrix.python }}-${{ matrix.platform }}_riscv64 CIBW_MANYLINUX_RISCV64_IMAGE: ${{ env.MANYLINUX_RISCV64_IMAGE }} CIBW_MUSLLINUX_RISCV64_IMAGE: ${{ env.MUSLLINUX_RISCV64_IMAGE }} # Upstream's job-level REQUIRE_CYTHON never reaches the Linux build container. @@ -87,7 +85,7 @@ jobs: - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: - name: kasa-crypt-${{ env.KASA_CRYPT_VERSION }}-${{ matrix.python }}-${{ matrix.libc }}_riscv64 + name: kasa-crypt-${{ env.KASA_CRYPT_VERSION }}-${{ matrix.python }}-${{ matrix.platform }}_riscv64 path: ./wheelhouse/*.whl if-no-files-found: error diff --git a/.github/workflows/build-lcm.yml b/.github/workflows/build-lcm.yml index b5b43beacf4..30d2a757519 100644 --- a/.github/workflows/build-lcm.yml +++ b/.github/workflows/build-lcm.yml @@ -49,15 +49,13 @@ jobs: build_wheels: needs: [setup] if: needs.setup.outputs.versions != '[]' - name: Build lcm ${{ matrix.version }} ${{ matrix.python }}-${{ matrix.libc }}_riscv64 + name: Build lcm ${{ matrix.version }} ${{ matrix.python }}-${{ matrix.platform }}_riscv64 runs-on: ubuntu-24.04-riscv timeout-minutes: 60 strategy: fail-fast: false matrix: - version: ${{ fromJSON(needs.setup.outputs.versions) }} - python: ["cp312", "cp313", "cp314", "cp314t"] - libc: [manylinux, musllinux] + include: ${{ fromJSON(needs.setup.outputs.matrix) }} env: LCM_VERSION: ${{ matrix.version }} @@ -73,7 +71,7 @@ jobs: - uses: pypa/cibuildwheel@1828c10ab37f080699c7b81cea34097c684a7074 # v4.2.0 with: output-dir: wheelhouse/ - only: ${{ matrix.python }}-${{ matrix.libc }}_riscv64 + only: ${{ matrix.python }}-${{ matrix.platform }}_riscv64 env: CIBW_MANYLINUX_RISCV64_IMAGE: ${{ env.MANYLINUX_RISCV64_IMAGE }} CIBW_MUSLLINUX_RISCV64_IMAGE: ${{ env.MUSLLINUX_RISCV64_IMAGE }} @@ -95,7 +93,7 @@ jobs: - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: - name: lcm-${{ matrix.version }}-${{ matrix.python }}-${{ matrix.libc }}_riscv64 + name: lcm-${{ matrix.version }}-${{ matrix.python }}-${{ matrix.platform }}_riscv64 path: wheelhouse/*.whl if-no-files-found: error diff --git a/.github/workflows/build-lhafile.yml b/.github/workflows/build-lhafile.yml index cb9e7d53710..e7df4acd032 100644 --- a/.github/workflows/build-lhafile.yml +++ b/.github/workflows/build-lhafile.yml @@ -49,16 +49,13 @@ jobs: build_wheels: needs: [setup] if: needs.setup.outputs.versions != '[]' - name: Build lhafile ${{ matrix.version }} ${{ matrix.python }}-${{ matrix.libc }}_riscv64 + name: Build lhafile ${{ matrix.version }} ${{ matrix.python }}-${{ matrix.platform }}_riscv64 runs-on: ubuntu-24.04-riscv timeout-minutes: 60 strategy: fail-fast: false matrix: - version: ${{ fromJSON(needs.setup.outputs.versions) }} - # Upstream's cibuildwheel 2.22.0 defaults build no free-threaded wheel. - python: ["cp312", "cp313", "cp314"] - libc: ["manylinux", "musllinux"] + include: ${{ fromJSON(needs.setup.outputs.matrix) }} env: LHAFILE_VERSION: ${{ matrix.version }} @@ -99,7 +96,7 @@ jobs: uses: pypa/cibuildwheel@1828c10ab37f080699c7b81cea34097c684a7074 # v4.2.0 with: output-dir: wheelhouse/ - only: ${{ matrix.python }}-${{ matrix.libc }}_riscv64 + only: ${{ matrix.python }}-${{ matrix.platform }}_riscv64 env: CIBW_MANYLINUX_RISCV64_IMAGE: ${{ env.MANYLINUX_RISCV64_IMAGE }} CIBW_MUSLLINUX_RISCV64_IMAGE: ${{ env.MUSLLINUX_RISCV64_IMAGE }} @@ -121,7 +118,7 @@ jobs: - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: - name: lhafile-${{ env.LHAFILE_VERSION }}-${{ matrix.python }}-${{ matrix.libc }}_riscv64 + name: lhafile-${{ env.LHAFILE_VERSION }}-${{ matrix.python }}-${{ matrix.platform }}_riscv64 path: ./wheelhouse/*.whl if-no-files-found: error diff --git a/.github/workflows/build-libscrc.yml b/.github/workflows/build-libscrc.yml index 6b6196c236b..edd80805933 100644 --- a/.github/workflows/build-libscrc.yml +++ b/.github/workflows/build-libscrc.yml @@ -48,16 +48,13 @@ jobs: build_wheels: needs: [setup] if: needs.setup.outputs.versions != '[]' - name: Build libscrc ${{ matrix.version }} ${{ matrix.python }}-${{ matrix.libc }}_riscv64 + name: Build libscrc ${{ matrix.version }} ${{ matrix.python }}-${{ matrix.platform }}_riscv64 runs-on: ubuntu-24.04-riscv timeout-minutes: 60 strategy: fail-fast: false matrix: - version: ${{ fromJSON(needs.setup.outputs.versions) }} - # Per-interpreter (not abi3): the extensions link the full C API. - python: ["cp312", "cp313", "cp314", "cp314t"] - libc: [manylinux, musllinux] + include: ${{ fromJSON(needs.setup.outputs.matrix) }} env: LIBSCRC_VERSION: ${{ matrix.version }} @@ -73,7 +70,7 @@ jobs: - uses: pypa/cibuildwheel@1828c10ab37f080699c7b81cea34097c684a7074 # v4.2.0 env: CIBW_ARCHS: riscv64 - CIBW_BUILD: ${{ matrix.python }}-${{ matrix.libc }}_riscv64 + CIBW_BUILD: ${{ matrix.python }}-${{ matrix.platform }}_riscv64 CIBW_MANYLINUX_RISCV64_IMAGE: ${{ env.MANYLINUX_RISCV64_IMAGE }} CIBW_MUSLLINUX_RISCV64_IMAGE: ${{ env.MUSLLINUX_RISCV64_IMAGE }} # Mirror upstream's own CI (build + `python -m libscrc.test.crc16`), @@ -93,7 +90,7 @@ jobs: - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: - name: libscrc-${{ env.LIBSCRC_VERSION }}-${{ matrix.python }}-${{ matrix.libc }}_riscv64 + name: libscrc-${{ env.LIBSCRC_VERSION }}-${{ matrix.python }}-${{ matrix.platform }}_riscv64 path: ./wheelhouse/*.whl if-no-files-found: error diff --git a/.github/workflows/build-libtorrent.yml b/.github/workflows/build-libtorrent.yml index 94228601f07..1dafed49bc9 100644 --- a/.github/workflows/build-libtorrent.yml +++ b/.github/workflows/build-libtorrent.yml @@ -48,16 +48,13 @@ jobs: build_wheels: needs: [setup] if: needs.setup.outputs.versions != '[]' - name: Build libtorrent ${{ matrix.version }} ${{ matrix.python }}-${{ matrix.libc }}_riscv64 + name: Build libtorrent ${{ matrix.version }} ${{ matrix.python }}-${{ matrix.platform }}_riscv64 runs-on: ubuntu-24.04-riscv timeout-minutes: 360 strategy: fail-fast: false matrix: - version: ${{ fromJSON(needs.setup.outputs.versions) }} - # No cp314t: upstream's pinned Boost 1.83 Boost.Python reads PyObject::ob_refcnt. - python: ["cp312", "cp313", "cp314"] - libc: [manylinux, musllinux] + include: ${{ fromJSON(needs.setup.outputs.matrix) }} env: LIBTORRENT_VERSION: ${{ matrix.version }} @@ -88,14 +85,14 @@ jobs: - uses: pypa/cibuildwheel@1828c10ab37f080699c7b81cea34097c684a7074 # v4.2.0 with: output-dir: wheelhouse/ - only: ${{ matrix.python }}-${{ matrix.libc }}_riscv64 + only: ${{ matrix.python }}-${{ matrix.platform }}_riscv64 env: CIBW_MANYLINUX_RISCV64_IMAGE: ${{ env.MANYLINUX_RISCV64_IMAGE }} CIBW_MUSLLINUX_RISCV64_IMAGE: ${{ env.MUSLLINUX_RISCV64_IMAGE }} # The image's OpenSSL 3.5 makes setup_openssl.sh skip its static build, and # Rocky 10 ships no libssl.a, so build upstream's pinned OpenSSL here instead. CIBW_BEFORE_BUILD_LINUX: >- - ${{ matrix.libc == 'manylinux' && 'yum install -y perl-core && + ${{ matrix.platform == 'manylinux' && 'yum install -y perl-core && . {project}/tools/cibuildwheel/manylinux/openssl-version.sh && curl -fsSL -o /tmp/openssl.tar.gz "$OPENSSL_DOWNLOAD_URL/$OPENSSL_ROOT.tar.gz" && echo "$OPENSSL_HASH /tmp/openssl.tar.gz" | sha256sum -c && @@ -104,7 +101,7 @@ jobs: ./Configure no-shared --prefix=/usr/local --libdir=lib && make -j"$(nproc)" build_sw && make install_sw' || '' }} # setup_ccache_on_manylinux.sh skips riscv64, so upstream's `ccache -s` has no ccache. - CIBW_BEFORE_TEST_LINUX: ${{ matrix.libc == 'musllinux' && 'ccache -s' || '' }} + CIBW_BEFORE_TEST_LINUX: ${{ matrix.platform == 'musllinux' && 'ccache -s' || '' }} - name: Check the wheel carries the extension and the licences run: | @@ -123,7 +120,7 @@ jobs: - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: - name: libtorrent-${{ env.LIBTORRENT_VERSION }}-${{ matrix.python }}-${{ matrix.libc }}_riscv64 + name: libtorrent-${{ env.LIBTORRENT_VERSION }}-${{ matrix.python }}-${{ matrix.platform }}_riscv64 path: wheelhouse/*.whl if-no-files-found: error diff --git a/.github/workflows/build-line-profiler.yml b/.github/workflows/build-line-profiler.yml index b1faaeccd58..b464ae44694 100644 --- a/.github/workflows/build-line-profiler.yml +++ b/.github/workflows/build-line-profiler.yml @@ -49,17 +49,13 @@ jobs: build_wheels: needs: [setup] if: needs.setup.outputs.versions != '[]' - name: Build line-profiler ${{ matrix.version }} ${{ matrix.python }}-${{ matrix.libc }}_riscv64 + name: Build line-profiler ${{ matrix.version }} ${{ matrix.python }}-${{ matrix.platform }}_riscv64 runs-on: ubuntu-24.04-riscv timeout-minutes: 90 strategy: fail-fast: false matrix: - version: ${{ fromJSON(needs.setup.outputs.versions) }} - # cp314t is excluded: upstream's own `[tool.cibuildwheel] build` list - # doesn't build it either. - python: ["cp312", "cp313", "cp314"] - libc: [manylinux, musllinux] + include: ${{ fromJSON(needs.setup.outputs.matrix) }} env: LINE_PROFILER_VERSION: ${{ matrix.version }} @@ -77,7 +73,7 @@ jobs: CIBW_ARCHS: riscv64 # Upstream 5.1.0 added `*-musllinux_*` to its pyproject skip list; we build musllinux. CIBW_SKIP: cp310-win_arm64 - CIBW_BUILD: ${{ matrix.python }}-${{ matrix.libc }}_riscv64 + CIBW_BUILD: ${{ matrix.python }}-${{ matrix.platform }}_riscv64 CIBW_MANYLINUX_RISCV64_IMAGE: ${{ env.MANYLINUX_RISCV64_IMAGE }} CIBW_MUSLLINUX_RISCV64_IMAGE: ${{ env.MUSLLINUX_RISCV64_IMAGE }} # Cython has no public riscv64 wheel; ours is in the registry. @@ -89,7 +85,7 @@ jobs: - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: - name: line-profiler-${{ env.LINE_PROFILER_VERSION }}-${{ matrix.python }}-${{ matrix.libc }}_riscv64 + name: line-profiler-${{ env.LINE_PROFILER_VERSION }}-${{ matrix.python }}-${{ matrix.platform }}_riscv64 path: ./wheelhouse/*.whl if-no-files-found: error diff --git a/.github/workflows/build-littlefs-python.yml b/.github/workflows/build-littlefs-python.yml index 1a26caf675e..dd87b5f07ad 100644 --- a/.github/workflows/build-littlefs-python.yml +++ b/.github/workflows/build-littlefs-python.yml @@ -49,19 +49,13 @@ jobs: build_wheels: needs: [setup] if: needs.setup.outputs.versions != '[]' - name: Build littlefs-python ${{ matrix.version }} ${{ matrix.python }}-${{ matrix.libc }}_riscv64 + name: Build littlefs-python ${{ matrix.version }} ${{ matrix.python }}-${{ matrix.platform }}_riscv64 runs-on: ubuntu-24.04-riscv timeout-minutes: 60 strategy: fail-fast: false matrix: - version: ${{ fromJSON(needs.setup.outputs.versions) }} - # No cp314t: the extension is a legacy (single-phase init) Cython module with - # no Py_mod_gil slot, and upstream builds no free-threaded wheels either, so a - # cp314t wheel would just silently re-enable the GIL (as build-python-rapidjson.yml - # notes for the same reason). - python: ["cp312", "cp313", "cp314"] - libc: [manylinux, musllinux] + include: ${{ fromJSON(needs.setup.outputs.matrix) }} env: LITTLEFS_PYTHON_VERSION: ${{ matrix.version }} @@ -85,7 +79,7 @@ jobs: - uses: pypa/cibuildwheel@1828c10ab37f080699c7b81cea34097c684a7074 # v4.2.0 env: CIBW_ARCHS: riscv64 - CIBW_BUILD: ${{ matrix.python }}-${{ matrix.libc }}_riscv64 + CIBW_BUILD: ${{ matrix.python }}-${{ matrix.platform }}_riscv64 CIBW_MANYLINUX_RISCV64_IMAGE: ${{ env.MANYLINUX_RISCV64_IMAGE }} CIBW_MUSLLINUX_RISCV64_IMAGE: ${{ env.MUSLLINUX_RISCV64_IMAGE }} CIBW_TEST_REQUIRES: pytest @@ -95,7 +89,7 @@ jobs: - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: - name: littlefs-python-${{ env.LITTLEFS_PYTHON_VERSION }}-${{ matrix.python }}-${{ matrix.libc }}_riscv64 + name: littlefs-python-${{ env.LITTLEFS_PYTHON_VERSION }}-${{ matrix.python }}-${{ matrix.platform }}_riscv64 path: ./wheelhouse/*.whl if-no-files-found: error diff --git a/.github/workflows/build-memory-allocator.yml b/.github/workflows/build-memory-allocator.yml index e8344d991ac..e23e483dae2 100644 --- a/.github/workflows/build-memory-allocator.yml +++ b/.github/workflows/build-memory-allocator.yml @@ -57,19 +57,13 @@ jobs: build_wheels: needs: [setup] if: needs.setup.outputs.versions != '[]' - name: Build memory-allocator ${{ matrix.version }} ${{ matrix.python }}-${{ matrix.libc }}_riscv64 + name: Build memory-allocator ${{ matrix.version }} ${{ matrix.python }}-${{ matrix.platform }}_riscv64 runs-on: ubuntu-24.04-riscv timeout-minutes: 30 strategy: fail-fast: false matrix: - version: ${{ fromJSON(needs.setup.outputs.versions) }} - python: ["cp312", "cp313", "cp314", "cp314t"] - libc: [manylinux, musllinux] - exclude: - # 0.2.1 raised requires-python to >=3.13, so there is no cp312 build. - - version: '0.2.1' - python: cp312 + include: ${{ fromJSON(needs.setup.outputs.matrix) }} env: MEMORY_ALLOCATOR_VERSION: ${{ matrix.version }} @@ -97,7 +91,7 @@ jobs: - uses: pypa/cibuildwheel@1828c10ab37f080699c7b81cea34097c684a7074 # v4.2.0 with: - only: ${{ matrix.python }}-${{ matrix.libc }}_riscv64 + only: ${{ matrix.python }}-${{ matrix.platform }}_riscv64 env: CIBW_MANYLINUX_RISCV64_IMAGE: ${{ env.MANYLINUX_RISCV64_IMAGE }} CIBW_MUSLLINUX_RISCV64_IMAGE: ${{ env.MUSLLINUX_RISCV64_IMAGE }} @@ -116,7 +110,7 @@ jobs: - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: - name: memory-allocator-${{ env.MEMORY_ALLOCATOR_VERSION }}-${{ matrix.python }}-${{ matrix.libc }}_riscv64 + name: memory-allocator-${{ env.MEMORY_ALLOCATOR_VERSION }}-${{ matrix.python }}-${{ matrix.platform }}_riscv64 path: ./wheelhouse/*.whl if-no-files-found: error diff --git a/.github/workflows/build-miniupnpc.yml b/.github/workflows/build-miniupnpc.yml index 3efa7df6406..535bdeea7b1 100644 --- a/.github/workflows/build-miniupnpc.yml +++ b/.github/workflows/build-miniupnpc.yml @@ -51,16 +51,13 @@ jobs: build_wheels: needs: [setup] if: needs.setup.outputs.versions != '[]' - name: Build miniupnpc ${{ matrix.version }} ${{ matrix.python }}-${{ matrix.libc }}_riscv64 + name: Build miniupnpc ${{ matrix.version }} ${{ matrix.python }}-${{ matrix.platform }}_riscv64 runs-on: ubuntu-24.04-riscv timeout-minutes: 60 strategy: fail-fast: false matrix: - version: ${{ fromJSON(needs.setup.outputs.versions) }} - # Plain PyModuleDef C extension, not abi3, matching upstream's per-interpreter wheels. - python: ["cp312", "cp313", "cp314", "cp314t"] - libc: [manylinux, musllinux] + include: ${{ fromJSON(needs.setup.outputs.matrix) }} env: MINIUPNPC_VERSION: ${{ matrix.version }} @@ -85,7 +82,7 @@ jobs: output-dir: wheelhouse/ env: CIBW_ARCHS: riscv64 - CIBW_BUILD: ${{ matrix.python }}-${{ matrix.libc }}_riscv64 + CIBW_BUILD: ${{ matrix.python }}-${{ matrix.platform }}_riscv64 CIBW_MANYLINUX_RISCV64_IMAGE: ${{ env.MANYLINUX_RISCV64_IMAGE }} CIBW_MUSLLINUX_RISCV64_IMAGE: ${{ env.MUSLLINUX_RISCV64_IMAGE }} # Mirrors upstream's own wheel-build "Import" smoke test; a real @@ -94,7 +91,7 @@ jobs: - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: - name: miniupnpc-${{ env.MINIUPNPC_VERSION }}-${{ matrix.python }}-${{ matrix.libc }}_riscv64 + name: miniupnpc-${{ env.MINIUPNPC_VERSION }}-${{ matrix.python }}-${{ matrix.platform }}_riscv64 path: wheelhouse/*.whl if-no-files-found: error diff --git a/.github/workflows/build-mlx.yml b/.github/workflows/build-mlx.yml index cecd3742bd9..804562c2fec 100644 --- a/.github/workflows/build-mlx.yml +++ b/.github/workflows/build-mlx.yml @@ -122,8 +122,7 @@ jobs: strategy: fail-fast: false matrix: - version: ${{ fromJSON(needs.setup.outputs.versions) }} - python: ["cp312", "cp313", "cp314", "cp314t"] + include: ${{ fromJSON(needs.setup.outputs.matrix) }} env: MLX_VERSION: ${{ matrix.version }} @@ -187,8 +186,7 @@ jobs: strategy: fail-fast: false matrix: - version: ${{ fromJSON(needs.setup.outputs.versions) }} - python: ["cp312", "cp313", "cp314", "cp314t"] + include: ${{ fromJSON(needs.setup.outputs.matrix) }} env: MLX_VERSION: ${{ matrix.version }} diff --git a/.github/workflows/build-moderngl.yml b/.github/workflows/build-moderngl.yml index f2b2f4a4983..332b1783055 100644 --- a/.github/workflows/build-moderngl.yml +++ b/.github/workflows/build-moderngl.yml @@ -48,15 +48,13 @@ jobs: build_wheels: needs: [setup] if: needs.setup.outputs.versions != '[]' - name: Build moderngl ${{ matrix.version }} ${{ matrix.python }}-${{ matrix.libc }}_riscv64 + name: Build moderngl ${{ matrix.version }} ${{ matrix.python }}-${{ matrix.platform }}_riscv64 runs-on: ubuntu-24.04-riscv timeout-minutes: 60 strategy: fail-fast: false matrix: - version: ${{ fromJSON(needs.setup.outputs.versions) }} - python: ["cp312", "cp313", "cp314", "cp314t"] - libc: [manylinux, musllinux] + include: ${{ fromJSON(needs.setup.outputs.matrix) }} env: MODERNGL_VERSION: ${{ matrix.version }} @@ -72,7 +70,7 @@ jobs: - uses: pypa/cibuildwheel@1828c10ab37f080699c7b81cea34097c684a7074 # v4.2.0 with: output-dir: wheelhouse/ - only: ${{ matrix.python }}-${{ matrix.libc }}_riscv64 + only: ${{ matrix.python }}-${{ matrix.platform }}_riscv64 env: CIBW_MANYLINUX_RISCV64_IMAGE: ${{ env.MANYLINUX_RISCV64_IMAGE }} CIBW_MUSLLINUX_RISCV64_IMAGE: ${{ env.MUSLLINUX_RISCV64_IMAGE }} @@ -84,8 +82,8 @@ jobs: # test_local.py asserts the tests dir sits next to an editable install # (upstream's own Containerfile runs `setup.py build_ext --inplace` # first); it never holds for a wheel installed into its own venv. - CIBW_TEST_REQUIRES: ${{ matrix.libc == 'manylinux' && 'pytest numpy scipy PyOpenGL' || '' }} - CIBW_TEST_COMMAND: ${{ matrix.libc == 'manylinux' && 'python -m pytest {project}/tests -v -k "not test_local"' || 'python3 -c ''from glcontext import egl; import moderngl; ctx = moderngl.create_context(standalone=True, context=egl.create_context(glversion=330, mode="standalone")); print(ctx.info); ctx.release()''' }} + CIBW_TEST_REQUIRES: ${{ matrix.platform == 'manylinux' && 'pytest numpy scipy PyOpenGL' || '' }} + CIBW_TEST_COMMAND: ${{ matrix.platform == 'manylinux' && 'python -m pytest {project}/tests -v -k "not test_local"' || 'python3 -c ''from glcontext import egl; import moderngl; ctx = moderngl.create_context(standalone=True, context=egl.create_context(glversion=330, mode="standalone")); print(ctx.info); ctx.release()''' }} - name: Check the compiled extension made it into the wheel run: | @@ -99,7 +97,7 @@ jobs: - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: - name: moderngl-${{ env.MODERNGL_VERSION }}-${{ matrix.python }}-${{ matrix.libc }}_riscv64 + name: moderngl-${{ env.MODERNGL_VERSION }}-${{ matrix.python }}-${{ matrix.platform }}_riscv64 path: ./wheelhouse/*.whl if-no-files-found: error diff --git a/.github/workflows/build-mutf8.yml b/.github/workflows/build-mutf8.yml index cc53c14c704..ab449231116 100644 --- a/.github/workflows/build-mutf8.yml +++ b/.github/workflows/build-mutf8.yml @@ -49,15 +49,13 @@ jobs: build_wheels: needs: [setup] if: needs.setup.outputs.versions != '[]' - name: Build mutf8 ${{ matrix.version }} ${{ matrix.python }}-${{ matrix.libc }}_riscv64 + name: Build mutf8 ${{ matrix.version }} ${{ matrix.python }}-${{ matrix.platform }}_riscv64 runs-on: ubuntu-24.04-riscv timeout-minutes: 60 strategy: fail-fast: false matrix: - version: ${{ fromJSON(needs.setup.outputs.versions) }} - python: ["cp312", "cp313", "cp314", "cp314t"] - libc: [manylinux, musllinux] + include: ${{ fromJSON(needs.setup.outputs.matrix) }} env: MUTF8_VERSION: ${{ matrix.version }} @@ -73,7 +71,7 @@ jobs: - uses: pypa/cibuildwheel@1828c10ab37f080699c7b81cea34097c684a7074 # v4.2.0 env: CIBW_ARCHS: riscv64 - CIBW_BUILD: ${{ matrix.python }}-${{ matrix.libc }}_riscv64 + CIBW_BUILD: ${{ matrix.python }}-${{ matrix.platform }}_riscv64 CIBW_MANYLINUX_RISCV64_IMAGE: ${{ env.MANYLINUX_RISCV64_IMAGE }} CIBW_MUSLLINUX_RISCV64_IMAGE: ${{ env.MUSLLINUX_RISCV64_IMAGE }} # ext-modules is optional=true (falls back to the pure-Python mutf8/mutf8.py on @@ -85,7 +83,7 @@ jobs: - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: - name: mutf8-${{ env.MUTF8_VERSION }}-${{ matrix.python }}-${{ matrix.libc }}_riscv64 + name: mutf8-${{ env.MUTF8_VERSION }}-${{ matrix.python }}-${{ matrix.platform }}_riscv64 path: ./wheelhouse/*.whl if-no-files-found: error diff --git a/.github/workflows/build-mwparserfromhell.yml b/.github/workflows/build-mwparserfromhell.yml index 908debf3600..2af41e9a8cf 100644 --- a/.github/workflows/build-mwparserfromhell.yml +++ b/.github/workflows/build-mwparserfromhell.yml @@ -48,18 +48,13 @@ jobs: build_wheels: needs: [setup] if: needs.setup.outputs.versions != '[]' - name: Build mwparserfromhell ${{ matrix.version }} ${{ matrix.python }}-${{ matrix.libc }}_riscv64 + name: Build mwparserfromhell ${{ matrix.version }} ${{ matrix.python }}-${{ matrix.platform }}_riscv64 runs-on: ubuntu-24.04-riscv timeout-minutes: 60 strategy: fail-fast: false matrix: - version: ${{ fromJSON(needs.setup.outputs.versions) }} - # cp314t excluded: the C tokenizer segfaults under Py_GIL_DISABLED - # (upstream issue earwig/mwparserfromhell#343, still open), matching - # upstream's own scope - PyPI ships no cp314 or cp314t wheel either. - python: ["cp312", "cp313", "cp314"] - libc: [manylinux, musllinux] + include: ${{ fromJSON(needs.setup.outputs.matrix) }} env: MWPARSERFROMHELL_VERSION: ${{ matrix.version }} @@ -76,7 +71,7 @@ jobs: - uses: pypa/cibuildwheel@1828c10ab37f080699c7b81cea34097c684a7074 # v4.2.0 env: CIBW_ARCHS: riscv64 - CIBW_BUILD: ${{ matrix.python }}-${{ matrix.libc }}_riscv64 + CIBW_BUILD: ${{ matrix.python }}-${{ matrix.platform }}_riscv64 CIBW_MANYLINUX_RISCV64_IMAGE: ${{ env.MANYLINUX_RISCV64_IMAGE }} CIBW_MUSLLINUX_RISCV64_IMAGE: ${{ env.MUSLLINUX_RISCV64_IMAGE }} # Overriding CIBW_ENVIRONMENT replaces (not merges with) pyproject's @@ -89,7 +84,7 @@ jobs: - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: - name: mwparserfromhell-${{ env.MWPARSERFROMHELL_VERSION }}-${{ matrix.python }}-${{ matrix.libc }}_riscv64 + name: mwparserfromhell-${{ env.MWPARSERFROMHELL_VERSION }}-${{ matrix.python }}-${{ matrix.platform }}_riscv64 path: ./wheelhouse/*.whl if-no-files-found: error diff --git a/.github/workflows/build-nanoarrow.yml b/.github/workflows/build-nanoarrow.yml index a69380877ef..a92d80faa9c 100644 --- a/.github/workflows/build-nanoarrow.yml +++ b/.github/workflows/build-nanoarrow.yml @@ -48,15 +48,13 @@ jobs: build_wheels: needs: [setup] if: needs.setup.outputs.versions != '[]' - name: Build nanoarrow ${{ matrix.version }} ${{ matrix.python }}-${{ matrix.libc }}_riscv64 + name: Build nanoarrow ${{ matrix.version }} ${{ matrix.python }}-${{ matrix.platform }}_riscv64 runs-on: ubuntu-24.04-riscv timeout-minutes: 90 strategy: fail-fast: false matrix: - version: ${{ fromJSON(needs.setup.outputs.versions) }} - python: ["cp312", "cp313", "cp314", "cp314t"] - libc: [manylinux, musllinux] + include: ${{ fromJSON(needs.setup.outputs.matrix) }} env: NANOARROW_VERSION: ${{ matrix.version }} @@ -84,7 +82,7 @@ jobs: with: package-dir: python output-dir: wheelhouse/ - only: ${{ matrix.python }}-${{ matrix.libc }}_riscv64 + only: ${{ matrix.python }}-${{ matrix.platform }}_riscv64 env: CIBW_MANYLINUX_RISCV64_IMAGE: ${{ env.MANYLINUX_RISCV64_IMAGE }} CIBW_MUSLLINUX_RISCV64_IMAGE: ${{ env.MUSLLINUX_RISCV64_IMAGE }} @@ -92,7 +90,7 @@ jobs: PIP_EXTRA_INDEX_URL=https://pypi.riseproject.dev/simple/ PIP_ONLY_BINARY=numpy,pyarrow # The test extra (as in upstream's python.yaml) needs numpy/pyarrow, which have no musllinux_riscv64 wheels. - CIBW_TEST_EXTRAS: ${{ matrix.libc == 'manylinux' && 'test' || '' }} + CIBW_TEST_EXTRAS: ${{ matrix.platform == 'manylinux' && 'test' || '' }} CIBW_TEST_REQUIRES: pytest CIBW_TEST_COMMAND: >- python -c "import importlib.metadata as md; lic = {p.name for p in md.files('nanoarrow') if '.dist-info/licenses/' in str(p)}; assert {'LICENSE.txt', 'NOTICE.txt', 'LICENSE.zstd', 'LICENSE.lz4'} <= lic, lic" @@ -100,7 +98,7 @@ jobs: - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: - name: nanoarrow-${{ env.NANOARROW_VERSION }}-${{ matrix.python }}-${{ matrix.libc }}_riscv64 + name: nanoarrow-${{ env.NANOARROW_VERSION }}-${{ matrix.python }}-${{ matrix.platform }}_riscv64 path: wheelhouse/*.whl if-no-files-found: error