-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for integer versions (eg. systemd-python-234.tar.gz)? #39
Comments
Since |
Thanks @asottile. For the existing ocflib-3-4.tar.gz test case, where does that particular use case come from? In pypi.org the versions for ocflib look like they are now compliant (https://pypi.org/project/ocflib/#files) |
iirc it was adapted from a (broken) internal package which had The actual package in question wasn't |
Ok, will take a stab at this. |
fwiw it looks like |
At the moment, the version of systemd-python-234.tar.gz is returned as None, with the 234 being currently included in the package name. However according to PEP-0440, having an integer version, while being a bit unusual, is still valid (https://www.python.org/dev/peps/pep-0440/#id22), and passes is_canonical here: https://www.python.org/dev/peps/pep-0440/#id79
I've raised an issue for this to discuss, as there is at least one existing case used in test_guess_name_version_from_filename which will be invalidated (ocflib-3-4.tar.gz, here) if we changed this, so wanted to make sure that we are in agreement before I make a PR.
Relevant package for this case in pypi.org (systemd-python) is here.
The text was updated successfully, but these errors were encountered: