-
Notifications
You must be signed in to change notification settings - Fork 73
/
tox.ini
104 lines (91 loc) · 2.47 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# 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 = py{36,37,38,39,310}, pypy3, ep{240},
docs, flake8, mypy-py{36,37,38,39,310}, coverage, pytest
skip_missing_interpreters = true
toxworkdir = {homedir}/.tox/xmlschema
[testenv]
deps =
elementpath>=2.4.0, <3.0.0
lxml
jinja2
py{38,39}: memory_profiler
docs: Sphinx
docs: sphinx_rtd_theme
flake8: flake8
coverage: coverage
commands =
python -m unittest tests/test_etree_import.py -k before
python -m unittest tests/test_etree_import.py -k after
python -m unittest tests/test_etree_import.py -k inconsistent
python -m unittest
whitelist_externals = make
[testenv:py36]
commands =
python -m unittest tests.test_etree_import.TestElementTreeImport.test_import_etree_after
python -m unittest tests.test_etree_import.TestElementTreeImport.test_import_etree_before
python -m unittest tests.test_etree_import.TestElementTreeImport.test_inconsistent_etree
python -m unittest
[testenv:pypy3]
commands = python -m unittest
[testenv:ep240]
deps =
elementpath==2.4.0
lxml
[testenv:docs]
commands =
make -C doc html
make -C doc latexpdf
make -C doc doctest
[flake8]
max-line-length = 100
[testenv:flake8]
commands =
flake8 xmlschema
[testenv:mypy-py{36,37}]
deps =
mypy==0.930
elementpath==2.4.0
lxml-stubs
jinja2
commands =
mypy --config-file {toxinidir}/mypy.ini xmlschema
[testenv:mypy-py{38,39,310}]
deps =
mypy==0.930
elementpath==2.4.0
lxml-stubs
jinja2
commands =
mypy --config-file {toxinidir}/mypy.ini xmlschema
python tests/test_typing.py
[testenv:coverage]
commands =
coverage erase
coverage run -a -m unittest tests/test_etree_import.py -k before
coverage run -a -m unittest tests/test_etree_import.py -k after
coverage run -a -m unittest tests/test_etree_import.py -k inconsistent
coverage run -a -m unittest
coverage report -m
[testenv:pytest]
deps =
pytest
pytest-randomly
elementpath>=2.4.0, <3.0.0
lxml
jinja2
mypy==0.930
lxml-stubs
commands =
pytest tests -ra
[testenv:build]
deps =
setuptools
wheel
commands =
python setup.py clean --all
python setup.py sdist --dist-dir {toxinidir}/dist
python setup.py bdist_wheel --dist-dir {toxinidir}/dist