From d5ca80c9f3cc615fe9316c759ce08b14277595bf Mon Sep 17 00:00:00 2001 From: laughingman7743 Date: Sun, 9 Nov 2025 17:14:03 +0900 Subject: [PATCH] Add Python 3.14 support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add Python 3.14 to classifiers in pyproject.toml - Add py314 to tox envlist and gh-actions mapping - Add Python 3.14 to CI test matrix - Apply setup-python workaround for Python 3.14 (similar to 3.13) - Update Python version list in README.rst and docs/introduction.rst 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .github/workflows/test.yaml | 6 +++--- README.rst | 2 +- docs/introduction.rst | 2 +- pyproject.toml | 4 +++- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 5c30a5e7..903b2f6f 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -22,7 +22,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] + python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14'] steps: - name: Checkout @@ -32,13 +32,13 @@ jobs: with: python-version: ${{ matrix.python-version }} enable-cache: true - # TODO: In the case of Python 3.13, the following error occurs, so install Python using setup-python. + # TODO: In the case of Python 3.13+, the following error occurs, so install Python using setup-python. # ../meson.build:44:2: ERROR: Problem encountered: Cannot compile # `Python.h`. Perhaps you need to install python-dev|python-devel - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - if: matrix.python-version == '3.13' + if: matrix.python-version == '3.13' || matrix.python-version == '3.14' - run: | make tool diff --git a/README.rst b/README.rst index 6a7b354a..81030183 100644 --- a/README.rst +++ b/README.rst @@ -40,7 +40,7 @@ Requirements * Python - - CPython 3.9 3.10, 3.11 3.12 3.13 + - CPython 3.9 3.10, 3.11 3.12 3.13 3.14 .. _installation: diff --git a/docs/introduction.rst b/docs/introduction.rst index dbb0ec65..ac72fc17 100644 --- a/docs/introduction.rst +++ b/docs/introduction.rst @@ -10,7 +10,7 @@ Requirements * Python - - CPython 3.9 3.10, 3.11 3.12 3.13 + - CPython 3.9 3.10, 3.11 3.12 3.13 3.14 .. _installation: diff --git a/pyproject.toml b/pyproject.toml index 7855f907..bb027528 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,6 +26,7 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", ] dynamic = ["version"] @@ -149,7 +150,7 @@ exclude = [ legacy_tox_ini = """ [tox] isolated_build = true -envlist = py{39,310,311,312,313} +envlist = py{39,310,311,312,313,314} [gh-actions] python = @@ -158,6 +159,7 @@ python = 3.11: py311 3.12: py312 3.13: py313 + 3.14: py314 [testenv] allowlist_externals =