Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when invalid python_requires indicated in setup.cfg #1847

Merged
merged 5 commits into from Oct 7, 2019
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Ensure that python_requires is checked during option processing. Fixes

  • Loading branch information
jaraco committed Sep 11, 2019
commit c3df086ed3570e7065e6935a52d95c8cdef2b071
@@ -12,6 +12,7 @@

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 @@ def parsers(self):
'packages': self._parse_packages,
'entry_points': self._parse_file,
'py_modules': parse_list,
'python_requires': SpecifierSet,
}

def _parse_packages(self, value):
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.