Merge "tox: Unset basepython"

This commit is contained in:
Zuul 2023-08-09 08:03:03 +00:00 committed by Gerrit Code Review
commit d56f0ccf7e
1 changed files with 0 additions and 7 deletions

View File

@ -3,13 +3,8 @@ minversion = 3.18.0
# python runtimes: https://governance.openstack.org/tc/reference/runtimes/ussuri.html # python runtimes: https://governance.openstack.org/tc/reference/runtimes/ussuri.html
envlist = functional-py39,py39,pep8 envlist = functional-py39,py39,pep8
skip_missing_interpreters = true 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] [testenv]
# Set default python version
basepython = python3
setenv = setenv =
VIRTUAL_ENV={envdir} VIRTUAL_ENV={envdir}
PYTHONWARNINGS=default::DeprecationWarning PYTHONWARNINGS=default::DeprecationWarning
@ -37,7 +32,6 @@ passenv =
*_PROXY *_PROXY
[testenv:functional] [testenv:functional]
# this will use whatever the system python3 is
setenv = setenv =
TEST_PATH = ./glance/tests/functional TEST_PATH = ./glance/tests/functional
commands = stestr run {posargs} commands = stestr run {posargs}
@ -59,7 +53,6 @@ setenv =
commands = {[testenv:functional]commands} commands = {[testenv:functional]commands}
[testenv:genpolicy] [testenv:genpolicy]
basepython = python3
commands = commands =
oslopolicy-sample-generator --config-file=etc/glance-policy-generator.conf oslopolicy-sample-generator --config-file=etc/glance-policy-generator.conf