forked from veegee/amqpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
62 lines (51 loc) · 1.63 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
#!/usr/bin/env python3
import sys
import os
from setuptools import setup, find_packages
import amqpy
if sys.version_info < (3, 2):
raise Exception('amqpy requires Python 3.2 or higher')
name = 'amqpy'
description = 'an AMQP 0.9.1 client library for Python >= 3.2.0'
keywords = ['amqp', 'rabbitmq', 'qpid']
classifiers = [
'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
'Topic :: Internet',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Networking'
]
package_data = {
'': ['*.rst', '*.ini', 'AUTHORS', 'LICENSE'],
}
def long_description():
if os.path.exists('README.rst'):
with open('README.rst') as f:
return f.read()
else:
return description
setup(
name=name,
description=description,
long_description=long_description(),
version=amqpy.__version__,
author=amqpy.__author__,
author_email=amqpy.__contact__,
maintainer=amqpy.__maintainer__,
url=amqpy.__homepage__,
platforms=['any'],
license='LGPL',
packages=find_packages(exclude=['ez_setup', 'tests', 'tests.*']),
package_data=package_data,
tests_require=['pytest>=2.6'],
classifiers=classifiers,
keywords=keywords
)