From 553c089d09b9f51c44b63bc620e96ba9ed0f9491 Mon Sep 17 00:00:00 2001 From: manchandavishal Date: Mon, 16 Jan 2023 17:40:32 +0530 Subject: [PATCH] Adjust tox.ini for tox4 OpenStack CI now uses tox4 by default. - Drop "skipsdist = True". When skipsdist=True is specified, a target application is not installed into a tox env, but there seems no reason to do so. In various other OpenStack projects, a target applicatin needs to be installed into a tox vnev, for example, in docs and/or linter jobs and it causes failures with tox4. So dropping it would avoid potential future failures. - Add ignore_basepython_conflict = True to tox.ini With latest tox (>4.0.15) python version conflicted with base python. Adding ignore_basepython_conflict = True solves this issue. Change-Id: Id25cde435e9eaf6d5d2573d522cda763dad1a89b --- tox.ini | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index ab3e002..b66b6d0 100644 --- a/tox.ini +++ b/tox.ini @@ -1,7 +1,10 @@ [tox] minversion = 3.18.0 envlist = py3,pep8 -skipsdist = True +# Automatic envs (pyXX) will only use the python version appropriate to that +# env and ignore basepython inherited from [testenv] if we set +# ignore_basepython_conflict. +ignore_basepython_conflict = True [testenv] basepython = python3