-
Notifications
You must be signed in to change notification settings - Fork 306
/
tox.ini
86 lines (80 loc) · 1.75 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
[tox]
envlist = py37,build_docs
isolated_build = True
[testenv]
whitelist_externals=
/bin/bash
/usr/bin/bash
changedir = tmp
setenv =
MPLBACKEND = agg
COLUMNS = 180
PYTEST_COMMAND = pytest -vvv --pyargs plasmapy --cov=plasmapy --cov-config={toxinidir}/setup.cfg --durations=25 {toxinidir}/docs -n=auto --dist=loadfile --ignore={toxinidir}/docs/conf.py
extras = all,tests
deps =
numpydev: git+https://github.com/numpy/numpy
astropydev: git+https://github.com/astropy/astropy
pytest-cov
pytest-xdist
astropy31: astropy<3.2
commands = {env:PYTEST_COMMAND} {posargs}
[testenv:build_docs]
basepython = python3.7
changedir = {toxinidir}
extras = dev
setenv =
HOME = {envtmpdir}
commands = sphinx-build docs docs/_build/html -W -b html
[testenv:build_docs_no_examples]
basepython = python3.7
changedir = {toxinidir}
extras = dev
setenv =
HOME = {envtmpdir}
commands = sphinx-build -D nbsphinx_execute='never' docs docs/_build/html -b html
# This env requires tox-conda.
[testenv:py36-conda]
basepython = python3.6
extras =
deps =
lmfit
pytest-cov
pytest-xdist
conda_deps =
numpy>=1.18.1
scipy>=1.2
astropy>=4.0
colorama>=0.3
pytest>=5.1
h5py
matplotlib
mpmath
numpydoc
pillow
sphinx
sphinx_rtd_theme
commands = {env:PYTEST_COMMAND} {posargs}
# This env requires tox-conda and tests minimal versions of each dependency.
[testenv:py36-minimal-conda]
basepython = python3.6
extras =
deps =
lmfit==1.0.1
pytest-cov
pytest-xdist
conda_deps =
numpy=1.18.1
scipy=1.2
astropy=4.0
colorama=0.3
h5py=2.8
matplotlib=2.0
pytest=5.1
mpmath=1.0
pillow
commands = {env:PYTEST_COMMAND} {posargs}
[testenv:py36-minimal-pypi-import]
basepython = python3.6
extras =
deps =
commands = python -c 'import plasmapy'