Skip to content

Commit

Permalink
remove calculated version for dbt-postgres dependency (#850)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare authored Jun 21, 2024
1 parent 3885699 commit 3e8860a
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python
import re
import sys

if sys.version_info < (3, 8):
Expand Down Expand Up @@ -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(),
Expand All @@ -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",
Expand Down

0 comments on commit 3e8860a

Please sign in to comment.