From 43a74ac01a1ee9f576f5121b19213d1b10978fa8 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Thu, 24 Jul 2025 15:35:10 +0300 Subject: [PATCH] Tested with Python 3.14 --- .github/workflows/run-tests.yaml | 3 ++- devscripts/requirements/requirements_tests.txt | 3 ++- setup.py | 1 + tox.ini | 8 ++++---- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/run-tests.yaml b/.github/workflows/run-tests.yaml index 724eceb..a065fd9 100644 --- a/.github/workflows/run-tests.yaml +++ b/.github/workflows/run-tests.yaml @@ -14,7 +14,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "=3.9[build=*_pypy]"] + python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14", "=3.9[build=*_pypy]"] exclude: - os: windows-latest python-version: "2.7" @@ -51,6 +51,7 @@ jobs: submodules: true - uses: conda-incubator/setup-miniconda@v3 with: + channels: conda-forge, conda-forge/label/python_rc miniforge-version: latest python-version: ${{ matrix.python-version }} if: ${{ !contains(fromJSON(env.not_in_conda), matrix.python-version) }} diff --git a/devscripts/requirements/requirements_tests.txt b/devscripts/requirements/requirements_tests.txt index 21670e6..8075736 100644 --- a/devscripts/requirements/requirements_tests.txt +++ b/devscripts/requirements/requirements_tests.txt @@ -1,2 +1,3 @@ pytest < 5.0; python_version == '2.7' or python_version == '3.4' -pytest < 7.0; python_version >= '3.5' +pytest < 7.0; python_version >= '3.5' and python_version < '3.14' +pytest >= 8.4; python_version >= '3.14' diff --git a/setup.py b/setup.py index 20ff09d..f9cad3b 100755 --- a/setup.py +++ b/setup.py @@ -35,6 +35,7 @@ setup( 'Programming Language :: Python :: 3.11', 'Programming Language :: Python :: 3.12', 'Programming Language :: Python :: 3.13', + 'Programming Language :: Python :: 3.14', ], python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*', ) diff --git a/tox.ini b/tox.ini index 9d3bda9..5c72344 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] minversion = 3.15 -envlist = py{27,34,35,36,37,38,39,310,311,312,313,py,py3}{,-flake8} +envlist = py{27,34,35,36,37,38,39,310,311,312,313,314,py,py3}{,-flake8} [testenv] commands = @@ -8,7 +8,7 @@ commands = {envpython} -c "import struct; print(struct.calcsize('P') * 8)" passenv = CI -[testenv:py{27,34,35,36,37,38,39,310,311,312,313}] +[testenv:py{27,34,35,36,37,38,39,310,311,312,313,314}] commands = {[testenv]commands} {envpython} -m pytest --version @@ -17,10 +17,10 @@ deps = -rdevscripts/requirements/requirements_tests.txt # flake8 -[testenv:py{27,34,35,36,37,38,39,310,311,312,313}-flake8] +[testenv:py{27,34,35,36,37,38,39,310,311,312,313,314}-flake8] deps = flake8 - pytest < 7.0 + pytest commands = {[testenv]commands} flake8 -- 2.39.5