From 6c729befc1049cd1e25550ec1219dd1fe128b379 Mon Sep 17 00:00:00 2001 From: yatinkarel Date: Mon, 14 Jul 2025 12:13:21 +0530 Subject: [PATCH] [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 --- tox.ini | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tox.ini b/tox.ini index 41d757e19ed..d6697460639 100644 --- a/tox.ini +++ b/tox.ini @@ -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}