Skip to content

Commit e6d8190

Browse files
test: Test with singer-sdk @ main
1 parent 03c428e commit e6d8190

File tree

3 files changed

+23
-20
lines changed

3 files changed

+23
-20
lines changed

poetry.lock

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

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ packages = [
1616
[tool.poetry.dependencies]
1717
python = ">=3.8"
1818
cryptography = ">=40,<43"
19-
singer-sdk = "~=0.38.0"
19+
singer-sdk = { git = "https://github.com/meltano/sdk.git" }
2020
snowflake-sqlalchemy = "~=1.6.1"
2121
snowflake-connector-python = { version = "<4.0.0", extras = ["secure-local-storage"] }
2222
sqlalchemy = "<2"
@@ -25,7 +25,7 @@ sqlalchemy = "<2"
2525
coverage = ">=7.2.7"
2626
pytest = ">=7.4.3"
2727
pytest-xdist = ">=3.3.1"
28-
singer-sdk = { version="~=0.38.0", extras = ["testing"] }
28+
singer-sdk = { git = "https://github.com/meltano/sdk.git", extras = ["testing"] }
2929

3030
[tool.ruff]
3131
line-length = 120

target_snowflake/sinks.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@
2121
from target_snowflake.connector import SnowflakeConnector
2222

2323
if t.TYPE_CHECKING:
24-
from singer_sdk import PluginBase, SQLConnector
24+
from singer_sdk import PluginBase
2525

2626
DEFAULT_BATCH_CONFIG = {
2727
"encoding": {"format": "jsonl", "compression": "gzip"},
2828
"storage": {"root": "file://"},
2929
}
3030

3131

32-
class SnowflakeSink(SQLSink):
32+
class SnowflakeSink(SQLSink[SnowflakeConnector]):
3333
"""Snowflake target sink class."""
3434

3535
connector_class = SnowflakeConnector
@@ -40,7 +40,7 @@ def __init__(
4040
stream_name: str,
4141
schema: dict,
4242
key_properties: list[str] | None,
43-
connector: SQLConnector | None = None,
43+
connector: SnowflakeConnector | None = None,
4444
) -> None:
4545
"""Initialize Snowflake Sink."""
4646
self.target = target

0 commit comments

Comments
 (0)