-
Notifications
You must be signed in to change notification settings - Fork 19
/
setup.py
66 lines (59 loc) · 2.25 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
# coding=utf-8
from os import path
import setuptools
def read_requirements(name):
"""Read in the requirements file and return the list of things to return.
:param str name: The file to return
:rtype: list
"""
requirements = []
with open(path.join('requires', name)) as req_file:
for line in req_file:
if '#' in line:
line = line[:line.index('#')]
line = line.strip()
if line.startswith('-r'):
requirements.extend(read_requirements(line[2:].strip()))
elif line and not line.startswith('-'):
requirements.append(line)
return requirements
setuptools.setup(
name='rejected',
version='3.23.1',
description='Rejected is a Python RabbitMQ Consumer Framework and '
'Controller Daemon',
long_description=open('README.rst').read(),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'License :: OSI Approved :: BSD License'
],
keywords='amqp rabbitmq',
author='Gavin M. Roy',
author_email='[email protected]',
url='https://github.com/gmr/rejected',
license='BSD',
packages=['rejected'],
package_data={'': ['LICENSE', 'README.rst']},
include_package_data=True,
install_requires=read_requirements('installation.txt'),
extras_require={
'html': ['beautifulsoup4'],
'influxdb': ['sprockets-influxdb'],
'msgpack': ['u-msgpack-python'],
'sentry': ['raven'],
'testing': read_requirements('development.txt')
},
tests_require=read_requirements('testing.txt'),
entry_points={'console_scripts': ['rejected=rejected.controller:main']},
zip_safe=True)