-
Notifications
You must be signed in to change notification settings - Fork 208
/
Copy pathtox.ini
33 lines (29 loc) · 1.01 KB
/
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
[tox]
envlist = py{38,39}-django{22}-drf{311,312}
py{38,39,310,311,312}-django{32}-drf{312,313,314}
py{38,39,310,311,312}-django{42}-drf{314,315}
py{310,311,312}-django{51}-drf{314,315}
[testenv]
deps=
-rtests_app/requirements.txt
django-guardian>=1.4.4
drf311: djangorestframework>=3.11,<3.12
djangorestframework-guardian
drf312: djangorestframework>=3.12,<3.13
djangorestframework-guardian
drf313: djangorestframework>=3.13,<3.14
djangorestframework-guardian
drf314: djangorestframework>=3.14,<3.15
djangorestframework-guardian
drf315: djangorestframework>=3.15,<3.16
djangorestframework-guardian
django22: Django>=2.2,<3.0
django32: Django>=3.2,<4.0
django42: Django>=4.2,<5.0
django51: Django>=5.1,<6.0
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/tests_app
commands =
python --version
pip freeze
python -Wd {envbindir}/django-admin test --settings=settings {posargs}