Skip to content
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

Python 3.13 support #2306

Merged
merged 12 commits into from
Jan 15, 2025
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
os: [ubuntu-latest, macos-latest, windows-latest]

steps:
Expand Down
2 changes: 1 addition & 1 deletion isort/stdlibs/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
from . import all as _all
from . import py2, py3, py27, py36, py37, py38, py39, py310, py311, py312
from . import py2, py3, py27, py36, py37, py38, py39, py310, py311, py312, py313
3 changes: 2 additions & 1 deletion isort/stdlibs/py3.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from . import py36, py37, py38, py39, py310, py311, py312
from . import py36, py37, py38, py39, py310, py311, py312, py313

stdlib = (
py36.stdlib
Expand All @@ -8,4 +8,5 @@
| py310.stdlib
| py311.stdlib
| py312.stdlib
| py313.stdlib
)
14 changes: 12 additions & 2 deletions isort/stdlibs/py310.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

stdlib = {
"_ast",
"_thread",
"abc",
"aifc",
"antigravity",
"argparse",
"array",
"ast",
Expand Down Expand Up @@ -70,6 +70,7 @@
"ftplib",
"functools",
"gc",
"genericpath",
"getopt",
"getpass",
"gettext",
Expand Down Expand Up @@ -111,8 +112,11 @@
"netrc",
"nis",
"nntplib",
"nt",
"ntpath",
"nturl2path",
"numbers",
"opcode",
"operator",
"optparse",
"os",
Expand All @@ -136,6 +140,8 @@
"py_compile",
"pyclbr",
"pydoc",
"pydoc_data",
"pyexpat",
"queue",
"quopri",
"random",
Expand Down Expand Up @@ -182,8 +188,8 @@
"telnetlib",
"tempfile",
"termios",
"test",
"textwrap",
"this",
"threading",
"time",
"timeit",
Expand Down Expand Up @@ -214,6 +220,10 @@
"xdrlib",
"xml",
"xmlrpc",
"xx",
"xxlimited",
"xxlimited_35",
"xxsubtype",
"zipapp",
"zipfile",
"zipimport",
Expand Down
17 changes: 12 additions & 5 deletions isort/stdlibs/py311.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@

stdlib = {
"_ast",
"_thread",
"_tkinter",
"abc",
"aifc",
"antigravity",
"argparse",
"array",
"ast",
Expand Down Expand Up @@ -70,6 +69,7 @@
"ftplib",
"functools",
"gc",
"genericpath",
"getopt",
"getpass",
"gettext",
Expand Down Expand Up @@ -111,8 +111,11 @@
"netrc",
"nis",
"nntplib",
"nt",
"ntpath",
"nturl2path",
"numbers",
"opcode",
"operator",
"optparse",
"os",
Expand All @@ -136,6 +139,8 @@
"py_compile",
"pyclbr",
"pydoc",
"pydoc_data",
"pyexpat",
"queue",
"quopri",
"random",
Expand All @@ -154,7 +159,6 @@
"shutil",
"signal",
"site",
"sitecustomize",
"smtpd",
"smtplib",
"sndhdr",
Expand Down Expand Up @@ -183,8 +187,8 @@
"telnetlib",
"tempfile",
"termios",
"test",
"textwrap",
"this",
"threading",
"time",
"timeit",
Expand All @@ -203,7 +207,6 @@
"unicodedata",
"unittest",
"urllib",
"usercustomize",
"uu",
"uuid",
"venv",
Expand All @@ -217,6 +220,10 @@
"xdrlib",
"xml",
"xmlrpc",
"xx",
"xxlimited",
"xxlimited_35",
"xxsubtype",
"zipapp",
"zipfile",
"zipimport",
Expand Down
17 changes: 12 additions & 5 deletions isort/stdlibs/py312.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@

stdlib = {
"_ast",
"_thread",
"_tkinter",
"abc",
"aifc",
"antigravity",
"argparse",
"array",
"ast",
Expand Down Expand Up @@ -67,6 +66,7 @@
"ftplib",
"functools",
"gc",
"genericpath",
"getopt",
"getpass",
"gettext",
Expand Down Expand Up @@ -107,8 +107,11 @@
"netrc",
"nis",
"nntplib",
"nt",
"ntpath",
"nturl2path",
"numbers",
"opcode",
"operator",
"optparse",
"os",
Expand All @@ -132,6 +135,8 @@
"py_compile",
"pyclbr",
"pydoc",
"pydoc_data",
"pyexpat",
"queue",
"quopri",
"random",
Expand All @@ -150,7 +155,6 @@
"shutil",
"signal",
"site",
"sitecustomize",
"smtplib",
"sndhdr",
"socket",
Expand Down Expand Up @@ -178,8 +182,8 @@
"telnetlib",
"tempfile",
"termios",
"test",
"textwrap",
"this",
"threading",
"time",
"timeit",
Expand All @@ -198,7 +202,6 @@
"unicodedata",
"unittest",
"urllib",
"usercustomize",
"uu",
"uuid",
"venv",
Expand All @@ -212,6 +215,10 @@
"xdrlib",
"xml",
"xmlrpc",
"xx",
"xxlimited",
"xxlimited_35",
"xxsubtype",
"zipapp",
"zipfile",
"zipimport",
Expand Down
Loading