summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-06-08 13:53:57 +0000
committerGerrit Code Review <review@openstack.org>2018-06-08 13:53:57 +0000
commit7907528256439d02b555c976485ea85cc49fa14c (patch)
tree8d601b18ed37f9ec5680187b369f9f35eedd5f64
parentb3cca2ba62e80d5ce9bd9e6a4484ca36fe4c7b0f (diff)
parente23c448c323db0107e3a6d217b0fd15d37177e71 (diff)
downloadpython-novaclient-7907528256439d02b555c976485ea85cc49fa14c.tar.gz
Merge "fix tox python3 overrides"
-rw-r--r--tox.ini7
1 files changed, 7 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index b4dfa8f4..2214780a 100644
--- a/tox.ini
+++ b/tox.ini
@@ -23,12 +23,15 @@ commands =
# mode. To do this define the TRACE_FAILONLY environmental variable.
[testenv:pep8]
+basepython = python3
commands = flake8 {posargs}
[testenv:bandit]
+basepython = python3
commands = bandit -r novaclient -n5 -x tests
[testenv:venv]
+basepython = python3
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
-r{toxinidir}/test-requirements.txt
@@ -37,6 +40,7 @@ deps =
commands = {posargs}
[testenv:docs]
+basepython = python3
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
-r{toxinidir}/requirements.txt
@@ -45,6 +49,7 @@ commands =
sphinx-build -b html doc/source doc/build/html
[testenv:releasenotes]
+basepython = python3
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
-r{toxinidir}/requirements.txt
@@ -71,6 +76,7 @@ commands =
python novaclient/tests/functional/hooks/check_resources.py
[testenv:cover]
+basepython = python3
commands =
python setup.py testr --coverage --testr-args='{posargs}'
coverage report
@@ -92,6 +98,7 @@ exclude=.venv,.git,.tox,dist,*lib/python*,*egg,build,doc/source/conf.py,releasen
import_exceptions = novaclient.i18n
[testenv:bindep]
+basepython = python3
# Do not install any requirements. We want this to be fast and work even if
# system dependencies are missing, since it's used to tell you what system
# dependencies are missing! This also means that bindep must be installed