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
This commit is contained in:
Slawek Kaplonski 2024-03-20 10:32:55 +01:00
parent 46a1868f6f
commit f32b2c7c39

View File

@ -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: >