Commit dcfbb594 authored by Jérome Perrin's avatar Jérome Perrin Committed by Julien Muchembled

setup.py: declare test dependencies through extras_require

This is what most of tools understand, test_requires is something that
only python setup.py test uses.
parent 3563d18a
......@@ -28,6 +28,20 @@ try:
except ImportError:
additional_install_requires.append('argparse')
extras_require = {
'docs': (
'Sphinx',
'repoze.sphinx.autointerface',
'sphinxcontrib.programoutput',
),
'ipython_console': ('ipython',),
'bpython_console': ('bpython',),
'test': (
'pyflakes',
'mock',
'httmock',
),
}
setup(name=name,
version=version,
......@@ -63,19 +77,8 @@ setup(name=name,
'uritemplate', # used by hateoas navigator
'subprocess32; python_version<"3"'
] + additional_install_requires,
extras_require={
'docs': (
'Sphinx',
'repoze.sphinx.autointerface',
'sphinxcontrib.programoutput'
),
'ipython_console': ('ipython',),
'bpython_console': ('bpython',)},
tests_require=[
'pyflakes',
'mock',
'httmock',
],
extras_require=extras_require,
tests_require=extras_require['test'],
zip_safe=False, # proxy depends on Flask, which has issues with
# accessing templates
entry_points={
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment