summaryrefslogtreecommitdiff
path: root/setup.py
blob: e58e6869f020c6a3b3a5d768e2f690b2a2c59b80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env python

import setuptools


compat = dict(
    name='pytest-runner',
    py_modules=['ptr'],
    setup_requires=['setuptools_scm >= 1.15.0'],
    entry_points={'distutils.commands': ['ptr = ptr:PyTest', 'pytest = ptr:PyTest']},
)
"""
Because pytest-runner is frequently installed by
setup_requires and thus easy_install, and because
many systems still run with setuptools prior to
30.4 in which support for declarative config was
added, supply the basic metadata here. Ref #49.
"""

if __name__ == "__main__":
    setuptools.setup(**compat)