Skip to content

Commit

Permalink
Merge pull request #2306 from mayty/issue/2305
Browse files Browse the repository at this point in the history
Python 3.13 support
  • Loading branch information
staticdev authored Jan 15, 2025
2 parents 26cf27d + 87d592e commit 724d5e0
Show file tree
Hide file tree
Showing 16 changed files with 485 additions and 223 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
python-version: ["3.12"]

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
python-version: ["3.12"]

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
python-version: "3.12"

- name: Upgrade pip
run: |
Expand Down
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.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
os: [ubuntu-latest, macos-latest, windows-latest]

steps:
Expand Down
3 changes: 2 additions & 1 deletion isort/stdlibs/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
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

__all__ = (
"_all",
Expand All @@ -13,4 +13,5 @@
"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

0 comments on commit 724d5e0

Please sign in to comment.