Skip to content

Regular expression for version validation includes non-period delimiters #1849

Closed
@towo

Description

@towo

Issue Description

The VERSION_PATTERN regular expression in Appendix B of the PyPA version specifiers spec allows for dashes and underscores instead of a period to separate pre/post/dev releases, an also allows those characters in the local version string.

From my understanding of the spec, this is not allowed, and I'm willing to correct the RE in that regard, but would want some further guidance if this is a legacy compatibility issue or just an oversight.

Code of Conduct

  • I am aware that participants in this repository must follow the PSF Code of Conduct.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions