Skip to content

TPT-4765: Raise minimum supported Python to 3.11 - #757

Open
zliang-akamai wants to merge 2 commits into
devfrom
TPT-4765-python-3-11-support
Open

zliang-akamai wants to merge 2 commits into
devfrom
TPT-4765-python-3-11-support

Conversation

@zliang-akamai

Copy link
Copy Markdown
Member

📝 Description

Raise the SDK minimum to Python 3.11, remove the 3.10 classifier, and align CI and Black targets through Python 3.15. The standalone E2E workflow defaults to Python 3.13 and removes its EOL selector; the release cross-repo test runtime is also moved to 3.13. Remove Python 2-only fallback code while preserving the Python 3 behavior. This intentionally drops Python 3.10 support.

✔️ How to Test

pytest test/unit/: 517 tests passed on Python 3.11 and 3.15. The changed SDK files pass Black 26.10.1.

@zliang-akamai
zliang-akamai requested review from a team as code owners November 11, 2026 01:32
@zliang-akamai
zliang-akamai requested review from jriddle-linode and psnoch-akamai and a balanced review from Copilot and removed request for a team November 11, 2026 01:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are reported for the Python 3.11 minimum-version update and related tooling changes.

No open issues 🎉

What changed in this PR

Raises the Linode SDK’s minimum supported Python version to 3.11, intentionally dropping Python 3.10 support and updating development tooling and CI.

Changes:

  • Aligns package classifiers, CI coverage, and Black targets with Python 3.11–3.15.
  • Removes the standalone E2E workflow’s EOL selector and moves release cross-repository tests to Python 3.13.
  • Removes Python 2 compatibility code and obsolete comments while preserving Python 3 behavior.
File Description
pyproject.toml Raises the Python minimum and updates classifiers, Black dependency, and formatting targets.
linode_api4/​objects/​serializable.py Removes the obsolete StrEnum replacement note; implementation remains unchanged.
linode_api4/​objects/​linode.py Removes Python 2 conversion logic from password generation.
linode_api4/​objects/​account.py Removes a Python 2-specific comment.
linode_api4/​login_client.py Uses Python 3 URL imports without fallback imports.
linode_api4/​groups/​linode.py Removes an obsolete Python 2 workaround comment.
AGENTS.md Documents Python 3.11 as the minimum version.
.github/​workflows/​release-cross-repo-test.yml Moves the test runtime to Python 3.13.
.github/​workflows/​e2e-test.yml Removes EOL selection while retaining the Python 3.13 default.
.github/​workflows/​ci.yml Updates the Python test matrix to 3.11–3.15.

Review effort: Balanced

This branch has not been deployed

No deployments
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