From 8664b862a3d0b0d270a33a6dfddda2ceb1b029df Mon Sep 17 00:00:00 2001 From: Sam Foo Date: Tue, 21 Mar 2023 14:49:40 -0700 Subject: [PATCH] Bump emulator builder to python 3.11 --- emulator/modbus/Dockerfile | 6 +++--- emulator/modbus/setup.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/emulator/modbus/Dockerfile b/emulator/modbus/Dockerfile index 71071d4..5baa9bd 100644 --- a/emulator/modbus/Dockerfile +++ b/emulator/modbus/Dockerfile @@ -1,12 +1,12 @@ # # Builder Image. # -FROM docker.io/vaporio/python:3.7 as builder +FROM docker.io/vaporio/python:3.11 as builder COPY requirements.txt . ARG ARCH=amd64 -RUN pip install --no-deps --target=/build/lib/python3.7 --platform ${ARCH} -r requirements.txt --no-warn-script-location \ +RUN pip install --no-deps --target=/build/lib/python3.11 --platform ${ARCH} -r requirements.txt --no-warn-script-location \ && rm -rf /root/.cache # Copy source to builder. Install modbus through setup.py. @@ -19,7 +19,7 @@ RUN pip install --no-deps --prefix=/build --no-warn-script-location /modbus \ # # Use the slim image. Copy in installed modbus from the builder. -FROM docker.io/vaporio/python:3.7-slim +FROM docker.io/vaporio/python:3.11-slim COPY --from=builder /build /usr/local # Start modbus server / emulator app to test against. diff --git a/emulator/modbus/setup.py b/emulator/modbus/setup.py index 5e87c7b..7736cfe 100644 --- a/emulator/modbus/setup.py +++ b/emulator/modbus/setup.py @@ -38,7 +38,7 @@ 'Natural Language :: English', 'Programming Language :: Python', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.11', 'Programming Language :: Python :: Implementation :: CPython', 'Programming Language :: Python :: Implementation :: PyPy', ],