2018-02-28 08:03:44 +01:00
|
|
|
# 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]
|
2019-05-20 23:17:04 +02:00
|
|
|
envlist = py27, py35, py36, py37, py38, docs, flake8, coverage
|
2019-05-16 12:28:15 +02:00
|
|
|
skip_missing_interpreters = true
|
2018-07-23 15:42:48 +02:00
|
|
|
toxworkdir = {homedir}/.tox/elementpath
|
2018-02-28 08:03:44 +01:00
|
|
|
|
|
|
|
[testenv]
|
2018-03-15 15:11:02 +01:00
|
|
|
deps =
|
|
|
|
lxml
|
2019-10-04 09:57:32 +02:00
|
|
|
xmlschema~=1.0.14
|
2019-05-20 23:17:04 +02:00
|
|
|
docs: Sphinx
|
|
|
|
flake8: flake8
|
|
|
|
coverage: coverage
|
2018-03-26 22:18:39 +02:00
|
|
|
commands = python -m unittest
|
2019-05-20 23:17:04 +02:00
|
|
|
whitelist_externals = make
|
2018-03-30 21:58:52 +02:00
|
|
|
|
|
|
|
[testenv:py27]
|
|
|
|
commands = python tests/test_elementpath.py
|
2019-05-16 12:28:15 +02:00
|
|
|
|
2019-05-20 23:17:04 +02:00
|
|
|
[testenv:py38]
|
2019-09-10 21:58:34 +02:00
|
|
|
deps =
|
|
|
|
lxml==4.3.5
|
2019-10-04 09:57:32 +02:00
|
|
|
xmlschema~=1.0.14
|
2019-05-20 23:17:04 +02:00
|
|
|
commands = python -m unittest
|
|
|
|
|
|
|
|
[testenv:docs]
|
|
|
|
commands =
|
|
|
|
make -C doc html
|
|
|
|
make -C doc latexpdf
|
|
|
|
make -C doc doctest
|
|
|
|
|
|
|
|
[flake8]
|
|
|
|
max-line-length = 119
|
|
|
|
|
|
|
|
[testenv:flake8]
|
|
|
|
commands =
|
|
|
|
flake8 --ignore=F401,F811,F821 elementpath
|
|
|
|
|
|
|
|
[testenv:coverage]
|
2019-05-16 12:28:15 +02:00
|
|
|
commands =
|
|
|
|
coverage run -p setup.py test -q
|
|
|
|
coverage combine
|
|
|
|
coverage report -m
|
2019-05-29 15:39:42 +02:00
|
|
|
|
|
|
|
[testenv:build]
|
|
|
|
deps =
|
|
|
|
setuptools
|
|
|
|
wheel
|
|
|
|
commands =
|
|
|
|
python setup.py clean --all
|
|
|
|
python setup.py sdist --dist-dir {toxinidir}/dist
|
|
|
|
python setup.py bdist_wheel --universal --dist-dir {toxinidir}/dist
|