sprockets.mixins.metrics/setup.py

57 lines
1.9 KiB
Python
Raw Normal View History

2016-01-18 20:32:49 +00:00
#!/usr/bin/env python
#
import os.path
import setuptools
from sprockets.mixins import metrics
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
setuptools.setup(
name='sprockets.mixins.metrics',
version=metrics.__version__,
description='Record performance metrics about your application',
long_description='\n'+open('README.rst').read(),
author='AWeber Communications',
author_email='api@aweber.com',
license='BSD',
url='https://github.com/sprockets/sprockets.mixins.metrics',
install_requires=read_requirements('installation.txt'),
tests_require=read_requirements('testing.txt'),
2016-01-19 12:50:03 +00:00
packages=setuptools.find_packages(exclude=['examples.']),
2016-01-18 20:32:49 +00:00
namespace_packages=['sprockets', 'sprockets.mixins'],
classifiers=[
2016-02-01 15:17:09 +00:00
'Development Status :: 5 - Production/Stable',
2016-01-18 20:32:49 +00:00
'Environment :: No Input/Output (Daemon)',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.7',
2016-01-18 20:32:49 +00:00
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules'],
test_suite='nose.collector',
2018-12-13 22:24:08 +00:00
python_requires='>=3.7',
2016-01-18 20:32:49 +00:00
zip_safe=True,
)