diff options
| author | PJ Eby <distutils-sig@python.org> | 2005-11-19 20:38:40 +0000 |
|---|---|---|
| committer | PJ Eby <distutils-sig@python.org> | 2005-11-19 20:38:40 +0000 |
| commit | 33c7fc8cf4fce1e28eaaa20739da10d861d0fd5f (patch) | |
| tree | 72fb86d76ad349a9a7bff41e2a5caddbccf9df33 /setuptools/dist.py | |
| parent | 85840589bbc23ae27a85a90506a2e971ec9e9cc3 (diff) | |
| download | python-setuptools-bitbucket-33c7fc8cf4fce1e28eaaa20739da10d861d0fd5f.tar.gz | |
Added ``tests_require`` keyword to ``setup()``, so that e.g. packages
requiring ``nose`` to run unit tests can make this dependency optional
unless the ``test`` command is run.
Diffstat (limited to 'setuptools/dist.py')
| -rw-r--r-- | setuptools/dist.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/setuptools/dist.py b/setuptools/dist.py index f0ad6f8b..17c9f149 100644 --- a/setuptools/dist.py +++ b/setuptools/dist.py @@ -80,14 +80,14 @@ def assert_bool(dist, attr, value): -def check_install_requires(dist, attr, value): +def check_requirements(dist, attr, value): """Verify that install_requires is a valid requirements list""" try: list(pkg_resources.parse_requirements(value)) except (TypeError,ValueError): raise DistutilsSetupError( - "'install_requires' must be a string or list of strings " - "containing valid project/version requirement specifiers" + "%r must be a string or list of strings " + "containing valid project/version requirement specifiers" % (attr,) ) def check_entry_points(dist, attr, value): |
