sentencepiece: build wheels for riscv64#165
Draft
gounthar wants to merge 3 commits into
Draft
Conversation
Refs #164 Signed-off-by: Bruno Verachten <gounthar@gmail.com>
Match the documented default matrix (3.11 through 3.14t); numpy's 3.12+ floor is the exception, not the rule. Signed-off-by: Bruno Verachten <gounthar@gmail.com>
Copy python/tools alongside python/test so gen_stubs_test can import gen_stubs, and drop the ad-hoc pytest ignores to mirror upstream's 'pytest -v {project}/test'.
Signed-off-by: Bruno Verachten <gounthar@gmail.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
build-sentencepiece.ymlso sentencepiece riscv64 wheels build on the nativeubuntu-24.04-riscvrunner via cibuildwheel, and publish to the GitLab index onmain.This is the build workflow that the auto-generated #157 asks for ("No build workflow found at
.github/workflows/build-sentencepiece.yml").sentencepieceis already listed inci_scripts/packages.txt, so no manifest change is needed here.Shape
Mirrors
build-numpy.yml:google/sentencepieceat the requested tag (submodules: true, the C++ core is vendored)python/subdirectory viapackage-dir, since that is wheresetup.py/pyproject.tomllivecp312,cp313,cp314,cp314tmainand reuses the sharedpublish-to-gitlabactionWheels are also tested inline: cibuildwheel installs each freshly built wheel into an isolated venv and runs the package's own pytest suite against it (
CIBW_TEST_SOURCES+CIBW_TEST_COMMAND). Two files are skipped:gen_stubs_test.pyimports a repo-level helper that is not part of the copied test tree, andclean_sentencepiece_test_manual.pyis a manual cleanup script rather than a pytest module.Verification
Built and tested on a native riscv64 board (BananaPi BPI-F3), cp312, cibuildwheel 4.1.0,
manylinux_2_39_riscv64:produced
sentencepiece-0.2.2-cp312-cp312-manylinux_2_39_riscv64.whl.Refs #164
Trigger: sentencepiece:0.2.2