From 1a161c3b612361b2c58dc735d3dfda84ccb849e9 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Sat, 2 Nov 2024 15:12:20 +0200 Subject: [PATCH] Add support for Python 3.14 (#203) --- .github/workflows/test.yml | 2 +- RELEASING.md | 2 +- pyproject.toml | 4 ++++ tox.ini | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1d1008db..8c2a59dd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,7 +14,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["pypy3.10", "3.9", "3.10", "3.11", "3.12", "3.13"] + python-version: ["pypy3.10", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] os: [macos-latest, ubuntu-latest] steps: diff --git a/RELEASING.md b/RELEASING.md index a7e1c3c4..89fa55f3 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -1,4 +1,4 @@ -# Release Checklist +# Release checklist - [ ] Get `main` to the appropriate code release state. [GitHub Actions](https://github.com/hugovk/tinytext/actions) should be running diff --git a/pyproject.toml b/pyproject.toml index dc25ca2d..2b80c29d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,6 +30,7 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Artistic Software", @@ -91,6 +92,9 @@ lint.flake8-import-conventions.banned-from = [ "datetime" ] lint.isort.known-first-party = [ "tinytext" ] lint.isort.required-imports = [ "from __future__ import annotations" ] +[tool.pyproject-fmt] +max_supported_python = "3.14" + [tool.pytest.ini_options] filterwarnings = [ # Python <= 3.11 diff --git a/tox.ini b/tox.ini index 64ef4d8d..5156cb1d 100644 --- a/tox.ini +++ b/tox.ini @@ -5,7 +5,7 @@ env_list = cli lint mypy - py{py3, 313, 312, 311, 310, 39} + py{py3, 314, 313, 312, 311, 310, 39} [testenv] deps =