Skip to content
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

refactor(dbt): move scaffold to subdirectory #19545

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions python_modules/libraries/dagster-dbt/dagster_dbt/cli/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from rich.syntax import Syntax
from typing_extensions import Annotated

from ..include import STARTER_PROJECT_PATH
from ..include.starter_project import DAGSTER_DBT_STARTER_PROJECT_PATH
from ..version import __version__ as dagster_dbt_version

app = typer.Typer(
Expand Down Expand Up @@ -121,7 +121,7 @@ def copy_scaffold(
for target in profile["outputs"].values()
]

shutil.copytree(src=STARTER_PROJECT_PATH, dst=dagster_project_dir)
shutil.copytree(src=DAGSTER_DBT_STARTER_PROJECT_PATH, dst=dagster_project_dir)
dagster_project_dir.joinpath("__init__.py").unlink()

if use_dbt_project_package_data_dir:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
from pathlib import Path

STARTER_PROJECT_PATH = Path(__file__).joinpath("..").resolve()
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from pathlib import Path

DAGSTER_DBT_STARTER_PROJECT_PATH = Path(__file__).joinpath("..").resolve()