Skip to content

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   4m 14s ⏱️
441 tests 389 ✅  52 💤 0 ❌
882 runs  778 ✅ 104 💤 0 ❌

Results for commit 6630687.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Feb 13, 2024

LocalStack Community integration with Pro

    2 files  ±0      2 suites  ±0   1h 47m 23s ⏱️ - 3m 2s
3 901 tests ±0  3 594 ✅ ±0  307 💤 ±0  0 ❌ ±0 
3 903 runs  ±0  3 594 ✅ ±0  309 💤 ±0  0 ❌ ±0 

Results for commit 6630687. ± Comparison against base commit c76cc60.

♻️ This comment has been updated with latest results.

@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.

@thrau thrau mentioned this pull request Feb 18, 2024
@alexrashed alexrashed mentioned this pull request Apr 12, 2024
2 tasks
@alexrashed alexrashed force-pushed the python-3-12-upgrade branch 2 times, most recently from bd2f895 to deb6fba Compare May 6, 2024 08:35
@dfangl dfangl force-pushed the python-3-12-upgrade branch from deb6fba to 553c6ed Compare December 18, 2024 13:40
@alexrashed
Copy link
Member Author

Superseded by #13037.

@alexrashed alexrashed closed this Aug 21, 2025
@alexrashed alexrashed deleted the python-3-12-upgrade branch August 21, 2025 13:01
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.

3 participants