Skip to content

cbor2: add build-cbor2.yml for riscv64 wheels - #369

Merged
luhenry merged 1 commit into
mainfrom
cbor2
Aug 25, 2026
Merged

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

Conversation

@luhenry

@luhenry luhenry commented Aug 25, 2026

Copy link
Copy Markdown
Member

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, the test dependency group, and pytest {project}/tests — narrowed to riscv64.

  • Matrix is per-interpreter cp312/cp313/cp314/cp314t: upstream publishes cpXY-cpXY wheels, there is no abi3 build.
  • manylinux only (only: <tag>-manylinux_riscv64); rustup.rs has no riscv64 musl toolchain.
  • SETUPTOOLS_SCM_PRETEND_VERSION_FOR_CBOR2 pins the version — the tag-less checkout gives setuptools_scm nothing to derive it from.

Validated locally on macOS/arm64: python -m build --wheel with the pretend version produces cbor2-6.1.4-cp312-cp312-*.whl containing cbor2/_cbor2...so, and the upstream suite passes 461/461 against the installed wheel (cbor2.__file__ resolves to site-packages, not the checkout).

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>
@luhenry
luhenry merged commit 2bb3a6a into main Aug 25, 2026
8 checks passed
@luhenry
luhenry deleted the cbor2 branch August 25, 2026 17:03
@luhenry luhenry linked an issue Aug 25, 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.

cbor2 riscv64 support

1 participant