From f5dc818979d1e44b812a7fbe41c8a91d91e03dae Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Wed, 6 Nov 2024 16:09:47 +0400 Subject: [PATCH 1/4] Support Python 3.13 --- .github/workflows/ci.yml | 12 ++++-------- .readthedocs.yaml | 2 +- noxfile.py | 6 +++--- setup.py | 1 + 4 files changed, 9 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 495e89ca9..e28f87884 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,7 +32,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: "3.12" + python-version: "3.x" - name: Install dependencies run: | python3 -m pip install nox @@ -62,7 +62,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: "3.12" + python-version: "3.x" - name: Install dependencies run: | python3 -m pip install nox @@ -81,8 +81,9 @@ jobs: "3.10", "3.11", "3.12", + "3.13", ] - es-version: [8.0.0, 8.13.0] + es-version: [8.0.0, 8.15.0] steps: - name: Remove irrelevant software to free up disk space @@ -104,11 +105,6 @@ jobs: uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - - name: Set up Python for Nox - if: matrix.python-version != '3.12' - uses: actions/setup-python@v4 - with: - python-version: 3 - name: Install dependencies run: | python3 -m pip install nox diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 72edf7d82..6c49786d3 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -3,7 +3,7 @@ version: 2 build: os: ubuntu-22.04 tools: - python: "3.12" + python: "3.13" python: install: diff --git a/noxfile.py b/noxfile.py index 98f8263f9..f51768d65 100644 --- a/noxfile.py +++ b/noxfile.py @@ -34,7 +34,7 @@ "3.9", "3.10", "3.11", - "3.12", + "3.13", ] ) def test(session): @@ -55,7 +55,7 @@ def test(session): session.run("pytest", *argv) -@nox.session(python="3.12") +@nox.session(python="3.13") def format(session): session.install("black~=24.0", "isort", "unasync", "setuptools", ".[develop]") session.run("python", "utils/run-unasync.py") @@ -67,7 +67,7 @@ def format(session): lint(session) -@nox.session(python="3.12") +@nox.session(python="3.13") def lint(session): session.install("flake8", "black~=24.0", "isort", "unasync", "setuptools") session.run("black", "--check", "--target-version=py38", *SOURCE_FILES) diff --git a/setup.py b/setup.py index 5e36e6c7c..d1444331b 100644 --- a/setup.py +++ b/setup.py @@ -88,6 +88,7 @@ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", ], From 45a76095531a0bcf2c38d1640ef33c0bf852dc80 Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Wed, 6 Nov 2024 16:19:57 +0400 Subject: [PATCH 2/4] Explicitly ask for Python 3.13 in lint --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e28f87884..025387ecc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,7 +32,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: "3.x" + python-version: "3.13" - name: Install dependencies run: | python3 -m pip install nox From d7a81a84220520816ce1cf3e0a130046d64a4872 Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Wed, 6 Nov 2024 16:20:37 +0400 Subject: [PATCH 3/4] Revert to 3.12 for Read the Docs It does not support Python 3.13. --- .readthedocs.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 6c49786d3..72edf7d82 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -3,7 +3,7 @@ version: 2 build: os: ubuntu-22.04 tools: - python: "3.13" + python: "3.12" python: install: From c3e378156dfc4230b97dae094d5fad1763cbfdad Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Wed, 6 Nov 2024 16:21:24 +0400 Subject: [PATCH 4/4] Restore 3.12 Nox Python version --- noxfile.py | 1 + 1 file changed, 1 insertion(+) diff --git a/noxfile.py b/noxfile.py index f51768d65..b585b422b 100644 --- a/noxfile.py +++ b/noxfile.py @@ -34,6 +34,7 @@ "3.9", "3.10", "3.11", + "3.12", "3.13", ] )