File: tox.ini

package info (click to toggle)
python-model-bakery 1.20.5-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 532 kB
  • sloc: python: 4,298; sh: 149; makefile: 21
file content (40 lines) | stat: -rw-r--r-- 1,211 bytes parent folder | download
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
40
[tox]
env_list =
    py{38,39}-django{42}-{postgresql,sqlite}
    py{310,311}-django{42,50,51,52}-{postgresql,sqlite}
    py{311,312}-django{42,50,51,52}-{postgresql-psycopg3}
    py312-django{50,51,52}-{postgresql-contenttypes}
    py313-django{50,51,52}-{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
    django52: Django>=5.2,<5.3
    postgresql: psycopg2-binary
    postgresql-psycopg3: psycopg
    postgresql-contenttypes: psycopg
commands =
    python \
        -m coverage run \
        -m pytest {posargs:tests}