2015-03-28 16:33:29 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
import codecs
|
2018-11-26 20:22:51 +00:00
|
|
|
from os import path
|
2015-03-28 16:33:29 +00:00
|
|
|
import sys
|
|
|
|
|
|
|
|
import setuptools
|
|
|
|
|
|
|
|
from sprockets.mixins import correlation
|
|
|
|
|
|
|
|
|
2018-11-26 20:22:51 +00:00
|
|
|
def read_requirements(name):
|
2015-03-28 16:33:29 +00:00
|
|
|
requirements = []
|
|
|
|
try:
|
2018-11-26 20:22:51 +00:00
|
|
|
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)
|
2015-03-28 16:33:29 +00:00
|
|
|
except IOError:
|
|
|
|
pass
|
|
|
|
return requirements
|
|
|
|
|
|
|
|
|
|
|
|
setuptools.setup(
|
|
|
|
name='sprockets.mixins.correlation',
|
|
|
|
version=correlation.__version__,
|
|
|
|
description='Stuff to correlate requests, logs, and the like',
|
|
|
|
long_description=codecs.open('README.rst', encoding='utf-8').read(),
|
|
|
|
url='https://github.com/sprockets/sprockets.mixins.correlation.git',
|
|
|
|
author='AWeber Communications',
|
|
|
|
author_email='api@aweber.com',
|
2019-12-20 21:23:37 +00:00
|
|
|
license='BSD',
|
2015-03-28 16:33:29 +00:00
|
|
|
classifiers=[
|
2018-11-26 20:22:51 +00:00
|
|
|
'Development Status :: 5 - Production/Stable',
|
2015-03-28 16:33:29 +00:00
|
|
|
'Intended Audience :: Developers',
|
|
|
|
'License :: OSI Approved :: BSD License',
|
|
|
|
'Natural Language :: English',
|
|
|
|
'Operating System :: OS Independent',
|
|
|
|
'Programming Language :: Python :: 3',
|
2018-11-26 20:22:51 +00:00
|
|
|
'Programming Language :: Python :: 3.6',
|
|
|
|
'Programming Language :: Python :: 3.5',
|
|
|
|
'Programming Language :: Python :: 3.7',
|
2015-03-28 16:33:29 +00:00
|
|
|
'Programming Language :: Python :: Implementation :: CPython',
|
|
|
|
'Programming Language :: Python :: Implementation :: PyPy',
|
|
|
|
'Topic :: Software Development :: Libraries',
|
|
|
|
'Topic :: Software Development :: Libraries :: Python Modules'
|
|
|
|
],
|
|
|
|
packages=setuptools.find_packages(),
|
|
|
|
namespace_packages=['sprockets'],
|
2019-03-16 20:06:41 +00:00
|
|
|
install_requires=read_requirements('installation.txt'),
|
|
|
|
tests_require=read_requirements('testing.txt'),
|
2015-03-28 16:33:29 +00:00
|
|
|
test_suite='nose.collector',
|
|
|
|
zip_safe=True,
|
|
|
|
)
|