From f8db43ac72e71ca04b9f86580cbd515f84e14b0a Mon Sep 17 00:00:00 2001 From: Anders Date: Thu, 13 Jul 2023 11:07:11 -0400 Subject: [PATCH] hard pin to latest compatible version (#530) * hard pin to latest compatible version * min ver for cname usage https://github.com/aws/amazon-redshift-python-driver/blob/eb2776686037ff47f07fd30d4726323cc43b872c/redshift_connector/iam_helper.py#L118 * redshift specific * Update setup.py --- .changes/unreleased/Fixes-20230713-105351.yaml | 6 ++++++ setup.py | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 .changes/unreleased/Fixes-20230713-105351.yaml diff --git a/.changes/unreleased/Fixes-20230713-105351.yaml b/.changes/unreleased/Fixes-20230713-105351.yaml new file mode 100644 index 000000000..47193a357 --- /dev/null +++ b/.changes/unreleased/Fixes-20230713-105351.yaml @@ -0,0 +1,6 @@ +kind: Fixes +body: hard pin dep on redshift_connector +time: 2023-07-13T10:53:51.463072-04:00 +custom: + Author: dataders + Issue: 531 532 diff --git a/setup.py b/setup.py index 56d4fa101..7b4856351 100644 --- a/setup.py +++ b/setup.py @@ -84,8 +84,10 @@ def _core_version(plugin_version: str = _plugin_version()) -> str: install_requires=[ f"dbt-core~={_core_version()}", f"dbt-postgres~={_core_version()}", - "boto3~=1.26.26", - "redshift-connector~=2.0.911", + "boto3~=1.26.157", + # dbt-redshift depends deeply on this package. it does not follow SemVer, therefore there have been breaking changes in previous patch releases + # Pin to the patch or minor version, and bump in each new minor version of dbt-redshift. + "redshift-connector==2.0.913", # installed via dbt-core but referenced directly; don't pin to avoid version conflicts with dbt-core "agate", ],