Skip to content

Commit 7d024a6

Browse files
Camyllmalfet
andauthored
[BE] Update Python min version to 3.10 (pytorch#162310) (pytorch#163802)
Pull Request resolved: pytorch#162310 Approved by: https://github.com/atalman, https://github.com/Skylion007, https://github.com/ZainRizvi ghstack dependencies: pytorch#162862 Co-authored-by: Nikita Shulga <[email protected]>
1 parent be29c5b commit 7d024a6

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ dev = [
5353
name = "torch"
5454
description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration"
5555
readme = "README.md"
56-
requires-python = ">=3.9"
56+
requires-python = ">=3.10"
5757
# TODO: change to `license = "BSD-3-Clause"` and enable PEP 639 after pinning setuptools>=77
5858
# FIXME: As of 2025.06.20, it is hard to ensure the minimum version of setuptools in our CI environment.
5959
# TOML-table-based license deprecated in setuptools>=77, and the deprecation warning will be changed
@@ -74,7 +74,6 @@ classifiers = [
7474
"Topic :: Software Development :: Libraries :: Python Modules",
7575
"Programming Language :: C++",
7676
"Programming Language :: Python :: 3 :: Only",
77-
"Programming Language :: Python :: 3.9",
7877
"Programming Language :: Python :: 3.10",
7978
"Programming Language :: Python :: 3.11",
8079
"Programming Language :: Python :: 3.12",

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@
259259

260260

261261
# Also update `project.requires-python` in pyproject.toml when changing this
262-
python_min_version = (3, 9, 0)
262+
python_min_version = (3, 10, 0)
263263
python_min_version_str = ".".join(map(str, python_min_version))
264264
if sys.version_info < python_min_version:
265265
print(
@@ -1033,7 +1033,7 @@ def build_deps() -> None:
10331033
CWD / "third_party/valgrind-headers/callgrind.h",
10341034
CWD / "third_party/valgrind-headers/valgrind.h",
10351035
]
1036-
for sym_file, orig_file in zip(sym_files, orig_files):
1036+
for sym_file, orig_file in zip(sym_files, orig_files, strict=True):
10371037
same = False
10381038
if sym_file.exists():
10391039
if filecmp.cmp(sym_file, orig_file):

0 commit comments

Comments
 (0)