From 0a344201a20bd766337e2d3b1c6391d00d2e5116 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Tue, 19 Sep 2023 10:35:50 -0700 Subject: [PATCH] Move grafyaml to Bookworm and python 3.11 This updates python testing to py311, adjusts the trove identifiers to match, and switches the docker file to using python3.11 on Bookworm. The motivation behind this is once OpenDev has updated all services to Bookworm and python3.11 the old bullseye images and images for older python versions can be cleaned up. Change-Id: I3dde845ba05bfec915e19c44959c187162254204 --- .zuul.yaml | 12 ++++++------ Dockerfile | 4 ++-- setup.cfg | 7 +------ tox.ini | 2 +- 4 files changed, 10 insertions(+), 15 deletions(-) diff --git a/.zuul.yaml b/.zuul.yaml index 5d5c183..d5ec328 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -21,8 +21,8 @@ allowed-projects: opendev/grafyaml timeout: 2700 requires: - - python-builder-3.10-bullseye-container-image - - python-base-3.10-bullseye-container-image + - python-builder-3.11-bookworm-container-image + - python-base-3.11-bookworm-container-image provides: - grafyaml-container-image dependencies: @@ -40,8 +40,8 @@ description: Build the grafyaml Docker image and upload to Docker Hub. timeout: 3600 requires: - - python-builder-3.10-bullseye-container-image - - python-base-3.10-bullseye-container-image + - python-builder-3.11-bookworm-container-image + - python-base-3.11-bookworm-container-image provides: grafyaml-container-image vars: *grafyaml_image_vars secrets: @@ -65,7 +65,7 @@ check: jobs: - tox-pep8 - - tox-py310: + - tox-py311: nodeset: ubuntu-jammy - opendev-buildset-registry - grafyaml-build-image @@ -73,7 +73,7 @@ gate: jobs: - tox-pep8 - - tox-py310: + - tox-py311: nodeset: ubuntu-jammy - grafyaml-upload-image promote: diff --git a/Dockerfile b/Dockerfile index 0e6ae74..50a8142 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,12 +14,12 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM docker.io/opendevorg/python-builder:3.10-bullseye as builder +FROM docker.io/opendevorg/python-builder:3.11-bookworm as builder COPY . /tmp/src RUN assemble -FROM docker.io/opendevorg/python-base:3.10-bullseye +FROM docker.io/opendevorg/python-base:3.11-bookworm COPY --from=builder /output/ /output RUN /output/install-from-bindep diff --git a/setup.cfg b/setup.cfg index 700e0bf..f5e86ae 100644 --- a/setup.cfg +++ b/setup.cfg @@ -16,12 +16,7 @@ classifier = Operating System :: OS Independent Programming Language :: Python Programming Language :: Python :: 3 - Programming Language :: Python :: 3.3 - Programming Language :: Python :: 3.5 - Programming Language :: Python :: 3.6 - Programming Language :: Python :: 3.7 - Programming Language :: Python :: 3.8 - Programming Language :: Python :: 3.10 + Programming Language :: Python :: 3.11 Topic :: Utilities [files] diff --git a/tox.ini b/tox.ini index 92704b1..ec2c84c 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] minversion = 3.1.1 -envlist = docs,pep8,py35,py36,py37,py38 +envlist = docs,pep8,py311 ignore_basepython_conflict = True [testenv]