From fe9556456ad3d709ac7c201f4fa746fd51e21f6f Mon Sep 17 00:00:00 2001 From: Ludovic Henry Date: Wed, 18 Nov 2026 00:12:13 +0000 Subject: [PATCH 01/14] ci(kasa-crypt): use needs.setup.outputs.matrix instead of hardcoded python/libc Replaces the hardcoded strategy.matrix python/libc arrays in build_wheels with include: ${{ fromJSON(needs.setup.outputs.matrix) }}, derived from docs/packages/kasa-crypt.yaml, and renames matrix.libc to matrix.platform to match. adds cp310/cp311 (previously unbuilt despite docs/packages/kasa-crypt.yaml declaring them) --- .github/workflows/build-kasa-crypt.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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 From 0d01e1ee5ff1d8023070e64f23aaca0e5ec3105d Mon Sep 17 00:00:00 2001 From: Ludovic Henry Date: Wed, 18 Nov 2026 00:12:13 +0000 Subject: [PATCH 02/14] ci(lcm): use needs.setup.outputs.matrix instead of hardcoded python/libc Replaces the hardcoded strategy.matrix python/libc arrays in build_wheels with include: ${{ fromJSON(needs.setup.outputs.matrix) }}, derived from docs/packages/lcm.yaml, and renames matrix.libc to matrix.platform to match. adds cp310/cp311; drops cp314t (not declared in docs/packages/lcm.yaml for 1.5.2) --- .github/workflows/build-lcm.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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 From de32a640299b689d660eef47377f12319a251761 Mon Sep 17 00:00:00 2001 From: Ludovic Henry Date: Wed, 18 Nov 2026 00:12:13 +0000 Subject: [PATCH 03/14] ci(lhafile): use needs.setup.outputs.matrix instead of hardcoded python/libc Replaces the hardcoded strategy.matrix python/libc arrays in build_wheels with include: ${{ fromJSON(needs.setup.outputs.matrix) }}, derived from docs/packages/lhafile.yaml, and renames matrix.libc to matrix.platform to match. adds cp310/cp311; drops cp314 (not declared in docs/packages/lhafile.yaml for 0.3.1) --- .github/workflows/build-lhafile.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) 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 From 8e69c3cf4c1d9afbbed051a09b5906639f622567 Mon Sep 17 00:00:00 2001 From: Ludovic Henry Date: Wed, 18 Nov 2026 00:12:13 +0000 Subject: [PATCH 04/14] ci(libscrc): use needs.setup.outputs.matrix instead of hardcoded python/libc Replaces the hardcoded strategy.matrix python/libc arrays in build_wheels with include: ${{ fromJSON(needs.setup.outputs.matrix) }}, derived from docs/packages/libscrc.yaml, and renames matrix.libc to matrix.platform to match. adds cp310/cp311 (musllinux only where declared); drops cp313/cp314/cp314t (not declared in docs/packages/libscrc.yaml for 1.8.1) --- .github/workflows/build-libscrc.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) 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 From b243f8b3e1925474a8565b5a86303d0351691516 Mon Sep 17 00:00:00 2001 From: Ludovic Henry Date: Wed, 18 Nov 2026 00:12:13 +0000 Subject: [PATCH 05/14] ci(libtorrent): use needs.setup.outputs.matrix instead of hardcoded python/libc Replaces the hardcoded strategy.matrix python/libc arrays in build_wheels with include: ${{ fromJSON(needs.setup.outputs.matrix) }}, derived from docs/packages/libtorrent.yaml, and renames matrix.libc to matrix.platform to match. adds cp310/cp311; drops cp314 (not declared in docs/packages/libtorrent.yaml for 2.1.1) --- .github/workflows/build-libtorrent.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) 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 From d559e4c1ef8ab37fcc2bcfff198f9d189c13b8a2 Mon Sep 17 00:00:00 2001 From: Ludovic Henry Date: Wed, 18 Nov 2026 00:12:13 +0000 Subject: [PATCH 06/14] ci(line-profiler): use needs.setup.outputs.matrix instead of hardcoded python/libc Replaces the hardcoded strategy.matrix python/libc arrays in build_wheels with include: ${{ fromJSON(needs.setup.outputs.matrix) }}, derived from docs/packages/line-profiler.yaml, and renames matrix.libc to matrix.platform to match. adds cp310/cp311/cp315 for 5.1.0; drops musllinux entirely for 5.1.0 (not declared in docs/packages/line-profiler.yaml, though a comment there says musllinux is intentionally still built); also fixes a version/python cross-product so 5.0.2 and 5.1.0 no longer share one hardcoded list --- .github/workflows/build-line-profiler.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) 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 From 7d9b535d008a6cb452d17ee3a00fb43f59bb974b Mon Sep 17 00:00:00 2001 From: Ludovic Henry Date: Wed, 18 Nov 2026 00:12:14 +0000 Subject: [PATCH 07/14] ci(littlefs-python): use needs.setup.outputs.matrix instead of hardcoded python/libc Replaces the hardcoded strategy.matrix python/libc arrays in build_wheels with include: ${{ fromJSON(needs.setup.outputs.matrix) }}, derived from docs/packages/littlefs-python.yaml, and renames matrix.libc to matrix.platform to match. adds cp310/cp311 (no cp314t change, matches existing exclusion) --- .github/workflows/build-littlefs-python.yml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) 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 From 514ff6d68fb68aea04f8eb39828ba544fab88293 Mon Sep 17 00:00:00 2001 From: Ludovic Henry Date: Wed, 18 Nov 2026 00:12:14 +0000 Subject: [PATCH 08/14] ci(memory-allocator): use needs.setup.outputs.matrix instead of hardcoded python/libc Replaces the hardcoded strategy.matrix python/libc arrays in build_wheels with include: ${{ fromJSON(needs.setup.outputs.matrix) }}, derived from docs/packages/memory-allocator.yaml, and renames matrix.libc to matrix.platform to match. per-version files already encode the 0.2.1 cp312 gap, so the old 'exclude:' stanza is now redundant and dropped --- .github/workflows/build-memory-allocator.yml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) 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 From 95f9d04e38e5040f926ac46a34541d4b9db76a4f Mon Sep 17 00:00:00 2001 From: Ludovic Henry Date: Wed, 18 Nov 2026 00:12:14 +0000 Subject: [PATCH 09/14] ci(miniupnpc): use needs.setup.outputs.matrix instead of hardcoded python/libc Replaces the hardcoded strategy.matrix python/libc arrays in build_wheels with include: ${{ fromJSON(needs.setup.outputs.matrix) }}, derived from docs/packages/miniupnpc.yaml, and renames matrix.libc to matrix.platform to match. adds cp310/cp311 (manylinux only, matching docs/packages/miniupnpc.yaml); drops cp314/cp314t (not declared) --- .github/workflows/build-miniupnpc.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) 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 From eca22858dccb6f9a2e722a2f9aaff1d14bbb1437 Mon Sep 17 00:00:00 2001 From: Ludovic Henry Date: Wed, 18 Nov 2026 00:12:14 +0000 Subject: [PATCH 10/14] ci(mlx): use needs.setup.outputs.matrix instead of hardcoded python/libc Replaces the hardcoded strategy.matrix python/libc arrays in build_wheels with include: ${{ fromJSON(needs.setup.outputs.matrix) }}, derived from docs/packages/mlx.yaml, and renames matrix.libc to matrix.platform to match. build_frontend/test_wheels gain cp310/cp311 and (for 0.32.4) cp315/cp315t, and per-version correctness replaces one hardcoded list shared across all pending versions; build_backend is untouched (version-only, no python dimension) --- .github/workflows/build-mlx.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 }} From 11efd9ee840d96cea8327e36d71e60645c230a25 Mon Sep 17 00:00:00 2001 From: Ludovic Henry Date: Wed, 18 Nov 2026 00:12:14 +0000 Subject: [PATCH 11/14] ci(moderngl): use needs.setup.outputs.matrix instead of hardcoded python/libc Replaces the hardcoded strategy.matrix python/libc arrays in build_wheels with include: ${{ fromJSON(needs.setup.outputs.matrix) }}, derived from docs/packages/moderngl.yaml, and renames matrix.libc to matrix.platform to match. fixes a real cross-product bug: the old hardcoded list applied cp314/cp314t to ALL pending versions including 5.12.0, which docs/packages/moderngl.yaml does not declare them for; also adds cp310/cp311 and (for 5.13.0) cp315/cp315t --- .github/workflows/build-moderngl.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) 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 From 8eefc7d3f963a8dc5f43da5708c53bbb254e57b8 Mon Sep 17 00:00:00 2001 From: Ludovic Henry Date: Wed, 18 Nov 2026 00:12:14 +0000 Subject: [PATCH 12/14] ci(mutf8): use needs.setup.outputs.matrix instead of hardcoded python/libc Replaces the hardcoded strategy.matrix python/libc arrays in build_wheels with include: ${{ fromJSON(needs.setup.outputs.matrix) }}, derived from docs/packages/mutf8.yaml, and renames matrix.libc to matrix.platform to match. adds cp310/cp311, otherwise unchanged --- .github/workflows/build-mutf8.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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 From 91fd6682f8ee433fed9b220168ad68d9be37e36f Mon Sep 17 00:00:00 2001 From: Ludovic Henry Date: Wed, 18 Nov 2026 00:12:14 +0000 Subject: [PATCH 13/14] ci(mwparserfromhell): use needs.setup.outputs.matrix instead of hardcoded python/libc Replaces the hardcoded strategy.matrix python/libc arrays in build_wheels with include: ${{ fromJSON(needs.setup.outputs.matrix) }}, derived from docs/packages/mwparserfromhell.yaml, and renames matrix.libc to matrix.platform to match. drops cp314 (the existing comment already says 'PyPI ships no cp314 wheel either', so the hardcoded list building cp314 anyway was itself a bug this fixes); adds cp310/cp311 --- .github/workflows/build-mwparserfromhell.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) 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 From 36f0355823f2ccca6adde877757b4257698ba608 Mon Sep 17 00:00:00 2001 From: Ludovic Henry Date: Wed, 18 Nov 2026 00:12:15 +0000 Subject: [PATCH 14/14] ci(nanoarrow): use needs.setup.outputs.matrix instead of hardcoded python/libc Replaces the hardcoded strategy.matrix python/libc arrays in build_wheels with include: ${{ fromJSON(needs.setup.outputs.matrix) }}, derived from docs/packages/nanoarrow.yaml, and renames matrix.libc to matrix.platform to match. adds cp310/cp311, otherwise unchanged --- .github/workflows/build-nanoarrow.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) 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