-
Notifications
You must be signed in to change notification settings - Fork 253
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
Inconsistent results between version.parse
and utils.parse_sdist_filename
#703
Comments
According to the specification, the version part of the sdist filename must be normalised. The sdist name you provided is therefore considered malformed and the parse result unspecified. |
Yes, that's my understanding as well. The weird thing for me is the difference between the two results, especially as the name part seems compliant. I'd be more than happy with |
The version parser accepts non-normalised versions. |
Ah got you, the former part was/is confusing for me. I understand now that this is either hard or impossible to solve in a generic way here. In my specific case the problem is that |
The problem is that |
Hello,
I stumbled upon differing interpretations in
version.parse
andutils.parse_sdist_filename
when parsing the version part of the same sdist filename. To be honest, both of them are surprising to some extent. Whileparse
seems to interpret the intent correctly, even though the "postN" part does not seem PEP440-compliant to me, I'd expect both functions to raiseInvalidVersion
here. At least the result ofparse_sdist_filename
seems broken.Happy to try a PR, just wanted to know whether you share my understanding of the problem first :)
(probably related to #530)
The text was updated successfully, but these errors were encountered: