Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
14 commits
Select commit Hold shift + click to select a range
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
10 changes: 4 additions & 6 deletions .github/workflows/build-kasa-crypt.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 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 }}
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 }}
# Upstream's job-level REQUIRE_CYTHON never reaches the Linux build container.
Expand All @@ -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

Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/build-lcm.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 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 }}
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 All @@ -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

Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/build-lhafile.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 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 }}
Expand Down Expand Up @@ -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 }}
Expand All @@ -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

Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/build-libscrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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`),
Expand All @@ -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

Expand Down
15 changes: 6 additions & 9 deletions .github/workflows/build-libtorrent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 &&
Expand All @@ -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: |
Expand All @@ -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

Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/build-line-profiler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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.
Expand All @@ -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

Expand Down
14 changes: 4 additions & 10 deletions .github/workflows/build-littlefs-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
Expand All @@ -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

Expand Down
14 changes: 4 additions & 10 deletions .github/workflows/build-memory-allocator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand All @@ -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

Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/build-miniupnpc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
Expand All @@ -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

Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/build-mlx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down Expand Up @@ -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 }}

Expand Down
Loading
Loading