Commit 50cd15ae authored by Jason R. Coombs's avatar Jason R. Coombs

Include setup_requires directive in Distribution attributes and metadata. Fixes #239.

parent f1861733
...@@ -2,6 +2,14 @@ ...@@ -2,6 +2,14 @@
CHANGES CHANGES
======= =======
---
5.5
---
* Issue #239: Setuptools now includes the setup_requires directive on
Distribution objects and validates the syntax just like install_requires
and tests_require directives.
----- -----
5.4.2 5.4.2
----- -----
......
...@@ -144,6 +144,7 @@ setup_params = dict( ...@@ -144,6 +144,7 @@ setup_params = dict(
"extras_require = setuptools.dist:check_extras", "extras_require = setuptools.dist:check_extras",
"install_requires = setuptools.dist:check_requirements", "install_requires = setuptools.dist:check_requirements",
"tests_require = setuptools.dist:check_requirements", "tests_require = setuptools.dist:check_requirements",
"setup_reqires = setuptools.dist:check_requirements",
"entry_points = setuptools.dist:check_entry_points", "entry_points = setuptools.dist:check_entry_points",
"test_suite = setuptools.dist:check_test_suite", "test_suite = setuptools.dist:check_test_suite",
"zip_safe = setuptools.dist:assert_bool", "zip_safe = setuptools.dist:assert_bool",
......
...@@ -259,7 +259,7 @@ class Distribution(_Distribution): ...@@ -259,7 +259,7 @@ class Distribution(_Distribution):
self.dependency_links = attrs.pop('dependency_links', []) self.dependency_links = attrs.pop('dependency_links', [])
assert_string_list(self,'dependency_links',self.dependency_links) assert_string_list(self,'dependency_links',self.dependency_links)
if attrs and 'setup_requires' in attrs: if attrs and 'setup_requires' in attrs:
self.fetch_build_eggs(attrs.pop('setup_requires')) self.fetch_build_eggs(attrs['setup_requires'])
for ep in pkg_resources.iter_entry_points('distutils.setup_keywords'): for ep in pkg_resources.iter_entry_points('distutils.setup_keywords'):
if not hasattr(self,ep.name): if not hasattr(self,ep.name):
setattr(self,ep.name,None) setattr(self,ep.name,None)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment