Skip to content

ijson: add build-ijson.yml for riscv64 wheels - #407

Merged
luhenry merged 1 commit into
mainfrom
ijson
Aug 26, 2026
Merged

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

Conversation

@luhenry

@luhenry luhenry commented Aug 26, 2026

Copy link
Copy Markdown
Member

Adds .github/workflows/build-ijson.yml, building riscv64 wheels for
ijson 3.5.1 for cp312/cp313/cp314/cp314t.

The workflow mirrors the build_wheels job of upstream's
deploy-to-pypi.yml,
narrowed to riscv64: check the tag out with submodules (cextern/yajl) and run
cibuildwheel, which inherits upstream's [tool.cibuildwheel] table unchanged —
before-all builds and installs libyajl from the submodule with CMake,
before-test installs test-requirements.txt, and test-command runs the full
pytest -vv {project}/tests suite. The only riscv64 additions are the
manylinux image and PIP_EXTRA_INDEX_URL, since cffi (a test requirement
below 3.13) has no riscv64 wheel on public PyPI but is on our registry.

setup.py only adds the ijson.backends._yajl2 extension when libyajl is
present, and silently produces a pure-Python wheel otherwise, so the job asserts
the extension and the auditwheel-vendored libyajl are actually in the wheel.

Licensing: upstream's LICENSE.txt already reproduces yajl's ISC notice
alongside ijson's BSD-3, and it ships in dist-info/licenses/, so the vendored
libyajl is covered — no patch needed.

Mirrors the `build_wheels` job of upstream's deploy-to-pypi.yml, narrowed to
riscv64: check out the tag with submodules (cextern/yajl) and run cibuildwheel,
inheriting upstream's [tool.cibuildwheel] table (before-all builds and installs
libyajl from the submodule, before-test installs test-requirements.txt,
test-command runs the full pytest suite).

setup.py silently drops the ijson.backends._yajl2 extension when libyajl is not
found, which would ship a pure-Python wheel under a riscv64 tag, so the wheel is
checked for the extension and the auditwheel-vendored libyajl.
@luhenry
luhenry merged commit f9a862f into main Aug 26, 2026
8 checks passed
@luhenry
luhenry deleted the ijson branch August 26, 2026 11:36
@luhenry luhenry linked an issue Aug 26, 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.

ijson riscv64 support

1 participant