-
Notifications
You must be signed in to change notification settings - Fork 202
/
Copy pathtox.ini
30 lines (27 loc) · 939 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
[tox]
envlist =
py{39,310}-django{42,50}-djangorestframework{314}{,-pytest}
py{311}-django{42}-djangorestframework{314}{,-pytest}
py{311,312}-django{50}-djangorestframework{315}{,-pytest}
py{311,312}-django{51}-djangorestframework{315}{,-pytest}
[testenv]
usedevelop = true
setenv =
DJANGO_SETTINGS_MODULE=settings
; Hack: use an environment var to specify the test runner (to avoid using
; "nopytest" as a factor).
DRFG_TEST_RUNNER=./tests/manage.py test
pytest: DRFG_TEST_RUNNER=-m pytest
commands =
coverage run {env:DRFG_TEST_RUNNER} {posargs:tests/django_restframework_gis_tests} --parallel
deps =
django42: Django~=4.2.0
django50: Django~=5.0.0
django51: Django~=5.1.0
djangorestframework314: djangorestframework~=3.14.0
djangorestframework315: djangorestframework~=3.15.0
-rrequirements-test.txt
pytest: pytest
pytest: pytest-django
[flake8]
exclude = .tox