Conversation
cbor2 6.x is a PyO3 extension built with setuptools-rust; upstream's publish.yml drives cibuildwheel with a rustup before-all and runs the full pytest suite from the `test` dependency group. Mirrored here for riscv64, per-interpreter (upstream publishes cpXY-cpXY wheels, no abi3) and manylinux-only (rustup ships no riscv64 musl toolchain). setuptools_scm cannot see the tag in the checkout, so the version is pinned with SETUPTOOLS_SCM_PRETEND_VERSION_FOR_CBOR2. 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 cbor2 6.1.4.
cbor2 6.x is a PyO3 extension built with setuptools-rust. The workflow mirrors upstream's publish.yml wheel job — cibuildwheel with a rustup
before-all, thetestdependency group, andpytest {project}/tests— narrowed to riscv64.cp312/cp313/cp314/cp314t: upstream publishescpXY-cpXYwheels, there is no abi3 build.only: <tag>-manylinux_riscv64); rustup.rs has no riscv64 musl toolchain.SETUPTOOLS_SCM_PRETEND_VERSION_FOR_CBOR2pins the version — the tag-less checkout gives setuptools_scm nothing to derive it from.Validated locally on macOS/arm64:
python -m build --wheelwith the pretend version producescbor2-6.1.4-cp312-cp312-*.whlcontainingcbor2/_cbor2...so, and the upstream suite passes 461/461 against the installed wheel (cbor2.__file__resolves to site-packages, not the checkout).