
Caching is enabled by default from pip version 6.0 More info: https://testrun.org/tox/latest/config.html#confval-downloadcache=path https://pip.pypa.io/en/stable/reference/pip_install/#caching Change-Id: Ic89af2a7dd05629a00a9dd4857866f6028afc9d5
28 lines
588 B
INI
28 lines
588 B
INI
[tox]
|
|
minversion = 1.6
|
|
envlist = pep8
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
install_command = pip install -U {opts} {packages}
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
sitepackages = False
|
|
|
|
[testenv:pep8]
|
|
commands =
|
|
flake8 openstackdocstheme
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:docs]
|
|
commands = python setup.py build_sphinx
|
|
|
|
[testenv:releasenotes]
|
|
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
|
|
|
[flake8]
|
|
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,tools
|
|
show-source = True
|