-
-
Notifications
You must be signed in to change notification settings - Fork 87
/
Copy pathtox.ini
39 lines (38 loc) · 1.14 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
[tox]
env_list =
py{38,39}-django{42}-{postgresql,sqlite}
py{310,311}-django{42,50,51}-{postgresql,sqlite}
py{311,312}-django{42,50,51}-{postgresql-psycopg3}
py312-django{50,51}-{postgresql-contenttypes}
py313-django{50,51}-{sqlite,postgresql-psycopg3,postgresql-contenttypes}
[testenv]
package = wheel
setenv =
PYTHONPATH={toxinidir}
postgresql: TEST_DB=postgis
postgresql: PGUSER=postgres
postgresql: PGPASSWORD=postgres
postgresql-psycopg3: TEST_DB=postgis
postgresql-psycopg3: PGUSER=postgres
postgresql-psycopg3: PGPASSWORD=postgres
postgresql-contenttypes: USE_CONTENTTYPES=True
postgresql-contenttypes: TEST_DB=postgresql
postgresql-contenttypes: PGUSER=postgres
postgresql-contenttypes: PGPASSWORD=postgres
sqlite: TEST_DB=sqlite
sqlite: USE_TZ=True
deps =
coverage
pillow
pytest
pytest-django
django42: Django>=4.2,<5
django50: Django>=5.0,<5.1
django51: Django>=5.1,<5.2
postgresql: psycopg2-binary
postgresql-psycopg3: psycopg
postgresql-contenttypes: psycopg
commands =
python \
-m coverage run \
-m pytest {posargs:tests}