diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2017-11-25 09:45:05 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2017-11-25 09:45:05 -0500 |
commit | f012485e4767f3be81493c93ad534a02c6f14f14 (patch) | |
tree | 1a782d7ef146f803e509230b2e822d5735575652 /setuptools/dist.py | |
parent | 45f6ce2afb10aed556fec33c16b765728133f59a (diff) | |
download | external_python_setuptools-f012485e4767f3be81493c93ad534a02c6f14f14.tar.gz external_python_setuptools-f012485e4767f3be81493c93ad534a02c6f14f14.tar.bz2 external_python_setuptools-f012485e4767f3be81493c93ad534a02c6f14f14.zip |
Disallow unordered sequences for specifying install_requires. Fixes #458.
Diffstat (limited to 'setuptools/dist.py')
-rw-r--r-- | setuptools/dist.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/setuptools/dist.py b/setuptools/dist.py index aa304500..477f93dd 100644 --- a/setuptools/dist.py +++ b/setuptools/dist.py @@ -166,6 +166,8 @@ def check_requirements(dist, attr, value): """Verify that install_requires is a valid requirements list""" try: list(pkg_resources.parse_requirements(value)) + if isinstance(value, (dict, set)): + raise TypeError("Unordered types are not allowed") except (TypeError, ValueError) as error: tmpl = ( "{attr!r} must be a string or list of strings " |