forked from petl-developers/petl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
47 lines (43 loc) · 1.4 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
# 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]
envlist = py27, py36, py37, py37-docs
# 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
py27: PY_MAJOR_VERSION = py2
py36,py37: PY_MAJOR_VERSION = py3
commands =
py27,py36: nosetests -v petl --with-coverage --cover-package=petl
py37: nosetests -v --with-coverage --cover-package=petl --with-doctest --doctest-options=+NORMALIZE_WHITESPACE petl -I"csv_py2\.py" -I"db\.py"
coverage report -m
deps =
:preinstall1: Cython==0.29.13
:preinstall1: numpy==1.16.4
:preinstall2: numexpr==2.6.9
-rtest_requirements.txt
-roptional_requirements.txt
[testenv:py37-docs]
# build documentation under similar environment to readthedocs
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