sprockets.http/setup.py

65 lines
2 KiB
Python
Raw Normal View History

2015-07-22 17:31:19 +00:00
#!/usr/bin/env python
#
import os.path
2014-08-19 16:58:29 +00:00
2015-07-22 17:31:19 +00:00
import setuptools
2015-07-22 17:29:16 +00:00
from sprockets import http
2015-07-22 17:31:19 +00:00
def read_requirements(filename):
requirements = []
try:
with open(os.path.join('requires', filename)) as req_file:
for line in req_file:
if '#' in line:
line = line[:line.index('#')]
line = line.strip()
if line.startswith('-'):
pass
requirements.append(line)
2015-07-22 17:31:19 +00:00
except IOError:
pass
return requirements
requirements = read_requirements('installation.txt')
tests_require = read_requirements('testing.txt')
2015-07-22 17:31:19 +00:00
setuptools.setup(
name='sprockets.http',
version=http.__version__,
description='Tornado HTTP application runner',
author='AWeber Communications',
author_email='api@aweber.com',
2015-07-22 17:31:19 +00:00
url='https://github.com/sprockets/sprockets.http',
install_requires=requirements,
license='BSD',
namespace_packages=['sprockets'],
packages=setuptools.find_packages(),
2016-06-14 03:23:17 +00:00
entry_points={
'distutils.commands': ['httprun=sprockets.http.runner:RunCommand'],
},
2015-07-22 17:31:19 +00:00
classifiers=[
2015-11-20 13:26:27 +00:00
'Development Status :: 5 - Production/Stable',
2015-07-22 17:31:19 +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 :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
2015-11-20 13:26:27 +00:00
'Programming Language :: Python :: 3.5',
2015-07-22 17:31:19 +00:00
'Programming Language :: Python :: Implementation :: CPython',
2015-11-20 13:26:27 +00:00
'Programming Language :: Python :: Implementation :: PyPy',
2015-07-22 17:31:19 +00:00
'Topic :: Internet :: WWW/HTTP',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules'],
test_suite='nose.collector',
tests_require=tests_require,
zip_safe=True,
)