зеркало из https://github.com/mozilla/inferno.git
46 строки
1.1 KiB
Python
46 строки
1.1 KiB
Python
import os
|
|
import re
|
|
import sys
|
|
|
|
from setuptools import setup, find_packages
|
|
|
|
|
|
if sys.version_info[:2] < (2, 6):
|
|
raise RuntimeError('Requires Python 2.6 or better')
|
|
|
|
here = os.path.abspath(os.path.dirname(__file__))
|
|
info = open(os.path.join(here, 'inferno', 'lib', '__init__.py')).read()
|
|
VERSION = re.compile(r".*__version__ = '(.*?)'", re.S).match(info).group(1)
|
|
|
|
install_requires = [
|
|
'argparse',
|
|
'pyyaml',
|
|
'setproctitle',
|
|
'tornado',
|
|
'ujson',
|
|
]
|
|
|
|
tests_require = install_requires + [
|
|
'nose',
|
|
'mock']
|
|
|
|
setup(
|
|
name='inferno',
|
|
version=VERSION,
|
|
description='Inferno: a python map/reduce platform powered by disco.',
|
|
keywords='inferno discoproject',
|
|
author='Chango Inc.',
|
|
author_email='dev@chango.com',
|
|
url='http://chango.com',
|
|
license='MIT License',
|
|
packages=find_packages(exclude=['test']),
|
|
include_package_data=True,
|
|
zip_safe=False,
|
|
install_requires=install_requires,
|
|
tests_require=tests_require,
|
|
test_suite='nose.collector',
|
|
entry_points="""
|
|
[console_scripts]
|
|
inferno=inferno.bin.run:main
|
|
""", requires=['disco'])
|