Repository navigation
📝 docs: explain what a release publishes and how to verify it - #3305
Merged
Merged
Conversation
gaborbernat
force-pushed
the
docs/verify-releases
branch
from
September 22, 2026 23:49
603e11a to
be63db0
Compare
This was referenced Sep 22, 2026
gaborbernat
force-pushed
the
docs/verify-releases
branch
from
September 23, 2026 00:32
be63db0 to
b0cc0b4
Compare
gaborbernat
force-pushed
the
docs/verify-releases
branch
from
September 23, 2026 00:47
b0cc0b4 to
865a233
Compare
Users and downstream packagers could not find, in one place, which files a release publishes, which attestations cover them, or how to check a download against the release workflow. Make docs/reference/release-artifacts.rst the single description of the PyPI files, GitHub release assets, SBOMs and attestations, and put the verification commands in docs/how-to/verify-release.rst. docs/development.rst keeps the maintainer mechanics and links there. The page paths stay fixed because SECURITY.md links to them.
gaborbernat
force-pushed
the
docs/verify-releases
branch
from
September 23, 2026 00:47
865a233 to
87224d5
Compare
This was referenced Sep 23, 2026
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.
Releases ship PyPI attestations and a provenance bundle for the zipapp, and with #3299 and #3310 merged the next release also attaches
virtualenv.cdx.json,virtualenv.spdx.jsonandvirtualenv.pyz.cdx.json, attested against the files they describe. Onlydocs/development.rstmentioned any of it, and it addresses maintainers. A user holding a wheel orvirtualenv.pyzhad no page telling them what the release contains or how to check it.docs/reference/release-artifacts.rstbecomes the one description of what a release publishes: the PyPI wheel and sdist with their attestations, every GitHub release asset, the bootstrap.pypa.io copies, each attestation's predicate type and subject, and what the wheel SBOM, its SPDX rendering and the zipapp SBOM hold. Its intro starts from the pre-release workflow, which pushes the tag that starts the release workflow. It also says that only Python 3.9 environments receive the embedded pip 26.0.1 and setuptools 82.0.1, which carry published advisories, and that creating environments for Python 3.10 or newer avoids them, since the fixed releases need 3.10. 🔐docs/how-to/verify-release.rstholds the commands:uvx pip downloadand oneuvx pypi-attestations verify pypicall per file for PyPI,gh attestation verifyfor the zipapp, reading the wheel SBOM, and matching each SBOM asset against its attestation and the copy inside the wheel or zipapp. A "Release integrity" section in the explanation covers trusted publishing, provenance,SOURCE_DATE_EPOCHbuilds, why the SBOMs exist, and what a passing check does and does not prove.docs/development.rstkeeps the maintainer mechanics and links to both pages; the tutorial and the install page link to the how-to. The page paths stay at/reference/release-artifacts.htmland/how-to/verify-release.html, whichSECURITY.mdhas linked to since #3295.I ran the PyPI, zipapp, wheel SBOM and sdist rebuild commands against 21.10.0 and pasted the real output. No release carries the SPDX or zipapp SBOM assets yet, so those sections use a
<version>placeholder and show no output. The sdist rebuilds byte for byte from the tag; the wheel differs only in its SBOM andRECORD, since the SBOM records the build machine.https://bootstrap.pypa.io/virtualenv.pyzstill serves 21.7.4 today, althoughpypa/get-virtualenvhas 21.10.0 inpublic/version.txt, so the docs say the bootstrap copy can trail the latest release and fall back to comparing the SHA-256 with the digest GitHub lists for the release asset.