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: ...@@ -28,6 +28,20 @@ try:
except ImportError: except ImportError:
additional_install_requires.append('argparse') 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, setup(name=name,
version=version, version=version,
...@@ -63,19 +77,8 @@ setup(name=name, ...@@ -63,19 +77,8 @@ setup(name=name,
'uritemplate', # used by hateoas navigator 'uritemplate', # used by hateoas navigator
'subprocess32; python_version<"3"' 'subprocess32; python_version<"3"'
] + additional_install_requires, ] + additional_install_requires,
extras_require={ extras_require=extras_require,
'docs': ( tests_require=extras_require['test'],
'Sphinx',
'repoze.sphinx.autointerface',
'sphinxcontrib.programoutput'
),
'ipython_console': ('ipython',),
'bpython_console': ('bpython',)},
tests_require=[
'pyflakes',
'mock',
'httmock',
],
zip_safe=False, # proxy depends on Flask, which has issues with zip_safe=False, # proxy depends on Flask, which has issues with
# accessing templates # accessing templates
entry_points={ 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