pypa / hatch

Modern, extensible Python project management
https://hatch.pypa.io/latest/
MIT License
6.1k stars 308 forks source link

Software Bill of Materials (BOM) #1467

Open drewhall opened 6 months ago

drewhall commented 6 months ago

Thank you for Hatch--I love it! Here is an idea for improvement that has been on my mind:

It would be nice to include a command within Hatch to generate SPDX-compatible software bill-of-materials files in JSON or XML format.

You could leverage tools such as those found at SPDX Tools to do most of the heavy lifting.

This would be a nice complement to the SPDX-compatible metadata comments that are automatically inserted into about.py and init.py files by default.

ofek commented 6 months ago

Hey there! I would recommend creating a third-party build hook: https://hatch.pypa.io/latest/plugins/build-hook/reference/

drewhall commented 6 months ago

Thank you--I will try to do that!