File: tox.ini

package info (click to toggle)
patsy 0.5.0%2Bgit13-g54dcf7b-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,448 kB
  • sloc: python: 8,824; makefile: 130; sh: 15
file content (38 lines) | stat: -rw-r--r-- 1,219 bytes parent folder | download | duplicates (4)
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
# We still support py24 and py25, but virtualenv and pip don't :-(
[tox]
envlist = py26,py27,py31,py32,py33,py27-no-pandas,py32-no-pandas

[testenv]
deps=
  nose
  coverage
  numpy
# Display all warnings, and error out on any warnings attributed to
# code in the patsy namespace (but not ones triggered by nose, etc.):
setenv=
  PYTHONWARNINGS=default
  PATSY_FORCE_NO_WARNINGS=1
changedir={envdir}
commands=
  pip install scipy
  sh -c "[ \"x$NO_PANDAS\" = xTRUE ] || pip install pandas"
  coverage run --rcfile={toxinidir}/.coveragerc -p {envbindir}/nosetests --all-modules patsy {posargs:}
  env PATSY_AVOID_OPTIONAL_DEPENDENCIES=1 coverage run --rcfile={toxinidir}/.coveragerc -p {envbindir}/nosetests --all-modules patsy {posargs:}
  coverage combine --rcfile={toxinidir}/.coveragerc
  coverage report --rcfile={toxinidir}/.coveragerc
  coverage html --rcfile={toxinidir}/.coveragerc -d {toxworkdir}/coverage/{envname}
  python {toxinidir}/tools/check-API-refs.py

[testenv:py32-no-pandas]
basepython=python3.2
setenv=
  PYTHONWARNINGS=default
  PATSY_FORCE_NO_WARNINGS=1
  NO_PANDAS=TRUE

[testenv:py27-no-pandas]
basepython=python2.7
setenv=
  PYTHONWARNINGS=default
  PATSY_FORCE_NO_WARNINGS=1
  NO_PANDAS=TRUE