summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Finucane <sfinucan@redhat.com>2020-02-20 09:56:40 +0000
committerStephen Finucane <sfinucan@redhat.com>2020-02-21 09:48:38 +0000
commit9dee28ae6c32814494031ef503b835d4728d91dc (patch)
treee7116f45e2d12bcc73a69a890486102529848f43
parent1e05dec589268fe50e15b07b788a007a5c89fc62 (diff)
downloadpython-novaclient-9dee28ae6c32814494031ef503b835d4728d91dc.tar.gz
tox: Configure 'ignore_basepython_conflict'
Resolves the following warning: UserWarning: conflicting basepython version (set 37, should be 36) for env 'py36';resolve conflict or set ignore_basepython_conflict and makes sure we're testing with what we should be. Some random indentation is fixed while we're here. Change-Id: I6f3e98cc33731f528a3a755300f1fcc65c6b53ff Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
-rw-r--r--tox.ini27
1 files changed, 14 insertions, 13 deletions
diff --git a/tox.ini b/tox.ini
index 2b9cb62d..a5122f9c 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,19 +1,20 @@
[tox]
envlist = py37,pep8,docs
-minversion = 2.0
-skipsdist = True
+minversion = 3.1
+skipsdist = true
+ignore_basepython_conflict = true
[testenv]
basepython = python3
-usedevelop = True
+usedevelop = true
# tox is silly... these need to be separated by a newline....
whitelist_externals =
find
rm
make
-passenv = ZUUL_CACHE_DIR
- REQUIREMENTS_PIP_LOCATION
-install_command = pip install {opts} {packages}
+passenv =
+ ZUUL_CACHE_DIR
+ REQUIREMENTS_PIP_LOCATION
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/test-requirements.txt
@@ -71,13 +72,13 @@ commands =
[testenv:cover]
setenv =
- PYTHON=coverage run --source novaclient --parallel-mode
+ PYTHON=coverage run --source novaclient --parallel-mode
commands =
- stestr run {posargs}
- coverage combine
- coverage html -d cover
- coverage xml -o cover/coverage.xml
- coverage report
+ stestr run {posargs}
+ coverage combine
+ coverage html -d cover
+ coverage xml -o cover/coverage.xml
+ coverage report
[flake8]
# Following checks should be enabled in the future.
@@ -89,7 +90,7 @@ commands =
#
# Additional checks are also ignored on purpose: F811, F821
ignore = E731,F811,F821,H404,H405
-show-source = True
+show-source = true
exclude=.venv,.git,.tox,dist,*lib/python*,*egg,build,doc/source/conf.py,releasenotes
[hacking]