From 0deff25667f9bb529d1fed781e5cf7860a099399 Mon Sep 17 00:00:00 2001 From: Sean McGinnis Date: Fri, 24 Apr 2020 10:25:47 -0500 Subject: [PATCH] Change default tox envs from python37 to python3 Python versions supported by OpenStack change over time, and for minor versions of Python 3 it is tedious to keep this file updated. Since this does not impact zuul jobs in any way, nor prevent local tests against py37, it should be safe to simply make this more easily compatible for users that don't care about the specific Python versions and just need basic tests to run. The *only* thing this does is changes the default versions tested if none are explicitly provided with `-e`. Change-Id: I2372178351e961eeed5a819f39e75d54ba148798 Signed-off-by: Sean McGinnis --- tox.ini | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index b6cc30c77c..e2f81631ad 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] minversion = 2.5.0 -envlist = docs,py36,py37,functional-py36,functional-py37,pep8,specs +envlist = docs,py3,functional-py3,pep8,specs skipsdist = True ignore_basepython_conflict = True @@ -51,6 +51,10 @@ commands = # This will use whatever 'basepython' is set to, so the name is ambiguous. setenv = OS_TEST_PATH={toxinidir}/octavia/tests/functional +[testenv:functional-py3] +basepython = python3 +setenv = OS_TEST_PATH={toxinidir}/octavia/tests/functional + [testenv:functional-py36] basepython = python3.6 setenv = OS_TEST_PATH={toxinidir}/octavia/tests/functional @@ -59,6 +63,10 @@ setenv = OS_TEST_PATH={toxinidir}/octavia/tests/functional basepython = python3.7 setenv = OS_TEST_PATH={toxinidir}/octavia/tests/functional +[testenv:functional-py38] +basepython = python3.8 +setenv = OS_TEST_PATH={toxinidir}/octavia/tests/functional + [testenv:debug] commands = oslo_debug_helper {posargs}