sprockets.http/setup.py

58 lines
1.8 KiB
Python
Raw Normal View History

2015-07-22 17:31:19 +00:00
#!/usr/bin/env python
#
2018-11-27 00:26:34 +00:00
import pathlib
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
2018-11-27 00:26:34 +00:00
def read_requirements(name):
2015-07-22 17:31:19 +00:00
requirements = []
2018-11-27 00:26:34 +00:00
for line in pathlib.Path('requires', name).read_text().split('\n'):
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
return requirements
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',
2018-11-27 00:26:34 +00:00
install_requires=read_requirements('installation.txt'),
2015-07-22 17:31:19 +00:00
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 :: 3',
2015-11-20 13:26:27 +00:00
'Programming Language :: Python :: 3.5',
2018-11-26 21:46:30 +00:00
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
2019-09-02 21:05:52 +00:00
'Programming Language :: Python :: 3.8',
2015-07-22 17:31:19 +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-11-27 00:26:34 +00:00
tests_require=read_requirements('testing.txt'),
2018-11-26 21:46:30 +00:00
python_requires='>=3.5',
2015-07-22 17:31:19 +00:00
zip_safe=True,
)