-
Notifications
You must be signed in to change notification settings - Fork 22
/
tox.ini
40 lines (34 loc) · 1.08 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
[tox]
envlist = py27,pep8
[testenv]
basepython = python2.7
install_command =
pip install -c {toxinidir}/test-constraints.txt {opts} {packages}
[testenv:py27]
usedevelop = True
deps = -r{toxinidir}/test-requirements.txt
commands = nosetests --tests tests {posargs}
setenv =
PYTHONWARNINGS = default
PYTHONDONTWRITEBYTECODE = 1
[testenv:docs]
skip_install = true
deps = -r{toxinidir}/rtd-requirements.txt
commands = python setup.py build_sphinx {posargs} --fresh-env
[testenv:bump-dependencies]
skipsdist = True
skip_install = true
install_command = pip install {opts} {packages}
deps = pip-tools==2.0.2
commands =
pip-compile --upgrade --no-index --no-emit-trusted-host --output-file constraints.txt requirements.txt
pip-compile --upgrade --no-index --no-emit-trusted-host --output-file test-constraints.txt test-requirements.txt constraints.txt rtd-requirements.txt
[testenv:pep8]
skipsdist = True
skip_install = true
deps = flake8
commands = flake8 {posargs}
[flake8]
show-source = True
max-line-length = 230
exclude = .venv,.git,.tox,dist,doc,*egg,build,netman/api/doc_config