File: tox.ini

package info (click to toggle)
python-django-treebeard 5.0.5-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,048 kB
  • sloc: python: 5,271; javascript: 269; makefile: 178
file content (49 lines) | stat: -rw-r--r-- 1,099 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
41
42
43
44
45
46
47
48
49
#
# tox.ini for django-treebeard
#
# Read docs/tests for help on how to use tox to run the test suite.
#

[tox]
envlist =
    py{310,311,312,313}-dj{52}-{sqlite,postgres,mysql,mssql}
    py{312,313,314}-dj{60}-{sqlite,postgres,mysql}      # mssql-django doesn't yet support Django 6

[testenv:docs]
basepython = python
changedir = docs
deps =
    Sphinx
    Django
commands =
    sphinx-build -W -b html -d {envtmpdir}/doctrees .  {envtmpdir}/html

[testenv]
deps =
    pytest>=9,<9.1
    pytest-django>=4.0,<5.0
    pytest-pythonpath>=0.7,<1.0
    pytest-cov<8.0
    psycopg[binary]>=3
    dj52: Django>=5.2,<6
    dj60: Django>=6,<6.1
    mysql: mysqlclient>=2.1.1
    mssql: mssql-django>=1.2

setenv =
    sqlite: DATABASE_ENGINE=sqlite
    postgres: DATABASE_ENGINE=psql
    mysql: DATABASE_ENGINE=mysql
    mssql: DATABASE_ENGINE=mssql

passenv = 
    DATABASE_USER
    DATABASE_PASSWORD
    DATABASE_HOST
    DATABASE_USER_POSTGRES
    DATABASE_PORT_POSTGRES
    DATABASE_USER_MYSQL
    DATABASE_PORT_MYSQL
    DATABASE_PORT_MSSQL

commands = pytest --cov treebeard --no-migrations {posargs}