Skip to content

Add riscv64 build target for manylinux#12723

Merged
Viicos merged 4 commits intopydantic:mainfrom
boosterl:pydantic-core-riscv64-build
Feb 25, 2026
Merged

Add riscv64 build target for manylinux#12723
Viicos merged 4 commits intopydantic:mainfrom
boosterl:pydantic-core-riscv64-build

Conversation

@boosterl
Copy link
Copy Markdown
Contributor

@boosterl boosterl commented Jan 18, 2026

Change Summary

This PR adds support for building and publishing a wheel built for riscv64 on Linux systems using libc (musl doesn't seem to build as of yet). I tried this on my fork of pydantic-core, which seemed to work without an issue. Since pydantic-core was moved to the main pydantic mono-repo, I'm not sure how the CI-workflow will be ran, so wasn't able to test in that context.

The target option doesn't use the same alias as the other architectures. That's because no alias was present in the maturin-action for the riscv64gc-unknown-linux-gnu target. This was added in this PR. Once this is included in a new release, the alias could also be used in the pydantic-core workflow.

Related issue number

fix #12722

Checklist

  • The pull request title is a good summary of the changes - it will be used in the changelog
  • Unit tests for the changes exist
  • Tests pass on CI
  • Documentation reflects the changes where applicable
  • My PR is ready to review, please add a comment including the phrase "please review" to assign reviewers

Selected Reviewer: @Viicos

@github-actions github-actions Bot added the relnotes-fix Used for bugfixes. label Jan 18, 2026
@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented Jan 18, 2026

Merging this PR will not alter performance

✅ 212 untouched benchmarks


Comparing boosterl:pydantic-core-riscv64-build (5456974) with main (f3ac90a)

Open in CodSpeed

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 18, 2026

Coverage report

This PR does not seem to contain any modification to coverable code.

@boosterl
Copy link
Copy Markdown
Contributor Author

Please review

@davidhewitt
Copy link
Copy Markdown
Collaborator

cc @Viicos we should include this in #12752

@davidhewitt
Copy link
Copy Markdown
Collaborator

From https://discuss.python.org/t/packaging-support-for-riscv64/58475/12 it looks to me like riscv64 is indeed a supported architecture on PyPI now. (First I'd heard of that being the case!)

@Viicos Viicos added the needs-blogpost-entry This PR needs to be documented in the release notes blog post label Feb 12, 2026
@Viicos Viicos added full build Triggers CI to do a full build relnotes-packaging Used for dependency changes. and removed relnotes-fix Used for bugfixes. labels Feb 25, 2026
@Viicos Viicos closed this Feb 25, 2026
@Viicos Viicos reopened this Feb 25, 2026
@Viicos Viicos merged commit f91f33b into pydantic:main Feb 25, 2026
209 checks passed
@Viicos Viicos removed the needs-blogpost-entry This PR needs to be documented in the release notes blog post label Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

full build Triggers CI to do a full build ready for review relnotes-packaging Used for dependency changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build riscv64 wheel builds for pydantic-core

3 participants