forked from wolph/portalocker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
34 lines (29 loc) · 771 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
[tox]
envlist = py27, py33, py34, py35, py36, pypy, flake8, docs
skip_missing_interpreters = True
[testenv]
basepython =
py27: python2.7
py34: python3.4
py35: python3.5
py36: python3.6
pypy: pypy
deps = -e{toxinidir}[tests]
commands = python -m pytest {posargs}
[testenv:flake8]
basepython = python2.7
deps = flake8
commands = flake8 --ignore=W391 {toxinidir}/portalocker {toxinidir}/portalocker_tests
[testenv:docs]
basepython = python2.7
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/ portalocker
rm -f docs/modules.rst
sphinx-build -W -b html -d docs/_build/doctrees docs docs/_build/html {posargs}