summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Hellmann <doug@doughellmann.com>2018-09-26 19:03:55 -0400
committerDoug Hellmann <doug@doughellmann.com>2018-09-26 19:03:55 -0400
commit68818cece6ad418287ea843d5616890dd72a2c38 (patch)
tree7ce390b98e3acca65b9812a4315b03526db08465
parenta731e25e00ca5542bac5d11f0220bd987c78b6d8 (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: I1853dafac8f854812744acf50706cdef15a87936 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Notes
Notes (review): Code-Review+2: Emilien Macchi <emilien@redhat.com> Workflow+1: Emilien Macchi <emilien@redhat.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Mon, 08 Oct 2018 01:10:31 +0000 Reviewed-on: https://review.openstack.org/607717 Project: openstack/os-apply-config Branch: refs/heads/master
-rw-r--r--tox.ini3
1 files changed, 3 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index 1a6740f..3ced6c9 100644
--- a/tox.ini
+++ b/tox.ini
@@ -17,9 +17,11 @@ commands =
17sitepackages = True 17sitepackages = True
18 18
19[testenv:pep8] 19[testenv:pep8]
20basepython = python3
20commands = flake8 21commands = flake8
21 22
22[testenv:cover] 23[testenv:cover]
24basepython = python3
23setenv = 25setenv =
24 PYTHON=coverage run --source os_apply_config --parallel-mode 26 PYTHON=coverage run --source os_apply_config --parallel-mode
25commands = 27commands =
@@ -29,6 +31,7 @@ commands =
29 coverage xml -o cover/coverage.xml 31 coverage xml -o cover/coverage.xml
30 32
31[testenv:venv] 33[testenv:venv]
34basepython = python3
32commands = {posargs} 35commands = {posargs}
33 36
34[flake8] 37[flake8]