2018-03-29 19:14:06 +02: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-06-20 07:31:00 +02:00
|
|
|
envlist = package, py27, py35, py36, py37, py38, memory, docs, flake8, coverage
|
2019-05-31 09:29:41 +02:00
|
|
|
skip_missing_interpreters = true
|
2018-07-23 11:45:46 +02:00
|
|
|
toxworkdir = {homedir}/.tox/xmlschema
|
2018-03-29 19:14:06 +02:00
|
|
|
|
|
|
|
[testenv]
|
|
|
|
deps =
|
|
|
|
lxml
|
2019-10-01 06:44:31 +02:00
|
|
|
elementpath~=1.3.0
|
2019-06-20 07:31:00 +02:00
|
|
|
py27: pathlib2
|
|
|
|
memory: memory_profiler
|
2019-05-31 09:29:41 +02:00
|
|
|
docs: Sphinx
|
|
|
|
docs: sphinx_rtd_theme
|
|
|
|
flake8: flake8
|
|
|
|
coverage: coverage
|
2019-06-20 07:31:00 +02:00
|
|
|
coverage: memory_profiler
|
2018-06-01 16:28:08 +02:00
|
|
|
commands = python xmlschema/tests/test_all.py {posargs}
|
2019-05-31 09:29:41 +02:00
|
|
|
whitelist_externals = make
|
2018-07-18 10:45:58 +02:00
|
|
|
|
2019-09-11 18:43:13 +02:00
|
|
|
[testenv:py38]
|
|
|
|
deps =
|
|
|
|
lxml==4.3.5
|
2019-10-01 06:44:31 +02:00
|
|
|
elementpath~=1.3.0
|
2019-09-11 18:43:13 +02:00
|
|
|
|
2019-06-20 07:31:00 +02:00
|
|
|
[testenv:package]
|
|
|
|
commands = python xmlschema/tests/test_package.py
|
2019-05-31 09:29:41 +02:00
|
|
|
|
2019-06-20 07:31:00 +02:00
|
|
|
[testenv:memory]
|
|
|
|
commands = python xmlschema/tests/test_memory.py
|
2019-05-31 09:29:41 +02:00
|
|
|
|
|
|
|
[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,F403,F405,F811,F821 xmlschema
|
|
|
|
|
|
|
|
[testenv:coverage]
|
|
|
|
commands =
|
|
|
|
coverage run -p -m unittest
|
|
|
|
coverage combine
|
|
|
|
coverage report -m
|
|
|
|
|
|
|
|
[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
|