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 =
|
2020-10-19 12:14:53 +00:00
|
|
|
pytest
|
|
|
|
pytest-cov
|
2018-01-29 00:55:06 +00:00
|
|
|
coverage
|
2015-06-18 22:02:13 +00:00
|
|
|
coveralls
|
|
|
|
commands =
|
2020-10-24 17:42:50 +00:00
|
|
|
pytest -v --cov=tqdm -k "not tests_perf" tqdm/
|
2016-10-07 10:06:19 +00:00
|
|
|
- coveralls
|
2020-09-28 15:29:56 +00:00
|
|
|
- coverage xml
|
|
|
|
- curl -OL https://coverage.codacy.com/get.sh
|
|
|
|
- bash get.sh report -r coverage.xml
|
|
|
|
allowlist_externals =
|
|
|
|
curl
|
|
|
|
bash
|
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}
|
|
|
|
codecov
|
2016-10-31 14:40:33 +00:00
|
|
|
commands =
|
2020-10-24 17:42:50 +00:00
|
|
|
pytest -v --durations=10 --cov=tqdm -k "not tests_perf" tqdm/
|
2016-10-31 14:40:33 +00:00
|
|
|
- coveralls
|
2018-01-29 00:55:06 +00:00
|
|
|
codecov
|
2020-09-28 15:29:56 +00:00
|
|
|
- coverage xml
|
|
|
|
- curl -OL https://coverage.codacy.com/get.sh
|
|
|
|
- bash get.sh report -r coverage.xml
|
|
|
|
allowlist_externals = {[coverage]allowlist_externals}
|
2016-10-31 14:40:33 +00:00
|
|
|
|
2018-01-29 00:55:06 +00:00
|
|
|
[testenv]
|
2020-09-28 15:29:56 +00:00
|
|
|
passenv = CI TRAVIS TRAVIS_* TOXENV CODECOV_* HOME CODACY_*
|
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}
|
2020-09-28 15:29:56 +00:00
|
|
|
allowlist_externals = {[extra]allowlist_externals}
|
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-09-28 14:24:20 +00:00
|
|
|
deps =
|
2020-10-19 12:14:53 +00:00
|
|
|
pytest
|
2020-10-19 13:12:55 +00:00
|
|
|
pytest-cov
|
2018-09-28 14:24:20 +00:00
|
|
|
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}
|
|
|
|
|
|
|
|
[testenv:pypy3]
|
|
|
|
deps = {[extra]deps}
|
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}
|
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}
|
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 =
|
2020-10-24 17:42:50 +00:00
|
|
|
pytest -v --durations=10 tqdm/tests/tests_keras.py
|
2020-01-24 18:41:14 +00:00
|
|
|
|
2018-01-29 00:55:06 +00:00
|
|
|
[testenv:perf]
|
2017-05-29 15:40:15 +00:00
|
|
|
deps =
|
2020-10-19 12:14:53 +00:00
|
|
|
pytest
|
2017-05-29 15:40:15 +00:00
|
|
|
commands =
|
2020-10-24 17:42:50 +00:00
|
|
|
pytest -v --durations=10 tqdm/tests/tests_perf.py
|
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
|