Skip to content

Require Python 3.11 and stop supporting 3.10 - #134

Merged
JE-Chen merged 2 commits into
devfrom
chore/drop-python-3.10
Nov 2, 2026
Merged

JE-Chen merged 2 commits into
devfrom
chore/drop-python-3.10

Conversation

@JE-Chen

@JE-Chen JE-Chen commented Nov 2, 2026

Copy link
Copy Markdown
Member

Drops Python 3.10. Every package in the workspace moves its floor to Python 3.11 together.

  • Why: every package in the workspace moves its floor to Python 3.11 together. Security releases such as Pillow 13.0.0 need 3.11, and supporting 3.10 kept older, vulnerable versions in the locks.
  • What: requires-python is >=3.11 and the 3.10 classifier is gone; the CI matrices start at 3.11; the docs that gave 3.10 as the floor now give 3.11.
  • Also: tomli is no longer a dependency; it was needed on 3.10 only. ruff and mypy target 3.11.
  • Open items: none.

The CI matrix in this PR shows the suite on 3.11 to 3.14.

The workspace moves its floor to Python 3.11 together. Security releases such
as Pillow 13.0.0 need 3.11, and supporting 3.10 kept older, vulnerable
versions in the locks. requires-python is >=3.11, the 3.10 classifier is gone,
the CI matrices start at 3.11, the docs give 3.11 as the floor, and the locks
are regenerated with their recorded commands for 3.11 and lose their 3.10-only
entries; no version on 3.11 or newer changes.
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

The py311 target enables pyupgrade rules that 3.10 kept off: datetime.UTC replaces timezone.utc, and the version checks that only did anything on 3.10 are gone. UP042 is ignored: StrEnum would change what str() returns, which is a separate decision from the 3.11 floor.
@sonarqubecloud

sonarqubecloud Bot commented Nov 2, 2026

Copy link
Copy Markdown

@JE-Chen
JE-Chen merged commit d496e3f into dev Nov 2, 2026
31 checks passed
@JE-Chen JE-Chen mentioned this pull request Nov 2, 2026
@JE-Chen
JE-Chen deleted the chore/drop-python-3.10 branch November 2, 2026 16:20
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.

1 participant