Skip to content

markdown-it-pyrs: add build-markdown-it-pyrs.yml for riscv64 wheels - #1382

Merged
luhenry merged 2 commits into
mainfrom
markdown-it-pyrs
Sep 7, 2026
Merged

markdown-it-pyrs: add build-markdown-it-pyrs.yml for riscv64 wheels#1382
luhenry merged 2 commits into
mainfrom
markdown-it-pyrs

Conversation

@luhenry

@luhenry luhenry commented Sep 7, 2026

Copy link
Copy Markdown
Member

Compiles the PyO3 binding for markdown-it.rs, a CommonMark/GFM Markdown parser. Upstream publishes no riscv64 wheel.

Mirrors the linux job of upstream's CI.yml, via cibuildwheel instead of maturin-action directly.

Differs from upstream

  • musllinux dropped - rustup ships no riscv64 musl toolchain.

Matrix: cp312/cp313 only - pyo3 0.19.2 sets no abi3 feature, predates Py_GIL_DISABLED (no cp314t), and segfaults on .render() against cp314's changed Unicode object layout (no cp314).

Testing

  • runs test_api.py/test_cli.py/test_fixtures.py; bench_html.py/bench_tree.py need the unrelated benchmarking extra, deselected.

License: OK

Built on cp312.

Builds the PyO3/maturin markdown-it.rs binding directly from the upstream
checkout (Cargo.lock is committed there), per-interpreter since pyo3 0.19.2
carries no abi3 feature and predates Py_GIL_DISABLED, so cp314t is dropped.
…3.14

Confirmed on CI: cp312 and cp313 pass, cp314 SIGSEGVs inside the compiled
extension on the very first MarkdownIt().render() call, the same test that
passes clean on the other two. pyo3 0.19.2 predates CPython 3.14's changed
Unicode object internal layout, so its own PyUnicode_KIND/PyUnicode_DATA
struct-offset assumptions are stale there.
@luhenry
luhenry merged commit beb8eee into main Sep 7, 2026
8 checks passed
@luhenry
luhenry deleted the markdown-it-pyrs branch September 7, 2026 16:08
@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.

markdown-it-pyrs riscv64 support

1 participant