-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
172 lines (133 loc) · 2.73 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# 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]
skip_missing_interpreters = True
envlist =
py38,
py39,
py310,
py311,
py312,
py313,
pypy,
defusedxml,
{py38}-nolxml,
{py38}-lxml,
{py38}-keep_vba,
nopillow,
xfail,
pandas,
numpy
doc,
doctest,
[testenv]
passenv = LANG
setenv =
PIP_PREFER_BINARY = True
commands = {envbindir}/pytest {posargs}
deps =
pytest
lxml
pillow
pandas: pandas
[testenv:pypy]
setenv =
basepython = pypy38
OPENPYXL_LXML = False
[testenv:doc]
changedir = doc
setenv = APIDOC=True
deps =
lxml
sphinx
pandas
sphinx_rtd_theme
commands =
sphinx-build -q -j auto -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv:doctest]
depends = doc
changedir = doc
deps =
lxml
sphinx
pillow
pandas
sphinx_rtd_theme
commands =
sphinx-build -q -j auto -b doctest -d {envtmpdir}/doctrees . {envtmpdir}/doctest
[testenv:lxml]
commands =
pytest {posargs} openpyxl/tests/test_backend.py
[testenv:nolxml]
setenv =
OPENPYXL_LXML = False
commands =
py.test {posargs}
[testenv:defusedxml]
deps =
{[testenv]deps}
defusedxml
setenv =
OPENPYXL_LXML = False
commands =
pytest -xrf openpyxl/xml
[testenv:keep_vba]
setenv =
OPENPYXL_KEEP_VBA = True
commands =
py.test {posargs}
[testenv:nopillow]
commands =
pytest {posargs} openpyxl/drawing/tests/test_image.py::TestImage::test_import
[testenv:xfail]
commands = pytest {posargs} -rx -m xfail openpyxl
[testenv:pandas]
deps =
{[testenv]deps}
pandas
commands = pytest {posargs} -m pandas_required openpyxl
[testenv:numpy]
deps =
{[testenv]deps}
numpy
commands = pytest {posargs} -m numpy_required openpyxl
[testenv:numpy2]
basepython = py311
deps =
{[testenv]deps}
numpy>=2.0
commands = pytest {posargs} -m numpy_required openpyxl
[testenv:warnings]
deps =
{[testenv]deps}
commands = pytest {posargs} -Werror::DeprecationWarning -Werror::FutureWarning -rf
[flake8]
ignore = E303,E501,E124,E261,E231,E741
exclude = .hg,__init__,tests
max-complexity = 10
[testenv:flakes]
deps =
{[testenv]deps}
pytest-flakes
commands = pytest {posargs} --flakes
[testenv:memory]
deps =
pytest
psutil
memory_profiler
commands = pytest -s openpyxl/benchmarks/memory.py
[testenv:cov]
passenv =
COVERALLS_REPO_TOKEN
GIT_*
deps =
{[testenv]deps}
pillow
pandas
pytest-cov
coveralls
commands =
pytest -qq --cov=openpyxl --cov-report=term-missing --cov-report=xml
coveralls