blob: 5a6d074aab958dedf8c07f72754784ec1ab08e01 [file] [log] [blame]
Nathaniel J. Smithe3e50282012-05-21 22:33:191# 'Tox' is a tool for automating sdist/build/test cycles against
2# multiple Python versions:
Mike Toews83828f52018-06-16 06:18:193# https://pypi.python.org/pypi/tox
4# https://tox.readthedocs.io/
Nathaniel J. Smithe3e50282012-05-21 22:33:195
6# Running the command 'tox' while in the root of the numpy source
7# directory will:
8# - Create a numpy source distribution (setup.py sdist)
9# - Then for every supported version of Python:
10# - Create a virtualenv in .tox/py$VERSION and install
11# dependencies. (These virtualenvs are cached across runs unless
12# you use --recreate.)
13# - Use pip to install the numpy sdist into the virtualenv
14# - Run the numpy tests
15# To run against a specific subset of Python versions, use:
Mike Taves4ac8e8d2019-06-25 09:33:5616# tox -e py37
Nathaniel J. Smithe3e50282012-05-21 22:33:1917
Tyler Reddy030ebff2019-07-13 16:39:0718# Extra arguments will be passed to runtests.py. To run
Nathaniel J. Smithe3e50282012-05-21 22:33:1919# the full testsuite:
20# tox full
21# To run with extra verbosity:
22# tox -- -v
23
24# Tox assumes that you have appropriate Python interpreters already
Pauli Virtanen7f8aefc2013-05-11 11:28:4225# installed and that they can be run as 'python2.7', 'python3.3', etc.
Nathaniel J. Smithe3e50282012-05-21 22:33:1926
27[tox]
Alex Willmerf179ec92015-08-04 17:44:3928envlist =
Mike Taves4ac8e8d2019-06-25 09:33:5629 py35,py36,py37,
30 py37-not-relaxed-strides
Nathaniel J. Smithe3e50282012-05-21 22:33:1931
32[testenv]
mattip037a6132019-09-09 08:26:2833deps= -Ur{toxinidir}/test_requirements.txt
Nathaniel J. Smithe3e50282012-05-21 22:33:1934changedir={envdir}
Jon Dufresne7f1293f2019-08-27 00:38:1635commands={envpython} -b {toxinidir}/runtests.py --mode=full {posargs:}
Nathaniel J. Smithe3e50282012-05-21 22:33:1936
Mike Taves4ac8e8d2019-06-25 09:33:5637[testenv:py37-not-relaxed-strides]
38basepython=python3.7
Alex Willmerf179ec92015-08-04 17:44:3939env=NPY_RELAXED_STRIDES_CHECKING=0
40
Nathaniel J. Smithe3e50282012-05-21 22:33:1941# Not run by default. Set up the way you want then use 'tox -e debug'
42# if you want it:
43[testenv:debug]
Pauli Virtanen7f8aefc2013-05-11 11:28:4244basepython=python-dbg
Tyler Reddy030ebff2019-07-13 16:39:0745commands=gdb --args {envpython} {toxinidir}/runtests.py --mode=full {posargs:}