Skip to content

Migrate Python Codebase to Version 3.10 #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gitar-bot-staging[bot]
Copy link

Migrate Python Runtime from 3.9 to 3.10

Description

This PR migrates the entire codebase from Python 3.9 to Python 3.10 across all services and packages. The migration includes updating:

  • CI/CD pipelines: GitHub Actions workflows for release, staging, and testing
  • Service configurations: All Dockerfiles and setup.py files across 91 files
  • Package dependencies: Updated Python version requirements in setup.py and setup.cfg
  • Code compatibility: Minor adjustments to maintain compatibility with Python 3.10

Motivation

Python 3.9 reached end-of-life for security updates in October 2025. Migrating to Python 3.10 ensures:

  • Security: Access to latest security patches and updates
  • Performance: Benefits from Python 3.10 optimizations and improvements
  • Features: Access to new language features like structural pattern matching, better error messages, and improved type hints
  • Ecosystem compatibility: Better support for modern Python packages and dependencies

Key Changes

  • Updated GitHub Actions workflows from python: ["3.9"] to python: ["3.10"]
  • Modified all service Dockerfiles to use Python 3.10 base images
  • Updated python_requires in setup.py files from ~=3.9 to ~=3.10
  • Added deprecation warning filters in pytest configuration
  • Updated constraints and dependency specifications

Impact

  • 91 files changed across services, packages, and CI configuration
  • No breaking changes to API or functionality
  • Enhanced security posture through updated Python runtime
  • Future-proofing for continued Python ecosystem support

References

Test Plan

  • CI/CD pipelines updated and functional
  • All services build successfully with Python 3.10
  • Dependency resolution works correctly
  • No breaking changes introduced

Link to run
Requested by: [email protected]

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