aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavlos Ratis <dastergon@gentoo.org>2013-09-08 13:04:01 +0300
committerPavlos Ratis <dastergon@gentoo.org>2013-09-08 13:04:01 +0300
commit0fc07e1a784903efd0a4cb87469a55ea87e8e0e7 (patch)
tree968ec5873fdd15a1356d0a05a4d4c5ac8512ca8b
parentadd psycopg2 (PostgreSQL) as an extra dependency (diff)
downloadidentity.gentoo.org-0fc07e1a784903efd0a4cb87469a55ea87e8e0e7.tar.gz
identity.gentoo.org-0fc07e1a784903efd0a4cb87469a55ea87e8e0e7.tar.bz2
identity.gentoo.org-0fc07e1a784903efd0a4cb87469a55ea87e8e0e7.zip
use oneliner to parse test dependencies
-rwxr-xr-xsetup.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/setup.py b/setup.py
index 1b2174e..5ccf736 100755
--- a/setup.py
+++ b/setup.py
@@ -19,13 +19,6 @@ with open('requirements/base.txt', 'r') as f:
else:
base_deps.append(line.split('\n')[0])
-with open('requirements/tests.txt', 'r') as f:
- test_deps = []
- for line in f:
- if line.startswith('git+') or line.startswith('hg+'):
- test_deps.append(line.split('#egg=')[1])
- else:
- test_deps.append(line.split('\n')[0])
setup(
name='okupy',
version=okupy.__version__,
@@ -59,6 +52,6 @@ setup(
setup_requires=[
'setuptools>=0.6c11',
],
- tests_require=test_deps,
+ tests_require=open('requirements/tests.txt').read().split(),
extras_require=extra_deps,
)