Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit 15f897e

Browse files
authored
Merge pull request #232 from datafold/fix_pip_extras
Fix for pip extras (e.g. pip install data-diff[snowflake])
2 parents 77ce613 + 933af8c commit 15f897e

File tree

3 files changed

+44
-37
lines changed

3 files changed

+44
-37
lines changed

data_diff/databases/databricks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from .base import MD5_HEXDIGITS, CHECKSUM_HEXDIGITS, Database, import_helper, _query_conn, parse_table_name
55

66

7-
@import_helper("databricks")
7+
@import_helper(text="You can install it using 'pip install databricks-sql-connector'")
88
def import_databricks():
99
import databricks.sql
1010

poetry.lock

Lines changed: 35 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ dsnparse = "*"
2929
click = "^8.1"
3030
rich = "*"
3131
toml = "^0.10.2"
32+
mysql-connector-python = {version="*", optional=true}
33+
psycopg2 = {version="*", optional=true}
34+
snowflake-connector-python = {version="^2.7.2", optional=true}
35+
cryptography = {version="*", optional=true}
36+
trino = {version="^0.314.0", optional=true}
37+
presto-python-client = {version="*", optional=true}
38+
clickhouse-driver = {version="*", optional=true}
3239

3340
[tool.poetry.dev-dependencies]
3441
parameterized = "*"
@@ -52,7 +59,7 @@ postgresql = ["psycopg2"]
5259
snowflake = ["snowflake-connector-python", "cryptography"]
5360
presto = ["presto-python-client"]
5461
oracle = ["cx_Oracle"]
55-
databricks = ["databricks-sql-connector"]
62+
# databricks = ["databricks-sql-connector"]
5663
trino = ["trino"]
5764
clickhouse = ["clickhouse-driver"]
5865
vertica = ["vertica-python"]

0 commit comments

Comments
 (0)