Skip to content

Commit 359edc8

Browse files
hramezaniMercymeIlya
authored andcommitted
Add Python 3.13 support (jazzband#697)
1 parent 1cc3002 commit 359edc8

File tree

7 files changed

+17
-9
lines changed

7 files changed

+17
-9
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,22 @@ jobs:
99
fail-fast: false
1010
max-parallel: 5
1111
matrix:
12-
python-version: ['3.9', '3.10', '3.11', '3.12']
12+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
1313

1414
services:
1515
postgres:
16-
image: postgres:14
16+
image: postgres:15
1717
env:
1818
POSTGRES_USER: postgres
1919
POSTGRES_PASSWORD: postgres
2020
POSTGRES_DB: postgres
2121
ports:
22-
- 5432/tcp
22+
- 5432/tcp
2323
options: >-
2424
--health-cmd pg_isready
2525
--health-interval 10s
2626
--health-timeout 5s
27-
--health-retries 5
27+
--health-retries 10
2828
2929
steps:
3030
- uses: actions/checkout@v4

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repos:
99
- "--target-version"
1010
- "py39"
1111
- repo: https://github.com/PyCQA/flake8
12-
rev: "7.1.1"
12+
rev: "7.3.0"
1313
hooks:
1414
- id: flake8
1515
args: ["--max-line-length", "110"]
@@ -18,12 +18,12 @@ repos:
1818
hooks:
1919
- id: isort
2020
- repo: https://github.com/asottile/pyupgrade
21-
rev: v3.18.0
21+
rev: v3.20.0
2222
hooks:
2323
- id: pyupgrade
2424
args: [--py39-plus]
2525
- repo: https://github.com/adamchainz/django-upgrade
26-
rev: 1.22.1
26+
rev: 1.25.0
2727
hooks:
2828
- id: django-upgrade
2929
args: [--target-version, "4.2"]

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
#### Improvements
66

7+
- Add Python 3.13 support. ([#671](https://github.com/jazzband/django-auditlog/pull/671))
78
- feat: Added `LogEntry.remote_port` field. ([#671](https://github.com/jazzband/django-auditlog/pull/671))
89
- Drop Python 3.8 support. ([#678](https://github.com/jazzband/django-auditlog/pull/678))
910
- Confirm Django 5.1 support and drop Django 3.2 support. ([#677](https://github.com/jazzband/django-auditlog/pull/677))

auditlog/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import json
44
from copy import deepcopy
55
from datetime import timezone
6-
from typing import Any, Callable, Union
6+
from typing import Any, Callable
77

88
from dateutil import parser
99
from dateutil.tz import gettz

auditlog_tests/test_settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Settings file for the Auditlog test suite.
33
"""
4+
45
import os
56

67
DEBUG = True
@@ -14,6 +15,7 @@
1415
"django.contrib.sessions",
1516
"django.contrib.admin",
1617
"django.contrib.staticfiles",
18+
"django.contrib.postgres",
1719
"auditlog",
1820
"auditlog_tests",
1921
]

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"Programming Language :: Python :: 3.10",
3838
"Programming Language :: Python :: 3.11",
3939
"Programming Language :: Python :: 3.12",
40+
"Programming Language :: Python :: 3.13",
4041
"Framework :: Django",
4142
"Framework :: Django :: 4.2",
4243
"Framework :: Django :: 5.0",

tox.ini

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
[tox]
22
envlist =
33
{py39,py310,py311}-django42
4-
{py310,py311,py312}-django{50,51,main}
4+
{py310,py311,py312}-django50
5+
{py310,py311,py312,py313}-django51
6+
{py312,py313}-djangomain
57
py39-docs
68
py39-lint
79

@@ -30,6 +32,7 @@ passenv=
3032
TEST_DB_PORT
3133

3234
basepython =
35+
py313: python3.13
3336
py312: python3.12
3437
py311: python3.11
3538
py310: python3.10
@@ -51,3 +54,4 @@ python =
5154
3.10: py310
5255
3.11: py311
5356
3.12: py312
57+
3.13: py313

0 commit comments

Comments
 (0)