From e9a0717f19ae51755567c621875456ddbba5999d Mon Sep 17 00:00:00 2001 From: colin-rogers-dbt <111200756+colin-rogers-dbt@users.noreply.github.com> Date: Fri, 1 Mar 2024 15:07:49 -0800 Subject: [PATCH] update install_requires to allow for pre-release common/adapters (#920) --- setup.py | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/setup.py b/setup.py index 9cc644899..c49135a7d 100644 --- a/setup.py +++ b/setup.py @@ -42,17 +42,8 @@ def _get_plugin_version_dict(): return match.groupdict() -# require a compatible minor version (~=), prerelease if this is a prerelease -def _get_dbt_core_version(): - parts = _get_plugin_version_dict() - minor = "{major}.{minor}.0".format(**parts) - pre = parts["prekind"] + "1" if parts["prekind"] else "" - return f"{minor}{pre}" - - package_name = "dbt-snowflake" package_version = "1.8.0a1" -dbt_core_version = _get_dbt_core_version() description = """The Snowflake adapter plugin for dbt""" setup( @@ -67,9 +58,8 @@ def _get_dbt_core_version(): packages=find_namespace_packages(include=["dbt", "dbt.*"]), include_package_data=True, install_requires=[ - "dbt-core~={}".format(dbt_core_version), - "dbt-common<2.0", - "dbt-adapters<2.0", + "dbt-common>=0.1.0a1,<2.0", + "dbt-adapters>=0.1.0a1,<2.0", "snowflake-connector-python[secure-local-storage]~=3.0", # installed via dbt-core but referenced directly; don't pin to avoid version conflicts with dbt-core "agate",