mirror of
https://github.com/lancedb/lancedb.git
synced 2026-12-03 07:45:17 +00:00
feat(cli): publish a source distribution for lancedb-tools (#5314)
The `lancedb-tools` release contains wheels for Apple Silicon and two Linux architectures. Users on Intel macOS have no compatible wheel, so the Python installer has no way to install the CLI. This extends the release workflow from #5313 to build a source distribution from the same tag and check the source fallback before the release team approves publication. This was accomplished with the following changes: - Package the tagged Rust CLI, workspace manifests, lockfile, and licenses with a setuptools-rust binary target. - Install by package name on a native Intel macOS runner with all four release files available, then check that pip selected the sdist and built a working x86-64 executable. - Upload the tested sdist alongside the wheels and verify its published SHA-256 digest.
This commit is contained in:
+9
-2
@@ -189,6 +189,13 @@ against `SHA256SUMS`, bundles the native executable and its notices, and saves t
|
||||
the `lancedb-tools-wheels` Actions artifact. Python package versions follow
|
||||
PEP 440 (for example, CLI `v0.42.0-beta.30` becomes `0.42.0b30`).
|
||||
|
||||
The same run builds a source distribution from the tagged Rust workspace and
|
||||
saves it as `lancedb-tools-sdist`. Installers can compile the CLI locally when
|
||||
no wheel matches. Source builds need rustup, a C/C++ compiler, CMake, and
|
||||
`protoc`. The Intel macOS job installs by package name from the four release
|
||||
files and checks that the installer chose the source archive and built a
|
||||
working x86-64 executable.
|
||||
|
||||
The workflow tests `uvx` and `pipx` against the artifact on each supported
|
||||
platform. To try a downloaded wheel on a matching machine, substitute its
|
||||
local path for `"$wheel"`:
|
||||
@@ -207,9 +214,9 @@ wheel run, dispatch it from `main`:
|
||||
gh workflow run cli-wheels.yml --repo lancedb/lancedb --ref main -f tag=v0.42.0 -f publish=true
|
||||
```
|
||||
|
||||
After all three native install jobs pass, a member of the `release` team checks
|
||||
After the three wheel tests and the Intel macOS source install pass, a member of the `release` team checks
|
||||
the tag and install results and approves the `pypi-cli` deployment in the workflow run.
|
||||
The upload job publishes the tested wheels and verifies their SHA-256 digests
|
||||
The upload job publishes the tested wheels and source archive and verifies their SHA-256 digests
|
||||
against PyPI. If an upload stops partway, rerun the failed job in the same run
|
||||
to finish uploading the original wheels. To verify the public install:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user