Skip to content

Upgrade to Python 3.12 base layer - #124

Closed
m-messer wants to merge 2 commits into
mainfrom
python-3.12
Closed

m-messer wants to merge 2 commits into
mainfrom
python-3.12

Conversation

@m-messer

@m-messer m-messer commented Nov 9, 2026

Copy link
Copy Markdown
Member

Stacked on the workflows-only PR (base: new-workflows). Moves off baseevalutionfunctionlayer:main-3.8 (Python 3.8 runtime, deprecated; the base layer has stopped building the 3.8 image).

  • app/Dockerfile: main-3.12, the same recipe as survey (dnf findutils, PYTHONPATH=/app, CMD ["app.handler"])
  • requirements.txt: removed typing==3.7.4.3 (a stdlib backport that breaks on 3.12); numpy==1.24.2 changed to numpy>=1.26 (no 3.12 wheels for 1.24); removed streamlit==1.20.0 and langchain==0.0.335 (not imported anywhere in app/, and streamlit 1.20's old pandas pin won't build on 3.12)

Testing plan: once the workflows PR is merged, this branch gets deployed to staging with gh workflow run staging-deploy.yml --ref python-3.12 and hit with the endpoint tests before merging. No CI tests or database tests run, because the function is LLM-backed.

🤖 Generated with Claude Code

- Base image baseevalutionfunctionlayer:main-3.8 -> main-3.12 (AL2023: dnf findutils,
  PYTHONPATH, module-style CMD)
- Python 3.12 dependency fixes where needed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Base automatically changed from new-workflows to main November 10, 2026 10:32
…from

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@m-messer

Copy link
Copy Markdown
Member Author

Closing: riskAssessment is a deprecated student project, so it isn't being upgraded.

@m-messer m-messer closed this Nov 10, 2026
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.

1 participant