-
-
Notifications
You must be signed in to change notification settings - Fork 658
feat: add package metadata for wheel libraries #3531
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Add package_metadata rule to generated BUILD files for wheel libraries to track package provenance using PURL (Package URL) format.
python/private/pypi/whl_library.bzl
Outdated
| 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( |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIUC registry information is not yet present in the metadata object, right? IIUC the most common approach is to have an --index-url instruction in the requirements_lock file. DO you know where I can fish out this information from within the rules?
python/private/pypi/whl_library.bzl
Outdated
| "pypi_version={}".format(metadata["version"]), | ||
| ], | ||
| namespace_package_files = namespace_package_files, | ||
| purl = purl, |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added in 9673f8c.
|
What are other things that are needed for #2054 to be resolved? |
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.