forked from yt-project/unyt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
101 lines (93 loc) · 2.02 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
[tox]
envlist = py36-docs,begin,py35-dependencies,py35-versions,py{35,36,37,38},py38-unyt-module-test-function,end
[travis]
python =
3.8: py38, py38-unyt-module-test-function
3.7: py37
3.6: py36, py36-docs
3.5: py35, py35-dependencies, py35-versions
[testenv]
setenv =
PYTHONPATH = {toxinidir}
MPLBACKEND = agg
recreate = true
depends = begin
deps =
pytest
sympy
numpy
h5py
pint
astropy
coverage<5.0
pytest-cov
pytest-doctestplus
flake8
black ; python_version >= '3.6.0'
setuptools
matplotlib
docutils
commands =
pytest --cov=unyt --cov-append --doctest-modules --doctest-plus --doctest-rst --basetemp={envtmpdir} -W once
coverage report --omit='.tox/*'
[testenv:py35-versions]
deps =
pytest
sympy==1.2
numpy==1.13.3
h5py==2.6.0
pint==0.6
astropy==1.3.3
matplotlib==2.2.4
coverage<5.0
pytest-cov
pytest-doctestplus
commands =
# don't do doctests on old numpy versions
pytest --cov=unyt --cov-append --basetemp={envtmpdir} -W once
coverage report --omit='.tox/*'
[testenv:py35-dependencies]
deps =
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:py36-docs]
whitelist_externals = make
changedir = docs
depends =
deps =
sphinx
numpy
sympy
matplotlib
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{35,36,37,38}
deps =
coverage<5.0