Repository navigation
kernels-data: Add version 0.16.1 - #2141
Merged
Merged
Conversation
kernels-data is the Python binding for HuggingFace's kernels-data Rust crate: the kernel.toml/kernel config parsers, the variant digest hasher and the metadata types the Kernel Hub client reads. It is not a GPU payload -- pure Rust, no dependencies, no CUDA -- and upstream publishes 20 Linux wheels without riscv64. Mirrors the linux job of upstream's kernels_data_python_release.yaml and the test steps of its test_python.yaml. cibuildwheel replaces PyO3/maturin-action, this repo's standard riscv64 build path, and musllinux is dropped because rustup.rs ships no riscv64 musl toolchain. The repo-root LICENSE is staged beside the binding's pyproject.toml so maturin's licence glob finds it; upstream's own wheels ship no licence file because its MANIFEST.in `include ../../../LICENSE` is not something maturin reads. The matrix is two entries rather than four: the binding crate declares pyo3 with abi3/abi3-py38 unconditionally, so one cp38-abi3 wheel serves every GIL-ful interpreter, and pyo3 turns abi3 off under Py_GIL_DISABLED, which is why the free-threaded build gets its own wheel -- the same split upstream's second `-i python3.14t` maturin step produces. Signed-off-by: Ludovic Henry <git@ludovic.dev>
luhenry
added a commit
that referenced
this pull request
Sep 20, 2026
Contributor
|
Two `include:` entries that each introduce the same brand-new `tag`/`build` keys over a `version`-only base matrix collapse into one job, keeping the last one -- so the first run produced a single cp314t leg and no abi3 wheel at all, silently green. Declaring `tag` in the base matrix makes each include update the leg it names instead of adding a key to every combination. Signed-off-by: Ludovic Henry <git@ludovic.dev>
luhenry
marked this pull request as ready for review
September 21, 2026 07:30
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.
kernels-data0.16.1Compiles huggingface/kernels'
kernels-dataRust crate — the kernel config parsers, variant digest hasher and metadata types — into a PyO3 extension module. Upstream publishes 20 Linux wheels and no riscv64 one.Mirrors upstream's
kernels_data_python_release.yamllinuxjob.Despite the name this is not a GPU payload: no CUDA, no vendored blobs, no dependencies at all.
Differs from upstream
PyO3/maturin-action- this repo's standard riscv64 build pathkernels-data/bindings/python/- maturin globs licences relative to pyproject.toml's directory and upstream ships none thereMatrix: cp38-abi3 (the binding crate's unconditional
abi3-py38, built on this repo's cp312 floor) + cp314t, the only two tags upstream publishes.Testing
mypy.stubteststub check); mypy comes from our registry, which publishes riscv64 wheels for every interpreter in the matrixLicense: OK
Built on cp312 and cp314t; 27 passed, 0 skipped on each of cp312/cp313/cp314/cp314t, stubtest clean.