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

49 lines
1.7 KiB
Python
Raw 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',
2022-03-08 17:14:19 +00:00
version='3.0.1',
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=[
2020-03-16 11:11:49 +00:00
'Development Status :: 5 - Production/Stable',
2016-08-09 19:07:48 +00:00
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
2015-09-24 18:29:18 +00:00
'Operating System :: OS Independent',
2020-03-16 11:11:49 +00:00
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
2015-09-24 18:29:18 +00:00
'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)