Skip to content

Upgrade Python Project to Version 3.10 #16

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 version from 3.9 to 3.10

Description

This PR migrates the entire codebase from Python 3.9 to Python 3.10 across all services, packages, and infrastructure components.

Changes

  • CI/CD Workflows: Updated GitHub Actions workflows to use Python 3.10
  • Docker Images: Updated base images from Python 3.9.12 to Python 3.10.11
  • Package Dependencies: Updated Python version requirements in setup.py files
  • Service Configurations: Updated Python requirements across all microservices

Motivation

Python 3.10 introduces several important improvements and new features:

  • Structural Pattern Matching: New match/case syntax for pattern matching
  • Better Error Messages: More precise and helpful error messages
  • Performance Improvements: Various optimizations and speed enhancements
  • Type Hinting Enhancements: Union types with | operator and other typing improvements

For complete details, see the official Python 3.10 release notes.

Impact

This migration affects:

  • 🔧 48 files updated across packages and services
  • 🐳 Docker containers will use newer Python runtime
  • ⚙️ CI/CD pipelines will build and test with Python 3.10
  • 📦 All packages and services now compatible with Python 3.10

Files Changed

View affected components (48 files)
  • .github/workflows/ - CI/CD pipeline configurations
  • packages/ - Core library packages (13 components)
  • services/ - Microservices (15 services)
  • scripts/ - Utility and maintenance scripts
  • Various Dockerfiles and setup.py configurations

Compatibility

  • Maintains backward compatibility with Python >=3.9
  • New upper bound set to <3.11 for controlled migration
  • All existing functionality preserved

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