From d8166fd880eb32d51b0a95b92652a914d14272b5 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Mon, 15 Sep 2025 07:55:35 +0200 Subject: [PATCH] Test on Python 3.14 and 3.14t Python v3.14 -- October 7th * https://www.python.org/download/pre-releases * https://www.python.org/downloads/release/python-3140rc2 --- .github/workflows/python-package.yml | 6 +++--- t/unit/transport/test_azureservicebus.py | 2 +- tox.ini | 25 +++++++++++++----------- 3 files changed, 18 insertions(+), 15 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 3f5dea246..fdb37a4ee 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -33,7 +33,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', '3.14t'] os: ["blacksmith-4vcpu-ubuntu-2404"] @@ -55,7 +55,7 @@ jobs: - name: > Run tox for "${{ matrix.python-version }}-unit" - timeout-minutes: 5 + timeout-minutes: 10 run: > tox --verbose --verbose -e "${{ matrix.python-version }}-unit" -vv @@ -81,7 +81,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', '3.14t'] toxenv: [ 'py-amqp', 'py-redis', diff --git a/t/unit/transport/test_azureservicebus.py b/t/unit/transport/test_azureservicebus.py index 58b76ed0c..69ea61b90 100644 --- a/t/unit/transport/test_azureservicebus.py +++ b/t/unit/transport/test_azureservicebus.py @@ -362,7 +362,7 @@ def test_custom_entity_name(): assert channel.entity_name('test-celery') == 'test-celery' assert channel.entity_name('test.celery') == 'test-celery' - # all other punctuation's replaced by underscores + # all other punctuation is replaced by underscores assert channel.entity_name('test_celery') == 'test_celery' assert channel.entity_name('test:celery') == 'test_celery' assert channel.entity_name('test+celery') == 'test_celery' diff --git a/tox.ini b/tox.ini index b2154cc43..780bd79f9 100644 --- a/tox.ini +++ b/tox.ini @@ -1,14 +1,15 @@ [tox] envlist = - {pypy3.10,3.9,3.10,3.11,3.12,3.13}-unit - {pypy3.10,3.9,3.10,3.11,3.12,3.13}-linux-integration-py-amqp - {pypy3.10,3.9,3.10,3.11,3.12,3.13}-linux-integration-redis - {pypy3.10,3.9,3.10,3.11,3.12,3.13}-linux-integration-mongodb - {pypy3.10,3.9,3.10,3.11,3.12,3.13}-linux-integration-kafka + {pypy3.10,3.9,3.10,3.11,3.12,3.13,3.14}-unit + {pypy3.10,3.9,3.10,3.11,3.12,3.13,3.14}-linux-integration-py-amqp + {pypy3.10,3.9,3.10,3.11,3.12,3.13,3.14}-linux-integration-redis + {pypy3.10,3.9,3.10,3.11,3.12,3.13,3.14}-linux-integration-mongodb + {pypy3.10,3.9,3.10,3.11,3.12,3.13,3.14}-linux-integration-kafka flake8 apicheck pydocstyle mypy +skio_missing_interpreters = True requires = tox-docker<=4.1 @@ -21,6 +22,7 @@ python = 3.11: py311 3.12: py312 3.13: py313 + 3.14: py314,py314t pypy3: pypy3 [testenv] @@ -32,10 +34,10 @@ passenv = DISTUTILS_USE_SDK deps= -r{toxinidir}/requirements/dev.txt - apicheck,pypy3.10,3.9,3.10,3.11,3.12,3.13: -r{toxinidir}/requirements/default.txt - apicheck,pypy3.10,3.9,3.10,3.11,3.12,3.13: -r{toxinidir}/requirements/test.txt - apicheck,pypy3.10,3.9,3.10,3.11,3.12,3.13: -r{toxinidir}/requirements/test-ci.txt - apicheck,3.9-linux,3.10-linux,3.11-linux,3.12-linux,3.13-linux: -r{toxinidir}/requirements/extras/confluentkafka.txt + apicheck,pypy3.10,3.9,3.10,3.11,3.12,3.13,3.14,3.14t: -r{toxinidir}/requirements/default.txt + apicheck,pypy3.10,3.9,3.10,3.11,3.12,3.13,3.14,3.14t: -r{toxinidir}/requirements/test.txt + apicheck,pypy3.10,3.9,3.10,3.11,3.12,3.13,3.14,3.14t: -r{toxinidir}/requirements/test-ci.txt + apicheck,3.9-linux,3.10-linux,3.11-linux,3.12-linux,3.13-linux,3.14-linux,3.14t-linux: -r{toxinidir}/requirements/extras/confluentkafka.txt apicheck,linkcheck: -r{toxinidir}/requirements/docs.txt flake8,pydocstyle,mypy: -r{toxinidir}/requirements/pkgutils.txt integration: -r{toxinidir}/requirements/test-integration.txt @@ -54,6 +56,7 @@ basepython = 3.11: python3.11 3.12: python3.12 3.13: python3.13 + 3.14: python3.14 apicheck,pydocstyle,flake8,linkcheck,cov,mypy: python3.13 install_command = python -m pip --disable-pip-version-check install {opts} {packages} @@ -124,11 +127,11 @@ environment = ALLOW_PLAINTEXT_LISTENER=yes [testenv:apicheck] -commands = pip install -U -r{toxinidir}/requirements/dev.txt +commands = pip install --upgrade -r{toxinidir}/requirements/dev.txt sphinx-build -j2 -b apicheck -d {envtmpdir}/doctrees docs docs/_build/apicheck [testenv:linkcheck] -commands = pip install -U -r{toxinidir}/requirements/dev.txt +commands = pip install --upgrade -r{toxinidir}/requirements/dev.txt sphinx-build -j2 -W -b linkcheck -d {envtmpdir}/doctrees docs docs/_build/linkcheck [testenv:flake8]