summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Hellmann <doug@doughellmann.com>2018-09-26 18:38:46 -0400
committerAndreas Jaeger <jaegerandi@gmail.com>2018-10-04 12:42:06 +0000
commit8551467d3e3f9fbb7f6b7d3cf9f9ffb7e89f988d (patch)
treec4ec3288de6b766413150359df57b243d3f4b799
parenta576bfae597e3f6bc1edd9d5005b176a572b6066 (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: Ib69685e5b0c503603d7c6dedb5a5f4e6441ac901 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:45:01 +0000 Reviewed-on: https://review.openstack.org/606457 Project: openstack/charm-interface-keystone-admin 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 0b486b1..9a4f65c 100644
--- a/tox.ini
+++ b/tox.ini
@@ -15,11 +15,12 @@ basepython = python2.7
15deps = -r{toxinidir}/test-requirements.txt 15deps = -r{toxinidir}/test-requirements.txt
16 16
17[testenv:pep8] 17[testenv:pep8]
18basepython = python2.7 18basepython = python3
19deps = -r{toxinidir}/test-requirements.txt 19deps = -r{toxinidir}/test-requirements.txt
20commands = flake8 {posargs} 20commands = flake8 {posargs}
21 21
22[testenv:venv] 22[testenv:venv]
23basepython = python3
23commands = {posargs} 24commands = {posargs}
24 25
25[flake8] 26[flake8]