-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
69 lines (64 loc) · 1.74 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
# tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = py27, py34, py35, py36, py37, py38, pypy, jython, distrib, docs, flake8
requires =
Cython>=0.16
numpy
scipy>=0.16.0
minversion = 1.7.2
skip_missing_interpreters = true
[testenv]
deps =
hypothesis[numpy]>=4.38.0
scipy>=0.16.0
pytest-cov
cython>=0.16
commands =
pytest --pyargs py_toeplitz --doctest-modules
pytest tests
[testenv:distrib]
deps=
setuptools
twine
wheel
Cython>=0.16
numpy
scipy>=0.16.0
skip_install=true
commands=
{envpython} setup.py check
{envpython} setup.py --quiet sdist
{envpython} -m twine check dist/py-toeplitz-*
{envpython} setup.py --quiet bdist_wheel
{envpython} -m twine check dist/py_toeplitz-*.whl
{envpython} setup.py --quiet rotate --keep=4 --match=*.zip,*.whl,*.tar.bz2,*.tar.gz
[testenv:docs]
changedir=doc
whitelist_externals=mkdir
deps=
sphinx
Cython>=0.16
numpy
scipy>=0.16.0
commands=
mkdir source/_static
sphinx-build -q -W --keep-going -b html -d {envtmpdir}/doctrees source {envtmpdir}/html
sphinx-build -q -W -b texinfo -d {envtmpdir}/doctrees source {envtmpdir}/texinfo
sphinx-build -q -W -b man -d {envtmpdir}/doctrees source {envtmpdir}/man
sphinx-build -q -W -b linkcheck -d {envtmpdir}/doctrees source {envtmpdir}/html
[testenv:flake8]
deps =
flake8
flake8-blind-except
flake8-bugbear
flake8_builtins
flake8-docstrings
flake8-print
flake8-rst-docstrings
flake8-string-format
commands =
flake8
skip_install=true