cfb02a66d3
This should overcome problem with system argparse in gate. Note that it is safe to do because we don't use any system python packages anyway. Change-Id: Id59a133821e176ad2bffcc5e9c1812a7eb2ab621
28 lines
753 B
INI
28 lines
753 B
INI
[tox]
|
|
envlist = docs,py27
|
|
minversion = 1.6
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
# --ignore-installed is added to workaround problem with pip 8.0 and argparse
|
|
# https://github.com/pypa/pip/issues/3404 and
|
|
# https://github.com/pypa/pip/issues/3384
|
|
install_command = pip install --ignore-installed -U {opts} {packages}
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
LANG=en_US.UTF-8
|
|
LANGUAGE=en_US:en
|
|
LC_ALL=C
|
|
deps = -r{toxinidir}/requirements.txt
|
|
commands =
|
|
python setup.py test --slowest --testr-args='{posargs}'
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:docs]
|
|
commands =
|
|
sphinx-build -b html doc/source/ doc/build/html
|
|
sphinx-build -b latex doc/source/ doc/build/latex
|
|
sphinx-build -b pdf doc/source/ doc/build/pdf
|