7a5cc32e70
The verification comands used by tox need at least 2.0 version. This patch aims to update tox version from 1.6 to 2.0 which should help with local running of constraints targets. Change-Id: Ibc559e0afb3a68d3ce2acfd325e0695c3fae41ad
48 lines
1.0 KiB
INI
48 lines
1.0 KiB
INI
[tox]
|
|
envlist = docs,py27,pep8
|
|
minversion = 2.0
|
|
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
|
|
-r{toxinidir}/test-requirements.txt
|
|
|
|
commands =
|
|
python setup.py test --slowest --testr-args='{posargs}'
|
|
|
|
[testenv:venv]
|
|
basepython = python3
|
|
commands = {posargs}
|
|
|
|
[testenv:pep8]
|
|
basepython = python3
|
|
commands = flake8
|
|
|
|
[testenv:docs]
|
|
basepython = python3
|
|
commands = sphinx-build -b html doc/source doc/build/html
|
|
|
|
[testenv:pdf]
|
|
deps =
|
|
cairosvg
|
|
lxml
|
|
tinycss
|
|
cssselect
|
|
rst2pdf
|
|
whitelist_externals = bash
|
|
commands = bash tools/build_pdf.sh
|
|
|
|
[flake8]
|
|
show-source = true
|
|
builtins = _
|
|
exclude=.venv*,.git,.tox,dist,doc,*lib/python*,*egg,build
|