/
tox.ini
53 lines (44 loc) · 1.27 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
47
48
49
50
51
52
53
[tox]
envlist = py26,py27,py32,py33,py34,pypy,docs-py3
# envlist = py26,py27,py27-numpy,py32,py33,py33-numpy,pypy
# Jython is not testable, but there's no reason it should not work.
# py25 and py31 are deprecated as of 1.7.2
[testenv]
commands = {envbindir}/py.test []
{envpython} tests/object_import.py
deps = pytest
mock
pytest-cov
[testenv:py26]
setenv = PIP_INSECURE=1
commands = {envbindir}/py.test []
deps = {[testenv]deps}
unittest2
[testenv:jython]
deps = pytest
commands = {envbindir}/jython tests/alltests.py []
{envpython} tests/object_import.py
[testenv:py27-numpy]
basepython = python2.7
deps = {[testenv]deps}
numpy
[testenv:py33-numpy]
basepython = python3.3
deps = {[testenv]deps}
numpy
setenv =
PYTHONHASHSEED = 4
[testenv:py34-numpy]
basepython = python3.4
deps = {[testenv]deps}
numpy
[testenv:docs-py3]
basepython = python3.4
deps = sphinx
changedir = {toxinidir}/doc
commands = sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv:docs-py2]
basepython = python2.7
deps = sphinx
changedir = {toxinidir}/doc
commands = sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html