From 96bdd656238fe31e7a172b1a3e9359fb69b657ab Mon Sep 17 00:00:00 2001 From: Pierre Riteau Date: Fri, 29 Aug 2025 09:45:14 +0200 Subject: [PATCH] Keep support for Python 3.9 Tenks is used by stable branches of OpenStack projects that are still using Python 3.9, but dependencies in master upper constraints have started to drop support for this version [1], since tested runtimes for 2025.2 (Flamingo) target Python 3.10 as a minimum [2]. This replaces support for Python 3.6 which should not be required anymore (all branches are EOL). [1] https://review.opendev.org/c/openstack/keystoneauth/+/949008 [2] https://governance.openstack.org/tc/reference/runtimes/2025.2.html Change-Id: Ib21aff559a334cc0256008d928a1ccb2ed581e5d Signed-off-by: Pierre Riteau --- ansible/group_vars/all | 4 ++-- zuul.d/project.yaml | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ansible/group_vars/all b/ansible/group_vars/all index 8046a17..65f9d52 100644 --- a/ansible/group_vars/all +++ b/ansible/group_vars/all @@ -5,6 +5,6 @@ virtualenv_path: "{{ '/'.join([ansible_facts.env['HOME'], 'tenks-venv']) }}" # The URL of the upper constraints file to pass to pip when installing Python # packages. -# NOTE: Python 3.6 support dropped in Zed. +# NOTE: The last OpenStack release supporting Python 3.9 is 2025.1 (Epoxy). python_upper_constraints_url: >- - https://releases.openstack.org/constraints/upper/{% if ansible_facts.python.version.minor <= 6 %}yoga{% else %}master{% endif %} + https://releases.openstack.org/constraints/upper/{% if ansible_facts.python.version.minor < 10 %}2025.1{% else %}master{% endif %} diff --git a/zuul.d/project.yaml b/zuul.d/project.yaml index f61b805..6c13f11 100644 --- a/zuul.d/project.yaml +++ b/zuul.d/project.yaml @@ -8,7 +8,8 @@ check: jobs: - openstack-tox-pep8 - - openstack-tox-py39 + - openstack-tox-py39: + override-checkout: stable/2025.1 - openstack-tox-py310 - openstack-tox-py311 - openstack-tox-py312 @@ -31,7 +32,8 @@ gate: jobs: - openstack-tox-pep8 - - openstack-tox-py39 + - openstack-tox-py39: + override-checkout: stable/2025.1 - openstack-tox-py310 - openstack-tox-py311 - openstack-tox-py312