Skip to content

Commit a830530

Browse files
committed
fix: python3.12 build by upgrading pendulum3-beta
pendulum2.x does not support PEP517 and won't build in python3.12, there's a ticket asking for a release to make it compatible with python 3.12 python-pendulum/pendulum#765 the project maintainers have commented on this ticket to say v2 will no longer get updates https://github.com/sdispater/pendulum/issues/753\#issuecomment-1739202965 version3 has pre-releases available on github https://github.com/sdispater/pendulum/releases/tag/3.0.0b1 this commit is now tracking the beta releases to see if there are any issues with our existing code, and will join back with the stable v3 release as it becomes available for large portion of it this should address our requirement for python3.12 note that the Dockerfile is update to track patch releases of the python image REFS #86
1 parent 37e1ba9 commit a830530

File tree

5 files changed

+183
-51
lines changed

5 files changed

+183
-51
lines changed

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# While optional this tells the Docker builder of the version
22
# syntax=docker/dockerfile:1
3-
ARG PYTHON_VERSION=3.11.4-slim-bullseye
3+
ARG PYTHON_VERSION=3.12-bookworm
44

55
# Base image for Python applications
66
# This image is particularly for a web server using uvicorn
@@ -44,4 +44,4 @@ WORKDIR /opt/
4444
# Labels are used to identify the image
4545
LABEL org.opencontainers.image.source="https://github.com/anomaly/${PROJ_NAME}"
4646
LABEL org.opencontainers.image.description="A Python web server using FastAPI and Uvicorn"
47-
LABEL org.opencontainers.image.licenses="Apache-2.0"
47+
LABEL org.opencontainers.image.licenses="Apache-2.0"

Dockerfile.prod

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# While optional this tells the Docker builder of the version
22
# syntax=docker/dockerfile:1
33
#
4-
ARG PYTHON_VERSION=3.11.1-slim-bullseye
4+
ARG PYTHON_VERSION=3.12-bookworm
55

66
# This Dockerfile uses a multi stage build to slim down the image
77
# https://docs.docker.com/develop/develop-images/multistage-build/
@@ -76,4 +76,4 @@ EXPOSE 80
7676
# Labels are used to identify the image
7777
LABEL org.opencontainers.image.source="https://github.com/anomaly/${PROJ_NAME}"
7878
LABEL org.opencontainers.image.description="A Python web server using FastAPI and Uvicorn"
79-
LABEL org.opencontainers.image.licenses="Apache-2.0"
79+
LABEL org.opencontainers.image.licenses="Apache-2.0"

docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ services:
4040
# RabbitMQ:
4141
# TaskIQ recommend using rabbitmq for the broker
4242
rabbitmq:
43-
image: rabbitmq:3.11-management
43+
image: rabbitmq:3.12-management
4444
container_name: ${PROJ_NAME}-rabbitmq
4545
restart: unless-stopped
4646
env_file:

0 commit comments

Comments
 (0)