From af99c4397440db86c2200c54d80e885d70a654c0 Mon Sep 17 00:00:00 2001 From: Paul Tremberth Date: Tue, 26 Jul 2016 10:31:37 +0200 Subject: [PATCH] Integrate py.test runs with setuptools Following instructions from http://docs.pytest.org/en/latest/goodpractices.html#integrating-with-setuptools-python-setup-py-test-pytest-runner --- setup.cfg | 3 +++ setup.py | 2 ++ 2 files changed, 5 insertions(+) diff --git a/setup.cfg b/setup.cfg index 7c964b49..cf0f47f0 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,2 +1,5 @@ [wheel] universal=1 + +[aliases] +test=pytest diff --git a/setup.py b/setup.py index 9c97c29e..d1105938 100644 --- a/setup.py +++ b/setup.py @@ -51,5 +51,7 @@ 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', ], + setup_requires=['pytest-runner',], + tests_require=['pytest',], test_suite='tests', )