-
Notifications
You must be signed in to change notification settings - Fork 7
/
tox.ini
58 lines (51 loc) · 1.11 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
[tox]
envlist =
py{38,39,310}-django32
py{38,39,310,311}-django41
py{38,39,310,311,312}-django42
py{310,311,312}-django50
docs
package
[testenv]
pip_pre = True
deps =
django32: Django>=3.2,<3.3
django41: Django>=4.1,<4.2
django42: Django>=4.2,<4.3
django50: Django>=5.0,<5.1
commands =
pip install -e .[testing]
pytest
flake8
[testenv:docs]
basepython = python3.12
commands =
pip install -e .[docs]
sphinx-build -W -b html -d {envtmpdir}/doctrees docs docs/_build
[testenv:package]
basepython = python3.11
commands =
pip install -e .[babel]
pybabel compile --domain django --directory django_admin_reset/locale
python setup.py bdist_wheel
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311, package
3.12: py312, docs
[pytest]
DJANGO_SETTINGS_MODULE = django_admin_reset.tests.settings
addopts = --cov=django_admin_reset
filterwarnings = error
testpaths = django_admin_reset/tests
[coverage:run]
branch = True
omit = django_admin_reset/tests/*
source = django_admin_reset
[flake8]
exclude =
.tox
build
venv