Skip to content

Commit

Permalink
add dbt-adapters
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-rogers-dbt committed Jan 16, 2024
1 parent 3fc6d07 commit 17607c1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion dagger/run_dbt_spark_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ async def get_spark_container(client: dagger.Client) -> (dagger.Container, str):
async def test_spark(test_args):
async with dagger.Connection(dagger.Config(log_output=sys.stderr)) as client:
test_profile = test_args.profile
req_files = client.host().directory("./", include=["*.txt", "*.env", "*.ini"])
req_files = client.host().directory("./", include=["*.txt", "*.env", "*.ini", "*.md", "setup.py"])
dbt_spark_dir = client.host().directory("./dbt")
test_dir = client.host().directory("./tests")
scripts = client.host().directory("./dagger/scripts")
Expand All @@ -99,6 +99,7 @@ async def test_spark(test_args):
.with_directory("/tests", test_dir)
.with_directory("/scripts", scripts)
.with_exec("./scripts/install_os_reqs.sh")
.with_exec(["pip", "install", "-e", "."])
.with_exec(["pip", "install", "-r", "requirements.txt"])
.with_exec(["pip", "install", "-r", "dev-requirements.txt"])
)
Expand Down
4 changes: 2 additions & 2 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# install latest changes in dbt-core
# TODO: how to automate switching from develop to version branches?
git+https://github.com/dbt-labs/dbt-core.git@er/remove-common-req-keep-legacy-logger#egg=dbt-core&subdirectory=core
git+https://github.com/dbt-labs/dbt-core.git@er/remove-common-req-keep-legacy-logger#egg=dbt-tests-adapter&subdirectory=tests/adapter
git+https://github.com/dbt-labs/dbt-core.git#egg=dbt-core&subdirectory=core
git+https://github.com/dbt-labs/dbt-core.git#egg=dbt-tests-adapter&subdirectory=tests/adapter

# if version 1.x or greater -> pin to major version
# if version 0.x -> pin to minor
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def _get_dbt_core_version():
install_requires=[
"sqlparams>=3.0.0",
"dbt-common @ git+https://github.com/dbt-labs/dbt-common.git#egg=dbt",
"dbt-adapters @ git+https://github.com/dbt-labs/dbt-adapters.git#egg=dbt",
],
extras_require={
"ODBC": odbc_extras,
Expand Down

0 comments on commit 17607c1

Please sign in to comment.