Clean up tox file

pull/18/head
Eric Holscher 9 years ago
parent 0c1583ac40
commit f9d4d8c18d

@ -31,7 +31,9 @@ def run_autoapi(app):
normalized_dir = os.path.normpath(os.path.join(app.confdir, app.config.autoapi_dir)) normalized_dir = os.path.normpath(os.path.join(app.confdir, app.config.autoapi_dir))
if not os.path.exists(normalized_dir): if not os.path.exists(normalized_dir):
raise ExtensionError('AutoAPI Directory not found. Please check your `autoapi_dir` setting.') raise ExtensionError(
'AutoAPI Directory not found. Please check your `autoapi_dir` setting.'
)
normalized_root = os.path.normpath(os.path.join(app.confdir, app.config.autoapi_root)) normalized_root = os.path.normpath(os.path.join(app.confdir, app.config.autoapi_root))

@ -1,27 +1,20 @@
[tox] [tox]
envlist = py27,lint,docs envlist = py27,lint,docs
skipsdist = True
[testenv] [testenv]
setenv = setenv =
LANG=C LANG=C
deps = -r{toxinidir}/requirements.txt deps = -r{toxinidir}/requirements.txt
whitelist_externals = git
commands = commands =
python setup.py test py.test {posargs}
[testenv:docs] [testenv:docs]
setenv = deps = {[testenv]deps}
PYTHONPATH = {toxinidir}
deps =
{[testenv]deps}
changedir = {toxinidir}/docs changedir = {toxinidir}/docs
commands = commands =
sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv:lint] [testenv:lint]
setenv =
PYTHONPATH = {toxinidir}
deps = deps =
{[testenv]deps} {[testenv]deps}
prospector prospector

Loading…
Cancel
Save