Skip to content

Commit

Permalink
Add dbt-core~=1.8.0a1 as convenience dep (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare authored Apr 3, 2024
1 parent 1c95a75 commit 5deb888
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changes/unreleased/Dependencies-20240403-135902.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Dependencies
body: Add `dbt-core` as a dependency to preserve backwards compatibility for installation
time: 2024-04-03T13:59:02.539298-04:00
custom:
Author: mikealfare
Issue: "44"
2 changes: 2 additions & 0 deletions hatch_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
BASE_DEPS = [
# psycopg2 dependency installed in custom hatch_build.py
"dbt-adapters>=0.1.0a1,<2.0",
# add dbt-core to ensure backwards compatibility of installation, this is not a functional dependency
"dbt-core>=1.8.0a1",
# installed via dbt-adapters but used directly
"dbt-common>=0.1.0a1,<2.0",
"agate>=1.0,<2.0",
Expand Down
8 changes: 7 additions & 1 deletion tests/functional/shared_tests/test_query_comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
BaseNullQueryComments,
BaseEmptyQueryComments,
)
import pytest


class TestQueryComments(BaseQueryComments):
Expand All @@ -17,7 +18,12 @@ class TestMacroQueryComments(BaseMacroQueryComments):


class TestMacroArgsQueryComments(BaseMacroArgsQueryComments):
pass
@pytest.mark.skip(
"This test is incorrectly comparing the version of `dbt-core`"
"to the version of `dbt-postgres`, which is not always the same."
)
def test_matches_comment(self, project, get_package_version):
pass


class TestMacroInvalidQueryComments(BaseMacroInvalidQueryComments):
Expand Down

0 comments on commit 5deb888

Please sign in to comment.