From aa534c500dd140e5311924cfd3705e916508ee3d Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 17 Sep 2025 10:08:07 +0200 Subject: [PATCH] GitHub Actions: Test on Python 3.14 release candidate 2 Python v3.14 -- October 7th * https://www.python.org/download/pre-releases * https://www.python.org/downloads/release/python-3140rc2 --- .github/workflows/main.yml | 2 ++ docs/index.md | 2 +- pyproject.toml | 4 ++++ tox.ini | 4 ++++ 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6d930bff91..45e745ccc9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,6 +18,7 @@ jobs: - '3.11' - '3.12' - '3.13' + - '3.14' steps: - uses: actions/checkout@v5 @@ -25,6 +26,7 @@ jobs: - uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} + allow-prereleases: true cache: 'pip' cache-dependency-path: 'requirements/*.txt' diff --git a/docs/index.md b/docs/index.md index 64dd28a459..87330f5aff 100644 --- a/docs/index.md +++ b/docs/index.md @@ -88,7 +88,7 @@ continued development by **[signing up for a paid plan][funding]**. REST framework requires the following: * Django (4.2, 5.0, 5.1, 5.2) -* Python (3.10, 3.11, 3.12, 3.13) +* Python (3.10, 3.11, 3.12, 3.13, 3.14) We **highly recommend** and only officially support the latest patch release of each Python and Django series. diff --git a/pyproject.toml b/pyproject.toml index 37308429bd..f5551d80ae 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,6 +25,7 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", "Topic :: Internet :: WWW/HTTP", ] dynamic = [ "version" ] @@ -56,6 +57,9 @@ known_first_party = [ "rest_framework", "tests" ] skip = "*/kickstarter-announcement.md,*.js,*.map,*.po" ignore-words-list = "fo,malcom,ser" +[tool.pyproject-fmt] +max_supported_python = "3.14" + [tool.pytest.ini_options] addopts = "--tb=short --strict-markers -ra" testpaths = [ "tests" ] diff --git a/tox.ini b/tox.ini index f2df7301af..cbaaf159e5 100644 --- a/tox.ini +++ b/tox.ini @@ -4,6 +4,7 @@ envlist = {py311}-{django42,django51,django52} {py312}-{django42,django51,django52,djangomain} {py313}-{django51,django52,djangomain} + {py314}-{django52,djangomain} base dist docs @@ -49,3 +50,6 @@ ignore_outcome = true [testenv:py313-djangomain] ignore_outcome = true + +[testenv:py314-djangomain] +ignore_outcome = true