File: tox.ini

package info (click to toggle)
openpyxl 2.4.9-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 6,768 kB
  • sloc: python: 34,453; xml: 12,359; makefile: 124
file content (161 lines) | stat: -rw-r--r-- 3,339 bytes parent folder | download
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
# 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 =
    py26,
    py27,
    py33,
    py34,
    py35,
    py36,
    nolxml,
    nolxml-py26,
    lxml,
    keep_vba,
    keep_vba-py34,
    nopillow,
    xfail,
    pandas,
    doc,
    doctest,


[testenv]
passenv = LANG PIP_FIND_LINKS PIP_NO_INDEX
commands = {envbindir}/py.test {posargs}
deps =
    pytest
    lxml==3.5.0
    pillow<3.5.0


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

deps =
    lxml
    sphinx
    pandas

commands =
    sphinx-apidoc -f -T -e -M -o api \
    {toxinidir}/openpyxl \
    {toxinidir}/openpyxl/cell/tests \
    {toxinidir}/openpyxl/chart/tests \
    {toxinidir}/openpyxl/chartsheet/tests \
    {toxinidir}/openpyxl/comments/tests \
    {toxinidir}/openpyxl/descriptors/tests \
    {toxinidir}/openpyxl/descriptors/slots.py \
    {toxinidir}/openpyxl/develop/ \
    {toxinidir}/openpyxl/formula/ \
    {toxinidir}/openpyxl/formatting/tests/ \
    {toxinidir}/openpyxl/styles/tests \
    {toxinidir}/openpyxl/worksheet/tests \
    {toxinidir}/openpyxl/writer/tests/ \
    {toxinidir}/openpyxl/xml/tests \
    {toxinidir}/openpyxl/conftest.py \
    {toxinidir}/openpyxl/tests \
    {toxinidir}/openpyxl/compat \
    {toxinidir}/openpyxl/reader/tests \
    {toxinidir}/openpyxl/packaging/tests \
    {toxinidir}/openpyxl/drawing/tests \
    {toxinidir}/openpyxl/utils/tests \
    {toxinidir}/openpyxl/utils/formulas.py \
    {toxinidir}/openpyxl/workbook/tests \
    {toxinidir}/openpyxl/workbook/external_link/tests \
    {toxinidir}/openpyxl/worksheet/pivot.py \
    {toxinidir}/openpyxl/writer/dump_worksheet.py
    sphinx-build -qb html -d {envtmpdir}/doctrees . {envtmpdir}/html


[testenv:doctest]
changedir = doc
deps =
    lxml
    sphinx
    pillow
    pandas
commands =
    sphinx-build -qb doctest -d {envtmpdir}/doctrees . {envtmpdir}/doctest


[testenv:lxml]
commands =
    py.test {posargs} openpyxl/tests/test_backend.py


[testenv:nolxml]
basepython = python2.7
setenv =
    OPENPYXL_LXML = False
commands =
    py.test {posargs}

[testenv:keep_vba]
setenv =
    OPENPYXL_KEEP_VBA = True
commands =
    py.test {posargs}

[testenv:keep_vba-py34]
basepython = python3.4
setenv =
    OPENPYXL_KEEP_VBA = True
commands =
    py.test {posargs}

[testenv:nolxml-py26]
basepython = python2.6
setenv =
    OPENPYXL_LXML = False
commands =
    py.test {posargs}


[testenv:nopillow]
commands =
    py.test {posargs} openpyxl/drawing/tests/test_image.py::TestImage::test_import


[testenv:xfail]
commands = py.test {posargs} -rx -m xfail openpyxl


[testenv:pandas]
deps =
    {[testenv]deps}
    pandas
commands = py.test {posargs} -m pandas_required openpyxl


[testenv:numpy]
deps =
    {[testenv]deps}
    numpy
commands = py.test {posargs} -m numpy_required openpyxl


[testenv:flakes]
deps =
    {[testenv]deps}
    pytest-flakes
commands = py.test --flakes

[testenv:memory]
deps =
    pytest
    psutil
    memory_profiler
commands = py.test -s openpyxl/benchmarks/memory.py


[testenv:cov]
deps =
    {[testenv]deps}
    pytest-cov
commands = py.test -qq --cov=openpyxl --cov-report=term-missing