aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/dist.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2017-11-25 09:45:05 -0500
committerJason R. Coombs <jaraco@jaraco.com>2017-11-25 09:45:05 -0500
commitf012485e4767f3be81493c93ad534a02c6f14f14 (patch)
tree1a782d7ef146f803e509230b2e822d5735575652 /setuptools/dist.py
parent45f6ce2afb10aed556fec33c16b765728133f59a (diff)
downloadexternal_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.py2
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 "