-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update dbt-metricflow
dependencies to use dbt-*
1.8 packages
#1244
Conversation
4de8598
to
e55b4a3
Compare
dbt-metricflow
dependencies to use dbt-*
1.8 packagesdbt-metricflow
dependencies to use dbt-*
1.8 packages
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unless I'm missing something I think you've removed the optional install for dbt-trino. I'm assuming that's a mistake?
snowflake = [ | ||
"dbt-snowflake>=1.7.0, <1.8.0" | ||
] | ||
trino = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait, what happened to trino?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch - added.
@@ -0,0 +1 @@ | |||
dbt-bigquery>=1.7.0, <1.8.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this really the only way to do this? Having to update all these files is a drag.
We should be able to automate it if we need to do it often enough, so that's nice. Or maybe we can remove the dependency range and let the dbt-core version dictate what's acceptable via the pip resolver.
dbt-metricflow/pyproject.toml
Outdated
] | ||
redshift = [ | ||
"dbt-redshift>=1.7.0, <1.8.0" | ||
dbt-bigquery = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I really like alphabetical order for this kind of thing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated.
@@ -110,132 +104,123 @@ packages = ["metricflow", "metricflow-semantics/metricflow_semantics"] | |||
|
|||
[tool.hatch.envs.dev-env] | |||
description = "Environment for development. Includes a DuckDB-backed client." | |||
|
|||
pre-install-commands = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment block above this is is now out of date. Maybe update to explain what's going on here - like why do we need to install metricflow-semantics as a dev env dependency when it's already listed as part of the build?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need to install metricflow-semantics as a dev env dependency when it's already listed as part of the build?
Forgot to make the update in this commit - it was fixed in: #1246
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added the fix for this branch.
ceb6079
to
01dc251
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here's hoping the dev workflows remain reasonable!🤞
Resolves #1243
Description
This PR makes the following project configuration changes:
requirements.txt
-style files to share dependency definitions betweenmetricflow
anddbt-metricflow
.hatch
environment used for development. It seems to work with out them now.dbt-metricflow
dependencies to usedbt-*
1.8 packages