File: tox.ini

package info (click to toggle)
python-et-xmlfile 1.0.1-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 140 kB
  • sloc: python: 729; makefile: 4
file content (29 lines) | stat: -rw-r--r-- 664 bytes parent folder | download | duplicates (2)
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
# 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 =
    py26,
    py27,
    py33,
    py34,
    doc,

[testenv]
commands = {envbindir}/py.test {posargs}
deps =
    pytest
    lxml

[testenv:doc]
changedir = doc
setenv = APIDOC=True

deps =
    sphinx
commands =
    sphinx-apidoc -f -T -M -o api {toxinidir}/et_xmlfile \ #exclude the following directories
    {toxinidir}/et_xmlfile/tests
    sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html