forked from petl-developers/petl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
83 lines (76 loc) · 2.77 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
# uncomment to test with only minimal requirements
#envlist = py26, py27, py34, doctests, docs
# test with all optional requirements
envlist = {py26,py27,py34}-optional, doctests, doctests-optional, docs, lxml
# trick to enable pre-installation of numpy and numexpr
indexserver =
preinstall1 = https://pypi.python.org/pypi
preinstall2 = https://pypi.python.org/pypi
[testenv]
commands =
nosetests -v --stop petl
deps =
optional: :preinstall1: Cython==0.24.1
optional: :preinstall1: numpy==1.11.2
optional: :preinstall2: numexpr==2.6.1
-rtest_requirements.txt
optional: -roptional_requirements.txt
[testenv:doctests]
basepython = python3.4
# get stable output for unordered types
setenv =
PYTHONHASHSEED = 42
commands =
nosetests -v --with-doctest --doctest-options=+NORMALIZE_WHITESPACE petl/io --stop -Icsv_py2 -Idb -Inumpy -Ipandas -Ipytables -Iwhoosh -Ibcolz
nosetests -v --with-doctest --doctest-options=+NORMALIZE_WHITESPACE petl/transform -Iintervals --stop
nosetests -v --with-doctest --doctest-options=+NORMALIZE_WHITESPACE petl/util --stop -Itiming
[testenv:doctests-optional]
basepython = python3.4
# get stable output for unordered types
setenv =
C_INCLUDE_PATH = /usr/lib/openmpi/include
PYTHONHASHSEED = 42
commands =
nosetests -v --with-doctest --doctest-options=+NORMALIZE_WHITESPACE petl/io/numpy.py
nosetests -v --with-doctest --doctest-options=+NORMALIZE_WHITESPACE petl/io/pandas.py
nosetests -v --with-doctest --doctest-options=+NORMALIZE_WHITESPACE petl/io/pytables.py
nosetests -v --with-doctest --doctest-options=+NORMALIZE_WHITESPACE petl/io/whoosh.py
nosetests -v --with-doctest --doctest-options=+NORMALIZE_WHITESPACE petl/transform/intervals.py
nosetests -v --with-doctest --doctest-options=+NORMALIZE_WHITESPACE petl/io/bcolz.py
deps =
:preinstall1: Cython==0.24.1
:preinstall1: numpy==1.11.2
:preinstall2: numexpr==2.6.1
-rtest_requirements.txt
-roptional_requirements.txt
[testenv:docs]
# build documentation under similar environment to readthedocs
basepython = python2.6
changedir = docs
deps = sphinx==1.2.2
commands =
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv:lxml]
basepython = python3.4
setenv =
PYTHONHASHSEED = 42
deps =
lxml==3.6.4
-rtest_requirements.txt
commands =
nosetests -v --stop petl
[testenv:mysqldb]
basepython = python2.7
setenv =
PYTHONHASHSEED = 42
deps =
MySQL-python==1.2.5
SQLAlchemy==1.1.2
-rtest_requirements.txt
commands =
nosetests -v --stop petl