summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Hellmann <doug@doughellmann.com>2018-09-26 18:38:43 -0400
committerDoug Hellmann <doug@doughellmann.com>2018-09-26 18:38:43 -0400
commit305eb10d2e71aa72e8749d4b687ffaa65c574a68 (patch)
tree17080f5e5a7ba2106c684f75e8a47ed68c2ac911
parent8c751728616c23d072670112987e98c2503fbdf3 (diff)
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: If1e380edabb8db57486a8d9c6ca7616247087505 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Notes
Notes (review): Verified+1: Canonical CI <uosci-testing-bot@ubuntu.com> Code-Review+2: Frode Nordahl <frode.nordahl@canonical.com> Workflow+1: Frode Nordahl <frode.nordahl@canonical.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Fri, 12 Oct 2018 10:56:24 +0000 Reviewed-on: https://review.openstack.org/606456 Project: openstack/charm-interface-keystone Branch: refs/heads/master
-rw-r--r--tox.ini3
1 files changed, 2 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index 6ffc056..5cf4c46 100644
--- a/tox.ini
+++ b/tox.ini
@@ -21,11 +21,12 @@ deps = -r{toxinidir}/test-requirements.txt
21commands = ostestr {posargs} 21commands = ostestr {posargs}
22 22
23[testenv:pep8] 23[testenv:pep8]
24basepython = python2.7 24basepython = python3
25deps = -r{toxinidir}/test-requirements.txt 25deps = -r{toxinidir}/test-requirements.txt
26commands = flake8 {posargs} . unit_tests 26commands = flake8 {posargs} . unit_tests
27 27
28[testenv:venv] 28[testenv:venv]
29basepython = python3
29commands = {posargs} 30commands = {posargs}
30 31
31[flake8] 32[flake8]