forked from yt-project/unyt
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
99 lines (92 loc) · 1.98 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
[tox]
envlist = py38-docs,begin,py38-dependencies,py38-versions,py{38,39,310},py38-unyt-module-test-function,end
[testenv]
setenv =
PYTHONPATH = {toxinidir}
MPLBACKEND = agg
recreate = true
depends = begin
deps =
pytest
sympy
numpy
h5py
pint
astropy
coverage>=5.0
packaging
pytest-cov
pytest-doctestplus
setuptools
matplotlib!=3.5.0
docutils
dask[array,diagnostics]
commands =
pytest --cov=unyt --cov-append --doctest-modules --doctest-plus --doctest-rst --basetemp={envtmpdir} -W once
coverage report --omit='.tox/*'
[testenv:py38-versions]
deps =
docutils
pytest
sympy==1.5
numpy==1.17.5
h5py==3.0.0
pint==0.9
astropy==3.2.3
matplotlib==3.2.0
coverage>=5.0
pytest-cov
pytest-doctestplus
dask[array,diagnostics]==2021.04.1
commands =
# don't do doctests on old numpy versions
pytest --cov=unyt --cov-append --basetemp={envtmpdir} -W once
coverage report --omit='.tox/*'
[testenv:py38-dependencies]
deps =
docutils
pytest
sympy
numpy
coverage>=5.0
pytest-cov
pytest-doctestplus
depends = begin
commands =
# don't do doctests in rst files due to lack of way to specify optional
# test dependencies there
pytest --cov=unyt --cov-append --doctest-modules --doctest-plus --basetemp={envtmpdir} -W once
coverage report --omit='.tox/*'
[testenv:py38-docs]
whitelist_externals = make
changedir = docs
depends =
deps =
pytest
sphinx
numpy
sympy
matplotlib!=3.5.0
dask[array,diagnostics]
commands =
make clean
python -m sphinx -M html "." "_build" -W
[testenv:py38-unyt-module-test-function]
depends = py38
commands =
python -c 'import unyt; unyt.test()'
[testenv:begin]
commands =
coverage erase
depends =
skip_install = true
deps =
coverage>=5.0
[testenv:end]
commands =
coverage report --omit='.tox/*'
coverage html --omit='.tox/*'
skip_install = true
depends = py{38,39,310}
deps =
coverage>=5.0