Common publication to PyPI¶
Common's ordinary protected-main release verifies both runner architectures,
builds and tests the release distributions, and publishes and verifies the
immutable GitHub release. After that verification run succeeds, the PyPI
handoff confirms the exact successful run attempt and asset publication job.
It queues the existing publish-pypi.yml workflow on protected main using
the repository's short-lived GitHub job token. No manual dispatch or PyPI
secret is required. Only stable releases after 1.0.53 are eligible; this does
not backfill prior GitHub releases or republish Common 1.0.51. A main release
already running when the relay is enabled is also ineligible if its tagged
source did not include the relay.
The receiver independently checks the upstream run attempt and the tag's source commit. It stages the original wheel and source archive by checking GitHub's reported asset digests, the checksummed manifest, and the embedded source provenance. Twine checks the metadata, and each archive is installed in a clean environment against public PyPI and checked with a Common import. The upload job downloads just the tested distributions from the same run by exact artifact ID, rechecks the hashes, and uploads through the pinned PyPA publisher. It cannot build distributions or write to GitHub. The GitHub release still ships the Debian package; the PyPI job never uploads it.
The existing Trusted Publisher must match Living-Proof-Labs/livingproof-common,
publish-pypi.yml, and the main-only pypi environment.
If a receiver fails, inspect the exact run and compare both public PyPI file hashes to the verified GitHub release before retrying. If both are present and equal, do not retry. If only one exists or a hash differs, investigate rather than skipping existing files. If both are absent and the failure was transient, rerun the failed job in the original receiver while its artifact is retained. A rerun keeps the original workflow revision; if that revision was faulty, the next ordinary verified release uses the fixed workflow.
Documentation home · Source · Help / report an issue · License
Docs: release v1.0.56 · 4ee7bf099698. Source revision: 4ee7bf099698bb5f8f5f0d6e0d0d020c1d7927c0 (dirty checkout: false). Version and source.