Files
opensearch-pyd/setup.py
T

66 lines
1.8 KiB
Python
Raw Normal View History

2013-05-01 16:37:32 +02:00
# -*- coding: utf-8 -*-
from os.path import join, dirname
2013-09-23 14:33:23 +02:00
from setuptools import setup, find_packages
2013-08-28 19:11:28 +02:00
import sys
import os
2013-05-01 16:37:32 +02:00
2013-10-08 15:21:43 +02:00
VERSION = (0, 4, 2)
2013-05-01 16:37:32 +02:00
__version__ = VERSION
__versionstr__ = '.'.join(map(str, VERSION))
f = open(join(dirname(__file__), 'README.rst'))
long_description = f.read().strip()
f.close()
install_requires = [
2013-09-25 11:02:26 +02:00
'urllib3>=1.5, <2.0',
2013-05-01 16:37:32 +02:00
]
2013-05-06 16:34:33 +02:00
tests_require = [
2013-10-11 10:37:04 +02:00
'requests>=1.0.0, <3.0.0',
2013-05-01 16:37:32 +02:00
'nose',
'coverage',
2013-05-02 21:22:47 +02:00
'mock',
'pyaml',
'nosexcover'
2013-05-01 16:37:32 +02:00
]
2013-08-28 19:11:28 +02:00
# use external unittest for 2.6
if sys.version_info[:2] == (2, 6):
tests_require.append('unittest2')
if sys.version_info[0] == 2:
# only require thrift if we are going to use it
if os.environ.get('TEST_ES_CONNECTION', None) == 'ThriftConnection':
tests_require.append('thrift==0.9.1')
2013-09-24 15:49:23 +02:00
tests_require.append('pylibmc==1.2.3')
2013-05-01 16:37:32 +02:00
setup(
name = 'elasticsearch',
description = "Python client for Elasticsearch",
2013-05-06 16:34:33 +02:00
license="Apache License, Version 2.0",
url = "https://github.com/elasticsearch/elasticsearch-py",
2013-05-01 16:37:32 +02:00
long_description = long_description,
version = __versionstr__,
author = "Honza Král",
author_email = "honza.kral@gmail.com",
2013-09-23 14:33:23 +02:00
packages=find_packages(
where='.',
2013-09-23 23:27:39 +02:00
exclude=('test_elasticsearch*', )
2013-09-23 14:33:23 +02:00
),
2013-05-01 16:37:32 +02:00
classifiers = [
"Development Status :: 4 - Beta",
2013-05-06 16:34:33 +02:00
"License :: OSI Approved :: Apache Software License",
"Intended Audience :: Developers",
2013-05-01 16:37:32 +02:00
"Operating System :: OS Independent",
2013-05-06 16:34:33 +02:00
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
2013-05-01 16:37:32 +02:00
],
install_requires=install_requires,
test_suite='test_elasticsearch.run_tests.run_all',
2013-05-06 16:34:33 +02:00
tests_require=tests_require,
2013-05-01 16:37:32 +02:00
)