Skip to content

Update to Python 3.12 #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 2 commits into
base: master
Choose a base branch
from
Open

Update to Python 3.12 #20

wants to merge 2 commits into from

Conversation

lizard-boy
Copy link

Motivation

This PR contains all changes necessary to upgrade our Python version for the runtime from 3.11 to 3.12.
Similar to previous updates:

Changes

  • Update all CircleCI runners (which use Python 3.12.1 by default).
  • Update all GitHub actions to install Python 3.12 instead of Python 3.11.
  • Update the dockerfile base image to the latest sha digest of Python 3.12.2.
  • Update all references to virtual environments which contain the Python version (f.e. /usr/lib/localstack/python-packages/lib/python3.12/site-packages).
  • Update the Lambda Runtime version used for local execution (in the runtime of LocalStack itself) from 3.11 to 3.12.
    Impact
  • Update the pinned dependencies (they need to be generated with the right version).
  • Update the .python-version file for pyenv
  • This PR only updates the runtime version of LocalStack itself. The LocalStack CLI will still be compatible with Python 3.8+.

However, Python Initialization Hooks and LocalStack Extensions will then run in a Python 3.12 environment instead of Python 3.11.

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

This pull request updates LocalStack's runtime environment from Python 3.11 to 3.12, affecting multiple components of the project.

  • Updated base Docker images to Python 3.12.3 in Dockerfile and Dockerfile.s3
  • Modified CircleCI configuration to use Ubuntu 2024.01.1 machine images
  • Adjusted Python package paths and virtual environment references to 3.12
  • Updated dependencies in various requirements files for Python 3.12 compatibility
  • Changed .python-version file to specify Python 3.12 for development environments

13 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings

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