Skip to content

Commit a8b7b61

Browse files
committed
Added in support for Python 3.13
Shout-out to London Django Meetup for the Hacktoberfest Hackathon inspiration.
1 parent 244d4fd commit a8b7b61

File tree

4 files changed

+16
-9
lines changed

4 files changed

+16
-9
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
fail-fast: false
1515
max-parallel: 5
1616
matrix:
17-
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
17+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
1818

1919
services:
2020
mariadb:
@@ -73,7 +73,7 @@ jobs:
7373
fail-fast: false
7474
max-parallel: 5
7575
matrix:
76-
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
76+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
7777
database: [postgresql, postgis]
7878
# Add psycopg3 to our matrix for modern python versions
7979
include:
@@ -83,6 +83,9 @@ jobs:
8383
database: psycopg3
8484
- python-version: '3.12'
8585
database: psycopg3
86+
- python-version: '3.13'
87+
# psycopg installs version 3+; psycopg3 not found via pip in python 3.13
88+
database: psycopg
8689

8790
services:
8891
postgres:
@@ -145,7 +148,7 @@ jobs:
145148
fail-fast: false
146149
max-parallel: 5
147150
matrix:
148-
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
151+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
149152

150153
steps:
151154
- uses: actions/checkout@v4

docs/changes.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Change log
44
Pending
55
-------
66

7+
* Added support for Python 3.13 and to the CI matrix.
8+
79
5.0.0-alpha (2024-09-01)
810
------------------------
911

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ classifiers = [
3030
"Programming Language :: Python :: 3.10",
3131
"Programming Language :: Python :: 3.11",
3232
"Programming Language :: Python :: 3.12",
33+
"Programming Language :: Python :: 3.13",
3334
"Topic :: Software Development :: Libraries :: Python Modules",
3435
]
3536
dynamic = [

tox.ini

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ isolated_build = true
33
envlist =
44
docs
55
packaging
6-
py{38,39,310,311,312}-dj{42}-{sqlite,postgresql,postgis,mysql}
7-
py{310,311,312}-dj{42,50,51,main}-{sqlite,postgresql,psycopg3,postgis,mysql}
6+
py{38,39,310,311,312,313}-dj{42}-{sqlite,postgresql,postgis,mysql}
7+
py{310,311,312,313}-dj{42,50,51,main}-{sqlite,postgresql,psycopg3,postgis,mysql}
88

99
[testenv]
1010
deps =
@@ -49,28 +49,28 @@ pip_pre = True
4949
commands = python -b -W always -m coverage run -m django test -v2 {posargs:tests}
5050

5151

52-
[testenv:py{38,39,310,311,312}-dj{42,50,51,main}-{postgresql,psycopg3}]
52+
[testenv:py{38,39,310,311,312,313}-dj{42,50,51,main}-{postgresql,psycopg3}]
5353
setenv =
5454
{[testenv]setenv}
5555
DB_BACKEND = postgresql
5656
DB_PORT = {env:DB_PORT:5432}
5757

5858

59-
[testenv:py{38,39,310,311,312}-dj{42,50,51,main}-postgis]
59+
[testenv:py{38,39,310,311,312,313}-dj{42,50,51,main}-postgis]
6060
setenv =
6161
{[testenv]setenv}
6262
DB_BACKEND = postgis
6363
DB_PORT = {env:DB_PORT:5432}
6464

6565

66-
[testenv:py{38,39,310,311,312}-dj{42,50,51,main}-mysql]
66+
[testenv:py{38,39,310,311,312,313}-dj{42,50,51,main}-mysql]
6767
setenv =
6868
{[testenv]setenv}
6969
DB_BACKEND = mysql
7070
DB_PORT = {env:DB_PORT:3306}
7171

7272

73-
[testenv:py{38,39,310,311,312}-dj{42,50,51,main}-sqlite]
73+
[testenv:py{38,39,310,311,312,313}-dj{42,50,51,main}-sqlite]
7474
setenv =
7575
{[testenv]setenv}
7676
DB_BACKEND = sqlite3
@@ -99,6 +99,7 @@ python =
9999
3.10: py310
100100
3.11: py311
101101
3.12: py312
102+
3.13: py313
102103

103104
[gh-actions:env]
104105
DB_BACKEND =

0 commit comments

Comments
 (0)