diff options
author | Pavlos Ratis <dastergon@gentoo.org> | 2013-09-08 13:04:01 +0300 |
---|---|---|
committer | Pavlos Ratis <dastergon@gentoo.org> | 2013-09-08 13:04:01 +0300 |
commit | 0fc07e1a784903efd0a4cb87469a55ea87e8e0e7 (patch) | |
tree | 968ec5873fdd15a1356d0a05a4d4c5ac8512ca8b | |
parent | add psycopg2 (PostgreSQL) as an extra dependency (diff) | |
download | identity.gentoo.org-0fc07e1a784903efd0a4cb87469a55ea87e8e0e7.tar.gz identity.gentoo.org-0fc07e1a784903efd0a4cb87469a55ea87e8e0e7.tar.bz2 identity.gentoo.org-0fc07e1a784903efd0a4cb87469a55ea87e8e0e7.zip |
use oneliner to parse test dependencies
-rwxr-xr-x | setup.py | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -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, ) |