summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Hellmann <doug@doughellmann.com>2018-09-26 18:38:56 -0400
committerAndreas Jaeger <jaegerandi@gmail.com>2018-10-04 11:29:10 +0000
commit30e6b7fdbd03fdd6fda450f90f26589720393f82 (patch)
treee3fa98b5d1bd7a009ca0e627791bb981066518e0
parent3b97e40e3b0c58f29b11c6caf1fbb71f5942159d (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: I0157a9abf9f2e5af7ad78a9baac9ff519edaae21 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Notes
Notes (review): Verified+1: Canonical CI <uosci-testing-bot@ubuntu.com> Code-Review+2: Ryan Beisner <ryan.beisner@canonical.com> Workflow+1: Ryan Beisner <ryan.beisner@canonical.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Thu, 04 Oct 2018 13:05:23 +0000 Reviewed-on: https://review.openstack.org/606460 Project: openstack/charm-interface-manila-plugin 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 c11c8ec..9a3675e 100644
--- a/tox.ini
+++ b/tox.ini
@@ -23,11 +23,12 @@ deps = -r{toxinidir}/test-requirements.txt
23commands = /bin/true 23commands = /bin/true
24 24
25[testenv:pep8] 25[testenv:pep8]
26basepython = python2.7 26basepython = python3
27deps = -r{toxinidir}/test-requirements.txt 27deps = -r{toxinidir}/test-requirements.txt
28commands = flake8 {posargs} 28commands = flake8 {posargs}
29 29
30[testenv:venv] 30[testenv:venv]
31basepython = python3
31commands = {posargs} 32commands = {posargs}
32 33
33[flake8] 34[flake8]