From 881bc1770f715e328df7980df96c4f4a94932a3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fl=C3=A1vio=20Juvenal?= Date: Fri, 11 Oct 2024 12:13:58 -0300 Subject: [PATCH] Add Python 3.13 support --- .github/workflows/ci.yml | 4 ++-- .github/workflows/docs-update.yml | 2 +- .github/workflows/pre-commit.yml | 2 +- .github/workflows/publish.yml | 2 +- .python-version | 2 +- pyproject.toml | 2 +- tox.ini | 9 +++++---- 7 files changed, 12 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 23c86e3..28b2ef9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,7 +10,7 @@ jobs: strategy: matrix: - python-version: ["3.10", "3.11", "3.12"] + python-version: ["3.10", "3.11", "3.12", "3.13"] steps: - name: Checkout code @@ -119,4 +119,4 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} parallel-finished: true - carryforward: "django-coverage-3.10,django-coverage-3.11,django-coverage-3.12,node-coverage" + carryforward: "django-coverage-3.10,django-coverage-3.11,django-coverage-3.12,django-coverage-3.13,node-coverage" diff --git a/.github/workflows/docs-update.yml b/.github/workflows/docs-update.yml index ddbcdae..0d29f4b 100644 --- a/.github/workflows/docs-update.yml +++ b/.github/workflows/docs-update.yml @@ -29,7 +29,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.13" - name: Install dependencies run: | diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 67e011b..6b13a17 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -12,7 +12,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.13" - name: Install Django dependencies run: | diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index bc2d012..a495027 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -18,7 +18,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.13" - name: Install dependencies run: | diff --git a/.python-version b/.python-version index 455808f..24ee5b1 100644 --- a/.python-version +++ b/.python-version @@ -1 +1 @@ -3.12.4 +3.13 diff --git a/pyproject.toml b/pyproject.toml index 0527e30..4c69a38 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -222,7 +222,7 @@ omit = [ ] [tool.pyright] -pythonVersion = "3.12" +pythonVersion = "3.13" include = ["django_ai_assistant"] typeCheckingMode = "basic" useLibraryCodeForTypes = true diff --git a/tox.ini b/tox.ini index e68d0df..0cda883 100644 --- a/tox.ini +++ b/tox.ini @@ -4,13 +4,14 @@ requires = envlist = # Django official Python support # Source: https://docs.djangoproject.com/en/5.1/faq/install/#what-python-version-can-i-use-with-django - {py310,py311,py312}-{django42,django50,django51} + {py310,py311,py312,py313}-{django42,django50,django51} [gh] python = - 3.10 = py310-{django42,django50} - 3.11 = py311-{django42,django50} - 3.12 = py312-{django42,django50} + 3.10 = py310-{django42,django50,django51} + 3.11 = py311-{django42,django50,django51} + 3.12 = py312-{django42,django50,django51} + 3.13 = py313-{django42,django50,django51} [testenv] description = run tests