forked from jazzband/django-oauth-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
122 lines (111 loc) · 2.23 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
[tox]
envlist =
migrations,
migrate_swapped,
docs,
lint,
sphinxlint,
py{38,39,310,311,312}-dj42,
py{310,311,312}-dj50,
py{310,311,312}-dj51,
py{310,311,312}-djmain,
py39-multi-db-dj-42
[gh-actions]
python =
3.8: py38, docs, lint, migrations, migrate_swapped, sphinxlint
3.9: py39
3.10: py310
3.11: py311
3.12: py312
[gh-actions:env]
DJANGO =
4.2: dj42
5.0: dj50
5.1: dj51
main: djmain
[testenv]
commands =
pytest {posargs}
coverage report
coverage xml
setenv =
DJANGO_SETTINGS_MODULE = tests.settings
PYTHONPATH = {toxinidir}
PYTHONWARNINGS = all
deps =
dj42: Django>=4.2,<4.3
dj50: Django>=5.0,<5.1
dj51: Django>=5.1,<5.2
djmain: https://github.com/django/django/archive/main.tar.gz
djangorestframework
oauthlib>=3.2.2
jwcrypto
coverage
pytest
pytest-cov
pytest-django
pytest-xdist
pytest-mock
requests
pytz; python_version < '3.9'
passenv =
PYTEST_ADDOPTS
[testenv:py{310,311,312}-djmain]
ignore_errors = true
ignore_outcome = true
[testenv:sphinxlint]
deps = sphinx-lint
skip_install = True
commands =
sphinx-lint docs/
[testenv:{docs,livedocs}]
basepython = python3.8
changedir = docs
allowlist_externals = make
commands =
docs: make html
livedocs: make livehtml
deps =
Jinja2<3.1
sphinx<3
oauthlib>=3.2.2
m2r>=0.2.1
mistune<2
sphinx-rtd-theme
livedocs: sphinx-autobuild
jwcrypto
django
[testenv:lint]
basepython = python3.8
deps = ruff>=0.6
skip_install = True
commands =
ruff format --check
ruff check
[testenv:migrations]
setenv =
DJANGO_SETTINGS_MODULE = tests.mig_settings
PYTHONPATH = {toxinidir}
PYTHONWARNINGS = all
commands = django-admin makemigrations --dry-run --check
[testenv:py39-multi-db-dj42]
setenv =
DJANGO_SETTINGS_MODULE = tests.multi_db_settings
PYTHONPATH = {toxinidir}
PYTHONWARNINGS = all
[testenv:migrate_swapped]
setenv =
DJANGO_SETTINGS_MODULE = tests.settings_swapped
PYTHONPATH = {toxinidir}
PYTHONWARNINGS = all
commands =
django-admin migrate
[testenv:build]
deps =
build
twine
allowlist_externals = rm
commands =
rm -rf dist
python -m build
twine check dist/*