WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit a450c4f

Browse files
committed
Add Python 3.13
1 parent d02c16c commit a450c4f

File tree

6 files changed

+12
-13
lines changed

6 files changed

+12
-13
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
fail-fast: false
1414
max-parallel: 5
1515
matrix:
16-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
16+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
1717

1818
services:
1919
mariadb:
@@ -69,7 +69,7 @@ jobs:
6969
fail-fast: false
7070
max-parallel: 5
7171
matrix:
72-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
72+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
7373

7474
services:
7575
postgres:
@@ -125,7 +125,7 @@ jobs:
125125
fail-fast: false
126126
max-parallel: 5
127127
matrix:
128-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
128+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
129129

130130
steps:
131131
- uses: actions/checkout@v4

.pre-commit-config.yaml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
exclude: ".yarn/|yarn.lock|\\.min\\.(css|js)$"
22
repos:
33
- repo: https://github.com/pre-commit/pre-commit-hooks
4-
rev: v4.6.0
4+
rev: v5.0.0
55
hooks:
66
- id: check-added-large-files
77
- id: check-builtin-literals
@@ -14,16 +14,12 @@ repos:
1414
- id: mixed-line-ending
1515
- id: trailing-whitespace
1616
- repo: https://github.com/adamchainz/django-upgrade
17-
rev: 1.20.0
17+
rev: 1.22.1
1818
hooks:
1919
- id: django-upgrade
2020
args: [--target-version, "3.2"]
21-
- repo: https://github.com/MarcoGorelli/absolufy-imports
22-
rev: v0.3.1
23-
hooks:
24-
- id: absolufy-imports
2521
- repo: https://github.com/astral-sh/ruff-pre-commit
26-
rev: "v0.6.1"
22+
rev: "v0.7.1"
2723
hooks:
2824
- id: ruff
2925
- id: ruff-format
@@ -34,10 +30,10 @@ repos:
3430
args: [--list-different, --no-semi]
3531
exclude: "^conf/|.*\\.html$"
3632
- repo: https://github.com/tox-dev/pyproject-fmt
37-
rev: 2.2.1
33+
rev: v2.5.0
3834
hooks:
3935
- id: pyproject-fmt
4036
- repo: https://github.com/abravalheri/validate-pyproject
41-
rev: v0.19
37+
rev: v0.22
4238
hooks:
4339
- id: validate-pyproject

CHANGELOG.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Next version
77
- Added Django 5.1 to the testsuite.
88
- Added tests showing that ``.descendants().update(...)`` doesn't work, but
99
``.filter(pk__in=....descendants()).update(...)`` does.
10+
- Added Python 3.13 to the testsuite.
1011

1112

1213
0.19 (2024-04-25)

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ classifiers = [
2626
"Programming Language :: Python :: 3.10",
2727
"Programming Language :: Python :: 3.11",
2828
"Programming Language :: Python :: 3.12",
29+
"Programming Language :: Python :: 3.13",
2930
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
3031
"Topic :: Software Development",
3132
]

tests/testapp/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
DATABASES = {
55
"default": {
6-
"ENGINE": f'django.db.backends.{os.getenv("DB_BACKEND", "sqlite3")}',
6+
"ENGINE": f"django.db.backends.{os.getenv('DB_BACKEND', 'sqlite3')}",
77
"NAME": os.getenv("DB_NAME", ":memory:"),
88
"USER": os.getenv("DB_USER"),
99
"PASSWORD": os.getenv("DB_PASSWORD"),

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ envlist =
33
docs
44
py{38,39,310}-dj{32,41,42}-{sqlite,postgresql,mysql}
55
py{310,311,312}-dj{32,41,42,50,51,main}-{sqlite,postgresql,mysql}
6+
py{313}-dj{51,main}-{sqlite,postgresql,mysql}
67

78
[testenv]
89
deps =

0 commit comments

Comments
 (0)