From a3c8ffe1896b436d18f3636b41fc38f63d858c4b Mon Sep 17 00:00:00 2001 From: Jonathan Payne Date: Tue, 31 Mar 2026 09:26:07 -0400 Subject: [PATCH] Upgrade Python from 3.10 to 3.12 - Update Dockerfile base images (builder + runtime) to python:3.12-slim - Bump psycopg2 from 2.9.7 to 2.9.11 (Python 3.12 wheel support) - Update CI workflow Python versions from 3.10/3.11 to 3.12 Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/build.yml | 4 ++-- Dockerfile | 4 ++-- requirements.txt | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 635bab40..39586979 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,7 +23,7 @@ jobs: - name: Run linting rules uses: actions/setup-python@v4 with: - python-version: '3.10' + python-version: '3.12' - run: pip install -r requirements.txt - run: pylint -j0 core/ @@ -62,7 +62,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: "3.11" + python-version: "3.12" - name: Cache pip dependencies uses: actions/cache@v3 with: diff --git a/Dockerfile b/Dockerfile index f0e4c282..e0bd613e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.10-slim AS builder +FROM python:3.12-slim AS builder ENV PYTHONUNBUFFERED 1 ENV PYTHONDONTWRITEBYTECODE 1 @@ -14,7 +14,7 @@ ADD requirements.txt /code/ RUN pip wheel --no-cache-dir --wheel-dir /code/wheels -r requirements.txt -FROM python:3.10-slim +FROM python:3.12-slim ENV PYTHONUNBUFFERED 1 ENV PYTHONDONTWRITEBYTECODE 1 diff --git a/requirements.txt b/requirements.txt index 0ff619d1..66b5e150 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ Django==4.2.16 -psycopg2==2.9.7 +psycopg2==2.9.11 gunicorn==22.0.0 #production server whitenoise==6.5.0 #serving swagger static files djangorestframework==3.14.0