Skip to content

Commit d8bc990

Browse files
pquentingithub-actions[bot]
authored andcommitted
Support Python 3.13 (#1938)
* Support Python 3.13 * Explicitly ask for Python 3.13 in lint * Revert to 3.12 for Read the Docs It does not support Python 3.13. * Restore 3.12 Nox Python version (cherry picked from commit b08dfdc)
1 parent f1754a5 commit d8bc990

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- name: Set up Python
3333
uses: actions/setup-python@v4
3434
with:
35-
python-version: "3.12"
35+
python-version: "3.13"
3636
- name: Install dependencies
3737
run: |
3838
python3 -m pip install nox
@@ -62,7 +62,7 @@ jobs:
6262
- name: Set up Python
6363
uses: actions/setup-python@v4
6464
with:
65-
python-version: "3.12"
65+
python-version: "3.x"
6666
- name: Install dependencies
6767
run: |
6868
python3 -m pip install nox
@@ -81,8 +81,9 @@ jobs:
8181
"3.10",
8282
"3.11",
8383
"3.12",
84+
"3.13",
8485
]
85-
es-version: [8.0.0, 8.13.0]
86+
es-version: [8.0.0, 8.15.0]
8687

8788
steps:
8889
- name: Remove irrelevant software to free up disk space
@@ -104,11 +105,6 @@ jobs:
104105
uses: actions/setup-python@v4
105106
with:
106107
python-version: ${{ matrix.python-version }}
107-
- name: Set up Python for Nox
108-
if: matrix.python-version != '3.12'
109-
uses: actions/setup-python@v4
110-
with:
111-
python-version: 3
112108
- name: Install dependencies
113109
run: |
114110
python3 -m pip install nox

noxfile.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"3.10",
3636
"3.11",
3737
"3.12",
38+
"3.13",
3839
]
3940
)
4041
def test(session):
@@ -55,7 +56,7 @@ def test(session):
5556
session.run("pytest", *argv)
5657

5758

58-
@nox.session(python="3.12")
59+
@nox.session(python="3.13")
5960
def format(session):
6061
session.install("black~=24.0", "isort", "unasync", "setuptools", ".[develop]")
6162
session.run("python", "utils/run-unasync.py")
@@ -67,7 +68,7 @@ def format(session):
6768
lint(session)
6869

6970

70-
@nox.session(python="3.12")
71+
@nox.session(python="3.13")
7172
def lint(session):
7273
session.install("flake8", "black~=24.0", "isort", "unasync", "setuptools")
7374
session.run("black", "--check", "--target-version=py38", *SOURCE_FILES)

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@
8888
"Programming Language :: Python :: 3.10",
8989
"Programming Language :: Python :: 3.11",
9090
"Programming Language :: Python :: 3.12",
91+
"Programming Language :: Python :: 3.13",
9192
"Programming Language :: Python :: Implementation :: CPython",
9293
"Programming Language :: Python :: Implementation :: PyPy",
9394
],

0 commit comments

Comments
 (0)