Commit 1cd424b6 authored by Jason R. Coombs's avatar Jason R. Coombs

Add support for running tests via pytest-runner.

--HG--
extra : amend_source : d60530fbb3e3cc3455abae8e5100f85f697f3dac
parent 8d070ba6
...@@ -109,6 +109,8 @@ if sys.platform == 'win32' or force_windows_specific_files: ...@@ -109,6 +109,8 @@ if sys.platform == 'win32' or force_windows_specific_files:
package_data.setdefault('setuptools', []).extend(['*.exe']) package_data.setdefault('setuptools', []).extend(['*.exe'])
package_data.setdefault('setuptools.command', []).extend(['*.xml']) package_data.setdefault('setuptools.command', []).extend(['*.xml'])
pytest_runner = ['pytest-runner'] if 'ptr' in sys.argv else []
setup_params = dict( setup_params = dict(
name="setuptools", name="setuptools",
version=main_ns['__version__'], version=main_ns['__version__'],
...@@ -204,7 +206,10 @@ setup_params = dict( ...@@ -204,7 +206,10 @@ setup_params = dict(
scripts = [], scripts = [],
tests_require = [ tests_require = [
'setuptools[ssl]', 'setuptools[ssl]',
'pytest',
], ],
setup_requires = [
] + pytest_runner,
) )
if __name__ == '__main__': if __name__ == '__main__':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment