From 4867f0490bd3b3d38b2297a8c0c8bbae16c7adf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Ram=C3=ADrez=20Mondrag=C3=B3n?= Date: Fri, 22 Sep 2023 09:23:46 -0600 Subject: [PATCH] test: Test with singer-sdk @ main --- poetry.lock | 23 +++++++++++-------- pyproject.toml | 2 +- target_postgres/tests/test_target_postgres.py | 4 +--- 3 files changed, 16 insertions(+), 13 deletions(-) diff --git a/poetry.lock b/poetry.lock index 7e6c52ba..e7518bbd 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1512,30 +1512,28 @@ files = [ [[package]] name = "singer-sdk" -version = "0.36.1" +version = "0.37.0a4.post6.dev0+a0a6910a" description = "A framework for building Singer taps" optional = false python-versions = ">=3.8" -files = [ - {file = "singer_sdk-0.36.1-py3-none-any.whl", hash = "sha256:bce8c65320df77cd666db7033dc58fecc3af9af9bb777299f1c5a07faef32fd9"}, - {file = "singer_sdk-0.36.1.tar.gz", hash = "sha256:445263e9da946191e5a30b4464533b659f8fd9d8a6767cd66124e948ba6bf554"}, -] +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" cryptography = ">=3.4.6" fs = ">=2.4.16" importlib-metadata = {version = "<8.0.0", markers = "python_version < \"3.12\""} -importlib-resources = {version = ">=5.12.0,<6.2.0", markers = "python_version < \"3.9\""} +importlib-resources = {version = ">=5.12.0,!=6.2.0,!=6.3.0,!=6.3.1", markers = "python_version < \"3.9\""} inflection = ">=0.5.1" joblib = ">=1.3.0" jsonpath-ng = ">=1.5.3" jsonschema = ">=4.16.0" packaging = ">=23.1" pendulum = ">=2.1.0,<4" -PyJWT = ">=2.4,<3.0" +PyJWT = "~=2.4" python-dateutil = ">=2.8.2" python-dotenv = ">=0.20" PyYAML = ">=6.0" @@ -1550,10 +1548,17 @@ urllib3 = ">=1.26,<2" [package.extras] docs = ["furo (>=2022.12.7)", "myst-parser (>=1)", "pytest (>=7.2.1)", "sphinx (>=4.5)", "sphinx-autobuild (>=2021.3.14)", "sphinx-copybutton (>=0.3.1)", "sphinx-inline-tabs (>=2023.4.21)", "sphinx-notfound-page (>=1.0.0)", "sphinx-reredirects (>=0.1.1)"] faker = ["faker (>=22.5,<25.0)"] +jwt = [] parquet = ["numpy (>=1.22)", "numpy (>=1.22,<1.25)", "pyarrow (>=13)"] s3 = ["fs-s3fs (>=1.1.1)"] testing = ["pytest (>=7.2.1)", "pytest-durations (>=1.2.0)"] +[package.source] +type = "git" +url = "https://github.com/meltano/sdk.git" +reference = "HEAD" +resolved_reference = "a0a6910a05ab8a463bd959db2fd4c9bd4a5614c3" + [[package]] name = "six" version = "1.16.0" @@ -1835,4 +1840,4 @@ testing = ["big-O", "jaraco.functools", "jaraco.itertools", "more-itertools", "p [metadata] lock-version = "2.0" python-versions = ">=3.8" -content-hash = "687185a035947f7d1ac68bdfeb20b98e112fcf4dfec2a53e761db963792a44e5" +content-hash = "92dea30a2c973b3f72aa6c0a185be78f6cf9a650a6b59704790c5a39b323ad2c" diff --git a/pyproject.toml b/pyproject.toml index a0c4540a..a5406a3b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,7 +37,7 @@ sqlalchemy = "~=2.0" sshtunnel = "0.4.0" [tool.poetry.dependencies.singer-sdk] -version = "~=0.36.0" +git = "https://github.com/meltano/sdk.git" [tool.poetry.group.dev.dependencies] pytest = ">=7.4.2" diff --git a/target_postgres/tests/test_target_postgres.py b/target_postgres/tests/test_target_postgres.py index 9bc0acc1..480cdc3c 100644 --- a/target_postgres/tests/test_target_postgres.py +++ b/target_postgres/tests/test_target_postgres.py @@ -2,17 +2,15 @@ # flake8: noqa import copy -import datetime import io from contextlib import redirect_stdout from decimal import Decimal from pathlib import Path -import jsonschema import pytest import sqlalchemy from singer_sdk.exceptions import InvalidRecord, MissingKeyPropertiesError -from singer_sdk.testing import get_target_test_class, sync_end_to_end +from singer_sdk.testing import sync_end_to_end from sqlalchemy.dialects.postgresql import ARRAY from sqlalchemy.types import TEXT, TIMESTAMP