-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
68 lines (61 loc) · 1.26 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
[pytest]
addopts = -ra
testpaths = tests
xfail_strict = true
filterwarnings =
ignore::RuntimeWarning: invalid value encountered in double_scalars
[tox]
envlist = py3, docs, pypi, check, lint, manifest
isolated_build = True
passenv=*
[testenv]
basepython=python3
deps =
cython
numpy
scipy
pytest-cov
changedir = {envtmpdir}
commands = {envpython} -m pytest --disable-pytest-warnings {toxinidir}
[testenv:docs]
basepython=python3
deps =
-r{toxinidir}/docs/requirements.txt
pandoc
changedir={toxinidir}
setenv =
PYTHONPATH = ""
CYTHON_BUILD_FOR_DOC=1
CYTHON_BUILD_IN_SOURCE=1
commands =
{envpython} setup.py install
make html --directory=docs
[testenv:pypi]
basepython = python3
skip_install = true
deps =
twine
pip
changedir={toxinidir}
commands =
{envpython} setup.py sdist
{envpython} setup.py bdist_wheel
twine check dist/*
[testenv:check]
basepython=python3
deps = docutils
skip_install = true
changedir={toxinidir}
commands = {envpython} setup.py check --strict --metadata
[testenv:lint]
basepython = python3
deps = flake8
skip_install = true
changedir={toxinidir}
commands = flake8
[testenv:manifest]
basepython = python3
deps = check-manifest
skip_install = true
changedir={toxinidir}
commands = check-manifest