diff --git a/.github/workflows/build-demoparser2.yml b/.github/workflows/build-demoparser2.yml index e67e1d831bd..b3e5aee4fdd 100644 --- a/.github/workflows/build-demoparser2.yml +++ b/.github/workflows/build-demoparser2.yml @@ -44,27 +44,28 @@ jobs: with: package: demoparser2 version: ${{ inputs.version }} + # cp310/cp311 are declared in docs/packages/demoparser2.yaml but were never + # part of this workflow's own build scope (cp312+ only); dropped here to + # keep that scope unchanged. cp39 stays excluded by _setup.yml's own default. + python-exclude: 'cp39 cp310 cp311' build_wheels: needs: [setup] if: needs.setup.outputs.versions != '[]' - name: Build demoparser2 ${{ matrix.version }} ${{ matrix.python }}-manylinux_riscv64 + name: Build demoparser2 ${{ matrix.version }} ${{ matrix.python }}-${{ matrix.platform }}_riscv64 runs-on: ubuntu-24.04-riscv timeout-minutes: 300 strategy: fail-fast: false matrix: - version: ${{ fromJSON(needs.setup.outputs.versions) }} # demoparser2's pyo3 dependency has a plain `features = ["extension-module", # "generate-import-lib"]` (no abi3-pyNN), so every interpreter needs its own build. - python: ["cp312", "cp313", "cp314", "cp314t"] - include: - # demoparser2's own Requires-Dist hard-pins pandas, which ships no cp314t - # wheel at all (any version, our registry or PyPI) -- cibuildwheel's own - # test-install step fails resolving it before CIBW_TEST_COMMAND even runs, - # so the wheel builds fine but the test phase must be skipped here. - - python: "cp314t" - test_skip: "*" + # + # docs/packages/demoparser2.yaml declares no 3.14t file target, so + # needs.setup.outputs.matrix never produces a cp314t leg (this package never + # advertised one to build from); the CIBW_TEST_SKIP workaround that leg alone + # needed goes with it. See the PR description for how this was verified. + include: ${{ fromJSON(needs.setup.outputs.matrix) }} env: DEMOPARSER2_VERSION: ${{ matrix.version }} @@ -83,7 +84,7 @@ jobs: package-dir: src/python output-dir: wheelhouse/ env: - CIBW_BUILD: ${{ matrix.python }}-manylinux_riscv64 + CIBW_BUILD: ${{ matrix.python }}-${{ matrix.platform }}_riscv64 CIBW_MANYLINUX_RISCV64_IMAGE: ${{ env.MANYLINUX_RISCV64_IMAGE }} # demoparser2 ships no [tool.cibuildwheel], so the Rust toolchain its maturin # backend needs is installed in-container here. Upstream's own before-script-linux @@ -130,11 +131,10 @@ jobs: CIBW_TEST_COMMAND: >- python -c "import demoparser2.demoparser2 as m; assert m.__file__.endswith('.so'), m.__file__" && cd src/python && python tests/signature_tests.py - CIBW_TEST_SKIP: ${{ matrix.test_skip }} - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: - name: demoparser2-${{ env.DEMOPARSER2_VERSION }}-${{ matrix.python }}-manylinux_riscv64 + name: demoparser2-${{ env.DEMOPARSER2_VERSION }}-${{ matrix.python }}-${{ matrix.platform }}_riscv64 path: wheelhouse/*.whl if-no-files-found: error diff --git a/.github/workflows/build-ormar-utils.yml b/.github/workflows/build-ormar-utils.yml index 6ca21c8aa5d..b05ba317018 100644 --- a/.github/workflows/build-ormar-utils.yml +++ b/.github/workflows/build-ormar-utils.yml @@ -44,38 +44,42 @@ jobs: with: package: ormar-utils version: ${{ inputs.version }} + # pyo3 carries abi3-py310 unconditionally (Cargo.toml), so the generated + # matrix would otherwise pick cp310 (the oldest available interpreter at or + # above that floor) as the build interpreter; cp310/cp311 are dropped so + # cp312 -- this workflow's own established floor -- is picked instead, and + # that one build serves every non-free-threaded CPython, cp314 included, + # via abi3 forward compatibility. cp39 stays excluded by _setup.yml's own + # default. + # + # cp314t is dropped too (gotcha 322/326), though not through python-exclude: + # docs/packages/ormar-utils.yaml declares no 3.14-abi3/3.14t file target at + # all, so needs.setup.outputs.matrix never produces that leg. v0.2.1's + # Cargo.lock pins pyo3 0.23.5, whose pyo3-ffi build script hard-errors "The + # configured Python interpreter version (3.14) is newer than PyO3's maximum + # supported version (3.13)" for any free-threaded interpreter. Unlike a + # non-free-threaded cp314 build (where PYO3_USE_ABI3_FORWARD_COMPATIBILITY=1 + # would clear the same check), this specific check is unconditional for + # Py_GIL_DISABLED builds and cannot be suppressed by any env var (confirmed + # by reading pyo3-ffi 0.23.5's build.rs directly). It reproduces identically + # on every architecture, not just riscv64: upstream's own CI (ci.yml) never + # builds or tests a free-threaded interpreter for this package either. pyo3 + # 0.30.1 raises the ceiling to 3.15 and would fix this, but bumping a pinned + # dependency without being able to empirically verify the resulting compile + # is a real source change, not a CI knob - so cp314t stays dropped to match + # upstream's own tested scope instead. + python-exclude: 'cp39 cp310 cp311' build_wheels: needs: [setup] if: needs.setup.outputs.versions != '[]' - name: Build ormar-utils ${{ matrix.version }} ${{ matrix.python }}-${{ matrix.libc }}_riscv64 + name: Build ormar-utils ${{ 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) }} - # pyo3 carries abi3-py310 unconditionally (Cargo.toml), so one cp312 - # build (our floor) serves every non-free-threaded CPython, cp314 - # included, via abi3 forward compatibility. - # - # cp314t is dropped (gotcha 322/326): v0.2.1's Cargo.lock pins pyo3 - # 0.23.5, whose pyo3-ffi build script hard-errors "The configured - # Python interpreter version (3.14) is newer than PyO3's maximum - # supported version (3.13)" for any free-threaded interpreter. Unlike - # a non-free-threaded cp314 build (where PYO3_USE_ABI3_FORWARD_COMPATIBILITY=1 - # would clear the same check), this specific check is unconditional - # for Py_GIL_DISABLED builds and cannot be suppressed by any env var - # (confirmed by reading pyo3-ffi 0.23.5's build.rs directly). It - # reproduces identically on every architecture, not just riscv64: - # upstream's own CI (ci.yml) never builds or tests a free-threaded - # interpreter for this package either. pyo3 0.30.1 raises the - # ceiling to 3.15 and would fix this, but bumping a pinned - # dependency without being able to empirically verify the resulting - # compile is a real source change, not a CI knob - so cp314t is - # dropped here to match upstream's own tested scope instead. - python: ["cp312"] - libc: [manylinux, musllinux] + include: ${{ fromJSON(needs.setup.outputs.matrix) }} env: ORMAR_UTILS_VERSION: ${{ matrix.version }} @@ -91,7 +95,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_BEFORE_ALL_LINUX: >- @@ -102,7 +106,7 @@ jobs: - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: - name: ormar-utils-${{ env.ORMAR_UTILS_VERSION }}-${{ matrix.python }}-${{ matrix.libc }}_riscv64 + name: ormar-utils-${{ env.ORMAR_UTILS_VERSION }}-${{ matrix.python }}-${{ matrix.platform }}_riscv64 path: ./wheelhouse/*.whl if-no-files-found: error