forked from smarzola/anypubsub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
74 lines (68 loc) · 2.08 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
73
74
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, 2):
raise RuntimeError('On Python 3, anypubsub requires Python 3.2 or better')
else:
if py_version < (2, 6):
raise RuntimeError('On Python 2, anypubsub requires Python 2.6 or better')
if py_version < (2, 7):
requires.append('weakrefset')
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.4',
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.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"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='https://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',
],
'amqp': [
'amqp'
]
},
test_suite='nose.collector',
tests_require = [
'nose',
'mock',
'coverage',
'redis > 2.10',
'pymongo',
'amqp',
],
entry_points="""\
""",
)