From 99dd3691444e3dfad9f426b2cafe214fafa3bfcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Ram=C3=ADrez-Mondrag=C3=B3n?= Date: Thu, 1 Aug 2024 08:42:37 -0600 Subject: [PATCH] Rename to "dbt_files" --- dbt_ext/{files => dbt_files}/__init__.py | 0 dbt_ext/{files => dbt_files}/bundle/transform/.gitignore | 0 dbt_ext/{files => dbt_files}/bundle/transform/dbt_project.yml | 0 dbt_ext/{files => dbt_files}/bundle/transform/models/.gitkeep | 0 dbt_ext/{files => dbt_files}/profiles/athena/profiles.yml | 0 dbt_ext/{files => dbt_files}/profiles/bigquery/profiles.yaml | 0 dbt_ext/{files => dbt_files}/profiles/duckdb/profiles.yml | 0 dbt_ext/{files => dbt_files}/profiles/postgres/profiles.yml | 0 dbt_ext/{files => dbt_files}/profiles/redshift/profiles.yml | 0 dbt_ext/{files => dbt_files}/profiles/snowflake/profiles.yml | 0 dbt_ext/extension.py | 4 ++-- 11 files changed, 2 insertions(+), 2 deletions(-) rename dbt_ext/{files => dbt_files}/__init__.py (100%) rename dbt_ext/{files => dbt_files}/bundle/transform/.gitignore (100%) rename dbt_ext/{files => dbt_files}/bundle/transform/dbt_project.yml (100%) rename dbt_ext/{files => dbt_files}/bundle/transform/models/.gitkeep (100%) rename dbt_ext/{files => dbt_files}/profiles/athena/profiles.yml (100%) rename dbt_ext/{files => dbt_files}/profiles/bigquery/profiles.yaml (100%) rename dbt_ext/{files => dbt_files}/profiles/duckdb/profiles.yml (100%) rename dbt_ext/{files => dbt_files}/profiles/postgres/profiles.yml (100%) rename dbt_ext/{files => dbt_files}/profiles/redshift/profiles.yml (100%) rename dbt_ext/{files => dbt_files}/profiles/snowflake/profiles.yml (100%) diff --git a/dbt_ext/files/__init__.py b/dbt_ext/dbt_files/__init__.py similarity index 100% rename from dbt_ext/files/__init__.py rename to dbt_ext/dbt_files/__init__.py diff --git a/dbt_ext/files/bundle/transform/.gitignore b/dbt_ext/dbt_files/bundle/transform/.gitignore similarity index 100% rename from dbt_ext/files/bundle/transform/.gitignore rename to dbt_ext/dbt_files/bundle/transform/.gitignore diff --git a/dbt_ext/files/bundle/transform/dbt_project.yml b/dbt_ext/dbt_files/bundle/transform/dbt_project.yml similarity index 100% rename from dbt_ext/files/bundle/transform/dbt_project.yml rename to dbt_ext/dbt_files/bundle/transform/dbt_project.yml diff --git a/dbt_ext/files/bundle/transform/models/.gitkeep b/dbt_ext/dbt_files/bundle/transform/models/.gitkeep similarity index 100% rename from dbt_ext/files/bundle/transform/models/.gitkeep rename to dbt_ext/dbt_files/bundle/transform/models/.gitkeep diff --git a/dbt_ext/files/profiles/athena/profiles.yml b/dbt_ext/dbt_files/profiles/athena/profiles.yml similarity index 100% rename from dbt_ext/files/profiles/athena/profiles.yml rename to dbt_ext/dbt_files/profiles/athena/profiles.yml diff --git a/dbt_ext/files/profiles/bigquery/profiles.yaml b/dbt_ext/dbt_files/profiles/bigquery/profiles.yaml similarity index 100% rename from dbt_ext/files/profiles/bigquery/profiles.yaml rename to dbt_ext/dbt_files/profiles/bigquery/profiles.yaml diff --git a/dbt_ext/files/profiles/duckdb/profiles.yml b/dbt_ext/dbt_files/profiles/duckdb/profiles.yml similarity index 100% rename from dbt_ext/files/profiles/duckdb/profiles.yml rename to dbt_ext/dbt_files/profiles/duckdb/profiles.yml diff --git a/dbt_ext/files/profiles/postgres/profiles.yml b/dbt_ext/dbt_files/profiles/postgres/profiles.yml similarity index 100% rename from dbt_ext/files/profiles/postgres/profiles.yml rename to dbt_ext/dbt_files/profiles/postgres/profiles.yml diff --git a/dbt_ext/files/profiles/redshift/profiles.yml b/dbt_ext/dbt_files/profiles/redshift/profiles.yml similarity index 100% rename from dbt_ext/files/profiles/redshift/profiles.yml rename to dbt_ext/dbt_files/profiles/redshift/profiles.yml diff --git a/dbt_ext/files/profiles/snowflake/profiles.yml b/dbt_ext/dbt_files/profiles/snowflake/profiles.yml similarity index 100% rename from dbt_ext/files/profiles/snowflake/profiles.yml rename to dbt_ext/dbt_files/profiles/snowflake/profiles.yml diff --git a/dbt_ext/extension.py b/dbt_ext/extension.py index b47b694..04e4360 100644 --- a/dbt_ext/extension.py +++ b/dbt_ext/extension.py @@ -14,7 +14,7 @@ from meltano.edk.process import Invoker, log_subprocess_error from meltano.edk.types import ExecArg -from . import files +from . import dbt_files try: from importlib import resources @@ -132,7 +132,7 @@ def initialize(self, force: bool = False) -> None: log.info("creating dbt project directory", path=self.dbt_project_dir) self.dbt_project_dir.mkdir(parents=True, exist_ok=True) - files_dir = resources.files(files) + files_dir = resources.files(dbt_files) for entry in files_dir.joinpath("bundle", "transform").iterdir(): if entry.name == "__pycache__":