Skip to content

Commit 4ddb5d4

Browse files
Add tox environments
This neatens up and brings up to date the various combinations of Python, Django and Postgres/Psycopg
1 parent f287c09 commit 4ddb5d4

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

tox.ini

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,40 @@
33
# Taken from:
44
# https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django
55
envlist =
6-
py{38,39,310}-django{32,40,41}-{sqlite,postgres},
7-
py{38,39,310,311}-django{41}-{sqlite,postgres},
6+
py{38,39,310}-django{32,40,41}-{sqlite,postgres-psycopg2},
7+
py{38,39,310,311,312}-django{41,42}-{sqlite,postgres-psycopg2},
8+
py{310,311,312}-django{50,51,52}-{sqlite,postgres-psycopg3}
89

910
[gh-actions]
1011
python =
1112
3.8: py38
1213
3.9: py39
1314
3.10: py310
1415
3.11: py311
16+
3.12: py312
1517

1618
[testenv]
1719
commands =
1820
py.test
1921
passenv = DB
2022
deps =
2123
pytest
22-
psycopg2-binary>=2.8
24+
psycopg2: psycopg2-binary>=2.8
25+
psycopg3: psycopg[binary]>=3.1
2326
django32: Django>=3.2,<3.3
2427
django32: pytest-django>=4.2
2528
django40: Django>=4.0,<4.1
2629
django40: pytest-django>=4.5
2730
django41: Django>=4.1,<4.2
2831
django41: pytest-django>=4.5
32+
django42: Django>=4.2,<4.3
33+
django42: pytest-django>=4.5
34+
django50: Django>=5.0,<5.1
35+
django50: pytest-django>=4.5
36+
django51: Django>=5.1,<5.2
37+
django51: pytest-django>=4.5
38+
django52: Django>=5.2,<5.3
39+
django52: pytest-django>=4.5
2940
setenv =
3041
sqlite: DB=sqlite
3142
postgres: DB=postgres

0 commit comments

Comments
 (0)