summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorDoug Hellmann <doug@doughellmann.com>2018-06-06 17:58:19 -0400
committerNguyen Hai <nguyentrihai93@gmail.com>2018-09-05 05:46:52 +0000
commit37ee6459cd2bb0197637f6d38e454bfe59192637 (patch)
tree427423edde39c1a72f06491e0138ca3f307bd485 /tox.ini
parent4330d036cd40299c3fd12d68d319e20757ccadcf (diff)
downloadpython-swiftclient-37ee6459cd2bb0197637f6d38e454bfe59192637.tar.gz
fix tox python3 overrides
We want to default to running all tox environments under python 3, so set the basepython value in each environment. We do not want to specify a minor version number, because we do not want to have to update the file every time we upgrade python. We do not want to set the override once in testenv, because that breaks the more specific versions used in default environments like py35 and py36. Change-Id: I86d24104033b490a35178fc504d88c1e4a566628 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini7
1 files changed, 7 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index 660248b..ec7d344 100644
--- a/tox.ini
+++ b/tox.ini
@@ -22,17 +22,21 @@ whitelist_externals = sh
passenv = SWIFT_* *_proxy
[testenv:pep8]
+basepython = python3
commands =
python -m flake8 swiftclient tests
[testenv:venv]
+basepython = python3
commands = {posargs}
[testenv:cover]
+basepython = python3
commands = python setup.py testr --coverage
coverage report
[testenv:func]
+basepython = python3
setenv = OS_TEST_PATH=tests.functional
whitelist_externals =
coverage
@@ -43,6 +47,7 @@ commands =
rm -f .coverage
[testenv:docs]
+basepython = python3
commands=
python setup.py build_sphinx
@@ -60,6 +65,7 @@ show-source = True
exclude = .venv,.tox,dist,doc,*egg
[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
@@ -69,6 +75,7 @@ deps = bindep
commands = bindep test
[testenv:releasenotes]
+basepython = python3
commands = sphinx-build -a -W -E -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[testenv:lower-constraints]