Skip to content

Commit c37a53d

Browse files
authored
Merge pull request #1289 from tim-schilling/django-5.0
Add Django 5.0
2 parents f48b53d + 607cdcc commit c37a53d

File tree

7 files changed

+30
-17
lines changed

7 files changed

+30
-17
lines changed

.github/workflows/test.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,26 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12-dev']
15-
django-version: ['3.2', '4.1', '4.2', 'main']
14+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13-dev']
15+
django-version: ['3.2', '4.2', '5.0', 'main']
1616

1717
exclude:
18+
# Exclude py3.8 and py3.9 for Django main and 5.0
19+
- python-version: '3.8'
20+
django-version: '5.0'
21+
- python-version: '3.9'
22+
django-version: '5.0'
1823
- python-version: '3.8'
1924
django-version: 'main'
20-
2125
- python-version: '3.9'
2226
django-version: 'main'
2327

28+
# Exclude py3.11, py3.12 and py3.13 for Django 3.2
2429
- python-version: '3.11'
2530
django-version: '3.2'
26-
27-
- python-version: '3.12-dev'
31+
- python-version: '3.12'
32+
django-version: '3.2'
33+
- python-version: '3.13-dev'
2834
django-version: '3.2'
2935

3036
services:
@@ -115,7 +121,7 @@ jobs:
115121
# Install this project in editable mode, so that its package metadata can be queried
116122
pip install -e .
117123
# Install the latest minor version of Django we support
118-
pip install Django==4.2
124+
pip install Django==5.0
119125
120126
- name: Check translation files are updated
121127
run: python -m simple_history.tests.generated_file_checks.check_translations

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ version: 2
99
build:
1010
os: ubuntu-22.04
1111
tools:
12-
python: "3.11"
12+
python: "3.12"
1313

1414
# Build documentation in the "docs/" directory with Sphinx
1515
sphinx:

CHANGES.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ Unreleased
1616
version is lower than 4.2 (gh-1261)
1717
- Small performance optimization of the ``clean-duplicate_history`` command (gh-1015)
1818
- Support Simplified Chinese translation (gh-1281)
19+
- Added support for Django 5.0 (gh-1283)
20+
- Added support for Python 3.13 (gh-1289)
1921

2022
3.4.0 (2023-08-18)
2123
------------------

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ This app supports the following combinations of Django and Python:
4242
Django Python
4343
========== ========================
4444
3.2 3.8, 3.9, 3.10
45-
4.1 3.8, 3.9, 3.10, 3.11, 3.12-dev
46-
4.2 3.8, 3.9, 3.10, 3.11, 3.12-dev
47-
main 3.10, 3.11, 3.12-dev
45+
4.2 3.8, 3.9, 3.10, 3.11, 3.12, 3.13-dev
46+
5.0 3.10, 3.11, 3.12, 3.13-dev
47+
main 3.10, 3.11, 3.12, 3.13-dev
4848
========== ========================
4949

5050
Getting Help

docs/index.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ This app supports the following combinations of Django and Python:
4242
Django Python
4343
========== =======================
4444
3.2 3.8, 3.9, 3.10
45-
4.1 3.8, 3.9, 3.10, 3.11, 3.12-dev
46-
4.2 3.8, 3.9, 3.10, 3.11, 3.12-dev
47-
main 3.10, 3.11, 3.12-dev
45+
4.2 3.8, 3.9, 3.10, 3.11, 3.12, 3.13-dev
46+
5.0 3.10, 3.11, 3.12, 3.13-dev
47+
main 3.10, 3.11, 3.12, 3.13-dev
4848
========== =======================
4949

5050
Contribute

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,16 @@
3939
"Intended Audience :: Developers",
4040
"Framework :: Django",
4141
"Framework :: Django :: 3.2",
42-
"Framework :: Django :: 4.1",
4342
"Framework :: Django :: 4.2",
43+
"Framework :: Django :: 5.0",
4444
"Programming Language :: Python",
4545
"Programming Language :: Python :: 3",
4646
"Programming Language :: Python :: 3.8",
4747
"Programming Language :: Python :: 3.9",
4848
"Programming Language :: Python :: 3.10",
4949
"Programming Language :: Python :: 3.11",
5050
"Programming Language :: Python :: 3.12",
51+
"Programming Language :: Python :: 3.13",
5152
"License :: OSI Approved :: BSD License",
5253
],
5354
python_requires=">=3.8",

tox.ini

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
[tox]
22
envlist =
33
py{38,39,310}-dj32-{sqlite3,postgres,mysql,mariadb},
4-
py{38,39,310,311,312}-dj41-{sqlite3,postgres,mysql,mariadb},
54
py{38,39,310,311,312}-dj42-{sqlite3,postgres,mysql,mariadb},
5+
py{310,311,312}-dj50-{sqlite3,postgres,mysql,mariadb},
66
py{310,311,312}-djmain-{sqlite3,postgres,mysql,mariadb},
7+
# DEV: Add `313` to the Python versions above (so that postgres is tested with 3.13)
8+
# when `psycopg2-binary` supports 3.13
9+
py313-dj{42,50,main}-{sqlite3,mysql,mariadb},
710
docs,
811
lint
912

@@ -14,12 +17,13 @@ python =
1417
3.10: py310
1518
3.11: py311, docs, lint
1619
3.12: py312
20+
3.13: py313
1721

1822
[gh-actions:env]
1923
DJANGO =
2024
3.2: dj32
21-
4.1: dj41
2225
4.2: dj42
26+
5.0: dj50
2327
main: djmain
2428

2529
[flake8]
@@ -32,8 +36,8 @@ exclude = __init__.py,simple_history/registry_tests/migration_test_app/migration
3236
deps =
3337
-rrequirements/test.txt
3438
dj32: Django>=3.2,<3.3
35-
dj41: Django>=4.1,<4.2
3639
dj42: Django>=4.2,<4.3
40+
dj50: Django>=5.0,<5.1
3741
djmain: https://github.com/django/django/tarball/main
3842
postgres: -rrequirements/postgres.txt
3943
mysql: -rrequirements/mysql.txt

0 commit comments

Comments
 (0)