Skip to content

Commit

Permalink
update install_requires to allow for pre-release common/adapters (#920)
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-rogers-dbt authored Mar 1, 2024
1 parent 9d999e5 commit e9a0717
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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",
Expand Down

0 comments on commit e9a0717

Please sign in to comment.