Publish prebuilt wheels to PyPI (docs, release flow, musllinux) - #2
Merged
Conversation
- README: install via `pip install directiva` / `uv add directiva` (prebuilt abi3 wheels), with the source build kept only as the no-matching-wheel fallback. - CI: document the tag → matrix → `uv publish dist/*` release procedure in the header; add a musllinux_1_2 (x86_64/aarch64) wheel job so Alpine/musl installs get a prebuilt wheel instead of falling back to a source build. - Makefile: `dist`, `dist-fetch TAG=`, `publish` targets wrapping the flow (local `uv build` is one platform only; publish the CI-built set).
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.
Makes
pip install directiva/uv add directivainstall a prebuilt abi3 wheel with no Rust toolchain, on every common platform.What was wrong
The repo shipped abi3 wheels via the CI matrix but documented "No PyPI" — install was a release-asset URL or
pip install git+…(the latter builds from source → needs a compiler). Nothing pointed at PyPI.Changes
pip install directiva/uv add directiva(prebuilt). Source build kept only as the no-matching-wheel fallback.uv publish dist/*). Added a musllinux_1_2 wheel job (x86_64 + aarch64) so Alpine/musl Docker installs get a prebuilt wheel instead of a source fallback. Added torelease.needs.dist(local one-platform smoke build),dist-fetch TAG=(gh release download),publish(uv publish dist/*).Verified locally
uv build→ abi3 wheel (cp39-abi3, works on CPython ≥ 3.9) + self-contained sdist.--no-build(compilation forbidden) and imports + runs.Coverage after this
linux glibc (x86_64/aarch64) · linux musl (x86_64/aarch64) · macOS (x86_64/arm64) · Windows x64 · sdist fallback.
Release (manual, maintainer runs
uv publish)Preconditions: the
directivaname is available/owned on PyPI; PyPI token on the maintainer's machine.