Since the test suite is inlined, it makes sense to also have the test data installed alongside the test modules. So all the content of the two top-level folders Data and TestData is now placed inside Lib/ufoLib/test/testadata. The MANIFEST.in has been adjusted accordingly. The `install_package_data` in setup.py ensures the package data specified in the manifest is installed with the package. This way anyone who installs ufoLib (even the wheel from PyPI) can run the test suite with `pytest --pyargs ufoLib`.
17 lines
478 B
INI
17 lines
478 B
INI
[tox]
|
|
envlist = py27, py35
|
|
|
|
[testenv]
|
|
basepython =
|
|
# we use TOXPYTHON env variable to specify the location of Appveyor Python
|
|
py27: {env:TOXPYTHON:python2.7}
|
|
py34: {env:TOXPYTHON:python3.4}
|
|
py35: {env:TOXPYTHON:python3.5}
|
|
deps =
|
|
pytest
|
|
-rrequirements.txt
|
|
commands =
|
|
# run the test suite against the package installed inside tox env.
|
|
# any extra positional arguments after `tox -- ...` are passed on to pytest
|
|
pytest {posargs:--pyargs ufoLib}
|