Skip to content

Conversation

@stevebarrau
Copy link

Add package_metadata rule to generated BUILD files for wheel libraries to track package provenance using PURL (Package URL) format.

This is then picked up by supply_chain_tools to produce SBOM for python target using external dependencies.

Add package_metadata rule to generated BUILD files for wheel
libraries to track package provenance using PURL (Package URL)
format.
entry_points[entry_point_without_py] = entry_point_script_name

namespace_package_files = pypi_repo_utils.find_namespace_package_files(rctx, rctx.path("site-packages"))
purl = "pkg:pypi/{}@{}".format(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens if we have private packages in here? Is pkg:pypi/{}@{} only a type of registry or the actual public PyPI?

"pypi_version={}".format(metadata["version"]),
],
namespace_package_files = namespace_package_files,
purl = purl,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also needs to be added above, in the other branch of the code.

@aignas
Copy link
Collaborator

aignas commented Jan 23, 2026

What are other things that are needed for #2054 to be resolved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants