forked from model-bakers/model_bakery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
35 lines (34 loc) · 925 Bytes
/
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
[tox]
env_list =
py38-django{32,41,42}-{postgresql,sqlite}
py39-django{32,41,42}-{postgresql,sqlite}
py310-django{32,41,42}-{postgresql,sqlite}
py311-django{32,41,42}-{postgresql,sqlite}
py311-django{42}-{postgresql-psycopg3}
py312-django{42}-{postgresql-psycopg3}
[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
sqlite: TEST_DB=sqlite
sqlite: USE_TZ=True
deps =
coverage
pillow
pytest
pytest-django
django32: Django==3.2
django41: Django>=4.1,<4.2
django42: Django>=4.2,<5
postgresql: psycopg2-binary
postgresql-psycopg3: psycopg
commands =
python \
-m coverage run \
-m pytest {posargs:tests}