From cdb9d17a3e3e70142fc59190cce84c2be4f58988 Mon Sep 17 00:00:00 2001 From: Alex Lowe Date: Fri, 15 Aug 2025 18:35:44 -0400 Subject: [PATCH] chore: prepare for Python 3.14 This adds both Python 3.14 and the experimental free-threaded build to CI. Note that this doesn't currently work as PyO3 does not yet support python 3.14. Signed-off-by: Alex Lowe --- .github/workflows/qa.yaml | 4 ++-- pyproject.toml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/qa.yaml b/.github/workflows/qa.yaml index bbf29afaa..962c9cd92 100644 --- a/.github/workflows/qa.yaml +++ b/.github/workflows/qa.yaml @@ -16,9 +16,9 @@ jobs: uses: canonical/starflow/.github/workflows/test-python.yaml@main with: fast-test-platforms: '["ubuntu-22.04", "ubuntu-24.04"]' - fast-test-python-versions: '["3.10", "3.12"]' + fast-test-python-versions: '["3.10", "3.12", "3.14", "3.14+freethreaded"]' slow-test-platforms: '["ubuntu-22.04", "ubuntu-24.04"]' - slow-test-python-versions: '["3.10", "3.12"]' + slow-test-python-versions: '["3.10", "3.12", "3.14", "3.14+freethreaded"]' lowest-python-platform: ubuntu-22.04 lowest-python-version: "3.10" use-lxd: true diff --git a/pyproject.toml b/pyproject.toml index e013daefc..565de4005 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,6 +35,7 @@ classifiers = [ "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.14", "Topic :: Software Development :: Libraries :: Application Frameworks", "Topic :: Software Development :: Libraries :: Python Modules", "Typing :: Typed",