Skip to content

📦 build(sbom): ship a PEP 770 SBOM in wheels - #256

Merged
gaborbernat merged 3 commits into
mainfrom
pep770-sbom
Nov 10, 2026
Merged

gaborbernat merged 3 commits into
mainfrom
pep770-sbom

Conversation

@gaborbernat

Copy link
Copy Markdown
Member

Each wheel now carries a PEP 770 SBOM, a CycloneDX document in .dist-info/sboms/ that lists what the wheel holds and the tools that built it, so scanners and auditors can read its contents without unpacking or guessing. 📦

python-sbom, a hatchling build hook, writes the SBOM after hatchling writes the wheel. [tool.python-sbom] names tox-dev as the supplier. The release build installs the build requirements from the lock with hashes, so the hook and its dependencies join the build group. python-sbom 0.1.2 is younger than the seven-day cooldown, so [tool.nab] carries an exception that expires on 2026-11-15.

@gaborbernat gaborbernat added the enhancement New feature or request label Nov 9, 2026
python-sbom needs Python 3.11, and hatchling rejects a configured hook
whose plugin is absent, so building on 3.10 failed. Load the hook from
hatch_build.py, which falls back to a no-op hook before 3.11.
ty checks the whole tree, so the type envs need hatchling and, from
3.11 on, python-sbom.
@gaborbernat
gaborbernat marked this pull request as ready for review November 10, 2026 00:32
@gaborbernat
gaborbernat merged commit 7ce23a1 into main Nov 10, 2026
24 checks passed
@gaborbernat
gaborbernat deleted the pep770-sbom branch November 10, 2026 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant