-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
47 lines (41 loc) · 1.03 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
[tox]
envlist = py27, py33, py34, py35, py36, py37, py38, pypy, flake8, docs
skip_missing_interpreters = True
[testenv]
basepython =
py27: python2.7
py34: python3.4
py35: python3.5
py36: python3.6
py37: python3.7
py38: python3.8
pypy: pypy
deps = -r{toxinidir}/tests/requirements.txt
commands = py.test --basetemp="{envtmpdir}" --confcutdir=.. {posargs}
changedir = tests
[testenv:flake8]
changedir =
basepython = python2.7
deps = flake8
commands = flake8 {toxinidir}/progressbar {toxinidir}/tests {toxinidir}/examples.py
[testenv:docs]
changedir =
basepython = python3
deps = -r{toxinidir}/docs/requirements.txt
whitelist_externals =
rm
cd
mkdir
commands =
rm -f docs/modules.rst
mkdir -p docs/_static
sphinx-apidoc -e -o docs/ progressbar
rm -f docs/modules.rst
rm -f docs/progressbar.rst
sphinx-build -W -b html -d docs/_build/doctrees docs docs/_build/html {posargs}
[flake8]
ignore = W391, W504, E741
exclude =
docs,
progressbar/six.py
tests/original_examples.py