[tox] Re add option to override py3 version with TOX_PYTHON

Got dropped in https://review.opendev.org/950581

Also add ignore_basepython_conflict = True to avoid:-
tox.tox_env.errors.Fail: env name py312 conflicting with
base python python3

Change-Id: I0b2e88c8cf7a532280ceaf0bdaeb240297f1270f
Signed-off-by: yatinkarel <ykarel@redhat.com>
This commit is contained in:
2025-07-14 12:13:21 +05:30
parent 47b54e94ae
commit 6c729befc1

View File

@@ -1,10 +1,12 @@
[tox]
envlist = docs,py3,pep8
minversion = 4.6.0
ignore_basepython_conflict = True
[testenv]
description =
Run unit tests.
basepython = {env:TOX_PYTHON:python3}
setenv =
VIRTUAL_ENV={envdir}
OS_LOG_CAPTURE={env:OS_LOG_CAPTURE:true}