Skip to content

Webapp: Use Python 3.12 and update dependencies#5473

Open
matyasselmeci wants to merge 5 commits into
opensciencegrid:masterfrom
matyasselmeci:pr/python312
Open

Webapp: Use Python 3.12 and update dependencies#5473
matyasselmeci wants to merge 5 commits into
opensciencegrid:masterfrom
matyasselmeci:pr/python312

Conversation

@matyasselmeci

Copy link
Copy Markdown
Collaborator

Python 3.9 is EOL and libraries are starting to drop support for it. Bring the software in the webapp up to date:

  1. Build with EL9 instead of EL8
  2. Use Python 3.12
  3. Update all the requirements to the latest version

@matyasselmeci

Copy link
Copy Markdown
Collaborator Author

This is running on topology-itb.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the webapp build/runtime stack to newer OS and Python versions to move off Python 3.9 EOL and align dependencies/CI accordingly.

Changes:

  • Bump container base image to EL9 and install/use Python 3.12 in the Docker build.
  • Refresh Python dependency pins (including mod_wsgi) for the webapp deployment.
  • Update GitHub Actions validation workflows to run on Python 3.12.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
requirements-rootless.txt Updates pinned Python dependencies; adds a couple of runtime deps (e.g., tzdata, typing-extensions).
requirements-apache.txt Updates mod_wsgi version and adjusts build header comment for Python 3.12.
Dockerfile Switches to EL9 base image; installs Python 3.12 toolchain and uses it for pip installs.
docker/apache.conf Updates the mod_wsgi module load path to the Python 3.12 build.
.github/workflows/validate-data.yml Runs data validation CI on Python 3.12.13.
.github/workflows/validate-code.yml Runs code validation CI on Python 3.12.13.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Dockerfile Outdated
Comment thread Dockerfile
Comment thread docker/apache.conf
Comment thread .github/workflows/validate-code.yml
Comment thread .github/workflows/validate-data.yml
In theory more robust than the 'pip3.12' alias

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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.

2 participants