From 8150c6cca9e9649ca72e936c9cb44dcca39b3107 Mon Sep 17 00:00:00 2001 From: rtibblesbot Date: Tue, 17 Mar 2026 19:56:32 -0700 Subject: [PATCH] feat: add Python 3.14 support Upgrade pytest from ==6.2.5 to >=6.2.5,<8 to resolve ast module incompatibilities on Python 3.14. Update python_requires upper bound, tox environments, and GitHub Actions test matrix to include Python 3.14. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/pythontest.yml | 2 +- requirements-test.txt | 2 +- setup.py | 2 +- tox.ini | 3 ++- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pythontest.yml b/.github/workflows/pythontest.yml index f0bfc45..58ee34c 100644 --- a/.github/workflows/pythontest.yml +++ b/.github/workflows/pythontest.yml @@ -26,7 +26,7 @@ jobs: strategy: max-parallel: 5 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: - uses: actions/checkout@v6 if: ${{ needs.pre_job.outputs.should_skip != 'true' }} diff --git a/requirements-test.txt b/requirements-test.txt index 3ad53cc..1428ed2 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,2 +1,2 @@ -pytest==6.2.5 +pytest>=6.2.5,<8 jsonschema==3.2.0 diff --git a/setup.py b/setup.py index e264dc2..fae34b5 100644 --- a/setup.py +++ b/setup.py @@ -29,5 +29,5 @@ ], author="Learning Equality", author_email="info@learningequality.org", - python_requires=">=3.6, <3.14", + python_requires=">=3.6, <3.15", ) diff --git a/tox.ini b/tox.ini index 4af2af9..9700855 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py{3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13} +envlist = py{3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13,3.14} [testenv] basepython = @@ -11,6 +11,7 @@ basepython = py3.11: python3.11 py3.12: python3.12 py3.13: python3.13 + py3.14: python3.14 deps = -r{toxinidir}/requirements-test.txt setenv = PYTHONPATH = {toxinidir}