-
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
A specifier of "==*" is not handled properly #307
Comments
A specifier of
Instead when used in a
Which means that a
PEP 440 says:
where the minimum valid version is a single-digit release segment, so I would expect that particular test to use |
Bah. Legacy stuff. I didn't even realise there was a Thanks for the clarification. I had indeed changed that test as described. I wonder whether pip's code is being inconsistent in where it allows "legacy" versions of stuff like this. Certainly we have at least one code path that was accepting a version string of "7" as matching a specifier string of "==*". Never mind, my immediate issue is addressed, and there's no bug in packaging. |
It's not -- we just allow it everywhere. :) |
Nope, the triggering case would have worked then. I think the new resolver code uses |
This is somewhat useless, and I'm not entirely sure it's PEP 400 conformant, but the following fails:
This form of specifier is used in pip's test suite here. I'll fix the test by using a different specifier, but I think that
packaging
should either reject the specifier as invalid, or treat it as "always matching".The text was updated successfully, but these errors were encountered: