-
Notifications
You must be signed in to change notification settings - Fork 251
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
Is an empty string a valid LegacyVersion? #382
Comments
Let's do this. :) |
Note that even if Edit: Sorry, didn't refresh my browser, so I missed @pradyunsg's comment. I agree, let's do it. |
Actually, what's the timescale for the next major release of the project, because it appears that |
Anytime this year. ;) packaging also follows a CalVer cadence. |
More to the point, then, I guess there's no reason to disallow "" as a |
No, you're right. This project will drop Legacy Version very soon, and we probably don't need to fix this code before removing it. |
More reason to drop |
Hello, I see packaging 21.0 was released in July, but Legacy Version is still present. May I ask why it wasn't removed yet? |
See #407 for the discussion. Basically, I didn't have time for the PR removing it, and that resulted in not removing legacy in the first release. |
I see, thank you. I am asking because I am trying to write a parser for PEP 508 as discussed here. So I would like to know whether it should support Legacy Version or I can ignore these tests. |
Definitely ignore them. Legacy versions are non-PEP 508 versions. |
Could you file a new issue for the hand written parser for PEP 508 against this repo? It'll let us drop the dependency on pyparsing, which would be nice. |
Sure thing, see #468 |
|
From pypa/pip#9405 (comment)
Current pip allows a user to specify requirements like
packaging==
.packaging
parses the part after==
as aLegacyVersion
containing an empty string. Whether this is a bug or not, depending on how far the “LegacyVersion can contain anything” idea is taken, but the behaviour is quite confusing to both users.Since distutils and setuptools both use
0.0.0
if a package is built without specifying a version (or an empty one), it is reasonable to disallowLegacyVersion("")
IMO.The text was updated successfully, but these errors were encountered: