packaging.python.org icon indicating copy to clipboard operation
packaging.python.org copied to clipboard

Dependency specifiers grammar fixes

Open konstin opened this issue 2 years ago • 0 comments

This PR contains three changes:


Dependency Specifiers: Don't require whitespace after URL

otherwise numpy @ https://example.org/numpy is not a valid specifier (missing whitespace after the URL). This already what pip and packaging do and also what the parsley grammar says


Dependency Specifiers: Require whitespace before in and not in

Otherwise numpy; os_namein 'posix' would be a valid specifier which it isn't


Dependency Specifiers: Require whitespace after in and not in

Otherwise numpy; os_name in'posix' and numpy; os_name inos_name would be valid. pypa/packaging 22.0 actually allows currently numpy; os_name in'posix', but i argue there should be a whitespace after in and not in just like in python itself

konstin avatar Dec 11 '22 23:12 konstin