33
|
1 # content of: tox.ini , put in same dir as setup.py
|
|
2 [tox]
|
|
3 envlist = py26,py27,py32,py33,py34
|
|
4
|
|
5 [testenv]
|
|
6 deps = -r{toxinidir}/test-requirements.txt
|
|
7 commands=nosetests
|
|
8
|
|
9 [testenv:venv]
|
|
10 commands = {posargs}
|
|
11
|
|
12 [testenv:pep8]
|
|
13 deps = flake8
|
|
14 commands = flake8
|
|
15
|
|
16 [testenv:docs]
|
|
17 commands = python setup.py build_sphinx
|
|
18
|
|
19 [testenv:cover]
|
|
20 deps = {[testenv]deps}
|
|
21 coverage
|
|
22 commands =
|
|
23 nosetests --with-coverage --cover-erase --cover-package=lockfile --cover-inclusive []
|
|
24
|
|
25 [flake8]
|
|
26 ignore = E121,E123,E128,E221,E226,E261,E265,E301,E302,E713,F401,F841,W291,W293,W391
|
|
27 exclude=.venv,.git,.tox,dist,doc
|
|
28 show-source = True
|