-
Notifications
You must be signed in to change notification settings - Fork 90
/
tox.ini
46 lines (42 loc) · 994 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
36
37
38
39
40
41
42
43
44
45
46
[tox]
toxworkdir=/tmp/tox/django-attachments
skip_missing_interpreters=True
envlist=
readme
begin
py{38,39,310}-django-{32,40,41}
py{311}-django-{41}
end
{mariadb,postgresql}-django-41
[testenv]
commands=
pytest --pyargs --cov={envsitepackagesdir}/attachments attachments
deps=
django-32: Django==3.2.*
django-40: Django==4.0.*
django-41: Django==4.1.*
postgresql: psycopg2-binary
mariadb: mysqlclient
coverage
setenv =
postgresql: DJANGO_DATABASE_ENGINE = postgresql
mariadb: DJANGO_DATABASE_ENGINE = mysql
extras = test
[testenv:begin]
basepython = python3.10
skip_install = True
commands = coverage erase
[testenv:end]
basepython = python3.10
skip_install = True
commands=
coverage report
coverage html
[testenv:readme]
skip_install = True
deps =
docutils
Pygments
commands =
rst2html.py --report=info --halt=warning README.rst /dev/null
rst2html.py --report=info --halt=warning CHANGELOG.rst /dev/null