From f91e32f29244fb8a9d313a9701b81036de25842e Mon Sep 17 00:00:00 2001 From: konstin Date: Mon, 12 Dec 2022 00:19:24 +0100 Subject: [PATCH] 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'` --- source/specifications/dependency-specifiers.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/specifications/dependency-specifiers.rst b/source/specifications/dependency-specifiers.rst index 9b29669d9..8fc445013 100644 --- a/source/specifications/dependency-specifiers.rst +++ b/source/specifications/dependency-specifiers.rst @@ -70,7 +70,7 @@ URI is defined in :rfc:`std-66 <3986>`):: Environment markers allow making a specification only take effect in some environments:: - marker_op = version_cmp | (wsp+ 'in') | (wsp+ 'not' wsp+ 'in') + marker_op = version_cmp | (wsp+ 'in' wsp+) | (wsp+ 'not' wsp+ 'in' wsp+) python_str_c = (wsp | letter | digit | '(' | ')' | '.' | '{' | '}' | '-' | '_' | '*' | '#' | ':' | ';' | ',' | '/' | '?' | '[' | ']' | '!' | '~' | '`' | '@' | '$' | '%' | '^' |