Get test requirements from test-requires file.
Change-Id: If37281f0015cba4717023390a7baa3aaa52646dd
This commit is contained in:
3
setup.py
3
setup.py
@@ -18,6 +18,7 @@ from setuptools.command.test import test as TestCommand
|
|||||||
from libra.openstack.common import setup
|
from libra.openstack.common import setup
|
||||||
|
|
||||||
requires = setup.parse_requirements()
|
requires = setup.parse_requirements()
|
||||||
|
tests_requires = setup.parse_requirements(['tools/test-requires'])
|
||||||
|
|
||||||
|
|
||||||
class PyTest(TestCommand):
|
class PyTest(TestCommand):
|
||||||
@@ -72,7 +73,7 @@ setuptools.setup(
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
cmdclass=ci_cmdclass,
|
cmdclass=ci_cmdclass,
|
||||||
tests_require=['pytest-pep8'],
|
tests_require=tests_requires,
|
||||||
install_requires=requires,
|
install_requires=requires,
|
||||||
setup_requires=setup_reqs
|
setup_requires=setup_reqs
|
||||||
)
|
)
|
||||||
|
@@ -1,3 +1,3 @@
|
|||||||
pytest-pep8
|
pytest
|
||||||
mock
|
mock
|
||||||
httplib2
|
httplib2
|
||||||
|
Reference in New Issue
Block a user