From a450c4f1253a632e63b454e80cda74e2add3840f Mon Sep 17 00:00:00 2001 From: Matthias Kestenholz Date: Thu, 31 Oct 2024 13:28:41 +0100 Subject: [PATCH] Add Python 3.13 --- .github/workflows/test.yml | 6 +++--- .pre-commit-config.yaml | 14 +++++--------- CHANGELOG.rst | 1 + pyproject.toml | 1 + tests/testapp/settings.py | 2 +- tox.ini | 1 + 6 files changed, 12 insertions(+), 13 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6f7044c..467523e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,7 +13,7 @@ jobs: fail-fast: false max-parallel: 5 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"] services: mariadb: @@ -69,7 +69,7 @@ jobs: fail-fast: false max-parallel: 5 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"] services: postgres: @@ -125,7 +125,7 @@ jobs: fail-fast: false max-parallel: 5 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"] steps: - uses: actions/checkout@v4 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 747e5c5..64de8be 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ exclude: ".yarn/|yarn.lock|\\.min\\.(css|js)$" repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: - id: check-added-large-files - id: check-builtin-literals @@ -14,16 +14,12 @@ repos: - id: mixed-line-ending - id: trailing-whitespace - repo: https://github.com/adamchainz/django-upgrade - rev: 1.20.0 + rev: 1.22.1 hooks: - id: django-upgrade args: [--target-version, "3.2"] - - repo: https://github.com/MarcoGorelli/absolufy-imports - rev: v0.3.1 - hooks: - - id: absolufy-imports - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.6.1" + rev: "v0.7.1" hooks: - id: ruff - id: ruff-format @@ -34,10 +30,10 @@ repos: args: [--list-different, --no-semi] exclude: "^conf/|.*\\.html$" - repo: https://github.com/tox-dev/pyproject-fmt - rev: 2.2.1 + rev: v2.5.0 hooks: - id: pyproject-fmt - repo: https://github.com/abravalheri/validate-pyproject - rev: v0.19 + rev: v0.22 hooks: - id: validate-pyproject diff --git a/CHANGELOG.rst b/CHANGELOG.rst index acca5cc..d3f63c8 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -7,6 +7,7 @@ Next version - Added Django 5.1 to the testsuite. - Added tests showing that ``.descendants().update(...)`` doesn't work, but ``.filter(pk__in=....descendants()).update(...)`` does. +- Added Python 3.13 to the testsuite. 0.19 (2024-04-25) diff --git a/pyproject.toml b/pyproject.toml index 83051bd..343ff26 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,6 +26,7 @@ classifiers = [ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development", ] diff --git a/tests/testapp/settings.py b/tests/testapp/settings.py index 774591f..fe5f290 100644 --- a/tests/testapp/settings.py +++ b/tests/testapp/settings.py @@ -3,7 +3,7 @@ DATABASES = { "default": { - "ENGINE": f'django.db.backends.{os.getenv("DB_BACKEND", "sqlite3")}', + "ENGINE": f"django.db.backends.{os.getenv('DB_BACKEND', 'sqlite3')}", "NAME": os.getenv("DB_NAME", ":memory:"), "USER": os.getenv("DB_USER"), "PASSWORD": os.getenv("DB_PASSWORD"), diff --git a/tox.ini b/tox.ini index 22aa149..20c2d95 100644 --- a/tox.ini +++ b/tox.ini @@ -3,6 +3,7 @@ envlist = docs py{38,39,310}-dj{32,41,42}-{sqlite,postgresql,mysql} py{310,311,312}-dj{32,41,42,50,51,main}-{sqlite,postgresql,mysql} + py{313}-dj{51,main}-{sqlite,postgresql,mysql} [testenv] deps =