Add python 3.12 testing to Zuul

We use pyenv to install python3.12 on ubuntu jammy (which doesn't have
native packages for this version of python). We don't update the
container images just yet as we want to build confidence through testing
before end users see the new python version in production.

Change-Id: I20a57f6d29699886867ce912e9943c59aa9963f4
This commit is contained in:
Clark Boylan 2024-01-09 09:04:03 -08:00
parent dfe96519b1
commit 20657c13bd
3 changed files with 17 additions and 0 deletions

View File

@ -140,6 +140,16 @@
nox_environment:
ZUUL_SCHEDULER_COUNT: 2
- job:
name: zuul-nox-py312
# This could probably use some refactoring to have a base unittest job
# that isn't python version specific.
parent: zuul-nox-py311
vars:
python_use_pyenv: true
nox_force_python: "3.12"
python_version: "3.12"
- job:
name: zuul-build-dashboard
parent: build-javascript-deployment
@ -361,6 +371,7 @@
nodeset: ubuntu-jammy
- zuul-nox-py311
- zuul-nox-py311-multi-scheduler
- zuul-nox-py312
- zuul-build-dashboard-openstack-whitelabel
- zuul-build-dashboard-software-factory
- zuul-build-dashboard-opendev
@ -394,6 +405,7 @@
nox_install_bindep: false
nodeset: ubuntu-jammy
- zuul-nox-py311
- zuul-nox-py312
- zuul-build-dashboard
- nodejs-run-lint:
vars:

View File

@ -30,6 +30,10 @@ libffi8 [platform:ubuntu-jammy platform:debian-bookworm]
libffi7 [platform:ubuntu-focal platform:debian-bullseye]
libffi6 [platform:dpkg !platform:ubuntu-focal !platform:ubuntu-jammy !platform:debian-bullseye !platform:debian-bookworm]
libffi-devel [compile test platform:rpm]
# These two compression libs are needed when installing python3.12 from
# source using pyenv. We can drop them once we're using distro packages.
liblzma-dev [test]
libbz2-dev [test]
libyaml-0-2 [platform:dpkg platform:suse]
libyaml [platform:redhat]
libyaml-dev [platform:dpkg compile test]

View File

@ -15,6 +15,7 @@ classifier =
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
[pbr]
warnerrors = True