From c6d22e828264270c45a2be86007cb6d0c50e749f Mon Sep 17 00:00:00 2001 From: Matthew McKnight <91097623+McKnight-42@users.noreply.github.com> Date: Thu, 13 Jul 2023 14:00:01 -0500 Subject: [PATCH] manual backport of pr 530 (#534) Co-authored-by: Anders --- .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", ],