Skip to content

chore: drop Python 3.9 support for running SAM, add Python 3.12, 3.13 to CI#3893

Merged
roger-zhangg merged 11 commits intoaws:developfrom
roger-zhangg:drop3.9
Mar 30, 2026
Merged

chore: drop Python 3.9 support for running SAM, add Python 3.12, 3.13 to CI#3893
roger-zhangg merged 11 commits intoaws:developfrom
roger-zhangg:drop3.9

Conversation

@roger-zhangg
Copy link
Copy Markdown
Member

@roger-zhangg roger-zhangg commented Mar 17, 2026

What

Drop Python 3.9 as a supported version for running the SAM translator itself, and extend CI coverage to Python 3.12, 3.13, and 3.14.

Important distinction

This change only drops Python 3.9 as a version for running SAM. Python 3.9 as a Lambda runtime in SAM templates is still fully supported. Test fixtures that use Runtime: python3.9 are intentionally left unchanged.

Changes

  • setup.pypython_requires bumped to >=3.10, classifiers updated to 3.10–3.14
  • .github/workflows/build.yml — test matrix now runs 3.10, 3.11, 3.12, 3.13, 3.14(after pydantic v1 support added)
  • pyproject.toml — Black target_version updated to py310–py314
  • ruff.toml / tests/ruff.toml / integration/ruff.tomltarget-version bumped to py310
  • requirements/base.txt — simplified pydantic dependency (removed 3.8/3.9 conditional pins)
  • DEVELOPMENT_GUIDE.md — updated supported versions and pyenv install instructions

Drop Python 3.9 as a supported version for running SAM CLI/translator
itself. This does NOT affect Python 3.9 as a Lambda runtime — SAM
templates using python3.9 as a Lambda runtime continue to work as before.

Changes:
- setup.py: bump python_requires to >=3.10, update classifiers to 3.10-3.14
- .github/workflows/build.yml: test matrix now runs 3.10, 3.11, 3.12, 3.13, 3.14
- pyproject.toml: black target_version updated to py310-py314
- ruff.toml, tests/ruff.toml, integration/ruff.toml: target-version bumped to py310
- requirements/base.txt: simplified pydantic pin (removed 3.8/3.9 conditionals)
- DEVELOPMENT_GUIDE.md: updated supported versions and pyenv instructions
@roger-zhangg roger-zhangg requested a review from a team as a code owner March 17, 2026 20:38
Allankw-dev

This comment was marked as spam.

@Allankw-dev

This comment was marked as spam.

Copy link
Copy Markdown
Contributor

@valerena valerena left a comment

Choose a reason for hiding this comment

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

If we're not adding Python3.14, let's update the title/description to reflect that.

@roger-zhangg roger-zhangg changed the title chore: drop Python 3.9 support for running SAM, add Python 3.12-3.14 to CI chore: drop Python 3.9 support for running SAM, add Python 3.12, 3.13 to CI Mar 27, 2026
@roger-zhangg roger-zhangg merged commit 2445bb1 into aws:develop Mar 30, 2026
7 checks passed
@valerena valerena mentioned this pull request Mar 31, 2026
5 tasks
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.

4 participants