From 856db17dec104ab56017a77af5d341b6a765a3ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Ram=C3=ADrez-Mondrag=C3=B3n?= Date: Mon, 28 Oct 2024 11:04:28 -0600 Subject: [PATCH] chore: Test with singer-sdk PR 2732 --- poetry.lock | 45 ++++++++++++++---------------------- pyproject.toml | 3 ++- target_postgres/connector.py | 2 +- 3 files changed, 20 insertions(+), 30 deletions(-) diff --git a/poetry.lock b/poetry.lock index 7b80ee18..6bdd541b 100644 --- a/poetry.lock +++ b/poetry.lock @@ -873,17 +873,6 @@ all = ["gssapi (>=1.4.1)", "invoke (>=2.0)", "pyasn1 (>=0.1.7)", "pywin32 (>=2.1 gssapi = ["gssapi (>=1.4.1)", "pyasn1 (>=0.1.7)", "pywin32 (>=2.1.8)"] invoke = ["invoke (>=2.0)"] -[[package]] -name = "pip" -version = "24.3.1" -description = "The PyPA recommended tool for installing Python packages." -optional = false -python-versions = ">=3.8" -files = [ - {file = "pip-24.3.1-py3-none-any.whl", hash = "sha256:3790624780082365f47549d032f3770eeb2b1e8bd1f7b2e02dace1afa361b4ed"}, - {file = "pip-24.3.1.tar.gz", hash = "sha256:ebcb60557f2aefabc2e0f918751cd24ea0d56d8ec5445fe1807f1d2109660b99"}, -] - [[package]] name = "platformdirs" version = "4.3.6" @@ -1373,18 +1362,15 @@ test = ["build[virtualenv] (>=1.0.3)", "filelock (>=3.4.0)", "importlib-metadata [[package]] name = "simpleeval" -version = "1.0.1" +version = "1.0.0" description = "A simple, safe single expression evaluator library." optional = false python-versions = ">=3.9" files = [ - {file = "simpleeval-1.0.1-py3-none-any.whl", hash = "sha256:1928b4a5528099012e73de532d3293a5c7038c103111dda69da679ba3bee4352"}, - {file = "simpleeval-1.0.1.tar.gz", hash = "sha256:3b95f8b04d35cf1f793749fc3034d332dafb20e71fadf56631b4642fcc84a26a"}, + {file = "simpleeval-1.0.0-py3-none-any.whl", hash = "sha256:704817f39879b42d81777f02e2dd28dde45c7f9c3fd84cea0d6dbde85c3efcff"}, + {file = "simpleeval-1.0.0.tar.gz", hash = "sha256:f3d259deeb751d34c63e56747bab384efad63a2dbdb4f130281c42279788ac3c"}, ] -[package.dependencies] -pip = ">=24.2" - [[package]] name = "simplejson" version = "3.19.3" @@ -1506,23 +1492,21 @@ files = [ [[package]] name = "singer-sdk" -version = "0.41.0" +version = "0.42.0a3.post10.dev0+b67b565a" description = "A framework for building Singer taps" optional = false python-versions = ">=3.8" -files = [ - {file = "singer_sdk-0.41.0-py3-none-any.whl", hash = "sha256:9570377d043239c04d38d4193e0c6e164949d07382234c5895e5ea1ba273e260"}, - {file = "singer_sdk-0.41.0.tar.gz", hash = "sha256:be3a4b0ae034eda445e7dd9378999f9d19d8135fd14c9135e3bc5deaf5dbd3ad"}, -] +files = [] +develop = false [package.dependencies] backoff = {version = ">=2.0.0", markers = "python_version < \"4\""} backports-datetime-fromisoformat = {version = ">=2.0.1", markers = "python_version < \"3.11\""} -click = ">=8.0,<9.0" +click = "~=8.0" fs = ">=2.4.16" fsspec = ">=2024.9.0" importlib-metadata = {version = "<9.0.0", markers = "python_version < \"3.12\""} -importlib-resources = {version = ">=5.12.0,<6.2.0 || >6.2.0,<6.3.0 || >6.3.0,<6.3.1 || >6.3.1", markers = "python_version < \"3.10\""} +importlib-resources = {version = ">=5.12.0,!=6.2.0,!=6.3.0,!=6.3.1", markers = "python_version < \"3.10\""} inflection = ">=0.5.1" joblib = ">=1.3.0" jsonpath-ng = ">=1.5.3" @@ -1533,21 +1517,26 @@ PyYAML = ">=6.0" referencing = ">=0.30.0" requests = ">=2.25.1" setuptools = "<=70.3.0" -simpleeval = ">=0.9.13" +simpleeval = {version = ">=0.9.13,!=1.0.1", markers = "python_version >= \"3.9\""} simplejson = ">=3.17.6" sqlalchemy = ">=1.4,<3.0" typing-extensions = ">=4.5.0" -urllib3 = ">=1.26,<2" [package.extras] docs = ["furo (>=2024.5.6)", "myst-parser (>=3)", "pytest (>=7.2.1)", "sphinx (>=7)", "sphinx-copybutton (>=0.5.2)", "sphinx-inline-tabs (>=2023.4.21)", "sphinx-notfound-page (>=1.0.0)", "sphinx-reredirects (>=0.1.5)"] faker = ["faker (>=22.5)"] jwt = ["PyJWT (>=2.4,<3.0)", "cryptography (>=3.4.6)"] -parquet = ["numpy (>=1.22)", "numpy (>=1.22,<1.25)", "numpy (>=1.22,<2.1)", "pyarrow (>=13)"] +parquet = ["numpy (>=1.22)", "numpy (>=1.22,<1.25)", "numpy (>=1.22,<2.1)", "pyarrow (>=13)", "pyarrow (>=13,<18)"] s3 = ["fs-s3fs (>=1.1.1)", "s3fs (>=2024.9.0)"] ssh = ["paramiko (>=3.3.0)"] testing = ["pytest (>=7.2.1)"] +[package.source] +type = "git" +url = "https://github.com/meltano/sdk.git" +reference = "refs/pull/2732/head" +resolved_reference = "b67b565ad7a09d0a6f96c599a429fbf21635a8da" + [[package]] name = "six" version = "1.16.0" @@ -1833,4 +1822,4 @@ faker = ["faker"] [metadata] lock-version = "2.0" python-versions = ">=3.9" -content-hash = "77bb7bd159ea661a4a77a7a049e643bfe6ec2a9e54505a04f711dba71e86aec0" +content-hash = "b5b2f62d1c9b1c80eb8147861b727f0e42a17d1cae8cb3be82fa9d426b788c69" diff --git a/pyproject.toml b/pyproject.toml index ef5813d1..5a013ab9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,7 +39,8 @@ sqlalchemy = "~=2.0" sshtunnel = "0.4.0" [tool.poetry.dependencies.singer-sdk] -version = "~=0.41.0" +git = "https://github.com/meltano/sdk.git" +rev = "refs/pull/2732/head" [tool.poetry.extras] faker = ["faker"] diff --git a/target_postgres/connector.py b/target_postgres/connector.py index 6ba09b9e..58a63167 100644 --- a/target_postgres/connector.py +++ b/target_postgres/connector.py @@ -214,7 +214,7 @@ def clone_table( new_table.create(bind=connection) return new_table - def to_sql_type(self, jsonschema_type: dict) -> sa.types.TypeEngine: # type: ignore[override] + def to_sql_type(self, jsonschema_type: dict) -> sa.types.TypeEngine: """Return a JSON Schema representation of the provided type. By default will call `typing.to_sql_type()`.