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
|
[tox]
envlist =
py{36,37,38,39,py3}-{low,release}
style
docs
coverage
makedist
skip_missing_interpreters = true
[testenv:py{36,37,38,39,py3}-release]
deps =
-r requirements/tests.txt
commands =
python setup.py compile_catalog
pytest --basetemp={envtmpdir} {posargs:tests}
[testenv:py{36,37,38,39,py3}-low]
deps =
pytest
# Lowest supported versions
Flask==1.1.1
Flask-SQLAlchemy==2.4.4
Flask-Babel==2.0.0
Flask-Mail==0.9.1
Flask-Mongoengine==0.9.5
peewee==3.11.2
argon2_cffi==19.1.0
bcrypt==3.1.5
cryptography==2.3.1
mongoengine==0.18.0
mongomock==3.19.0
pony==0.7.11;python_version<'3.9'
phonenumberslite==8.11.1
pyqrcode==1.2
sqlalchemy==1.3.6
sqlalchemy-utils==0.34.1
werkzeug==0.15.5
zxcvbn==4.4.28
commands =
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
[testenv:realpostgres]
deps =
-r requirements/tests.txt
psycopg2
commands =
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
|