-
Notifications
You must be signed in to change notification settings - Fork 12
/
setup.py
69 lines (57 loc) · 1.74 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from elseql import __version__
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
if sys.version_info <= (2, 5):
error = "ERROR: elseql %s requires Python Version 2.6 or above...exiting." % __version__
print >> sys.stderr, error
sys.exit(1)
#elif sys.version_info < (3, 0):
# pyparsing_version = "< 2.0.0"
else:
pyparsing_version = ""
SETUP_OPTIONS = dict(
name='elseql',
version=__version__,
description='SQL-like command line client for ElasticSearch',
long_description=open("README.md").read(),
author='Raffaele Sena',
author_email='[email protected]',
url='https://github.com/raff/elseql',
license="MIT",
platforms="Posix; MacOS X; Windows",
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Topic :: Internet',
'Topic :: Utilities',
'Topic :: Database :: Front-Ends',
'Topic :: Internet :: WWW/HTTP :: Indexing/Search',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7'
],
packages=['elseql'
],
data_files=[('.', ['./README.md'])
],
install_requires=['pyparsing' + pyparsing_version,
'rawes',
'cmd2',
],
entry_points="""
[console_scripts]
elseql=elseql.elseql:run_command
"""
)
def do_setup():
setup(**SETUP_OPTIONS)
if __name__ == '__main__':
do_setup()