-
Notifications
You must be signed in to change notification settings - Fork 273
Closed
Labels
Description
considering the requirement black==22.1.0; python_full_version >= "3.6.2"
I would expect pip to install black on python 3.11.0a5 however I get:
$ pip install 'black==22.1.0; python_full_version >= "3.6.2"'
Ignoring black: markers 'python_full_version >= "3.6.2"' don't match your environment
looking at packaging.markers
"python_full_version > '3.6.2' is excluding pre-release versions:
>>> import packaging.markers
>>> packaging.markers.Marker("python_full_version > '3.6.2'").evaluate({"python_full_version": "3.11.0a5"})
False
>>> packaging.markers.Marker("python_full_version > '3.6.2'").evaluate({"python_full_version": "3.11.0"})
True
>>>
see also pypa/pip#10962 (comment)