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