KEMBAR78
[RFC] Deprecate Python 3.9 in CI/CD · Issue #161167 · pytorch/pytorch · GitHub
Skip to content

[RFC] Deprecate Python 3.9 in CI/CD #161167

@atalman

Description

@atalman

Similar to #120718

After addition of Python 3.14 to CD, CI to be completed.

We want to start process for deprecation of Python 3.9 from Pytorch CI and nightly builds.
End of Life for Python 3.9 is October 2025 Please see: https://devguide.python.org/versions/
According to our policy: According to our policy: https://github.com/pytorch/rfcs/blob/master/RFC-0038-cpython-support.md :

  • Deprecate during the release process of the last PyTorch release before the oldest version of python goes EOL.

Hence we have following two options:

Option 1

Deprecate Python 3.9 for Release 2.10:

Feature Target Date
Deprecate Python 3.9 from nightly CD Sept 2025
Deprecate Python 3.9 from nightly CI Sept/Oct 2025
Release PyTorch 2.9 with Python 3.9 support. Announce deprecation of Python 3.9 for next Release Oct 2025
Release PyTorch 2.10 without Python 3.9 support Jan 2026

Option 2 - Will be implementing this option, as per discussion @malfet and @albanD

Deprecate Python 3.9 for Release 2.9:

Feature Target Date
Announce Python 3.9 deprecation Aug 2025
Deprecate Python 3.9 from nightly CD Aug 2025
Deprecate Python 3.9 from nightly CI Aug 2025
Release PyTorch 2.9 without Python 3.9 support Oct 2025

cc @malfet @seemethere @pytorch/pytorch-dev-infra @albanD @ezyang

Versions

2.10

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: ciRelated to continuous integrationmodule: deprecationtriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions