-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathsetup.py
executable file
·64 lines (55 loc) · 1.96 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
"""Setuptools entry point."""
import codecs
import os
import sys
import re
from setuptools import setup
dirname = os.path.dirname(__file__)
long_description = (
codecs.open(os.path.join(dirname, 'README.rst'), encoding='utf-8').read() + '\n' +
codecs.open(os.path.join(dirname, 'AUTHORS.rst'), encoding='utf-8').read() + '\n' +
codecs.open(os.path.join(dirname, 'CHANGES.rst'), encoding='utf-8').read()
)
install_requires = [
'requests',
'psutil',
'pytest',
'zc.lockfile >= 2.0',
]
PY2 = sys.version_info[0] < 3
if PY2:
install_requires.append('subprocess32')
with codecs.open(os.path.join(dirname, "pytest_services", "__init__.py"), encoding="utf-8") as fd:
VERSION = re.compile(r".*__version__ = ['\"](.*?)['\"]", re.S).match(fd.read()).group(1)
setup(
name='pytest-services',
description='Services plugin for pytest testing framework',
long_description=long_description,
author='Anatoly Bubenkov, Paylogic International and others',
license='MIT license',
author_email='[email protected]',
version=VERSION,
url='https://github.com/pytest-dev/pytest-services',
install_requires=install_requires,
extras={
'memcached': ['pylibmc'],
},
classifiers=[
'Development Status :: 6 - Mature',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: POSIX',
'Operating System :: Microsoft :: Windows',
'Operating System :: MacOS :: MacOS X',
'Topic :: Software Development :: Testing',
'Topic :: Software Development :: Libraries',
'Topic :: Utilities',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
] + [('Programming Language :: Python :: %s' % x) for x in '2.7 3.4 3.5 3.6 3.7'.split()],
tests_require=['tox'],
entry_points={'pytest11': [
'pytest-services=pytest_services.plugin',
]},
packages=['pytest_services'],
)