Skip to content

Commit b4de1d5

Browse files
committed
Removing py3.8 from test runs and separating out 3.13 due to Django version compatibility
1 parent b97ffed commit b4de1d5

File tree

4 files changed

+39
-11
lines changed

4 files changed

+39
-11
lines changed

.github/workflows/test.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@ jobs:
8484
- python-version: '3.12'
8585
database: psycopg3
8686
- python-version: '3.13'
87-
# psycopg installs version 3+; psycopg3 not found via pip in python 3.13
88-
database: psycopg
87+
database: psycopg3
8988

9089
services:
9190
postgres:

docs/changes.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ Change log
44
Pending
55
-------
66

7-
* Added support for Python 3.13 to the CI matrix.
8-
* Removed support for Python 3.8 as it is end of life.
7+
* Added Python 3.13 to the CI matrix.
8+
* Removed support for Python 3.8 as it has reached end of life.
99

1010
5.0.0-alpha (2024-09-01)
1111
------------------------

pyproject.toml

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ classifiers = [
2929
"Programming Language :: Python :: 3.10",
3030
"Programming Language :: Python :: 3.11",
3131
"Programming Language :: Python :: 3.12",
32-
"Programming Language :: Python :: 3.13",
3332
"Topic :: Software Development :: Libraries :: Python Modules",
3433
]
3534
dynamic = [

tox.ini

+36-6
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ envlist =
55
packaging
66
py{39,310,311,312}-dj{42}-{sqlite,postgresql,postgis,mysql}
77
py{310,311,312}-dj{42,50,51,main}-{sqlite,postgresql,psycopg3,postgis,mysql}
8-
py{313}-dj{51,main}-{sqlite,postgresql,psycopg3,postgis,mysql}
8+
py{313}-dj{51,main}-{sqlite,psycopg3,mysql}
99

1010
[testenv]
1111
deps =
@@ -16,6 +16,7 @@ deps =
1616
postgresql: psycopg2-binary
1717
psycopg3: psycopg[binary]
1818
postgis: psycopg2-binary
19+
postgis3: psycopg[binary]
1920
mysql: mysqlclient
2021
coverage[toml]
2122
Jinja2
@@ -50,33 +51,62 @@ pip_pre = True
5051
commands = python -b -W always -m coverage run -m django test -v2 {posargs:tests}
5152

5253

53-
[testenv:py{38,39,310,311,312,313}-dj{42,50,51,main}-{postgresql,psycopg3}]
54+
[testenv:py{39,310,311,312}-dj{42,50,51,main}-{postgresql,psycopg3}]
5455
setenv =
5556
{[testenv]setenv}
5657
DB_BACKEND = postgresql
5758
DB_PORT = {env:DB_PORT:5432}
5859

5960

60-
[testenv:py{38,39,310,311,312,313}-dj{42,50,51,main}-postgis]
61+
[testenv:py{39,310,311,312}-dj{42,50,51,main}-postgis]
6162
setenv =
6263
{[testenv]setenv}
6364
DB_BACKEND = postgis
6465
DB_PORT = {env:DB_PORT:5432}
6566

6667

67-
[testenv:py{38,39,310,311,312,313}-dj{42,50,51,main}-mysql]
68+
[testenv:py{39,310,311,312}-dj{42,50,51,main}-mysql]
6869
setenv =
6970
{[testenv]setenv}
7071
DB_BACKEND = mysql
7172
DB_PORT = {env:DB_PORT:3306}
7273

7374

74-
[testenv:py{38,39,310,311,312,313}-dj{42,50,51,main}-sqlite]
75+
[testenv:py{39,310,311,312}-dj{42,50,51,main}-sqlite]
7576
setenv =
7677
{[testenv]setenv}
7778
DB_BACKEND = sqlite3
7879
DB_NAME = ":memory:"
7980

81+
82+
[testenv:py313-dj{51,main}-psycopg3]
83+
setenv =
84+
{[testenv]setenv}
85+
DB_BACKEND = postgresql
86+
DB_PORT = {env:DB_PORT:5432}
87+
88+
89+
[testenv:py313-dj{51,main}-postgis3]
90+
setenv =
91+
{[testenv]setenv}
92+
DB_BACKEND = postgis
93+
DB_PORT = {env:DB_PORT:5432}
94+
95+
96+
[testenv:py313-dj{51,main}-mysql]
97+
setenv =
98+
{[testenv]setenv}
99+
DB_BACKEND = mysql
100+
DB_PORT = {env:DB_PORT:3306}
101+
102+
103+
[testenv:py313-dj{51,main}-sqlite]
104+
setenv =
105+
{[testenv]setenv}
106+
DB_BACKEND = sqlite3
107+
DB_NAME = ":memory:"
108+
109+
80110
[testenv:docs]
81111
commands = make -C {toxinidir}/docs {posargs:spelling}
82112
deps =
@@ -105,7 +135,7 @@ python =
105135
DB_BACKEND =
106136
mysql: mysql
107137
postgresql: postgresql
108-
psycopg: psycopg
109138
psycopg3: psycopg3
110139
postgis: postgis
140+
postgis3: postgis3
111141
sqlite3: sqlite

0 commit comments

Comments
 (0)