forked from petl-developers/petl
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
58 lines (54 loc) · 2.39 KB
/
Copy pathtox.ini
File metadata and controls
58 lines (54 loc) · 2.39 KB
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
# 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]
# Don't test optional requirements under py34, some optional packages have
# already stopped supporting it.
envlist = py34,{py27,py35,py36}-optional, docs, lxml
# trick to enable pre-installation of numpy and numexpr
indexserver =
preinstall1 = https://pypi.org/simple
preinstall2 = https://pypi.org/simple
[testenv]
# get stable output for unordered types
setenv =
PYTHONHASHSEED = 42
py34,py35,py36: PY_MAJOR_VERSION = py3
py27: PY_MAJOR_VERSION = py2
commands =
nosetests -v petl --with-coverage --cover-package=petl
py36: nosetests -v --with-doctest --doctest-options=+NORMALIZE_WHITESPACE petl/io -Icsv_py2 -Idb -Inumpy -Ipandas -Ipytables -Iwhoosh -Ibcolz
py36: nosetests -v --with-doctest --doctest-options=+NORMALIZE_WHITESPACE petl/transform -Iintervals
py36: nosetests -v --with-doctest --doctest-options=+NORMALIZE_WHITESPACE petl/util -Itiming
py36-optional: nosetests -v --with-doctest --doctest-options=+NORMALIZE_WHITESPACE petl/io/numpy.py
py36-optional: nosetests -v --with-doctest --doctest-options=+NORMALIZE_WHITESPACE petl/io/pandas.py
py36-optional: nosetests -v --with-doctest --doctest-options=+NORMALIZE_WHITESPACE petl/io/pytables.py
py36-optional: nosetests -v --with-doctest --doctest-options=+NORMALIZE_WHITESPACE petl/io/whoosh.py
py36-optional: nosetests -v --with-doctest --doctest-options=+NORMALIZE_WHITESPACE petl/transform/intervals.py
py36-optional: nosetests -v --with-doctest --doctest-options=+NORMALIZE_WHITESPACE petl/io/bcolz.py
coverage report -m
deps =
optional: :preinstall1: Cython==0.28.4
optional: :preinstall1: numpy==1.15.0
optional: :preinstall2: numexpr==2.6.6
-rtest_requirements.txt
optional: -roptional_requirements.txt
[testenv:docs]
# build documentation under similar environment to readthedocs
basepython = python2.7
changedir = docs
deps =
-rrtfd_requirements.txt
commands =
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv:mysqldb]
basepython = python2.7
setenv =
PYTHONHASHSEED = 42
deps =
MySQL-python==1.2.5
SQLAlchemy==1.2.10
-rtest_requirements.txt
commands =
nosetests -v --stop petl