sprockets.mixins.avro-publi.../setup.py

52 lines
1.8 KiB
Python
Raw Permalink Normal View History

#!/usr/bin/env python
import os.path
2015-09-24 18:29:18 +00:00
import setuptools
def read_requirements(name):
requirements = []
try:
with open(os.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)
except IOError:
pass
return requirements
2015-09-24 18:29:18 +00:00
setuptools.setup(
2015-09-24 19:01:10 +00:00
name='sprockets.mixins.avro-publisher',
version='2.1.0',
2015-09-24 18:29:18 +00:00
description='Mixin for publishing events to RabbitMQ as avro datums',
long_description=open('README.rst').read(),
2015-09-24 19:10:21 +00:00
url='https://github.com/sprockets/sprockets.mixins.avro-publisher',
2015-09-24 18:29:18 +00:00
author='AWeber Communications, Inc.',
author_email='api@aweber.com',
license='BSD',
classifiers=[
2016-08-09 19:07:48 +00:00
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
2015-09-24 18:29:18 +00:00
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules'
],
2015-09-28 15:33:11 +00:00
packages=setuptools.find_packages(),
2015-09-24 18:29:18 +00:00
namespace_packages=['sprockets', 'sprockets.mixins'],
install_requires=read_requirements('installation.txt'),
2015-09-24 18:29:18 +00:00
zip_safe=True)