Conversation
luhenry
marked this pull request as ready for review
August 25, 2026 10:19
pytokens publishes mypyc-compiled wheels for common platforms but not riscv64. Mirrors upstream's wheels.yml build_wheels job narrowed to manylinux_riscv64, plus the pytest suite tox runs (upstream's cibuildwheel run does not test its wheels). Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a riscv64 wheel build for pytokens 0.4.1.
pytokens is a fast, spec-compliant Python tokenizer (used by black). It publishes
mypyc-compiled per-interpreter wheels for x86_64/aarch64/macOS/Windows but nothing
for riscv64, so
pip install pytokensthere falls back to the pure-Pythonpy3-none-anywheel.The workflow mirrors upstream's
wheels.ymlbuild_wheelsjob, narrowed tomanylinux_riscv64. Upstream's[tool.cibuildwheel]table in
pyproject.tomlsuppliesbuild-frontend = "build"and theMYPYC_*env,so only the riscv64 image needs overriding.
setup.pyenables mypyc by default onCPython, so no opt-in env var is needed.
Upstream does not run tests through cibuildwheel, so the test step here runs the same
pytestsuite their tox envs do, preceded by an assert thatpytokens.__file__is a.so— a compiled-wheel check, since a pure-Python fallback would still carry theriscv64 platform tag.
Matrix is per-interpreter
cp312/cp313/cp314/cp314t(mypyc wheels are not abi3).