Selector for python version
Closed this issue · 2 comments
jayvdb commented
When starting a porting project, often many rules fail only on the new platform, especially SyntaxError and undefined names.
Ideally this selector uses environment marker
https://www.python.org/dev/peps/pep-0496/
Probably simplest to rely on https://github.com/pypa/packaging/blob/master/packaging/markers.py for the implementation.
jayvdb commented
in case it helps, older setuptools had a _markerlib
, and then
pkg_resources.evaluate_marker
there is also a very old https://pypi.python.org/pypi/markerlib/0.6.0 that is missing some features