-
Notifications
You must be signed in to change notification settings - Fork 51
/
setup.py
46 lines (42 loc) · 1.63 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
import io
import os
from setuptools import find_packages, setup
VERSION = "0.2.11"
BASE_DIR = os.path.abspath(os.path.dirname(__file__))
with io.open("README.md", "r", encoding="utf-8") as f:
long_description = f.read()
setup(
name="elasticsearch-dbapi",
description=("A DBAPI and SQLAlchemy dialect for Elasticsearch"),
long_description=long_description,
long_description_content_type="text/markdown",
version=VERSION,
packages=find_packages(),
include_package_data=True,
zip_safe=False,
entry_points={
"sqlalchemy.dialects": [
"elasticsearch = es.elastic.sqlalchemy:ESHTTPDialect",
"elasticsearch.http = es.elastic.sqlalchemy:ESHTTPDialect",
"elasticsearch.https = es.elastic.sqlalchemy:ESHTTPSDialect",
"odelasticsearch = es.opendistro.sqlalchemy:ESHTTPDialect",
"odelasticsearch.http = es.opendistro.sqlalchemy:ESHTTPDialect",
"odelasticsearch.https = es.opendistro.sqlalchemy:ESHTTPSDialect",
]
},
install_requires=["elasticsearch>7, <7.14", "packaging>=21.0", "sqlalchemy"],
extras_require={"opendistro": ["requests_aws4auth", "boto3"]},
author="Preset Inc.",
author_email="[email protected]",
url="http://preset.io",
download_url="https://github.com/preset-io/elasticsearch-dbapi/releases/tag/"
+ VERSION,
classifiers=[
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
],
tests_require=["nose>=1.0"],
test_suite="nose.collector",
)