Skip to content

Possible bug with wildcard version matching #425

@calebzulawski

Description

@calebzulawski

Hi all,

I'm implementing a PEP 440 parser in another language and have been using packaging to validate, and came across this possible corner case.

The specifier ==1.1.0.post0.* matches the version 1.1.post0 because the version is zero-padded (as expected).

The specifier ==1.1.post0.* does not match the version 1.1.0.post0, even though I'd expect it to. My understanding is that the version in the specifier should also get zero-padded and result in a match (for the same reason that ==1.1.post0 is zero-padded to match 1.1.0.post0).

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions