##  --- ```bash [1-6|7-8] $ cat .../site-packages/setuptools-65.5.1.dist-info/METADATA ... Name: setuptools Version: 65.5.1 ... $ rpm -q python3.11-setuptools-wheel python3.11-setuptools-wheel-65.5.1-3.el9.noarch.rpm ``` --- ```bash [4] $ cat .../site-packages/setuptools-65.5.1.dist-info/METADATA ... Name: setuptools Version: 65.5.1-3 ... $ rpm -q python3.11-setuptools-wheel python3.11-setuptools-wheel-65.5.1-3.el9.noarch.rpm ``` --- # More metadata? ```bash [4] Metadata-Version: 2.6 Name: setuptools Version: 65.5.1 Whatever-Miro-Needs: python3.11-setuptools-wheel-65.5.1-3.el9.noarch.rpm Whatever-Lumír-Secretly-Desires: 🍍 on 🍕 ... ``` ---
--- ##  --- ```bash [4] Metadata-Version: 2.7 Name: pillow Version: 12.1.1 Is-In-This: libXau-1.0.9-3.el8.x86_64.rpm ... ``` --- # SBOM Software Bill-of-Materials ---
---
---
---
```json { "bomFormat": "CycloneDX", "specVersion": "1.5", "metadata": { "component": { "name": "pizza", "version": "1.0.0", "type": "application" } }, "components": [ { "name": "tomatoes", "version": "4.17.21", "licenses": [{"license": {"id": "MIT"}}], "type": "library" }, { "name": "pineapple", "version": "4.18.2", "licenses": [{"license": {"id": "MIT"}}], "type": "library" } ] } ``` --- # PEP 770 Improving measurability of Python packages with Software Bill-of-Materials --- # PEP 770 - common location in `*.dist-info/sboms` - any SBOM format - whatever you need in it ---
```bash [1,6-11|10] $ cat .../site-packages/setuptools-65.5.1.dist-info/sboms/bom.json { "bomFormat": "CycloneDX", "specVersion": "1.6", "components": [ { "type": "library", "name": "python3.11-setuptools", "version": "65.5.1-3.el9", "purl": "pkg:rpm/redhat/python3.11-setuptools@65.5.1-3.el9?arch=src" } ] } ``` ---
```bash [1|7-8,10-13|14-19|29-30,32-35] $ cat .../site-packages/pillow-12.1.1.dist-info/sboms/auditwheel.cdx.json | python -m json { "bomFormat": "CycloneDX", "specVersion": "1.4", "version": 1, "metadata": { "component": { "type": "library", "bom-ref": "pkg:pypi/pillow@12.1.1?file_name=pillow-12.1.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", "name": "pillow", "version": "12.1.1", "purl": "pkg:pypi/pillow@12.1.1?file_name=pillow-12.1.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl" }, "tools": [ { "name": "auditwheel", "version": "6.5.0" } ] }, "components": [ { "type": "library", "bom-ref": "pkg:pypi/pillow@12.1.1?file_name=pillow-12.1.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", "name": "pillow", "version": "12.1.1", "purl": "pkg:pypi/pillow@12.1.1?file_name=pillow-12.1.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl" }, { "type": "library", "bom-ref": "pkg:rpm/almalinux/libXau@1.0.9-3.el8#ac77887fa9a50833ff7a34d7e27ebe243468552bc94f6628693cb1dfdaf102e7", "name": "libXau", "version": "1.0.9-3.el8", "purl": "pkg:rpm/almalinux/libXau@1.0.9-3.el8" } ], "dependencies": [ { "ref": "pkg:pypi/pillow@12.1.1?file_name=pillow-12.1.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", "dependsOn": [ "pkg:rpm/almalinux/libXau@1.0.9-3.el8#ac77887fa9a50833ff7a34d7e27ebe243468552bc94f6628693cb1dfdaf102e7" ] }, { "ref": "pkg:rpm/almalinux/libXau@1.0.9-3.el8#ac77887fa9a50833ff7a34d7e27ebe243468552bc94f6628693cb1dfdaf102e7" } ] } ``` --- ```bash $ cat .../site-packages/lumir-1.2.3.dist-info/sboms/pizza.yaml shape: round components: - pineapple - ... ``` ---
---
floss.social/
@hroncok