Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump emulator builder to python 3.11 #87

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions emulator/modbus/Dockerfile
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion emulator/modbus/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
],
Expand Down