Skip to content

Commit

Permalink
Update legacy dbt dependency spec to cover future requirements
Browse files Browse the repository at this point in the history
Our legacy dbt integration laid out a bunch of optional dependencies
on dbt core 1.4 plus various adapter packages.

The integration plan for MetricFlow 0.200.0 involves a dependency
link with dbt core 1.6 in order to enable query execution through
dbt adapters and reading from dbt project metadata for parsing
the semantic manifest.

This commit removes the legacy dependency structures and adds a
temporary dependency on dbt core 1.5. For the purposes of our
current integration steps 1.5 is adequate, and at the moment the
1.6 beta releases do not appear to be published for all of the
adapters we want to test.
  • Loading branch information
tlento committed Jun 7, 2023
1 parent 4e64f16 commit 8025f64
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ dependencies = [
"SQLAlchemy~=1.4.42",
"click>=7.1.2",
"databricks-sql-connector==2.0.3",
# Pin to 1.5 for now
"dbt-core==1.5.0",
"dbt-semantic-interfaces==0.1.0.dev4",
"duckdb-engine~=0.1.8",
"duckdb==0.3.4",
Expand Down Expand Up @@ -69,23 +71,7 @@ Documentation = "https://transform.co/metricflow"
mf = 'metricflow.cli.main:cli'

[project.optional-dependencies]
dbt-snowflake = [
"dbt-snowflake==1.4.2"
]
dbt-redshift = [
"dbt-redshift==1.4.0"
]
dbt-postgres = [
"dbt-postgres==1.4.0"
]
dbt-bigquery = [
"dbt-bigquery==1.4.3"
]
dbt-metadata-client = [
"dbt-metadata-client~=0.1.0"
]
dev-packages = [
"dbt-core==1.4.0",
"mypy~=1.3.0",
"pre-commit~=3.2.2",
"pytest-mock~=3.7.0",
Expand All @@ -111,11 +97,6 @@ exclude = [
[tool.hatch.envs.dev-env]
description = "Environment for development."
features = [
"dbt-redshift",
"dbt-snowflake",
"dbt-bigquery",
"dbt-metadata-client",
"dbt-postgres",
"dev-packages",
]

Expand Down

0 comments on commit 8025f64

Please sign in to comment.