|
Packit |
7a8e5e |
# 'Tox' is a tool for automating sdist/build/test cycles against
|
|
Packit |
7a8e5e |
# multiple Python versions:
|
|
Packit |
7a8e5e |
# http://pypi.python.org/pypi/tox
|
|
Packit |
7a8e5e |
# http://tox.testrun.org/
|
|
Packit |
7a8e5e |
|
|
Packit |
7a8e5e |
# Running the command 'tox' while in the root of the numpy source
|
|
Packit |
7a8e5e |
# directory will:
|
|
Packit |
7a8e5e |
# - Create a numpy source distribution (setup.py sdist)
|
|
Packit |
7a8e5e |
# - Then for every supported version of Python:
|
|
Packit |
7a8e5e |
# - Create a virtualenv in .tox/py$VERSION and install
|
|
Packit |
7a8e5e |
# dependencies. (These virtualenvs are cached across runs unless
|
|
Packit |
7a8e5e |
# you use --recreate.)
|
|
Packit |
7a8e5e |
# - Use pip to install the numpy sdist into the virtualenv
|
|
Packit |
7a8e5e |
# - Run the numpy tests
|
|
Packit |
7a8e5e |
# To run against a specific subset of Python versions, use:
|
|
Packit |
7a8e5e |
# tox -e py27
|
|
Packit |
7a8e5e |
|
|
Packit |
7a8e5e |
# Extra arguments will be passed to test-installed-numpy.py. To run
|
|
Packit |
7a8e5e |
# the full testsuite:
|
|
Packit |
7a8e5e |
# tox full
|
|
Packit |
7a8e5e |
# To run with extra verbosity:
|
|
Packit |
7a8e5e |
# tox -- -v
|
|
Packit |
7a8e5e |
|
|
Packit |
7a8e5e |
# Tox assumes that you have appropriate Python interpreters already
|
|
Packit |
7a8e5e |
# installed and that they can be run as 'python2.7', 'python3.3', etc.
|
|
Packit |
7a8e5e |
|
|
Packit |
7a8e5e |
[tox]
|
|
Packit |
7a8e5e |
envlist =
|
|
Packit |
7a8e5e |
py27,py34,py35,py36,
|
|
Packit |
7a8e5e |
py27-not-relaxed-strides,py34-not-relaxed-strides
|
|
Packit |
7a8e5e |
|
|
Packit |
7a8e5e |
[testenv]
|
|
Packit |
7a8e5e |
deps=
|
|
Packit |
7a8e5e |
nose
|
|
Packit |
7a8e5e |
changedir={envdir}
|
|
Packit |
7a8e5e |
commands={envpython} {toxinidir}/tools/test-installed-numpy.py --mode=full {posargs:}
|
|
Packit |
7a8e5e |
|
|
Packit |
7a8e5e |
[testenv:py27-not-relaxed-strides]
|
|
Packit |
7a8e5e |
basepython=python2.7
|
|
Packit |
7a8e5e |
env=NPY_RELAXED_STRIDES_CHECKING=0
|
|
Packit |
7a8e5e |
|
|
Packit |
7a8e5e |
[testenv:py34-not-relaxed-strides]
|
|
Packit |
7a8e5e |
basepython=python3.4
|
|
Packit |
7a8e5e |
env=NPY_RELAXED_STRIDES_CHECKING=0
|
|
Packit |
7a8e5e |
|
|
Packit |
7a8e5e |
# Not run by default. Set up the way you want then use 'tox -e debug'
|
|
Packit |
7a8e5e |
# if you want it:
|
|
Packit |
7a8e5e |
[testenv:debug]
|
|
Packit |
7a8e5e |
basepython=python-dbg
|
|
Packit |
7a8e5e |
commands=gdb --args {envpython} {toxinidir}/tools/test-installed-numpy.py --mode=full {posargs:}
|