This repository has been archived by the owner on Mar 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
pyproject.toml
86 lines (79 loc) · 2.44 KB
/
pyproject.toml
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
[tool.black]
line-length = 120
target-version = ['py37']
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs
| \.git
| \.github
| \.hg
| \.mypy_cache
| \.pytest_cache
| \.tox
| \.venv
| _build
| build
| dist
)/
)
'''
[tool.isort]
force_single_line = true
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
line_length = 120
[tool.poetry]
name = "databricks_dbapi"
version = "0.6.0"
description = "A DBAPI 2.0 interface and SQLAlchemy dialect for Databricks interactive clusters."
authors = ["Christopher Flynn <crf204@gmail.com>"]
license = "MIT"
readme = "README.rst"
homepage = "https://github.com/crflynn/databricks-dbapi"
repository = "https://github.com/crflynn/databricks-dbapi"
documentation = "https://github.com/crflynn/databricks-dbapi"
keywords = ["databricks", "hive", "dbapi", "sqlalchemy", "dialect"]
classifiers = [
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Database",
"Topic :: Database :: Front-Ends",
]
include = ["CHANGELOG.rst"]
[tool.poetry.plugins."sqlalchemy.dialects"]
"databricks.pyhive" = "databricks_dbapi.sqlalchemy_dialects.hive:DatabricksPyhiveDialect"
"databricks.pyodbc" = "databricks_dbapi.sqlalchemy_dialects.odbc:DatabricksPyodbcDialect"
[tool.poetry.extras]
sqlalchemy = ["sqlalchemy"]
hive = ["pyhive", "thrift"]
odbc = ["pyodbc"]
[tool.poetry.dependencies]
python = "~2.7 || ^3.5"
# pyhive with databricks does not use sasl, so in lieu of using
# the hive extra here which requires sasl, thrift, and thrift-sasl,
# we just install thrift.
pyhive = {version = "^0.6.1", optional = true}
thrift = {version = "^0.15.0", optional = true}
sqlalchemy = {version = "^1.3", optional = true}
pyodbc = {version = "^4.0.30", optional = true}
[tool.poetry.dev-dependencies]
black = {version = "^20.8b1", python = "^3.7" }
isort = {version = "^5.7.0", python = "^3.7" }
pytest = "4.6"
python-dotenv = "^0.15.0"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"