From f32b2c7c39a18853a8cf50f1dfcbc201bc406e44 Mon Sep 17 00:00:00 2001 From: Slawek Kaplonski Date: Wed, 20 Mar 2024 10:32:55 +0100 Subject: [PATCH] Set correct tox_min_version for the stable/2023.2 branch After [1] we started using upper constraints from the OpenStack requirements in the tobiko ansible roles. It cause issue with installation of the tox >= 4.13 as it is not compatible with requirements from upper-constraints for this branch. This patch adds setting tox_min_version to the 4.5.1 which should be ok with upper-constraints from the stable/2023.2 branch of the OpenStack services. [1] https://review.opendev.org/c/x/tobiko/+/912718 Related: #2058378 Change-Id: I215d7e3da4fff0fd9ae7bf829070b346c83fa5cd --- roles/tobiko-ensure-tox/tasks/tox.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/roles/tobiko-ensure-tox/tasks/tox.yaml b/roles/tobiko-ensure-tox/tasks/tox.yaml index 5b2cdceb5..760cbbd3b 100644 --- a/roles/tobiko-ensure-tox/tasks/tox.yaml +++ b/roles/tobiko-ensure-tox/tasks/tox.yaml @@ -15,11 +15,16 @@ chdir: "{{ openstack_requirements_dir }}" register: requirements_branch - - name: "Set min tox version for Ubuntu 20.04" + - name: "Set min tox version for OpenStack stable/zed and stable/2023.1" set_fact: tox_min_version: "3.28" when: requirements_branch.stdout == "stable/2023.1" or "stable/zed" + - name: "Set min tox version for OpenStack stable/2023.2" + set_fact: + tox_min_version: "4.5.1" + when: requirements_branch.stdout == "stable/2023.2" + - name: "ensure Tox is installed" command: >