Align Python version support with CI matrix (drop 3.9)#44
Merged
Conversation
Python 3.9 reached end-of-life in October 2025. CI already tests 3.10 through 3.14, but pyproject still declared support starting at 3.9 and classified up to 3.12 only. - Bump requires-python to >=3.10 and update classifiers to 3.10-3.14 - Drop now-dead conditional deps (importlib-metadata < 3.8, typing-extensions <= 3.9) - Bump ruff target-version to py310 (autofixes Optional[X] -> X | None) - Simplify ParamSpec import in safe_sdk (now in typing on 3.10+) - Simplify importlib.metadata import in __init__.py (no fallback needed) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Python 3.9 reached end-of-life in October 2025. CI tests 3.10–3.14, but
pyproject.tomlstill declared support starting at 3.9 and classified only up to 3.12.requires-pythonto>=3.10importlib-metadata; <3.8,typing-extensions; <=3.9)target-versiontopy310safe_sdk.py:ParamSpecis intypingon 3.10+__init__.py:importlib.metadatais stdlib since 3.8, no fallback neededOptional[X]→X | Noneinsafe_sdk.py(allowed at py310)This is a breaking change for anyone still on 3.9 — should ride along with the next release.
Test plan
uv syncresolves cleanly with new pintest_celery::test_task_mapunrelated)🤖 Generated with Claude Code