From f136d103fb1beb96db1ad153e6568ebbb4695837 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Tue, 18 Jul 2023 16:58:39 +0100 Subject: [PATCH] tox: Unset basepython This is a common source of bugs in tox 4 and is no longer necessary now that we are all using Python 3 everywhere. Change-Id: I3733f779075c189c9a630416181b7d4c14ba599b Signed-off-by: Stephen Finucane --- tox.ini | 7 ------- 1 file changed, 7 deletions(-) diff --git a/tox.ini b/tox.ini index 9a19c5b31e..a17cca2ff3 100644 --- a/tox.ini +++ b/tox.ini @@ -3,13 +3,8 @@ minversion = 3.18.0 # python runtimes: https://governance.openstack.org/tc/reference/runtimes/ussuri.html envlist = functional-py39,py39,pep8 skip_missing_interpreters = true -# this allows tox to infer the base python from the environment name -# and override any basepython configured in this file -ignore_basepython_conflict=true [testenv] -# Set default python version -basepython = python3 setenv = VIRTUAL_ENV={envdir} PYTHONWARNINGS=default::DeprecationWarning @@ -37,7 +32,6 @@ passenv = *_PROXY [testenv:functional] -# this will use whatever the system python3 is setenv = TEST_PATH = ./glance/tests/functional commands = stestr run {posargs} @@ -59,7 +53,6 @@ setenv = commands = {[testenv:functional]commands} [testenv:genpolicy] -basepython = python3 commands = oslopolicy-sample-generator --config-file=etc/glance-policy-generator.conf