diff --git a/README.md b/README.md index be2f6c8..53c438e 100644 --- a/README.md +++ b/README.md @@ -15,5 +15,5 @@ Python 2.x support may be dropped in the future. To run the tests just do: - >>> pip install pytest - >>> py.test tests/ + >>> pip install tox + >>> tox diff --git a/setup.py b/setup.py index d42fb61..8d5e657 100644 --- a/setup.py +++ b/setup.py @@ -10,8 +10,7 @@ setup( license='GNU General Public License v2 or later (GPLv2+)', packages=find_packages('.', exclude=['tests']), tests_require=[ - 'pytest>=2.9.1', - 'pytest-cov>=2.2.1', + 'tox>=2.5.0', ], zip_safe=True, ) diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..e9251d6 --- /dev/null +++ b/tox.ini @@ -0,0 +1,13 @@ +[tox] +envlist = {2.7,3.5} + +[testenv] +basepython = + 2.7: python2.7 + 3.5: python3.5 + +deps = + pytest + pytest-cov + +commands = py.test