-
Notifications
You must be signed in to change notification settings - Fork 9
/
tox.ini
46 lines (43 loc) · 1.02 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 = build, py35, py36, py37, lint
skip_missing_interpreters = True
skipsdist = True
[testenv]
whitelist_externals =
npm
node
nodejs
passenv = *
setenv =
LANG=en_US.UTF-8
PYTHONPATH = {toxinidir}/abodepy
commands =
npm --prefix ./tests/mock_server install ./tests/mock_server
py.test --timeout=30 --cov=abodepy --cov-report term-missing {posargs} -s
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements_test.txt
[testenv:lint]
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements_test.txt
basepython = python3
ignore_errors = True
commands =
pylint --rcfile={toxinidir}/pylintrc abodepy tests
flake8 abodepy tests
pydocstyle abodepy tests
rst-lint README.rst
rst-lint CHANGES.rst
[testenv:build]
recreate = True
skip_install = True
whitelist_externals =
/bin/sh
/bin/rm
deps =
-r{toxinidir}/requirements.txt
commands =
/bin/rm -rf build dist
python setup.py bdist_wheel
/bin/sh -c "pip install --upgrade dist/*.whl"