-
Notifications
You must be signed in to change notification settings - Fork 15
/
tox.ini
46 lines (41 loc) · 1014 Bytes
/
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 = docs,flake8,py27,py34,py35,py36,py37
skipsdist=True
[testenv]
usedevelop=True
deps=-r{toxinidir}/requirements.txt
commands=
{envpython} setup.py test
#setenv=PYTHONWARNINGS=always::DeprecationWarning
passenv=TRAVIS
[testenv:flake8]
usedevelop=False
skip_install=True
deps=
flake8
commands=
flake8 --version
flake8 setup.py jwalk
[testenv:docs]
# only work if first run python setup.py develop
commands=
rm -rf {toxinidir}/docs/_build
make -C {toxinidir}/docs html
whitelist_externals=
rm
make
[testenv:upload]
deps=wheel
twine
commands=
python setup.py clean --all rotate -k - -m .whl,.tar.gz,.zip
python setup.py -q egg_info
python setup.py -q sdist --formats zip bdist_wheel register
[testenv:dist]
deps= wheel
whitelist_externals = rm
commands=
python setup.py -q clean --all
python setup.py -q rotate -k 0 -m .egg,.zip,.whl,.tar.gz
python setup.py -q egg_info
python setup.py -q sdist --formats zip,bztar bdist_wheel upload