From 3e8860a7fa4ac0d754325b37ff705bf03230e610 Mon Sep 17 00:00:00 2001 From: Mike Alfare <13974384+mikealfare@users.noreply.github.com> Date: Fri, 21 Jun 2024 13:56:46 -0400 Subject: [PATCH] remove calculated version for dbt-postgres dependency (#850) --- setup.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/setup.py b/setup.py index c2649e66a..036ac30fb 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -import re import sys if sys.version_info < (3, 8): @@ -37,16 +36,6 @@ def _plugin_version() -> str: return attributes["version"] -def _plugin_version_trim() -> str: - """ - Pull the package version from the main package version file - """ - attributes = {} - exec(VERSION.read_text(), attributes) - pattern = r"\+build\d+$" - return re.sub(pattern, "", attributes["version"]) - - setup( name="dbt-redshift", version=_plugin_version(), @@ -61,7 +50,7 @@ def _plugin_version_trim() -> str: install_requires=[ "dbt-common>=0.1.0a1,<2.0", "dbt-adapters>=0.1.0a1,<2.0", - f"dbt-postgres~={_plugin_version_trim()}", + "dbt-postgres>=1.8,<1.10", # 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.1.1,>=2.0.913,!=2.0.914",