Skip to content

Commit 3318b04

Browse files
committed
Refractored the basic code base
1 parent 86d057a commit 3318b04

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+13
-4183
lines changed

pyproject.toml renamed to databricks_sql_connector_core/pyproject.toml

+7-16
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[tool.poetry]
2-
name = "databricks-sql-connector"
3-
version = "3.3.0"
4-
description = "Databricks SQL Connector for Python"
2+
name = "databricks-sql-connector-core"
3+
version = "1.0.0"
4+
description = "Databricks SQL Connector core for Python"
55
authors = ["Databricks <[email protected]>"]
66
license = "Apache-2.0"
77
readme = "README.md"
@@ -12,25 +12,18 @@ include = ["CHANGELOG.md"]
1212
python = "^3.8.0"
1313
thrift = ">=0.16.0,<0.21.0"
1414
pandas = [
15-
{ version = ">=1.2.5,<2.3.0", python = ">=3.8" }
15+
{ version = ">=1.2.5,<2.2.0", python = ">=3.8" }
1616
]
17-
pyarrow = ">=14.0.1,<17"
18-
1917
lz4 = "^4.0.2"
2018
requests = "^2.18.1"
2119
oauthlib = "^3.1.0"
22-
numpy = [
23-
{ version = "^1.16.6", python = ">=3.8,<3.11" },
24-
{ version = "^1.23.4", python = ">=3.11" },
25-
]
26-
sqlalchemy = { version = ">=2.0.21", optional = true }
2720
openpyxl = "^3.0.10"
2821
alembic = { version = "^1.0.11", optional = true }
2922
urllib3 = ">=1.26"
23+
pyarrow = {version = ">=14.0.1,<17", optional = true}
3024

3125
[tool.poetry.extras]
32-
sqlalchemy = ["sqlalchemy"]
33-
alembic = ["sqlalchemy", "alembic"]
26+
pyarrow = ["pyarrow"]
3427

3528
[tool.poetry.dev-dependencies]
3629
pytest = "^7.1.2"
@@ -43,8 +36,6 @@ pytest-dotenv = "^0.5.2"
4336
"Homepage" = "https://github.com/databricks/databricks-sql-python"
4437
"Bug Tracker" = "https://github.com/databricks/databricks-sql-python/issues"
4538

46-
[tool.poetry.plugins."sqlalchemy.dialects"]
47-
"databricks" = "databricks.sqlalchemy:DatabricksDialect"
4839

4940
[build-system]
5041
requires = ["poetry-core>=1.0.0"]
@@ -62,5 +53,5 @@ markers = {"reviewed" = "Test case has been reviewed by Databricks"}
6253
minversion = "6.0"
6354
log_cli = "false"
6455
log_cli_level = "INFO"
65-
testpaths = ["tests", "src/databricks/sqlalchemy/test_local"]
56+
testpaths = ["tests", "databricks_sql_connector_core/tests"]
6657
env_files = ["test.env"]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
try:
2+
from databricks_sqlalchemy import *
3+
except:
4+
import warnings
5+
6+
warnings.warn("Install databricks-sqlalchemy plugin before using this")
File renamed without changes.

src/databricks/sqlalchemy/README.sqlalchemy.md

-203
This file was deleted.

src/databricks/sqlalchemy/README.tests.md

-44
This file was deleted.

src/databricks/sqlalchemy/__init__.py

-4
This file was deleted.

0 commit comments

Comments
 (0)