mirror of
https://github.com/sprockets/sprockets.mixins.mediatype.git
synced 2024-12-28 03:00:24 +00:00
RST
This commit is contained in:
parent
2012547347
commit
e5023a420f
5 changed files with 38 additions and 12 deletions
|
@ -1,3 +1,4 @@
|
|||
include LICENSE
|
||||
include README.rst
|
||||
include test-requirements.txt
|
||||
include tests.py
|
||||
graft docs
|
||||
graft requires
|
||||
|
|
43
setup.py
Normal file → Executable file
43
setup.py
Normal file → Executable file
|
@ -1,10 +1,37 @@
|
|||
#!/usr/bin/env python
|
||||
#
|
||||
|
||||
import os
|
||||
import setuptools
|
||||
|
||||
|
||||
def read_requirements(file_name):
|
||||
requirements = []
|
||||
try:
|
||||
with open(os.path.join('requires', file_name)) as req_file:
|
||||
for req_line in req_file:
|
||||
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)
|
||||
except IOError:
|
||||
pass
|
||||
return requirements
|
||||
|
||||
|
||||
install_requires = read_requirements('install.txt')
|
||||
setup_requires = read_requirements('setup.txt')
|
||||
tests_require = read_requirements('testing.txt')
|
||||
|
||||
setuptools.setup(
|
||||
name='sprockets.mixins.media_type',
|
||||
version='0.0.0',
|
||||
description='A mixin for reporting handling content-type/accept headers',
|
||||
long_description=open('test-requirements.txt', 'r').read(),
|
||||
long_description='\n' + open('README.rst').read(),
|
||||
url='https://github.com/sprockets/sprockets.mixins.media_type',
|
||||
author='AWeber Communications',
|
||||
author_email='api@aweber.com',
|
||||
|
@ -27,12 +54,10 @@ setuptools.setup(
|
|||
'Topic :: Software Development :: Libraries',
|
||||
'Topic :: Software Development :: Libraries :: Python Modules'
|
||||
],
|
||||
packages=['sprockets',
|
||||
'sprockets.mixins',
|
||||
'sprockets.mixins.media_type'],
|
||||
package_data={'': ['LICENSE', 'README.md']},
|
||||
include_package_data=True,
|
||||
install_requires=['tornado'],
|
||||
namespace_packages=['sprockets',
|
||||
'sprockets.mixins'],
|
||||
packages=setuptools.find_packages(),
|
||||
install_requires=install_requires,
|
||||
setup_requires=setup_requires,
|
||||
tests_require=tests_require,
|
||||
namespace_packages=['sprockets', 'sprockets.mixins'],
|
||||
test_suite='nose.collector',
|
||||
zip_safe=False)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
"""
|
||||
Sprockets.Mixins.Media_type
|
||||
Sprockets.Mixins.media_type
|
||||
===========================
|
||||
|
||||
"""
|
Loading…
Reference in a new issue