Skip to content

resvg-py: add build-resvg-py.yml for riscv64 wheels - #1671

Merged
luhenry merged 1 commit into
mainfrom
resvg-py
Sep 10, 2026
Merged

resvg-py: add build-resvg-py.yml for riscv64 wheels#1671
luhenry merged 1 commit into
mainfrom
resvg-py

Conversation

@luhenry

@luhenry luhenry commented Sep 10, 2026

Copy link
Copy Markdown
Member

Compiles a pyo3/maturin extension around the Rust resvg/usvg crates, exposing a single svg_to_bytes() function that renders SVG markup or files (including .svgz) to PNG bytes. Upstream publishes no riscv64 wheel.

Mirrors upstream's CI.yaml linux job.

Differs from upstream

  • Rust toolchain installed via CIBW_BEFORE_ALL_LINUX - upstream's build images ship it, ours don't.
  • musllinux and PyPy dropped - no riscv64 musl toolchain or PyPy in our manylinux image.

Matrix: cp310-abi3 wheel reused across cp310-cp314, plus cp314t and cp315t - Cargo.toml enables pyo3's abi3-py310 and abi3t-py315 unconditionally, matching the exact three-wheel split upstream publishes to PyPI.

Testing

  • same as upstream

License: OK

Verified the whole dependency tree (resvg, usvg, fontdb, harfrust, skrifa...) compiles cleanly with cargo check --target riscv64gc-unknown-linux-gnu, local; the actual manylinux_riscv64 wheel build and pytest run are left to CI (no local riscv64/maturin toolchain).

Mirrors upstream's linux CI job: cibuildwheel driving the maturin/pyo3
build across the abi3, cp314t, and abi3t (cp315t) legs baseplate-admin's
Cargo.toml unconditionally enables.
luhenry added a commit that referenced this pull request Sep 10, 2026
@luhenry
luhenry merged commit ea23d78 into main Sep 10, 2026
8 checks passed
@luhenry
luhenry deleted the resvg-py branch September 10, 2026 10:43
@luhenry luhenry linked an issue Sep 10, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

resvg-py riscv64 support

1 participant