Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 7 additions & 15 deletions .github/workflows/build-thinc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ permissions:

env:
MANYLINUX_RISCV64_IMAGE: quay.io/pypa/manylinux_2_39_riscv64
MUSLLINUX_RISCV64_IMAGE: quay.io/pypa/musllinux_1_2_riscv64

jobs:
setup:
Expand All @@ -50,23 +51,13 @@ jobs:
build_wheels:
needs: [setup]
if: needs.setup.outputs.versions != '[]'
name: Build thinc ${{ matrix.version }} ${{ matrix.python }}-manylinux_riscv64
name: Build thinc ${{ 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) }}
# 9.1.1 pins `cython>=0.25,<3.0`, and Cython 0.29 emits calls to the
# pre-3.13 `_PyLong_AsByteArray` signature, so cp313+ cannot compile.
# Upstream ships cp39-cp312 wheels for this release for the same reason;
# 10.0.0 moved to Cython 3 and builds on every interpreter.
python: ["cp312", "cp313", "cp314"]
exclude:
- version: 9.1.1
python: cp313
- version: 9.1.1
python: cp314
include: ${{ fromJSON(needs.setup.outputs.matrix) }}

env:
THINC_VERSION: ${{ matrix.version }}
Expand Down Expand Up @@ -132,9 +123,10 @@ jobs:
uses: pypa/cibuildwheel@1828c10ab37f080699c7b81cea34097c684a7074 # v4.2.0
with:
output-dir: wheelhouse/
only: ${{ matrix.python }}-manylinux_riscv64
only: ${{ matrix.python }}-${{ matrix.platform }}_riscv64
env:
CIBW_MANYLINUX_RISCV64_IMAGE: ${{ env.MANYLINUX_RISCV64_IMAGE }}
CIBW_MUSLLINUX_RISCV64_IMAGE: ${{ env.MUSLLINUX_RISCV64_IMAGE }}
# numpy has no riscv64 wheel on public PyPI; the build and the test
# environment both resolve it from our registry.
CIBW_ENVIRONMENT: PIP_EXTRA_INDEX_URL=https://pypi.riseproject.dev/simple/
Expand Down Expand Up @@ -172,7 +164,7 @@ jobs:

- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: thinc-${{ env.THINC_VERSION }}-${{ matrix.python }}-manylinux_riscv64
name: thinc-${{ env.THINC_VERSION }}-${{ matrix.python }}-${{ matrix.platform }}_riscv64
path: wheelhouse/*.whl
if-no-files-found: error

Expand All @@ -192,4 +184,4 @@ jobs:
app-private-key: ${{ secrets.RISEPROJECT_APP_PRIVATE_KEY }}
with:
matrix: ${{ needs.setup.outputs.matrix }}
artifact-pattern: thinc-${{ matrix.version }}-*-manylinux_riscv64
artifact-pattern: thinc-${{ matrix.version }}-*riscv64
10 changes: 4 additions & 6 deletions .github/workflows/build-thriftpy2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,13 @@ jobs:
build_wheels:
needs: [setup]
if: needs.setup.outputs.versions != '[]'
name: Build thriftpy2 ${{ matrix.version }} ${{ matrix.python }}-${{ matrix.libc }}_riscv64
name: Build thriftpy2 ${{ 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:
THRIFTPY2_VERSION: ${{ matrix.version }}
Expand All @@ -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 }}
Expand Down Expand Up @@ -115,7 +113,7 @@ jobs:

- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: thriftpy2-${{ env.THRIFTPY2_VERSION }}-${{ matrix.python }}-${{ matrix.libc }}_riscv64
name: thriftpy2-${{ env.THRIFTPY2_VERSION }}-${{ matrix.python }}-${{ matrix.platform }}_riscv64
path: ./wheelhouse/*.whl
if-no-files-found: error

Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/build-traits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,13 @@ jobs:
build_wheels:
needs: [setup]
if: needs.setup.outputs.versions != '[]'
name: Build traits ${{ matrix.version }} ${{ matrix.python }}-${{ matrix.libc }}_riscv64
name: Build traits ${{ 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:
TRAITS_VERSION: ${{ matrix.version }}
Expand All @@ -84,7 +82,7 @@ jobs:
- name: Build and test wheel
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 }}
# traits/tests is a real subpackage shipped in the wheel (setup.py's
Expand All @@ -105,13 +103,13 @@ jobs:
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: traits-${{ env.TRAITS_VERSION }}-${{ matrix.python }}-${{ matrix.libc }}_riscv64-log
name: traits-${{ env.TRAITS_VERSION }}-${{ matrix.python }}-${{ matrix.platform }}_riscv64-log
path: cibuildwheel.log
if-no-files-found: warn

- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: traits-${{ env.TRAITS_VERSION }}-${{ matrix.python }}-${{ matrix.libc }}_riscv64
name: traits-${{ env.TRAITS_VERSION }}-${{ matrix.python }}-${{ matrix.platform }}_riscv64
path: ./wheelhouse/*.whl
if-no-files-found: error

Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/build-turbohtml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,13 @@ jobs:
build_wheels:
needs: [setup]
if: needs.setup.outputs.versions != '[]'
name: Build turbohtml ${{ matrix.version }} ${{ matrix.python }}-${{ matrix.libc }}_riscv64
name: Build turbohtml ${{ 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) }}
# Same cp311-cp315(t) set upstream's own check.yaml tests; PyPy is dropped (no riscv64
# PyPy interpreter for cibuildwheel to build against, same as every other port here).
python: ["cp311", "cp312", "cp313", "cp314", "cp314t", "cp315", "cp315t"]
libc: [manylinux, musllinux]
include: ${{ fromJSON(needs.setup.outputs.matrix) }}

env:
TURBOHTML_VERSION: ${{ matrix.version }}
Expand All @@ -89,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 }}

- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: turbohtml-${{ env.TURBOHTML_VERSION }}-${{ matrix.python }}-${{ matrix.libc }}_riscv64
name: turbohtml-${{ env.TURBOHTML_VERSION }}-${{ matrix.python }}-${{ matrix.platform }}_riscv64
path: wheelhouse/*.whl
if-no-files-found: error

Expand Down
14 changes: 5 additions & 9 deletions .github/workflows/build-type-enforced.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,13 @@ jobs:
build_wheels:
needs: [setup]
if: needs.setup.outputs.versions != '[]'
name: Build type_enforced ${{ matrix.version }} ${{ matrix.python }}-${{ matrix.libc }}_riscv64
name: Build type_enforced ${{ 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): upstream ships cp3x-cp3x wheels despite
# nanobind's STABLE_ABI flag (no wheel.py-api set in pyproject.toml).
python: ["cp311", "cp312", "cp313", "cp314"]
libc: [manylinux, musllinux]
include: ${{ fromJSON(needs.setup.outputs.matrix) }}

env:
TYPE_ENFORCED_VERSION: ${{ matrix.version }}
Expand All @@ -78,20 +74,20 @@ 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 }}
# scikit-build-core bootstraps its own (recent) cmake from PyPI, which
# also ships riscv64 wheels; matches the potpourri3d precedent.
CIBW_BEFORE_ALL_LINUX: ${{ matrix.libc == 'manylinux' && 'yum remove -y cmake' || '' }}
CIBW_BEFORE_ALL_LINUX: ${{ matrix.platform == 'manylinux' && 'yum remove -y cmake' || '' }}
# Fail the build instead of silently shipping a pure-Python wheel if the
# C++ extension fails to compile, same as upstream's own CI does.
CIBW_ENVIRONMENT: TYPE_ENFORCED_REQUIRE_CPP="1"
CIBW_TEST_ENVIRONMENT: TYPE_ENFORCED_REQUIRE_CPP="1"

- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: type-enforced-${{ env.TYPE_ENFORCED_VERSION }}-${{ matrix.python }}-${{ matrix.libc }}_riscv64
name: type-enforced-${{ env.TYPE_ENFORCED_VERSION }}-${{ matrix.python }}-${{ matrix.platform }}_riscv64
path: wheelhouse/*.whl
if-no-files-found: error

Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/build-ulid-transform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,13 @@ jobs:
build_wheels:
needs: [setup]
if: needs.setup.outputs.versions != '[]'
name: Build ulid-transform ${{ matrix.version }} ${{ matrix.python }}-${{ matrix.libc }}_riscv64
name: Build ulid-transform ${{ 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]
include: ${{ fromJSON(needs.setup.outputs.matrix) }}

env:
ULID_TRANSFORM_VERSION: ${{ matrix.version }}
Expand All @@ -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 }}
CIBW_ENVIRONMENT: REQUIRE_EXTENSION=1
Expand All @@ -85,7 +83,7 @@ jobs:

- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: ulid-transform-${{ env.ULID_TRANSFORM_VERSION }}-${{ matrix.python }}-${{ matrix.libc }}_riscv64
name: ulid-transform-${{ env.ULID_TRANSFORM_VERSION }}-${{ matrix.python }}-${{ matrix.platform }}_riscv64
path: ./wheelhouse/*.whl
if-no-files-found: error

Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/build-unicodedata2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,13 @@ jobs:
build_wheels:
needs: [setup]
if: needs.setup.outputs.versions != '[]'
name: Build unicodedata2 ${{ matrix.version }} ${{ matrix.python }}-${{ matrix.libc }}_riscv64
name: Build unicodedata2 ${{ 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:
UNICODEDATA2_VERSION: ${{ matrix.version }}
Expand All @@ -76,15 +74,15 @@ 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_EXTRAS: testing
CIBW_TEST_COMMAND: pytest {project}/tests

- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: unicodedata2-${{ env.UNICODEDATA2_VERSION }}-${{ matrix.python }}-${{ matrix.libc }}_riscv64
name: unicodedata2-${{ env.UNICODEDATA2_VERSION }}-${{ matrix.python }}-${{ matrix.platform }}_riscv64
path: ./wheelhouse/*.whl
if-no-files-found: error

Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/build-vhacdx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,13 @@ jobs:
build_wheels:
needs: [setup]
if: needs.setup.outputs.versions != '[]'
name: Build vhacdx ${{ matrix.version }} ${{ matrix.python }}-${{ matrix.libc }}_riscv64
name: Build vhacdx ${{ 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): upstream ships cp3x-cp3x wheels.
python: ["cp312", "cp313", "cp314", "cp314t"]
libc: [manylinux, musllinux]
include: ${{ fromJSON(needs.setup.outputs.matrix) }}

env:
VHACDX_VERSION: ${{ matrix.version }}
Expand Down Expand Up @@ -96,7 +93,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 }}
# numpy is a runtime dependency with no riscv64 wheel on public PyPI;
Expand All @@ -106,7 +103,7 @@ jobs:

- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: vhacdx-${{ env.VHACDX_VERSION }}-${{ matrix.python }}-${{ matrix.libc }}_riscv64
name: vhacdx-${{ env.VHACDX_VERSION }}-${{ matrix.python }}-${{ matrix.platform }}_riscv64
path: ./wheelhouse/*.whl
if-no-files-found: error

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-vtk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ jobs:
strategy:
fail-fast: false
matrix:
version: ${{ fromJSON(needs.setup.outputs.versions) }}
# VTK is not abi3 (VTK_WRAP_PYTHON links directly against Python.h): upstream
# publishes one wheel per interpreter, rebuilding the whole tree each time.
python: ["cp312", "cp313", "cp314", "cp314t"]
# docs/packages/vtk.yaml has no musllinux entries, so this stays manylinux-only.
include: ${{ fromJSON(needs.setup.outputs.matrix) }}

env:
VTK_VERSION: ${{ matrix.version }}
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/build-webrtcvad-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,13 @@ jobs:
build_wheels:
needs: [setup]
if: needs.setup.outputs.versions != '[]'
name: Build webrtcvad-wheels ${{ matrix.version }} ${{ matrix.python }}-${{ matrix.libc }}_riscv64
name: Build webrtcvad-wheels ${{ 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:
WEBRTCVAD_VERSION: ${{ matrix.version }}
Expand All @@ -73,15 +71,15 @@ 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_EXTRAS: dev
CIBW_TEST_COMMAND: python {project}/test_webrtcvad.py

- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: webrtcvad-wheels-${{ env.WEBRTCVAD_VERSION }}-${{ matrix.python }}-${{ matrix.libc }}_riscv64
name: webrtcvad-wheels-${{ env.WEBRTCVAD_VERSION }}-${{ matrix.python }}-${{ matrix.platform }}_riscv64
path: ./wheelhouse/*.whl
if-no-files-found: error

Expand Down
Loading
Loading