aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests
diff options
context:
space:
mode:
authorMarcel Bargull <marcel.bargull@udo.edu>2017-04-07 13:42:51 +0200
committerMarcel Bargull <marcel.bargull@udo.edu>2017-04-07 13:44:35 +0200
commitabaf7c4dd76c56eb509f6a5f6caa2f8e886801b6 (patch)
tree89402fe4a6547efe8cb341883ea9f8a25305d45b /setuptools/tests
parentbdbe0776c19646e703bd0b89ad3f33e6797256a7 (diff)
downloadexternal_python_setuptools-abaf7c4dd76c56eb509f6a5f6caa2f8e886801b6.tar.gz
external_python_setuptools-abaf7c4dd76c56eb509f6a5f6caa2f8e886801b6.tar.bz2
external_python_setuptools-abaf7c4dd76c56eb509f6a5f6caa2f8e886801b6.zip
Fixes #999: support python_requires, py_modules in configuration files
Diffstat (limited to 'setuptools/tests')
-rw-r--r--setuptools/tests/test_config.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/setuptools/tests/test_config.py b/setuptools/tests/test_config.py
index 799fb165..8bd2a494 100644
--- a/setuptools/tests/test_config.py
+++ b/setuptools/tests/test_config.py
@@ -312,6 +312,8 @@ class TestOptions:
'setup_requires = docutils>=0.3; spack ==1.1, ==1.3; there\n'
'dependency_links = http://some.com/here/1, '
'http://some.com/there/2\n'
+ 'python_requires = >=1.0, !=2.8\n'
+ 'py_modules = module1, module2\n'
)
with get_dist(tmpdir) as dist:
assert dist.zip_safe
@@ -340,6 +342,8 @@ class TestOptions:
'there'
])
assert dist.tests_require == ['mock==0.7.2', 'pytest']
+ assert dist.python_requires == '>=1.0, !=2.8'
+ assert dist.py_modules == ['module1', 'module2']
def test_multiline(self, tmpdir):
fake_env(