Skip to content

chore: retire Python 3.10 support - #962

Open
deependujha wants to merge 4 commits into
Lightning-AI:mainfrom
deependujha:retire-python-3.10
Open

deependujha wants to merge 4 commits into
Lightning-AI:mainfrom
deependujha:retire-python-3.10

Conversation

@deependujha

Copy link
Copy Markdown
Collaborator

What

Drops support for Python 3.10, which reached end of life in October 2026.

  • setup.py: python_requires=">=3.11", remove the 3.10 classifier
  • CI: remove 3.10 from the test matrix, move the minimum-PyTorch job (torch 2.4.0, which has cp311 wheels) to 3.11, and move package-check / docs / release jobs to 3.11 (package check now runs 3.11 and 3.12)
  • ruff target-version = "py311", plus the pyupgrade fixes it enables: datetime.UTC, builtin TimeoutError instead of asyncio.TimeoutError (same class on 3.11+), and StrEnum for the unused CloudProvider
  • contributing reference updated to match

Why

Beyond the EOL date, PyTorch 2.15 ships no 3.10 wheels, which blocks #960 (bump supported PyTorch to 2.15/2.14). #960 is stacked on this PR.

🤖 Generated with Claude Code

@codecov-commenter

codecov-commenter commented Nov 3, 2026 •

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 83.33333% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 82%. Comparing base (c6f075c) to head (390b0f8).
⚠️ Report is 6 commits behind head on main.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@          Coverage Diff          @@
##            main    #962   +/-   ##
=====================================
  Coverage     82%     82%           
=====================================
  Files         72      72           
  Lines      16445   16451    +6     
=====================================
+ Hits       13505   13513    +8     
+ Misses      2940    2938    -2     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

tchaton and others added 2 commits November 11, 2026 12:52
Co-Authored-By: GPT-6 <noreply@openai.com>
Agent-Harness: codex

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.

4 participants