Mercurial > hg > speedtest
comparison 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 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:26e919a36f86 |
---|---|
1 import os | |
2 import sys | |
3 | |
4 version = "0.0" | |
5 dependencies = ['MakeItSo', | |
6 'requests', | |
7 'elasticsearch>=1.0.0,<2.0.0' # Elasticsearch 1.x | |
8 ] | |
9 | |
10 if sys.version_info < (2, 7): | |
11 # `argparse` is incorporated into cython's stdlib in python 2.7 : | |
12 # https://docs.python.org/2/library/argparse.html | |
13 dependencies.append('argparse') | |
14 | |
15 # allow use of setuptools/distribute or distutils | |
16 kw = {} | |
17 try: | |
18 from setuptools import setup | |
19 kw['entry_points'] = """ | |
20 [console_scripts] | |
21 docker-images = speedtest.docker_images:main | |
22 docker-run = speedtest.docker_run:main | |
23 elastic = speedtest.elasticsearch:main | |
24 py-eval = speedtest.eval:main | |
25 speedtest = speedtest.speedtest:main | |
26 """ | |
27 kw['install_requires'] = dependencies | |
28 except ImportError: | |
29 from distutils.core import setup | |
30 kw['requires'] = dependencies | |
31 | |
32 try: | |
33 here = os.path.dirname(os.path.abspath(__file__)) | |
34 description = file(os.path.join(here, 'README.md')).read() | |
35 except IOError: | |
36 description = '' | |
37 | |
38 | |
39 setup(name='speedtest', | |
40 version=version, | |
41 description="", | |
42 long_description=description, | |
43 classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers | |
44 author='Jeff Hammel', | |
45 author_email='k0scist@gmail.com', | |
46 license='', | |
47 packages=['speedtest'], | |
48 include_package_data=True, | |
49 zip_safe=False, | |
50 **kw | |
51 ) |