From 725e4cc43dde51c98520cb4b66a1f57aaef4038b Mon Sep 17 00:00:00 2001 From: silvacarloss Date: Thu, 5 Jan 2023 16:30:09 -0300 Subject: [PATCH] [stable-only] Pin tox version Modify project.yaml file to use ensure_tox_version, which will force the host to install tox3. Tox.ini also needed to be modified to ensure that tox does not upgrade itself to a version >= 4. Change-Id: Ica5a18a376b4415096dbc916be89ba15ebd7a665 --- tox.ini | 1 + zuul.d/project.yaml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/tox.ini b/tox.ini index 71eaa3d024..882a66383d 100644 --- a/tox.ini +++ b/tox.ini @@ -6,6 +6,7 @@ envlist = py3,pep8 # env and ignore basepython inherited from [testenv] if we set # ignore_basepython_conflict. ignore_basepython_conflict = true +requires = tox<4 [testenv] basepython = python3 diff --git a/zuul.d/project.yaml b/zuul.d/project.yaml index b33dcbeb4f..3af4625c9f 100644 --- a/zuul.d/project.yaml +++ b/zuul.d/project.yaml @@ -1,4 +1,6 @@ - project: + vars: + ensure_tox_version: '<4' templates: - publish-openstack-docs-pti - openstack-cover-jobs