apache-airflow-providers-dbt-cloud 4.4.0__py3-none-any.whl → 4.4.1rc1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of apache-airflow-providers-dbt-cloud might be problematic. Click here for more details.

@@ -29,7 +29,7 @@ from airflow import __version__ as airflow_version
29
29
 
30
30
  __all__ = ["__version__"]
31
31
 
32
- __version__ = "4.4.0"
32
+ __version__ = "4.4.1"
33
33
 
34
34
  if packaging.version.parse(packaging.version.parse(airflow_version).base_version) < packaging.version.parse(
35
35
  "2.10.0"
@@ -20,11 +20,11 @@ import asyncio
20
20
  import json
21
21
  import time
22
22
  import warnings
23
- from collections.abc import Sequence
23
+ from collections.abc import Callable, Sequence
24
24
  from enum import Enum
25
25
  from functools import cached_property, wraps
26
26
  from inspect import signature
27
- from typing import TYPE_CHECKING, Any, Callable, TypedDict, TypeVar, cast
27
+ from typing import TYPE_CHECKING, Any, TypedDict, TypeVar, cast
28
28
 
29
29
  import aiohttp
30
30
  from asgiref.sync import sync_to_async
@@ -283,7 +283,7 @@ class DbtCloudHook(HttpHook):
283
283
  if not _connection.password:
284
284
  raise AirflowException("An API token is required to connect to dbt Cloud.")
285
285
 
286
- return _connection
286
+ return _connection # type: ignore[return-value]
287
287
 
288
288
  def get_conn(self, *args, **kwargs) -> Session:
289
289
  tenant = self._get_tenant_domain(self.connection)
@@ -24,8 +24,6 @@ from pathlib import Path
24
24
  from typing import TYPE_CHECKING, Any
25
25
 
26
26
  from airflow.configuration import conf
27
- from airflow.models import BaseOperator
28
- from airflow.providers.common.compat.version_compat import AIRFLOW_V_3_0_PLUS
29
27
  from airflow.providers.dbt.cloud.hooks.dbt import (
30
28
  DbtCloudHook,
31
29
  DbtCloudJobRunException,
@@ -34,18 +32,16 @@ from airflow.providers.dbt.cloud.hooks.dbt import (
34
32
  )
35
33
  from airflow.providers.dbt.cloud.triggers.dbt import DbtCloudRunJobTrigger
36
34
  from airflow.providers.dbt.cloud.utils.openlineage import generate_openlineage_events_from_dbt_cloud_run
35
+ from airflow.providers.dbt.cloud.version_compat import (
36
+ BaseOperator,
37
+ BaseOperatorLink,
38
+ XCom,
39
+ )
37
40
 
38
41
  if TYPE_CHECKING:
39
42
  from airflow.providers.openlineage.extractors import OperatorLineage
40
43
  from airflow.utils.context import Context
41
44
 
42
- if AIRFLOW_V_3_0_PLUS:
43
- from airflow.sdk import BaseOperatorLink
44
- from airflow.sdk.execution_time.xcom import XCom
45
- else:
46
- from airflow.models import XCom # type: ignore[no-redef]
47
- from airflow.models.baseoperatorlink import BaseOperatorLink # type: ignore[no-redef]
48
-
49
45
 
50
46
  class DbtCloudRunJobOperatorLink(BaseOperatorLink):
51
47
  """Allows users to monitor the triggered job run directly in dbt Cloud."""
@@ -25,7 +25,12 @@ from airflow.exceptions import AirflowException
25
25
  from airflow.providers.dbt.cloud.hooks.dbt import DbtCloudHook, DbtCloudJobRunException, DbtCloudJobRunStatus
26
26
  from airflow.providers.dbt.cloud.triggers.dbt import DbtCloudRunJobTrigger
27
27
  from airflow.providers.dbt.cloud.utils.openlineage import generate_openlineage_events_from_dbt_cloud_run
28
- from airflow.sensors.base import BaseSensorOperator
28
+ from airflow.providers.dbt.cloud.version_compat import AIRFLOW_V_3_0_PLUS
29
+
30
+ if AIRFLOW_V_3_0_PLUS:
31
+ from airflow.sdk import BaseSensorOperator
32
+ else:
33
+ from airflow.sensors.base import BaseSensorOperator # type: ignore[no-redef]
29
34
 
30
35
  if TYPE_CHECKING:
31
36
  from airflow.providers.openlineage.extractors import OperatorLineage
@@ -33,3 +33,19 @@ def get_base_airflow_version_tuple() -> tuple[int, int, int]:
33
33
 
34
34
 
35
35
  AIRFLOW_V_3_0_PLUS = get_base_airflow_version_tuple() >= (3, 0, 0)
36
+
37
+ if AIRFLOW_V_3_0_PLUS:
38
+ from airflow.sdk import BaseOperator, BaseOperatorLink, BaseSensorOperator
39
+ from airflow.sdk.execution_time.xcom import XCom
40
+ else:
41
+ from airflow.models import BaseOperator, XCom
42
+ from airflow.models.baseoperatorlink import BaseOperatorLink # type: ignore[no-redef]
43
+ from airflow.sensors.base import BaseSensorOperator # type: ignore[no-redef]
44
+
45
+ __all__ = [
46
+ "AIRFLOW_V_3_0_PLUS",
47
+ "BaseOperator",
48
+ "BaseSensorOperator",
49
+ "BaseOperatorLink",
50
+ "XCom",
51
+ ]
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: apache-airflow-providers-dbt-cloud
3
- Version: 4.4.0
3
+ Version: 4.4.1rc1
4
4
  Summary: Provider package apache-airflow-providers-dbt-cloud for Apache Airflow
5
5
  Keywords: airflow-provider,dbt.cloud,airflow,integration
6
6
  Author-email: Apache Software Foundation <dev@airflow.apache.org>
7
7
  Maintainer-email: Apache Software Foundation <dev@airflow.apache.org>
8
- Requires-Python: ~=3.9
8
+ Requires-Python: ~=3.10
9
9
  Description-Content-Type: text/x-rst
10
10
  Classifier: Development Status :: 5 - Production/Stable
11
11
  Classifier: Environment :: Console
@@ -15,20 +15,19 @@ Classifier: Intended Audience :: System Administrators
15
15
  Classifier: Framework :: Apache Airflow
16
16
  Classifier: Framework :: Apache Airflow :: Provider
17
17
  Classifier: License :: OSI Approved :: Apache Software License
18
- Classifier: Programming Language :: Python :: 3.9
19
18
  Classifier: Programming Language :: Python :: 3.10
20
19
  Classifier: Programming Language :: Python :: 3.11
21
20
  Classifier: Programming Language :: Python :: 3.12
22
21
  Classifier: Topic :: System :: Monitoring
23
- Requires-Dist: apache-airflow>=2.10.0
24
- Requires-Dist: apache-airflow-providers-common-compat>=1.6.0
22
+ Requires-Dist: apache-airflow>=2.10.0rc1
23
+ Requires-Dist: apache-airflow-providers-common-compat>=1.6.0rc1
25
24
  Requires-Dist: apache-airflow-providers-http
26
25
  Requires-Dist: asgiref>=2.3.0
27
26
  Requires-Dist: aiohttp>=3.9.2
28
- Requires-Dist: apache-airflow-providers-openlineage>=2.3.0 ; extra == "openlineage"
27
+ Requires-Dist: apache-airflow-providers-openlineage>=2.3.0rc1 ; extra == "openlineage"
29
28
  Project-URL: Bug Tracker, https://github.com/apache/airflow/issues
30
- Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-dbt-cloud/4.4.0/changelog.html
31
- Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-dbt-cloud/4.4.0
29
+ Project-URL: Changelog, https://airflow.staged.apache.org/docs/apache-airflow-providers-dbt-cloud/4.4.1/changelog.html
30
+ Project-URL: Documentation, https://airflow.staged.apache.org/docs/apache-airflow-providers-dbt-cloud/4.4.1
32
31
  Project-URL: Mastodon, https://fosstodon.org/@airflow
33
32
  Project-URL: Slack Chat, https://s.apache.org/airflow-slack
34
33
  Project-URL: Source Code, https://github.com/apache/airflow
@@ -60,7 +59,7 @@ Provides-Extra: openlineage
60
59
 
61
60
  Package ``apache-airflow-providers-dbt-cloud``
62
61
 
63
- Release: ``4.4.0``
62
+ Release: ``4.4.1``
64
63
 
65
64
 
66
65
  `dbt Cloud <https://www.getdbt.com/product/dbt-cloud/>`__
@@ -73,7 +72,7 @@ This is a provider package for ``dbt.cloud`` provider. All classes for this prov
73
72
  are in ``airflow.providers.dbt.cloud`` python package.
74
73
 
75
74
  You can find package information and changelog for the provider
76
- in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-dbt-cloud/4.4.0/>`_.
75
+ in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-dbt-cloud/4.4.1/>`_.
77
76
 
78
77
  Installation
79
78
  ------------
@@ -82,7 +81,7 @@ You can install this package on top of an existing Airflow 2 installation (see `
82
81
  for the minimum Airflow version supported) via
83
82
  ``pip install apache-airflow-providers-dbt-cloud``
84
83
 
85
- The package supports the following python versions: 3.9,3.10,3.11,3.12
84
+ The package supports the following python versions: 3.10,3.11,3.12
86
85
 
87
86
  Requirements
88
87
  ------------
@@ -119,5 +118,5 @@ Dependent package
119
118
  ================================================================================================================== =================
120
119
 
121
120
  The changelog for the provider package can be found in the
122
- `changelog <https://airflow.apache.org/docs/apache-airflow-providers-dbt-cloud/4.4.0/changelog.html>`_.
121
+ `changelog <https://airflow.apache.org/docs/apache-airflow-providers-dbt-cloud/4.4.1/changelog.html>`_.
123
122
 
@@ -0,0 +1,18 @@
1
+ airflow/providers/dbt/cloud/LICENSE,sha256=gXPVwptPlW1TJ4HSuG5OMPg-a3h43OGMkZRR1rpwfJA,10850
2
+ airflow/providers/dbt/cloud/__init__.py,sha256=9APa-w8UaqbkN-r-CLfv7rdFq2zKN-FCa_V9DHVgqyQ,1498
3
+ airflow/providers/dbt/cloud/get_provider_info.py,sha256=ufODYanp90_NPW1UftzGIwwG65Olb5l5PfSp0Mo1SOs,2507
4
+ airflow/providers/dbt/cloud/version_compat.py,sha256=xlj-5p7JK_pkXUjSEuNRRq9GxBOmhA0AayCPlMh_XiM,2044
5
+ airflow/providers/dbt/cloud/hooks/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
6
+ airflow/providers/dbt/cloud/hooks/dbt.py,sha256=ltmfXlILc3GNuckl54AyGDCREkfnP_4qNR983ylw9fI,34568
7
+ airflow/providers/dbt/cloud/operators/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
8
+ airflow/providers/dbt/cloud/operators/dbt.py,sha256=H9JcxqHjBEyd9K1JNvwtblydZLCx7vaOoF8QvKdTYjw,17641
9
+ airflow/providers/dbt/cloud/sensors/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
10
+ airflow/providers/dbt/cloud/sensors/dbt.py,sha256=x3F077-nTjxOEfQlgDuICIRJTQMnmc59yfesLZ3AOmE,5338
11
+ airflow/providers/dbt/cloud/triggers/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
12
+ airflow/providers/dbt/cloud/triggers/dbt.py,sha256=Oabdc7FcNhCQxkjDC5SqAiYEw4hSZ9mQGZgSt36a1E0,4707
13
+ airflow/providers/dbt/cloud/utils/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
14
+ airflow/providers/dbt/cloud/utils/openlineage.py,sha256=mA0EusjqzHgF3NrHRyWGpWJ3ZGtflXU6Q1l39qhJREQ,8058
15
+ apache_airflow_providers_dbt_cloud-4.4.1rc1.dist-info/entry_points.txt,sha256=c18L1WEEK18WQeEGrm9kMVqutiYJHiWGH5jU1JqnToE,105
16
+ apache_airflow_providers_dbt_cloud-4.4.1rc1.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
17
+ apache_airflow_providers_dbt_cloud-4.4.1rc1.dist-info/METADATA,sha256=RMngLsOEEMtOGk_9XS0LFf1wK6dJeWABfIcFVhcaiTM,5733
18
+ apache_airflow_providers_dbt_cloud-4.4.1rc1.dist-info/RECORD,,
@@ -1,18 +0,0 @@
1
- airflow/providers/dbt/cloud/LICENSE,sha256=gXPVwptPlW1TJ4HSuG5OMPg-a3h43OGMkZRR1rpwfJA,10850
2
- airflow/providers/dbt/cloud/__init__.py,sha256=lNNmuCI6hZ8UIKQx7Lu8MoUk8SVTifn510qgSIcbgCw,1498
3
- airflow/providers/dbt/cloud/get_provider_info.py,sha256=ufODYanp90_NPW1UftzGIwwG65Olb5l5PfSp0Mo1SOs,2507
4
- airflow/providers/dbt/cloud/version_compat.py,sha256=j5PCtXvZ71aBjixu-EFTNtVDPsngzzs7os0ZQDgFVDk,1536
5
- airflow/providers/dbt/cloud/hooks/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
6
- airflow/providers/dbt/cloud/hooks/dbt.py,sha256=jGE_QOeYhJvl11xV9zQ3Jq6xApOQrKovbZS9smCT9bI,34538
7
- airflow/providers/dbt/cloud/operators/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
8
- airflow/providers/dbt/cloud/operators/dbt.py,sha256=cqgSesAOi-lZgsFw09a4pWyspx8pQWXScODqZVIsFTg,17931
9
- airflow/providers/dbt/cloud/sensors/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
10
- airflow/providers/dbt/cloud/sensors/dbt.py,sha256=OGf-VNKcCNCrImrdE8PudmtDak_MKJfPhmaf7_ccOLg,5157
11
- airflow/providers/dbt/cloud/triggers/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
12
- airflow/providers/dbt/cloud/triggers/dbt.py,sha256=Oabdc7FcNhCQxkjDC5SqAiYEw4hSZ9mQGZgSt36a1E0,4707
13
- airflow/providers/dbt/cloud/utils/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
14
- airflow/providers/dbt/cloud/utils/openlineage.py,sha256=mA0EusjqzHgF3NrHRyWGpWJ3ZGtflXU6Q1l39qhJREQ,8058
15
- apache_airflow_providers_dbt_cloud-4.4.0.dist-info/entry_points.txt,sha256=c18L1WEEK18WQeEGrm9kMVqutiYJHiWGH5jU1JqnToE,105
16
- apache_airflow_providers_dbt_cloud-4.4.0.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
17
- apache_airflow_providers_dbt_cloud-4.4.0.dist-info/METADATA,sha256=2O45BkZ4wwRpi-_GTSjNMPwyDI3jq0dsbkwePQjOV_A,5760
18
- apache_airflow_providers_dbt_cloud-4.4.0.dist-info/RECORD,,