2015-08-07 21:11:08 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
#
|
2018-11-28 18:17:32 +00:00
|
|
|
import pathlib
|
2015-06-08 20:28:30 +00:00
|
|
|
import setuptools
|
|
|
|
|
2015-08-07 21:11:08 +00:00
|
|
|
|
2018-11-28 18:17:32 +00:00
|
|
|
REPO_DIR = pathlib.Path(__name__).parent
|
|
|
|
|
|
|
|
|
|
|
|
def read_requirements(name):
|
2015-08-07 21:11:08 +00:00
|
|
|
requirements = []
|
2018-11-28 18:17:32 +00:00
|
|
|
for req_line in REPO_DIR.joinpath(name).read_text().split('\n'):
|
|
|
|
req_line = req_line.strip()
|
|
|
|
if '#' in req_line:
|
|
|
|
req_line = req_line[0:req_line.find('#')].strip()
|
|
|
|
if req_line.startswith('-r'):
|
|
|
|
req_line = req_line[2:].strip()
|
|
|
|
requirements.extend(read_requirements(req_line))
|
|
|
|
else:
|
|
|
|
requirements.append(req_line)
|
2015-08-07 21:11:08 +00:00
|
|
|
return requirements
|
|
|
|
|
|
|
|
|
2015-06-08 20:28:30 +00:00
|
|
|
setuptools.setup(
|
2015-09-09 22:18:54 +00:00
|
|
|
name='sprockets.mixins.mediatype',
|
2015-06-08 20:28:30 +00:00
|
|
|
description='A mixin for reporting handling content-type/accept headers',
|
2018-11-28 18:17:32 +00:00
|
|
|
long_description=REPO_DIR.joinpath('README.rst').read_text(),
|
2018-12-05 04:24:06 +00:00
|
|
|
url='https://github.com/sprockets/sprockets.mixins.mediatype',
|
2015-06-08 20:28:30 +00:00
|
|
|
author='AWeber Communications',
|
|
|
|
author_email='api@aweber.com',
|
|
|
|
license='BSD',
|
|
|
|
classifiers=[
|
2015-11-03 13:10:08 +00:00
|
|
|
'Development Status :: 5 - Production/Stable',
|
2015-06-08 20:28:30 +00:00
|
|
|
'Intended Audience :: Developers',
|
|
|
|
'License :: OSI Approved :: BSD License',
|
|
|
|
'Natural Language :: English',
|
|
|
|
'Operating System :: OS Independent',
|
|
|
|
'Programming Language :: Python :: 3',
|
2018-08-07 19:51:29 +00:00
|
|
|
'Programming Language :: Python :: 3.7',
|
2015-06-08 20:28:30 +00:00
|
|
|
'Programming Language :: Python :: Implementation :: CPython',
|
|
|
|
'Topic :: Software Development :: Libraries',
|
|
|
|
'Topic :: Software Development :: Libraries :: Python Modules'
|
|
|
|
],
|
2018-11-28 16:32:54 +00:00
|
|
|
packages=[
|
|
|
|
'sprockets',
|
|
|
|
'sprockets.mixins',
|
|
|
|
'sprockets.mixins.mediatype'
|
|
|
|
],
|
2018-11-28 18:17:32 +00:00
|
|
|
install_requires=read_requirements('requires/installation.txt'),
|
|
|
|
tests_require=read_requirements('requires/testing.txt'),
|
2018-11-28 16:03:33 +00:00
|
|
|
extras_require={
|
|
|
|
'msgpack': ['u-msgpack-python>=2.5.0,<3']
|
|
|
|
},
|
2018-11-28 16:46:08 +00:00
|
|
|
setup_requires=['setuptools_scm'],
|
|
|
|
use_scm_version=True,
|
2015-08-07 21:11:08 +00:00
|
|
|
namespace_packages=['sprockets', 'sprockets.mixins'],
|
|
|
|
test_suite='nose.collector',
|
2018-12-05 04:00:28 +00:00
|
|
|
python_requires='>=3.7',
|
2015-06-08 20:28:30 +00:00
|
|
|
zip_safe=False)
|