mirror of
https://github.com/lancedb/lancedb.git
synced 2026-12-03 07:45:17 +00:00
The CLI workflow added in #5214 builds and tests `lancedb-tools` wheels, but release maintainers still need a way to publish them to PyPI. This adds an opt-in upload for published stable releases. A maintainer starts the workflow from `main` with the release tag, then a required reviewer approves the upload after the native install tests pass. This was accomplished with the following changes: - Check the GitHub release and the required reviewer configuration on `pypi-cli` before requesting deployment. - Use PyPI Trusted Publishing to upload the three tested wheels from the same run and verify their public SHA-256 digests. A retry can finish a partial upload. - Document the dispatch command and the one-time GitHub environment and PyPI publisher setup. ### Testing Added tests for a published stable release, mismatched and beta tags, draft or missing releases, and missing reviewer protection. PR runs also exercise the beta wheels with `uvx` and `pipx` across all three supported platforms. The first production upload requires the configured publisher and an approved stable release.