aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2019-09-11 16:54:07 +0100
committerJason R. Coombs <jaraco@jaraco.com>2019-09-11 16:54:07 +0100
commitc3df086ed3570e7065e6935a52d95c8cdef2b071 (patch)
tree79cd6988bf251e3a264b92dae270e6c6560d9677
parentb31777cd50c7cb59b4ef6c22bd014f0229ef32fa (diff)
downloadexternal_python_setuptools-c3df086ed3570e7065e6935a52d95c8cdef2b071.tar.gz
external_python_setuptools-c3df086ed3570e7065e6935a52d95c8cdef2b071.tar.bz2
external_python_setuptools-c3df086ed3570e7065e6935a52d95c8cdef2b071.zip
Ensure that python_requires is checked during option processing. Fixes #1787.
-rw-r--r--setuptools/config.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/setuptools/config.py b/setuptools/config.py
index b6626043..2d50e25e 100644
--- a/setuptools/config.py
+++ b/setuptools/config.py
@@ -12,6 +12,7 @@ from importlib import import_module
from distutils.errors import DistutilsOptionError, DistutilsFileError
from setuptools.extern.packaging.version import LegacyVersion, parse
+from setuptools.extern.packaging.specifiers import SpecifierSet
from setuptools.extern.six import string_types, PY3
@@ -554,6 +555,7 @@ class ConfigOptionsHandler(ConfigHandler):
'packages': self._parse_packages,
'entry_points': self._parse_file,
'py_modules': parse_list,
+ 'python_requires': SpecifierSet,
}
def _parse_packages(self, value):