Skip to content

Metadata file does not match the wheel metadata (PEP 658) #1101

Closed

Description

@jobselko

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.

Activity

  1. self-assigned this
    on Feb 12, 2026
  2. added 4 commits that reference this issue on Feb 12, 2026
    1601f36
    f16e3b4
    8110b37
    23b2972
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions