-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathtox.ini
83 lines (72 loc) · 1.91 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
[tox]
envlist =
# django 2
py36-django22-drf{39,310,311,312},
py37-django22-drf{39,310,311,312},
py38-django22-drf{39,310,311,312},
py39-django22-drf{39,310,311,312},
# django 3
py36-django{31,32}-drf312,
py37-django{31,32}-drf312,
py38-django{31,32}-drf312,
py39-django{31,32}-drf312,
py310-django32-drf312,
# django 4.0
py38-django40-drf{313,314},
py39-django40-drf{313,314},
py310-django40-drf{313,314},
# django 4.1+
py38-django41-drf314,
py39-django41-drf314,
py310-django41-drf314,
py311-django{41,42}-drf314,
# Django 5.0
# * Python < 3.10 no longer supported
# * DRF 3.15 first to support django 5
py310-django{50,51}-drf315,
py311-django{50,51}-drf315,
py312-django{50,51}-drf315,
lint
[testenv]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/drf_sideloading
PYTHONDONTWRITEBYTECODE=1
allowlist_externals = coverage
commands =
coverage run --source drf_sideloading runtests.py
deps =
# Django
django22: Django>=2.2,<2.3
django31: Django>=3.1,<3.2
django32: Django>=3.2,<3.3
django40: Django>=4.0,<4.1
django41: Django>=4.1,<4.2
django42: Django>=4.2,<4.3
django50: Django>=5.0,<5.1
django51: Django>=5.1,<5.2
# Django rest framework
drf39: djangorestframework>=3.9,<3.10
drf310: djangorestframework>=3.10,<3.11
drf311: djangorestframework>=3.11,<3.12
drf312: djangorestframework>=3.12,<3.13
drf313: djangorestframework>=3.13,<3.14
drf314: djangorestframework>=3.14,<3.15
drf315: djangorestframework>=3.15,<3.16
-r{toxinidir}/requirements_test.txt
basepython =
py36: python3.6
py37: python3.7
py38: python3.8
py39: python3.9
py310: python3.10
py311: python3.11
py312: python3.12
passenv =
PYTHONPATH
[testenv:lint]
basepython =
python3.12
deps =
flake8
allowlist_externals = make
commands = make lint