forked from model-bakers/model_bakery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
34 lines (33 loc) · 912 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
[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}
[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
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
commands =
python \
-m coverage run \
-m pytest {posargs:tests}