Skip to content
This repository was archived by the owner on Dec 29, 2024. It is now read-only.
This repository was archived by the owner on Dec 29, 2024. It is now read-only.

Fix: pre-version parsing #14

Closed
Closed

Description

@Flacy

Currently, parsing of the pre-version part (which comes at the very end) is implemented using a crude conversion of a string to number. It is necessary to rework the algorithm and make it compliant with PEP standards in order to avoid potential issues with package traversal (e.g.: pytz, tensorflow)

Activity

  1. added
    bug
    on Dec 24, 2023
  2. self-assigned this
    on Dec 24, 2023
  3. Flacy commented on Dec 24, 2023

    @Flacy
    MemberAuthor

    Referring to the phrase in PEP 440:

    Tools SHOULD ignore any versions which cannot be parsed by the rules in this PEP

    the decision has been made to ignore packages published as post and dev versions. Such versions are rarely used and will not affect the user experience.
    If someone really needs this functionality, they can open an issue and describe an elegant and optimized algorithm for parsing and comparing such versions.

  4. linked a pull request that will close this issueFix: versions #15on Dec 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugimprovement

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions