From 0827162d79634c11567c116504d5c02f477d9523 Mon Sep 17 00:00:00 2001 From: Tomer Nosrati Date: Sat, 21 Sep 2024 17:19:18 +0300 Subject: [PATCH] Added Python 3.13 Support --- .github/workflows/parallel-support.yml | 6 ++++-- .github/workflows/python-package.yml | 9 ++++++--- pyproject.toml | 3 ++- tox.ini | 24 +++++++++++++----------- 4 files changed, 25 insertions(+), 17 deletions(-) diff --git a/.github/workflows/parallel-support.yml b/.github/workflows/parallel-support.yml index 6344bfc9..32a7e44e 100644 --- a/.github/workflows/parallel-support.yml +++ b/.github/workflows/parallel-support.yml @@ -36,7 +36,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.12"] + python-version: ["3.12", "3.13"] os: ["blacksmith-4vcpu-ubuntu-2204"] steps: @@ -56,6 +56,7 @@ jobs: uses: useblacksmith/setup-python@v6 with: python-version: ${{ matrix.python-version }} + allow-prereleases: true cache: 'pip' cache-dependency-path: '**/setup.py' @@ -78,7 +79,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.12"] + python-version: ["3.12", "3.13"] os: ["blacksmith-4vcpu-ubuntu-2204"] steps: @@ -98,6 +99,7 @@ jobs: uses: useblacksmith/setup-python@v6 with: python-version: ${{ matrix.python-version }} + allow-prereleases: true cache: 'pip' cache-dependency-path: '**/setup.py' diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index aa64faaf..53770246 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -36,7 +36,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] os: ["blacksmith-4vcpu-ubuntu-2204"] steps: @@ -56,6 +56,7 @@ jobs: uses: useblacksmith/setup-python@v6 with: python-version: ${{ matrix.python-version }} + allow-prereleases: true cache: 'pip' cache-dependency-path: '**/setup.py' @@ -88,7 +89,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] os: ["blacksmith-4vcpu-ubuntu-2204"] steps: @@ -108,6 +109,7 @@ jobs: uses: useblacksmith/setup-python@v6 with: python-version: ${{ matrix.python-version }} + allow-prereleases: true cache: 'pip' cache-dependency-path: '**/setup.py' @@ -133,7 +135,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] os: ["blacksmith-4vcpu-ubuntu-2204"] steps: @@ -153,6 +155,7 @@ jobs: uses: useblacksmith/setup-python@v6 with: python-version: ${{ matrix.python-version }} + allow-prereleases: true cache: 'pip' cache-dependency-path: '**/setup.py' diff --git a/pyproject.toml b/pyproject.toml index 6e0a78b5..ad2f9be4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,7 +42,7 @@ authors = [ "Thomas Grainger ", ] classifiers = [ - "Development Status :: 4 - Beta", + "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: BSD License", "Topic :: Software Development :: Testing", "Framework :: Celery", @@ -53,6 +53,7 @@ classifiers = [ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Programming Language :: Python :: Implementation :: CPython", "Operating System :: OS Independent", ] diff --git a/tox.ini b/tox.ini index b2a1aaff..b05603e8 100644 --- a/tox.ini +++ b/tox.ini @@ -3,9 +3,9 @@ requires = tox>4 tox-gh-actions envlist = - {py38,py39,py310,py311,py312}-unit - {py38,py39,py310,py311,py312}-integration - {py38,py39,py310,py311,py312}-smoke + {py38,py39,py310,py311,py312,py313}-unit + {py38,py39,py310,py311,py312,py313}-integration + {py38,py39,py310,py311,py312,py313}-smoke suicide_timeout = 1 [gh-actions] @@ -15,6 +15,7 @@ python = 3.10: py310-unit, py310-integration, py310-smoke 3.11: py311-unit, py311-integration, py311-smoke 3.12: py312-unit, py312-integration, py312-smoke + 3.13: py313-unit, py313-integration, py313-smoke [testenv] description = Run tests using {basepython} @@ -35,14 +36,15 @@ basepython = 3.10: py310 3.11: py311 3.12: py312 - mypy: py312 - lint: py312 - clean: py312 - xdist: py312 - parallel: py312 - docs: py312 - docs-livehtml: py312 - docs-apidoc: py312 + 3.13: py313 + mypy: py313 + lint: py313 + clean: py313 + xdist: py313 + parallel: py313 + docs: py313 + docs-livehtml: py313 + docs-apidoc: py313 usedevelop = True [testenv:xdist]