Skip to content
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

Update to Python 3.12 #10235

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

Update to Python 3.12 #10235

wants to merge 2 commits into from

Conversation

alexrashed
Copy link
Member

@alexrashed alexrashed commented Feb 13, 2024

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.

TODO

@alexrashed alexrashed added the semver: minor Non-breaking changes which can be included in minor releases, but not in patch releases label Feb 13, 2024
@alexrashed alexrashed added this to the Playground milestone Feb 13, 2024
@alexrashed alexrashed self-assigned this Feb 13, 2024
Copy link

github-actions bot commented Feb 13, 2024

S3 Image Test Results (AMD64 / ARM64)

  2 files    2 suites   3m 12s ⏱️
398 tests 346 ✅  52 💤 0 ❌
796 runs  692 ✅ 104 💤 0 ❌

Results for commit deb6fba.

♻️ This comment has been updated with latest results.

Copy link

LocalStack Community integration with Pro

    2 files  ±0      2 suites  ±0   1h 22m 19s ⏱️ - 1m 2s
2 637 tests ±0  2 390 ✅ ±0  247 💤 ±0  0 ❌ ±0 
2 639 runs  ±0  2 390 ✅ ±0  249 💤 ±0  0 ❌ ±0 

Results for commit e7fc30d. ± Comparison against base commit 4cc83f3.

@thrau
Copy link
Member

thrau commented Feb 18, 2024

I also noticed some issues with plux in python 3.12, which i'm surprised didn't surface here yet. anyway, they're fixed and can be released any time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver: minor Non-breaking changes which can be included in minor releases, but not in patch releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants