Skip to content

Upgrade Python from 3.10 to 3.12#825

Merged
snyaggarwal merged 1 commit intomasterfrom
upgrade/python-3.12
Apr 1, 2026
Merged

Upgrade Python from 3.10 to 3.12#825
snyaggarwal merged 1 commit intomasterfrom
upgrade/python-3.12

Conversation

@paynejd
Copy link
Copy Markdown
Member

@paynejd paynejd commented Mar 31, 2026

Closes OpenConceptLab/ocl_issues#1730

Summary

  • Update Dockerfile base images (builder + runtime) from python:3.10-slim to python:3.12-slim
  • Bump psycopg2 from 2.9.7 to 2.9.11 (required for Python 3.12 wheel support)
  • Update CI workflow Python versions from 3.10/3.11 to 3.12

Why

Python 3.10 reaches EOL October 2026. Django 5.1+ requires Python 3.10+ — upgrading to 3.12 gives headroom for the upcoming Django 5 upgrade.

Risk

Low. The codebase has no 3.12 incompatibilities — no removed stdlib modules (distutils, imp, etc.), no deprecated datetime APIs. psycopg2 2.9.11 is a bugfix-only release with no API changes from 2.9.7. Docker image builds and pip installs verified locally.

Follow-up

Django 5 upgrade can proceed after this lands.

Test plan

  • docker build . succeeds with Python 3.12 base image
  • pip install -r requirements.txt resolves cleanly
  • CI pipeline passes (linting + tests)

🤖 Generated with Claude Code

- 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>
@paynejd paynejd requested a review from snyaggarwal March 31, 2026 14:37
@snyaggarwal snyaggarwal merged commit a43ecf4 into master Apr 1, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upgrade to python3.12

2 participants