2013-05-18 18:27:49 +02:00
|
|
|
[tox]
|
2017-05-24 15:41:35 -07:00
|
|
|
envlist =
|
2018-12-23 23:55:42 +08:00
|
|
|
py{37,36,35,34,27,py}
|
2019-01-06 07:52:03 -08:00
|
|
|
py{37,27,py}-simplejson
|
|
|
|
|
py{37,27,py}-devel
|
|
|
|
|
py{37,27,py}-lowest
|
2017-05-24 15:41:35 -07:00
|
|
|
docs-html
|
|
|
|
|
coverage-report
|
2016-06-03 09:29:12 -07:00
|
|
|
|
2013-05-18 18:27:49 +02:00
|
|
|
[testenv]
|
2016-11-02 17:56:59 +01:00
|
|
|
passenv = LANG
|
2017-05-24 15:41:35 -07:00
|
|
|
deps =
|
|
|
|
|
pytest>=3
|
|
|
|
|
coverage
|
2014-09-04 14:34:10 +02:00
|
|
|
greenlet
|
2017-05-24 15:41:35 -07:00
|
|
|
blinker
|
2017-07-14 22:37:53 -07:00
|
|
|
python-dotenv
|
2014-04-26 01:13:19 +02:00
|
|
|
|
2018-01-23 15:02:07 +00:00
|
|
|
lowest: Werkzeug==0.14
|
2018-02-06 08:03:09 -08:00
|
|
|
lowest: Jinja2==2.10
|
|
|
|
|
lowest: itsdangerous==0.24
|
|
|
|
|
lowest: Click==5.1
|
2017-05-23 16:08:46 -07:00
|
|
|
|
2017-05-24 15:41:35 -07:00
|
|
|
devel: https://github.com/pallets/werkzeug/archive/master.tar.gz
|
|
|
|
|
devel: https://github.com/pallets/markupsafe/archive/master.tar.gz
|
|
|
|
|
devel: https://github.com/pallets/jinja/archive/master.tar.gz
|
|
|
|
|
devel: https://github.com/pallets/itsdangerous/archive/master.tar.gz
|
|
|
|
|
devel: https://github.com/pallets/click/archive/master.tar.gz
|
2017-05-23 16:08:46 -07:00
|
|
|
|
2016-06-03 09:29:12 -07:00
|
|
|
simplejson: simplejson
|
2017-12-14 13:05:52 -08:00
|
|
|
|
2017-05-24 15:41:35 -07:00
|
|
|
commands =
|
|
|
|
|
# the examples need to be installed to test successfully
|
2018-04-12 11:06:02 -07:00
|
|
|
pip install -q -e examples/tutorial[test]
|
|
|
|
|
pip install -q -e examples/javascript[test]
|
2017-05-24 15:41:35 -07:00
|
|
|
|
|
|
|
|
# pytest-cov doesn't seem to play nice with -p
|
2017-05-28 10:26:07 -07:00
|
|
|
coverage run -p -m pytest tests examples
|
2017-05-24 15:41:35 -07:00
|
|
|
|
|
|
|
|
[testenv:docs-html]
|
2018-04-12 22:54:11 -07:00
|
|
|
deps =
|
2019-01-05 14:59:25 -08:00
|
|
|
-r docs/requirements.txt
|
2018-01-04 12:34:25 -08:00
|
|
|
commands = sphinx-build -W -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html
|
2014-04-26 01:13:19 +02:00
|
|
|
|
2017-05-24 15:41:35 -07:00
|
|
|
[testenv:coverage-report]
|
|
|
|
|
deps = coverage
|
|
|
|
|
skip_install = true
|
|
|
|
|
commands =
|
|
|
|
|
coverage combine
|
|
|
|
|
coverage report
|
|
|
|
|
coverage html
|
|
|
|
|
|
|
|
|
|
[testenv:codecov]
|
2018-05-29 11:46:04 -07:00
|
|
|
passenv = CI TRAVIS TRAVIS_* APPVEYOR APPVEYOR_*
|
2017-05-24 15:41:35 -07:00
|
|
|
deps = codecov
|
|
|
|
|
skip_install = true
|
|
|
|
|
commands =
|
|
|
|
|
coverage combine
|
|
|
|
|
coverage report
|
|
|
|
|
codecov
|