Skip to content

Commit a6fea01

Browse files
committed
Add Django 5.0
Drop Django 4.1 Fixes #1283
1 parent 29108a5 commit a6fea01

File tree

5 files changed

+16
-9
lines changed

5 files changed

+16
-9
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,25 @@ 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']
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 and py3.12 for Django 3.2
2429
- python-version: '3.11'
2530
django-version: '3.2'
2631

27-
- python-version: '3.12-dev'
32+
- python-version: '3.12'
2833
django-version: '3.2'
2934

3035
services:
@@ -115,7 +120,7 @@ jobs:
115120
# Install this project in editable mode, so that its package metadata can be queried
116121
pip install -e .
117122
# Install the latest minor version of Django we support
118-
pip install Django==4.2
123+
pip install Django==5.0
119124
120125
- name: Check translation files are updated
121126
run: python -m simple_history.tests.generated_file_checks.check_translations

CHANGES.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Unreleased
1515
- Added temporary requirement on ``asgiref>=3.6`` while the minimum required Django
1616
version is lower than 4.2 (gh-1261)
1717
- Small performance optimization of the ``clean-duplicate_history`` command (gh-1015)
18+
- Added support for Django 5.0 (gh-1283)
1819

1920
3.4.0 (2023-08-18)
2021
------------------

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ 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
4645
4.2 3.8, 3.9, 3.10, 3.11, 3.12-dev
46+
5.0 3.10, 3.11, 3.12-dev
4747
main 3.10, 3.11, 3.12-dev
4848
========== ========================
4949

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ 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
4645
4.2 3.8, 3.9, 3.10, 3.11, 3.12-dev
46+
5.0 3.10, 3.11, 3.12-dev
4747
main 3.10, 3.11, 3.12-dev
4848
========== =======================
4949

tox.ini

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
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},
77
docs,
88
lint
@@ -18,8 +18,8 @@ python =
1818
[gh-actions:env]
1919
DJANGO =
2020
3.2: dj32
21-
4.1: dj41
2221
4.2: dj42
22+
5.0: dj50
2323
main: djmain
2424

2525
[flake8]
@@ -34,6 +34,7 @@ deps =
3434
dj32: Django>=3.2,<3.3
3535
dj41: Django>=4.1,<4.2
3636
dj42: Django>=4.2,<4.3
37+
dj50: Django>=5.0,<5.1
3738
djmain: https://github.com/django/django/tarball/main
3839
postgres: -rrequirements/postgres.txt
3940
mysql: -rrequirements/mysql.txt

0 commit comments

Comments
 (0)