d9682e124f
These requirements are expanded into the sdist tarball, however they're not needed for building or runnig tests. Move them into the pep8 target. Change-Id: Ice851200a45538be4dd27736674fcd7315ed87a3
39 lines
892 B
INI
39 lines
892 B
INI
[tox]
|
|
envlist = py27,py34,py35,pypy,pep8
|
|
minversion = 2.0
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
install_command = pip install {opts} {packages}
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
OS_STDOUT_NOCAPTURE=False
|
|
OS_STDERR_NOCAPTURE=False
|
|
PYTHONHASHSEED=0
|
|
deps =
|
|
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands = stestr run {posargs}
|
|
|
|
[testenv:pep8]
|
|
basepython = python3
|
|
deps = {[testenv]deps}
|
|
flake8<3.7.0,>=3.6.0
|
|
bandit>=1.1.0
|
|
commands =
|
|
flake8
|
|
bandit -r -s B701 renderspec -x tests
|
|
|
|
[testenv:venv]
|
|
basepython = python3
|
|
commands = {posargs}
|
|
|
|
[flake8]
|
|
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|
|
|
|
[testenv:docs]
|
|
basepython = python3
|
|
commands = python setup.py build_sphinx
|
|
|