Skip to content

Drop support for Python 3.9 (early 2026) #13782

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
9 tasks
srittau opened this issue Apr 3, 2025 · 0 comments
Open
9 tasks

Drop support for Python 3.9 (early 2026) #13782

srittau opened this issue Apr 3, 2025 · 0 comments
Labels
stubs: removal Pending removal of third-party distributions

Comments

@srittau
Copy link
Collaborator

srittau commented Apr 3, 2025

Python 3.9 is expected to reached its end-of-life phase around October 2025 (PEP 596).

How to remove support

EOL + 3 months (around January 2026)

  • Update the documentation.
  • Update the oldest_supported_python key in pyproject.toml.
  • Remove requires_python >= 3.10 and python_version >= 3.10 from METADATA.toml
  • Remove 3.9 from CI and test scripts.
  • Update stubtest allow lists. Also check whether items can be moved to the common allow lists.

EOL + 6 months (around April 2026)

  • Remove 3.9 exclusive branches from stubs.
  • Remove obsolete stdlib modules (see VERSIONS).
    • _bootlocale
    • distutils.command.bdist_wininst
    • formatter
    • parser
    • symbol
  • Replace typing_extensions imports.
    • ParamSpec
    • TypeAlias
    • TypeGuard
  • Remove builtins.ellipsis after type checkers have switched to types.EllipsisType. (See Remove type checker-specific symbols from builtins.pyi and typing.pyi #7580)

(Please amend as necessary.)

@srittau srittau added the stubs: removal Pending removal of third-party distributions label Apr 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stubs: removal Pending removal of third-party distributions
Projects
None yet
Development

No branches or pull requests

1 participant