Skip to content

Commit a43ecf4

Browse files
paynejdclaude
andauthored
Upgrade Python from 3.10 to 3.12 (#825)
- 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) <noreply@anthropic.com>
1 parent 9b99cb8 commit a43ecf4

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Run linting rules
2424
uses: actions/setup-python@v4
2525
with:
26-
python-version: '3.10'
26+
python-version: '3.12'
2727
- run: pip install -r requirements.txt
2828
- run: pylint -j0 core/
2929

@@ -62,7 +62,7 @@ jobs:
6262
- name: Set up Python
6363
uses: actions/setup-python@v4
6464
with:
65-
python-version: "3.11"
65+
python-version: "3.12"
6666
- name: Cache pip dependencies
6767
uses: actions/cache@v3
6868
with:

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.10-slim AS builder
1+
FROM python:3.12-slim AS builder
22
ENV PYTHONUNBUFFERED 1
33
ENV PYTHONDONTWRITEBYTECODE 1
44

@@ -14,7 +14,7 @@ ADD requirements.txt /code/
1414

1515
RUN pip wheel --no-cache-dir --wheel-dir /code/wheels -r requirements.txt
1616

17-
FROM python:3.10-slim
17+
FROM python:3.12-slim
1818
ENV PYTHONUNBUFFERED 1
1919
ENV PYTHONDONTWRITEBYTECODE 1
2020

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Django==4.2.16
2-
psycopg2==2.9.7
2+
psycopg2==2.9.11
33
gunicorn==22.0.0 #production server
44
whitenoise==6.5.0 #serving swagger static files
55
djangorestframework==3.14.0

0 commit comments

Comments
 (0)