Skip to content

arbitrary equality and version normalization #978

@dimbleby

Description

@dimbleby

per packaging discussion thread

currently it looks like versions are normalized on one side but not the other?

>>> from packaging.specifiers import *
>>> Specifier("===1.1").contains("1.01")
True
>>> Specifier("===1.01").contains("1.1")
False

probably similar applies to normalization of eg pre-releases etc?

Hard to reconcile with the description of "simple string equality operations which do not take into account any of the semantic information such as zero padding ..."

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions