-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
72 lines (66 loc) · 2.04 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
65
66
67
68
69
70
71
72
from setuptools import setup, find_packages
import sys, os, multiprocessing
requires = ['six']
py_version = sys.version_info[:2]
PY3 = py_version[0] == 3
if PY3:
if py_version < (3, 3):
raise RuntimeError('On Python 3, anypubsub requires Python 3.3 or better')
else:
if py_version < (2, 7):
raise RuntimeError('On Python 2, anypubsub requires Python 2.7 or better')
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.rst')).read()
except IOError:
README = ''
setup(
name='anypubsub',
version='0.6',
description="A generic interface wrapping multiple backends to provide a consistent pubsub API.",
long_description=README,
# Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Development Status :: 3 - Alpha',
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: Implementation :: CPython",
'Topic :: Software Development :: Libraries :: Python Modules',
'License :: OSI Approved :: MIT License',
],
keywords='pubsub pub/sub redis mongodb',
author='Simone Marzola',
author_email='[email protected]',
url='http://github.com/simock85/anypubsub',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=requires,
extras_require={
'redis': [
'redis > 2.10',
],
'mongodb': [
'pymongo >= 3',
],
'amqp': [
'amqp >= 1.4.9'
]
},
test_suite='nose.collector',
tests_require = [
'nose',
'mock',
'coverage',
'redis > 2.10',
'pymongo >= 3',
'amqp >= 1.4.9',
],
entry_points="""\
""",
)