view setup.py @ 0:26e919a36f86 default tip

speedtest containerized dispatching software
author Jeff Hammel <k0scist@gmail.com>
date Thu, 09 Feb 2017 09:47:04 -0800
parents
children
line wrap: on
line source

import os
import sys

version = "0.0"
dependencies = ['MakeItSo',
                'requests',
                'elasticsearch>=1.0.0,<2.0.0'  # Elasticsearch 1.x
]

if sys.version_info < (2, 7):
    # `argparse` is incorporated into cython's stdlib in python 2.7 :
    # https://docs.python.org/2/library/argparse.html
    dependencies.append('argparse')

# allow use of setuptools/distribute or distutils
kw = {}
try:
    from setuptools import setup
    kw['entry_points'] = """
    [console_scripts]
    docker-images = speedtest.docker_images:main
    docker-run = speedtest.docker_run:main
    elastic = speedtest.elasticsearch:main
    py-eval = speedtest.eval:main
    speedtest = speedtest.speedtest:main
"""
    kw['install_requires'] = dependencies
except ImportError:
    from distutils.core import setup
    kw['requires'] = dependencies

try:
    here = os.path.dirname(os.path.abspath(__file__))
    description = file(os.path.join(here, 'README.md')).read()
except IOError:
    description = ''


setup(name='speedtest',
      version=version,
      description="",
      long_description=description,
      classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers
      author='Jeff Hammel',
      author_email='k0scist@gmail.com',
      license='',
      packages=['speedtest'],
      include_package_data=True,
      zip_safe=False,
      **kw
      )