-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
75 lines (61 loc) · 1.64 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
[tox]
# We want an envlist like
# envlist = {py36,py37,pypy3}-{test}-{deps,mindeps}-{,mpi4py}-{,pre},nightly,docs,check-manifest,checkreadme
# but we want to skip mpi and pre by default, so this envlist is below
envlist = {py36,py37,pypy3}-{test}-{deps,mindeps},nightly,docs,check-manifest,checkreadme
[testenv]
deps =
test: pytest
test: pytest-cov
py36-deps: cython>=0.23
py37-deps: cython>=0.29
py36-deps: numpy>=1.12
py37-deps: numpy>=1.14.3
py36-mindeps: cython==0.23
py37-mindeps: cython==0.29
py36-mindeps: numpy==1.12
py37-mindeps: numpy==1.14.3
mpi4py: mpi4py>=1.3.1
tables-deps: tables>=3.4.4
tables-mindeps: tables==3.4.4
commands =
test: python -c "import sys; print('64 bit?', sys.maxsize > 2**32)"
test: python {toxinidir}/ci/fix_paths.py
test: python -m pytest --pyargs h5py --cov=h5py --cov-config={toxinidir}/.coveragerc {posargs}
changedir =
test: {toxworkdir}
passenv =
HDF5_DIR
setenv =
COVERAGE_FILE={toxinidir}/.coverage
# needed otherwise coverage cannot find the file when reporting
pip_pre =
pre: True
[testenv:nightly]
pip_pre = True
basepython = python3.8
[testenv:docs]
skip_install=True
changedir=docs
deps=
sphinx
commands=
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv:check-manifest]
skip_install=True
deps=check-manifest
setenv =
CHECK_MANIFEST=true
commands=
check-manifest
[testenv:checkreadme]
skip_install=True
deps=readme_renderer
commands=
python setup.py check -s -r
[testenv:pre-commit]
skip_install=True
deps=pre-commit
passenv = HOMEPATH SSH_AUTH_SOCK
commands=
pre-commit run --all-files