blob: f47551398ad87bd2f0768d870375233fa7185f84 [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:
Brigitta Sipőczd4d57712022-05-21 01:34:0616# tox -e py39
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
Mike Taves2ceee872020-01-22 07:37:4725# installed and that they can be run as (e.g.) 'python3.8'
Nathaniel J. Smithe3e50282012-05-21 22:33:1926
27[tox]
Alex Willmerf179ec92015-08-04 17:44:3928envlist =
Brigitta Sipőczd4d57712022-05-21 01:34:0629 py38,py39
Nathaniel J. Smithe3e50282012-05-21 22:33:1930
31[testenv]
mattip037a6132019-09-09 08:26:2832deps= -Ur{toxinidir}/test_requirements.txt
Nathaniel J. Smithe3e50282012-05-21 22:33:1933changedir={envdir}
Jon Dufresne7f1293f2019-08-27 00:38:1634commands={envpython} -b {toxinidir}/runtests.py --mode=full {posargs:}
Nathaniel J. Smithe3e50282012-05-21 22:33:1935
Nathaniel J. Smithe3e50282012-05-21 22:33:1936# Not run by default. Set up the way you want then use 'tox -e debug'
37# if you want it:
38[testenv:debug]
Pauli Virtanen7f8aefc2013-05-11 11:28:4239basepython=python-dbg
Tyler Reddy030ebff2019-07-13 16:39:0740commands=gdb --args {envpython} {toxinidir}/runtests.py --mode=full {posargs:}