Skip to content

Commit

Permalink
[Tr] Require all deps for tests from setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
JNRowe committed Oct 18, 2017
1 parent edd4065 commit 7104c8a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
from setuptools import setup
from setuptools.command.test import test


class PytestTest(test):
def finalize_options(self):
test.finalize_options(self)
Expand Down Expand Up @@ -73,6 +74,8 @@ def make_list(s):
if suffix not in ['doc', 'test']:
extras_require[suffix] = pip_support.parse_requires(file)

tests_require = pip_support.parse_requires('extra/requirements-test.txt')

metadata = dict(conf['metadata'])
for k in ['classifiers', 'packages', 'py_modules']:
if k in metadata:
Expand All @@ -86,7 +89,7 @@ def make_list(s):
setup(
version=_version.dotted,
extras_require=extras_require,
tests_require=['pytest'],
tests_require=tests_require,
cmdclass={'test': PytestTest},
zip_safe=False,
**metadata,
Expand Down

0 comments on commit 7104c8a

Please sign in to comment.