-
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
Comparing marker string with marker string #632
Comments
Did this work in an older version of packaging? |
no, it just throws a different error |
Could you post that error as well? |
Sure, i checked and in all versions down to 20.0 |
If I interpret PEP 508 correctly, these markers should be allowed: "a" == "b"
"a" <= "b" While these are forbidden: "a" ~= "b" Quote:
|
Bah, this isn’t a logical thing to do and I’d much rather we amend the dependency specification format to disallow such string comparisons and reject these markers. |
I agree with @pradyunsg to change the spec. Imho the best thing would be to change the PEP 508 grammar to
This would also disallow other strange comparisons like (imho it should also be specified which |
Currently comparing two marker string is legal in PEP 508, but fails in packaging 22.0:
The two options are to make this legal in packaging or to ban that from the Dependency specifiers aka PEP 508, imho it the better option would be to just ban it
The text was updated successfully, but these errors were encountered: