-
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
Local version labels in version specifiers #661
Comments
parse_requirement
Argh, Beyond that, >>> # packaging 21.3
>>> from packaging.requirements import Requirement
>>> list(Requirement("torch>=1.13.1+cu117").specifier)
[<LegacySpecifier('>=1.13.1+cu117')>] It does have reasonable semantics if you expect to have a monotonically increasing number (although it'd work better with a
It does seem like a valid version specifier and a valid usecase but, as it stands, PEP 508 and PEP 440 don't permit using local version labels in version specifiers. This works in pip and packaging 21.3 for the same reasons that the following "works": >>> # packaging 21.3
>>> list(Requirement("torch>=absolutelyanythinghere").specifier)
[<LegacySpecifier('>=absolutelyanythinghere')>] |
parse_requirement
I've opened https://discuss.python.org/t/lets-permit-local-version-label-in-version-specifiers/22781 for discussing this. |
We’ve settled on no for this. See the discussion above for the details. |
The text was updated successfully, but these errors were encountered: