-
Notifications
You must be signed in to change notification settings - Fork 83
Open
Labels
Description
Version
main
Describe the bug
Pulp's code for extracting metadata uses the first hit for "*.dist-info/METADATA" in the file list. Pulp must use the wheel filename to calculate the dist-info directory. It should also verify that metadata can be parsed and that the fields name and version are consistent with the wheel file.
To Reproduce
$ curl -LOsf https://packages.redhat.com/api/pulp-content/public-rhai/rhoai/3.4-EA1/cpu-ubi9-test/mlflow_skinny-3.9.0rc0%2Brhai1-2-py3-none-any.whl
$ pkginfo mlflow_skinny-3.9.0rc0%2Brhai1-2-py3-none-any.whl | grep -i name:
name: mlflow-skinny
$ curl -Lfs https://packages.redhat.com/api/pulp-content/public-rhai/rhoai/3.4-EA1/cpu-ubi9-test/mlflow_skinny-3.9.0rc0%2Brhai1-2-py3-none-any.whl.metadata | grep -i name:
Name: pip
Expected behavior
Metadata file matches the wheel metadata.
Reactions are currently unavailable