From 98994f791daa6abc5e6a200bc3cca0cb6a8cfe21 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Mon, 14 Aug 2023 09:52:47 -0700 Subject: [PATCH] Only support Python 3.11 To match Zuul, update the pypi classifiers and testing to indicate that only Python 3.11 is tested and supported. Change-Id: Id7d422aaae94961a7ee746e7c69308f04d94954d Depends-On: https://review.opendev.org/891339 --- .zuul.yaml | 40 +++++++++---------- .../notes/python-311-cdd62c3138869c4b.yaml | 5 +++ setup.cfg | 6 +-- 3 files changed, 24 insertions(+), 27 deletions(-) create mode 100644 releasenotes/notes/python-311-cdd62c3138869c4b.yaml diff --git a/.zuul.yaml b/.zuul.yaml index 1e92848ee..f6a986190 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -6,7 +6,7 @@ run: playbooks/nodepool-functional-k8s/run.yaml required-projects: - zuul/nodepool - nodeset: ubuntu-jammy + nodeset: debian-bookworm - job: description: | @@ -249,25 +249,17 @@ env-vars: DIB_SIMPLE_INIT_NETWORKMANAGER: '1' -- job: - name: nodepool-nox-py38 - description: | - Nodepool unit tests with ZooKeeper running - parent: nox-py38 - pre-run: playbooks/nodepool-nox/pre.yaml - vars: &nodepool_nox_vars - nox_environment: - NODEPOOL_ZK_CA: /opt/zookeeper/ca/certs/cacert.pem - NODEPOOL_ZK_CERT: /opt/zookeeper/ca/certs/client.pem - NODEPOOL_ZK_KEY: /opt/zookeeper/ca/keys/clientkey.pem - - job: name: nodepool-nox-py311 description: | Nodepool unit tests with ZooKeeper running parent: nox-py311 pre-run: playbooks/nodepool-nox/pre.yaml - vars: *nodepool_nox_vars + vars: + nox_environment: + NODEPOOL_ZK_CA: /opt/zookeeper/ca/certs/cacert.pem + NODEPOOL_ZK_CERT: /opt/zookeeper/ca/certs/client.pem + NODEPOOL_ZK_KEY: /opt/zookeeper/ca/keys/clientkey.pem nodeset: ubuntu-jammy - project: @@ -278,10 +270,12 @@ jobs: - opendev-buildset-registry - nodepool-build-image - - zuul-nox-docs - - nox-linters - - nodepool-nox-py38: - nodeset: ubuntu-focal + - zuul-nox-docs: + vars: + nox_force_python: "3.11" + python_version: "3.11" + - nox-linters: + nodeset: ubuntu-jammy - nodepool-nox-py311 - nodepool-functional-container-openstack-release - nodepool-functional-k8s @@ -293,10 +287,12 @@ gate: jobs: - nodepool-upload-image - - zuul-nox-docs - - nox-linters - - nodepool-nox-py38: - nodeset: ubuntu-focal + - zuul-nox-docs: + vars: + nox_force_python: "3.11" + python_version: "3.11" + - nox-linters: + nodeset: ubuntu-jammy - nodepool-nox-py311 - nodepool-functional-k8s - nodepool-functional-openshift diff --git a/releasenotes/notes/python-311-cdd62c3138869c4b.yaml b/releasenotes/notes/python-311-cdd62c3138869c4b.yaml new file mode 100644 index 000000000..5453b24dc --- /dev/null +++ b/releasenotes/notes/python-311-cdd62c3138869c4b.yaml @@ -0,0 +1,5 @@ +--- +upgrade: + - | + Python 3.11 is now the only version of Python with which Nodepool is + tested. diff --git a/setup.cfg b/setup.cfg index dab1502bf..088f88c2b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -6,17 +6,13 @@ description-file = author = Zuul Team author-email = zuul-discuss@lists.zuul-ci.org home-page = https://zuul-ci.org/ -python-requires = >= 3.8 +python-requires = >= 3.11 classifier = Intended Audience :: Information Technology Intended Audience :: System Administrators License :: OSI Approved :: Apache Software License Operating System :: POSIX :: Linux Programming Language :: Python - Programming Language :: Python :: 3 - Programming Language :: Python :: 3.8 - Programming Language :: Python :: 3.9 - Programming Language :: Python :: 3.10 Programming Language :: Python :: 3.11 [pbr]