2018-05-31 16:13:41 +00:00
|
|
|
# Tox (https://tox.testrun.org/) is a tool for running tests
|
2015-06-07 22:06:41 +00:00
|
|
|
# in multiple virtualenvs. This configuration file will run the
|
|
|
|
# test suite on all supported python versions. To use it, "pip install tox"
|
|
|
|
# and then run "tox" from this directory.
|
|
|
|
|
|
|
|
[tox]
|
2018-01-29 00:55:06 +00:00
|
|
|
# deprecation warning: py{26,32,33,34}
|
2020-01-25 00:36:08 +00:00
|
|
|
envlist = py{26,27,33,34,35,36,37,38,py,py3}, tf-no-keras, perf, flake8, setup.py
|
2015-06-07 22:06:41 +00:00
|
|
|
|
2018-01-29 00:55:06 +00:00
|
|
|
[coverage]
|
2015-06-07 22:06:41 +00:00
|
|
|
deps =
|
|
|
|
nose
|
2018-01-29 00:55:06 +00:00
|
|
|
coverage
|
2015-06-18 22:02:13 +00:00
|
|
|
coveralls
|
|
|
|
commands =
|
2019-01-21 00:01:17 +00:00
|
|
|
nosetests --with-coverage --cover-package=tqdm --ignore-files="tests_perf\.py" -d -v tqdm/
|
2016-10-07 10:06:19 +00:00
|
|
|
- coveralls
|
2015-06-07 22:06:41 +00:00
|
|
|
|
2018-01-29 00:55:06 +00:00
|
|
|
[extra]
|
2016-10-31 14:40:33 +00:00
|
|
|
deps =
|
2018-01-29 00:55:06 +00:00
|
|
|
{[coverage]deps}
|
2016-10-31 14:40:33 +00:00
|
|
|
nose-timer
|
2018-01-29 00:55:06 +00:00
|
|
|
codecov
|
2016-10-31 14:40:33 +00:00
|
|
|
commands =
|
2019-01-21 00:01:17 +00:00
|
|
|
nosetests --with-coverage --with-timer --cover-package=tqdm --ignore-files="tests_perf\.py" -d -v tqdm/
|
2016-10-31 14:40:33 +00:00
|
|
|
- coveralls
|
2018-01-29 00:55:06 +00:00
|
|
|
codecov
|
2016-10-31 14:40:33 +00:00
|
|
|
|
2018-01-29 00:55:06 +00:00
|
|
|
[testenv]
|
2019-01-21 00:01:17 +00:00
|
|
|
passenv = CI TRAVIS TRAVIS_* TOXENV CODECOV_*
|
2016-10-31 14:40:33 +00:00
|
|
|
deps =
|
2018-01-29 00:55:06 +00:00
|
|
|
{[extra]deps}
|
|
|
|
cython
|
|
|
|
numpy
|
|
|
|
pandas
|
2019-12-19 22:12:22 +00:00
|
|
|
tensorflow
|
|
|
|
keras
|
2019-01-21 00:01:17 +00:00
|
|
|
commands = {[extra]commands}
|
2018-01-29 00:55:06 +00:00
|
|
|
|
2018-09-09 10:56:31 +00:00
|
|
|
# no cython/numpy/pandas for py{py,py3,26,33,34}
|
2016-10-31 22:57:59 +00:00
|
|
|
|
2017-07-22 12:16:01 +00:00
|
|
|
[testenv:py26]
|
2018-01-29 00:55:06 +00:00
|
|
|
# no codecov and timer for py26
|
2018-09-28 14:24:20 +00:00
|
|
|
deps =
|
|
|
|
nose
|
|
|
|
coverage
|
|
|
|
coveralls==1.2.0
|
2019-01-21 00:01:17 +00:00
|
|
|
codecov
|
2018-09-28 14:24:20 +00:00
|
|
|
pycparser==2.18
|
2019-01-06 20:05:36 +00:00
|
|
|
idna==2.7
|
2019-01-21 00:01:17 +00:00
|
|
|
commands =
|
|
|
|
{[coverage]commands}
|
|
|
|
codecov
|
2018-01-29 00:55:06 +00:00
|
|
|
|
|
|
|
[testenv:pypy]
|
|
|
|
deps = {[extra]deps}
|
|
|
|
commands = {[extra]commands}
|
|
|
|
|
|
|
|
[testenv:pypy3]
|
|
|
|
deps = {[extra]deps}
|
|
|
|
commands = {[extra]commands}
|
2016-12-15 12:21:59 +00:00
|
|
|
|
2017-07-22 12:16:01 +00:00
|
|
|
[testenv:py33]
|
2018-01-29 00:55:06 +00:00
|
|
|
deps = {[extra]deps}
|
|
|
|
commands = {[extra]commands}
|
2016-10-31 14:40:33 +00:00
|
|
|
|
2018-04-25 14:25:35 +00:00
|
|
|
[testenv:py34]
|
|
|
|
# py34-compatible pandas
|
2018-01-29 00:55:06 +00:00
|
|
|
deps = {[extra]deps}
|
|
|
|
commands = {[extra]commands}
|
2016-10-31 14:40:33 +00:00
|
|
|
|
2020-01-24 18:41:14 +00:00
|
|
|
[testenv:tf-no-keras]
|
|
|
|
deps =
|
|
|
|
{[extra]deps}
|
|
|
|
tensorflow
|
|
|
|
commands =
|
|
|
|
nosetests --with-timer tqdm/tests/tests_keras.py -d -v
|
|
|
|
|
2018-01-29 00:55:06 +00:00
|
|
|
[testenv:perf]
|
2017-05-29 15:40:15 +00:00
|
|
|
deps =
|
2018-01-29 00:55:06 +00:00
|
|
|
nose
|
|
|
|
nose-timer
|
2017-05-29 15:40:15 +00:00
|
|
|
commands =
|
2018-01-29 00:55:06 +00:00
|
|
|
nosetests --with-timer tqdm/tests/tests_perf.py -d -v
|
2017-05-29 15:40:15 +00:00
|
|
|
|
2015-06-07 22:06:41 +00:00
|
|
|
[testenv:flake8]
|
|
|
|
deps = flake8
|
|
|
|
commands =
|
2019-10-31 19:31:53 +00:00
|
|
|
flake8 -j 8 --count --statistics .
|
2015-10-13 22:42:01 +00:00
|
|
|
|
|
|
|
[testenv:setup.py]
|
|
|
|
deps =
|
|
|
|
docutils
|
2015-10-14 11:06:59 +00:00
|
|
|
pygments
|
2019-02-10 18:38:28 +00:00
|
|
|
py-make>=0.1.0
|
2015-10-13 22:42:01 +00:00
|
|
|
commands =
|
|
|
|
python setup.py check --restructuredtext --metadata --strict
|
2015-10-15 13:47:02 +00:00
|
|
|
python setup.py make none
|