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',
|
2015-07-23 11:31:56 +00:00
|
|
|
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'],
|
|
|
|
},
|
2022-02-02 16:25:16 +00:00
|
|
|
extras_require={
|
|
|
|
'sentry': ['sentry-sdk>=1.5.4,<2'],
|
|
|
|
},
|
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',
|
2020-07-18 12:03:10 +00:00
|
|
|
'Programming Language :: Python :: 3.9',
|
2022-03-15 21:48:03 +00:00
|
|
|
'Programming Language :: Python :: 3.10',
|
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'],
|
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,
|
|
|
|
)
|