Skip to content

Parens in metadata version specifiers #551

@jaklaassen-affirm

Description

@jaklaassen-affirm

The packaging spec says that Requires-Dist specifiers should not have parens, but wheel add the parens here.

I ran into this problem because of a super edge case installing a wheel that has exact identity (===) dependencies. Pip allows any character after an the identity specifier, which means that it also captures the closing paren and so a requirement like requests (===1.2.3) won't match. The identity specifiers are used for prereleases and some other special-case version specifiers.

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