From c222dfc34d9d440aa03b75f67d7087e94b0efc0f Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Mon, 6 Dec 2021 13:23:26 +0100 Subject: [PATCH 1/2] fix: Override BaseHook init to support Airflow v1 --- airflow_dbt_python/hooks/dbt.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/airflow_dbt_python/hooks/dbt.py b/airflow_dbt_python/hooks/dbt.py index 97e96b1c..a7e8f75a 100644 --- a/airflow_dbt_python/hooks/dbt.py +++ b/airflow_dbt_python/hooks/dbt.py @@ -384,6 +384,9 @@ class DbtHook(BaseHook): Allows for running dbt tasks and provides required configurations for each task. """ + def __init__(self): + pass + def get_config_factory(self, command: str) -> ConfigFactory: """Get a ConfigFactory given a dbt command string.""" return ConfigFactory.from_str(command) From de95aa28eac4976a3a7149f158c36eee8f56847e Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Mon, 6 Dec 2021 13:27:42 +0100 Subject: [PATCH 2/2] chore: Patch version bump to v0.9.3 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 595b52a9..c0ac7266 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "airflow-dbt-python" -version = "0.9.2" +version = "0.9.3" description = "A dbt operator for Airflow that uses the dbt Python package" authors = ["Tomás Farías Santana "] license = "MIT"