Skip to content

Conversation

@Adityakk9031
Copy link

Summary
Add a safe fallback for legacy local versions that use - by normalizing to PEP 440 +.
Keep strict packaging.version.Version as the primary parser.
Add tests to cover the new behavior.
Changes
versions.py: add fallback normalization for legacy local versions.
test_pypi_version.py: new test for 2.0.1rc2-git.
test_versions.py: validate is_valid() accepts the legacy form.
Testing
pytest -q
test_pypi_version.py -q (optional)
Issue
Fixes #176

Signed-off-by: Aditya kumar singh <143548997+Adityakk9031@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

packaging.version fails to parse legit PyPI package version

1 participant