You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the grammar in PEP 508, environment markers can have parentheses, like this:
foo; extra == "test" and (os_name == "nt" or python_version == "2.7")
For now, I just strip leading/trailing parentheses from each clause before checking them. It would be good to check that the parentheses are balanced and only occur in the correct places, before and after individual boolean clauses.
I suspect that this requires a degree of 'proper' parsing of these expressions, rather than just regex-munging.
The text was updated successfully, but these errors were encountered:
According to the grammar in PEP 508, environment markers can have parentheses, like this:
For now, I just strip leading/trailing parentheses from each clause before checking them. It would be good to check that the parentheses are balanced and only occur in the correct places, before and after individual boolean clauses.
I suspect that this requires a degree of 'proper' parsing of these expressions, rather than just regex-munging.
The text was updated successfully, but these errors were encountered: