packaging.python.org
packaging.python.org copied to clipboard
Dependency specifiers grammar fixes
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