@ -1,9 +1,10 @@
[tox]
envlist = py 27,py 37,pep8
envlist = py 37,pep8
minversion = 2.0
skipsdist = True
[testenv]
basepython = python3
setenv = VIRTUAL_ENV={envdir}
PYTHONWARNINGS = default::DeprecationWarning
passenv = TRACE_FAILONLY GENERATE_HASHES http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
@ -39,7 +40,6 @@ commands =
[testenv:functional]
basepython = python3
setenv = {[testenv]setenv}
{[testenv:common]setenv}
OS_TEST_PATH = ./vmware_nsx/tests/functional
@ -49,7 +49,6 @@ deps =
-r{toxinidir}/vmware_nsx/tests/functional/requirements.txt
[testenv:dsvm-functional]
basepython = python3
setenv = OS_SUDO_TESTING=1
OS_FAIL_ON_MISSING_DEPS = 1
OS_TEST_TIMEOUT = 180
@ -64,15 +63,10 @@ commands =
sitepackages = True
[testenv:releasenotes]
basepython = python3
deps = -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt}
-r{toxinidir}/doc/requirements.txt
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[testenv:py27]
basepython = python2.7
setenv = OS_FAIL_ON_MISSING_DEPS=1
[testenv:py36]
basepython = python3.6
setenv = OS_FAIL_ON_MISSING_DEPS=1
@ -81,17 +75,7 @@ setenv = OS_FAIL_ON_MISSING_DEPS=1
basepython = python3.7
setenv = OS_FAIL_ON_MISSING_DEPS=1
[testenv:py27-dev]
basepython = python2.7
commands =
{[testenv:dev]commands}
pip freeze
stestr run {posargs}
whitelist_externals =
stestr
[testenv:py3-dev]
basepython = python3.7
commands =
{[testenv:dev]commands}
pip freeze
@ -109,7 +93,6 @@ whitelist_externals =
stestr
[testenv:pep8]
basepython = python3
commands =
# If it is easier to add a check via a shell script, consider adding it in this file
sh ./tools/misc-sanity-checks.sh
@ -124,7 +107,6 @@ whitelist_externals =
bash
[testenv:pep8-dev]
basepython = python3
commands =
{[testenv:dev]commands}
pip freeze
@ -143,13 +125,11 @@ whitelist_externals =
commands = bandit -r vmware_nsx -n 5 -ll
[testenv:cover]
basepython = python3
commands =
python setup.py testr --coverage --testr-args = '{posargs}'
coverage report
[testenv:docs]
basepython = python3
deps = -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt}
-r{toxinidir}/doc/requirements.txt
commands = sphinx-build -b html doc/source doc/build/html
@ -195,7 +175,6 @@ commands =
check-uuid --fix
[testenv:lower-constraints]
basepython = python3
deps =
-c{toxinidir}/lower-constraints.txt
-r{toxinidir}/test-requirements.txt
@ -203,7 +182,6 @@ deps =
-r{toxinidir}/requirements.txt
[testenv:lower-constraints-dev]
basepython = python3
commands =
{[testenv:dev]commands}
pip freeze
@ -218,7 +196,6 @@ deps =
commands = {posargs}
[testenv:requirements-check-dev]
basepython = python3
commands =
pip install -q -e "git+https://opendev.org/openstack/requirements#egg = requirements"
pip freeze