forked from pallets-eco/flask-security
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
112 lines (99 loc) · 2.73 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
[tox]
envlist =
py{37,38,39,310,py38}-{low,release}
mypy
nowebauthn
nobabel
style
docs
coverage
makedist
skip_missing_interpreters = true
[testenv:py{37,38,39,310,py38}-release]
deps =
-r requirements/tests.txt
commands =
python setup.py compile_catalog
pytest --basetemp={envtmpdir} {posargs:tests}
[testenv:py{37,38,39,310,py38}-low]
deps =
pytest
-r requirements_low/tests.txt
commands =
python setup.py compile_catalog
pytest --basetemp={envtmpdir} {posargs:tests}
# manual test to check how we're keeping up with Pallets latest
[testenv:py38-main]
deps =
-r requirements/tests.txt
git+https://github.com/pallets/werkzeug@main#egg=werkzeug
git+https://github.com/pallets/flask@main#egg=flask
git+https://github.com/pallets/flask-sqlalchemy@main#egg=flask-sqlalchemy
git+https://github.com/pallets/jinja@main#egg=jinja2
git+https://github.com/wtforms/wtforms@master#egg=wtforms
git+https://github.com/maxcountryman/flask-login@main#egg=flask-login
commands =
python setup.py compile_catalog
pytest --basetemp={envtmpdir} {posargs:tests}
[testenv:nowebauthn]
basepython = python3.9
deps =
-r requirements/tests.txt
commands =
pip uninstall -y webauthn
python setup.py compile_catalog
pytest --basetemp={envtmpdir} {posargs:tests}
[testenv:nobabel]
basepython = python3.9
deps =
-r requirements/tests.txt
commands =
pip uninstall -y babel flask_babel
pytest --basetemp={envtmpdir} {posargs:tests}
# manual test to verify we still work with Flask-BabelEx
[testenv:babelex]
deps =
-r requirements/tests.txt
flask_babelex
commands =
pip uninstall -y flask_babel
python setup.py compile_catalog
pytest --basetemp={envtmpdir} {posargs:tests}
[testenv:style]
deps = pre-commit
skip_install = true
commands =
pre-commit autoupdate
pre-commit run --all-files --show-diff-on-failure
[testenv:docs]
deps = -r requirements/docs.txt
commands = sphinx-build -W -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html
[testenv:coverage]
deps =
-r requirements/tests.txt
commands =
python setup.py compile_catalog
coverage run --source=flask_security -m pytest
coverage xml
[testenv:realpostgres]
deps =
-r requirements/tests.txt
psycopg2
commands =
# Requires that --realdburl be set otherwise doesn't actually use DB
python setup.py compile_catalog
pytest --basetemp={envtmpdir} {posargs}
[testenv:makedist]
deps =
-r requirements/tests.txt
commands =
python setup.py compile_catalog
python setup.py sdist bdist_wheel
[testenv:mypy]
deps =
-r requirements/tests.txt
types-setuptools
mypy
sqlalchemy[mypy]
commands =
mypy --install-types --non-interactive flask_security tests