-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtox.ini
48 lines (40 loc) · 1.29 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
# tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist =
py38-django30,
py38-django31,
{py38,py39}-django32
{py39,py310}-django40
{py39,py310}-django41
{py310,py311}-django42
{py310,py311}-django42
{py310,py311}-django50
{py310,py311}-django51
skip_missing_interpreters = true
[testenv:py38-django30]
deps =
Django>=3.0,<3.1
django-taggit==2.1.0
djangorestframework==3.13.0
commands = {envpython} tests/manage.py test testapp {posargs}
setenv = PYTHONPATH = .:{toxworkdir}
[testenv:py38-django31]
deps =
Django>=3.1,<3.2
django-taggit==2.1.0
djangorestframework==3.13.0
commands = {envpython} tests/manage.py test testapp {posargs}
setenv = PYTHONPATH = .:{toxworkdir}
[testenv:{py38,py39,py310,py311}-{django32,django40,django41,django42,django50,django51}]
deps =
django32: Django>=3.2,<4.0
django40: Django>=4.0,<4.1
django41: Django>=4.1,<4.2
django42: Django>=4.2,<5.0
django50: Django>=5.0,<5.1
django51: Django>=5.1,<5.2
commands = {envpython} tests/manage.py test testapp {posargs}
setenv = PYTHONPATH = .:{toxworkdir}