fonttools/tox.ini

40 lines
993 B
INI

[tox]
envlist = py27, pypy, py34, py35
[testenv]
basepython =
py27: {env:TOXPYTHON:python2.7}
pypy: {env:TOXPYTHON:pypy}
py34: {env:TOXPYTHON:python3.4}
py35: {env:TOXPYTHON:python3.5}
deps =
pytest
-rrequirements.txt
install_command =
python -m pip install -v {opts} {packages}
commands =
# check that we have the expected Python version and architecture
python -c "import sys; print(sys.version)"
python -c "import struct; print(struct.calcsize('P') * 8)"
# run the test suite
py.test
[pytest]
minversion = 2.8
testpaths =
Lib/fontTools
python_files =
*_test.py
python_classes =
*Test
addopts =
# run py.test in verbose mode
-v
# show extra test summary info
-r a
# run doctests in all .py modules
--doctest-modules
# py.test raises ImportError with inspect.py (requires pygtk) and with
# reportLabPen.py (reportlab). They don't have doctests, it's OK to skip.
--doctest-ignore-import-errors