Skip to content

Commit 607cdcc

Browse files
committed
Added support for Python 3.13
3.13 can't be tested with postgres, as `psycopg2-binary` doesn't currently support 3.13 - see e.g. https://github.com/ddabble/django-simple-history/actions/runs/7937535510/job/21674900984. I still think it's better to add early support of 3.13 and temporarily test without postgres, since all the other packages (and our code) currently work with 3.13. Also bumped the Python version in `.readthedocs.yaml` to 3.12, as it's the latest, stable version available. Also removed the recently dropped Django 4.1 from `setup.py` and `tox.ini`, and added Django 5.0 to `setup.py`.
1 parent aee3e1c commit 607cdcc

File tree

7 files changed

+18
-12
lines changed

7 files changed

+18
-12
lines changed

.github/workflows/test.yml

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

1717
exclude:
@@ -25,12 +25,13 @@ jobs:
2525
- python-version: '3.9'
2626
django-version: 'main'
2727

28-
# Exclude py3.11 and py3.12 for Django 3.2
28+
# Exclude py3.11, py3.12 and py3.13 for Django 3.2
2929
- python-version: '3.11'
3030
django-version: '3.2'
31-
3231
- python-version: '3.12'
3332
django-version: '3.2'
33+
- python-version: '3.13-dev'
34+
django-version: '3.2'
3435

3536
services:
3637

.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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Unreleased
1717
- Small performance optimization of the ``clean-duplicate_history`` command (gh-1015)
1818
- Support Simplified Chinese translation (gh-1281)
1919
- Added support for Django 5.0 (gh-1283)
20+
- Added support for Python 3.13 (gh-1289)
2021

2122
3.4.0 (2023-08-18)
2223
------------------

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.2 3.8, 3.9, 3.10, 3.11, 3.12-dev
46-
5.0 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.2 3.8, 3.9, 3.10, 3.11, 3.12-dev
46-
5.0 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: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ envlist =
44
py{38,39,310,311,312}-dj42-{sqlite3,postgres,mysql,mariadb},
55
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,6 +17,7 @@ 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 =
@@ -32,7 +36,6 @@ 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
3740
dj50: Django>=5.0,<5.1
3841
djmain: https://github.com/django/django/tarball/main

0 commit comments

Comments
 (0)