Configure basepython to python3 08/16708/1
authorThanh Ha <zxiiro@gmail.com>
Tue, 27 Aug 2019 19:13:07 +0000 (15:13 -0400)
committerThanh Ha <zxiiro@gmail.com>
Tue, 27 Aug 2019 19:13:07 +0000 (15:13 -0400)
More and more libraries that we are pulling in require Python 3 so
to avoid having to play the pin dependencies whack-a-mole game let's
bump or base python where possible to python3.

Change-Id: Ib25f0290675d2855ed29905331eb76ecbe39fdbf
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
tox.ini

diff --git a/tox.ini b/tox.ini
index c30568b..aacc8d4 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,13 +1,14 @@
 [tox]
 minversion = 1.9
 envlist =
-    check-hooks,
     coala,
     docs,
     docs-linkcheck,
+    pre-commit,
     py27
 
 [testenv]
+basepython = python3
 deps =
     -rrequirements.txt
 commands =
@@ -29,21 +30,25 @@ commands =
 skip_install=True
 
 [testenv:docs]
+basepython = python3
 deps = -rdocs/requirements.txt
 commands =
     sphinx-build -j auto --keep-going -W -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
 
 [testenv:docs-linkcheck]
+basepython = python3
 deps = -rdocs/requirements.txt
 commands =
     sphinx-build -j auto --keep-going -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck
 
 [testenv:pre-commit]
+basepython = python3
 deps = pre-commit
 commands =
     pre-commit install --hook-type commit-msg
     pre-commit run --all-files
 
 [testenv:reno]
+basepython = python3
 deps = -rdocs/requirements.txt
 commands = reno {posargs:--help}