Skip to content

comrak: add build-comrak.yml for riscv64 wheels - #1191

Merged
luhenry merged 1 commit into
mainfrom
comrak
Sep 7, 2026
Merged

comrak: add build-comrak.yml for riscv64 wheels#1191
luhenry merged 1 commit into
mainfrom
comrak

Conversation

@luhenry

@luhenry luhenry commented Sep 6, 2026

Copy link
Copy Markdown
Member

Compiles a PyO3 binding over the Rust comrak crate, a CommonMark/GFM markdown parser, into an abi3 wheel. Upstream publishes no riscv64 wheel.

Mirrors upstream's CI.yml linux job.

Differs from upstream

  • musllinux dropped - rustup ships no riscv64 musl toolchain.
  • Rust toolchain installed in-container - comrak ships no [tool.cibuildwheel].
  • Built on cp312, not upstream's --find-interpreter loop - pyo3's abi3/abi3t floor is whichever interpreter builds it, and cp312 is this repo's own floor.
  • No .pyi stubs - --generate-stubs is a maturin build CLI flag with no PEP 517 equivalent.

Testing

  • Wheel-level: upstream's own tests/comrak_test.py via pytest, plus a .so submodule check.

License: OK

Built on cp312 equivalent (macOS arm64, local); 105 passed.

Ports the Rust/PyO3 CommonMark/GFM bindings (lmmx/comrak) to riscv64,
distinct from the C-library-based cmarkgfm already in this repo.
pyo3's abi3/abi3t features carry no fixed pyNN floor, so the ABI is
floored at whichever interpreter builds it -- cp312, this repo's own
floor -- covering cp312-cp314 from one build plus a separate cp314t leg.
luhenry added a commit that referenced this pull request Sep 6, 2026
@luhenry
luhenry merged commit 7c73470 into main Sep 7, 2026
7 checks passed
@luhenry
luhenry deleted the comrak branch September 7, 2026 08:06
@luhenry luhenry linked an issue Sep 7, 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.

comrak riscv64 support

1 participant