Skip to content

Deprecate version in wheel filename not matching version in wheel metadata #13580

@notatallshaw

Description

@notatallshaw

Currently pip does not validate that a wheel filename version matches the metadata version. This is in part because pip has used a looser regex than the now standard for wheel filenames, but that is due to be removed in pip 25.3.

I propose that pip add a validation that the wheel filename version match the wheel metadata version, with a deprecation period of at least 2 releases, we can see based on feedback how ready the ecosystem is to accept this validation.

As well as improving data consistency this will allow pip to use the version in the wheel filename without having to read the metadata to quickly discard wheels that don't meet the requirements, such as when using local paths or URLs (although the URL will need to be checked for redirects).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions