apache-airflow-providers-dbt-cloud 4.3.1__tar.gz → 4.3.2__tar.gz

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.
Files changed (17) hide show
  1. {apache_airflow_providers_dbt_cloud-4.3.1 → apache_airflow_providers_dbt_cloud-4.3.2}/PKG-INFO +16 -16
  2. {apache_airflow_providers_dbt_cloud-4.3.1 → apache_airflow_providers_dbt_cloud-4.3.2}/README.rst +11 -10
  3. {apache_airflow_providers_dbt_cloud-4.3.1 → apache_airflow_providers_dbt_cloud-4.3.2}/pyproject.toml +5 -7
  4. {apache_airflow_providers_dbt_cloud-4.3.1 → apache_airflow_providers_dbt_cloud-4.3.2}/src/airflow/providers/dbt/cloud/__init__.py +1 -1
  5. {apache_airflow_providers_dbt_cloud-4.3.1 → apache_airflow_providers_dbt_cloud-4.3.2}/src/airflow/providers/dbt/cloud/get_provider_info.py +4 -5
  6. {apache_airflow_providers_dbt_cloud-4.3.1 → apache_airflow_providers_dbt_cloud-4.3.2}/src/airflow/providers/dbt/cloud/hooks/dbt.py +2 -3
  7. {apache_airflow_providers_dbt_cloud-4.3.1 → apache_airflow_providers_dbt_cloud-4.3.2}/src/airflow/providers/dbt/cloud/utils/openlineage.py +3 -8
  8. {apache_airflow_providers_dbt_cloud-4.3.1 → apache_airflow_providers_dbt_cloud-4.3.2}/src/airflow/providers/dbt/cloud/LICENSE +0 -0
  9. {apache_airflow_providers_dbt_cloud-4.3.1 → apache_airflow_providers_dbt_cloud-4.3.2}/src/airflow/providers/dbt/cloud/hooks/__init__.py +0 -0
  10. {apache_airflow_providers_dbt_cloud-4.3.1 → apache_airflow_providers_dbt_cloud-4.3.2}/src/airflow/providers/dbt/cloud/operators/__init__.py +0 -0
  11. {apache_airflow_providers_dbt_cloud-4.3.1 → apache_airflow_providers_dbt_cloud-4.3.2}/src/airflow/providers/dbt/cloud/operators/dbt.py +0 -0
  12. {apache_airflow_providers_dbt_cloud-4.3.1 → apache_airflow_providers_dbt_cloud-4.3.2}/src/airflow/providers/dbt/cloud/sensors/__init__.py +0 -0
  13. {apache_airflow_providers_dbt_cloud-4.3.1 → apache_airflow_providers_dbt_cloud-4.3.2}/src/airflow/providers/dbt/cloud/sensors/dbt.py +0 -0
  14. {apache_airflow_providers_dbt_cloud-4.3.1 → apache_airflow_providers_dbt_cloud-4.3.2}/src/airflow/providers/dbt/cloud/triggers/__init__.py +0 -0
  15. {apache_airflow_providers_dbt_cloud-4.3.1 → apache_airflow_providers_dbt_cloud-4.3.2}/src/airflow/providers/dbt/cloud/triggers/dbt.py +0 -0
  16. {apache_airflow_providers_dbt_cloud-4.3.1 → apache_airflow_providers_dbt_cloud-4.3.2}/src/airflow/providers/dbt/cloud/utils/__init__.py +0 -0
  17. {apache_airflow_providers_dbt_cloud-4.3.1 → apache_airflow_providers_dbt_cloud-4.3.2}/src/airflow/providers/dbt/cloud/version_compat.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: apache-airflow-providers-dbt-cloud
3
- Version: 4.3.1
3
+ Version: 4.3.2
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>
@@ -21,19 +21,18 @@ Classifier: Programming Language :: Python :: 3.11
21
21
  Classifier: Programming Language :: Python :: 3.12
22
22
  Classifier: Topic :: System :: Monitoring
23
23
  Requires-Dist: apache-airflow>=2.9.0
24
+ Requires-Dist: apache-airflow-providers-common-compat>=1.6.0
24
25
  Requires-Dist: apache-airflow-providers-http
25
26
  Requires-Dist: asgiref>=2.3.0
26
27
  Requires-Dist: aiohttp>=3.9.2
27
- Requires-Dist: apache-airflow-providers-common-compat ; extra == "common-compat"
28
- Requires-Dist: apache-airflow-providers-openlineage>=1.7.0 ; extra == "openlineage"
28
+ Requires-Dist: apache-airflow-providers-openlineage>=2.0.0 ; extra == "openlineage"
29
29
  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.3.1/changelog.html
31
- Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-dbt-cloud/4.3.1
30
+ Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-dbt-cloud/4.3.2/changelog.html
31
+ Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-dbt-cloud/4.3.2
32
32
  Project-URL: Mastodon, https://fosstodon.org/@airflow
33
33
  Project-URL: Slack Chat, https://s.apache.org/airflow-slack
34
34
  Project-URL: Source Code, https://github.com/apache/airflow
35
35
  Project-URL: YouTube, https://www.youtube.com/channel/UCSXwxpWZQ7XZ1WL3wqevChA/
36
- Provides-Extra: common-compat
37
36
  Provides-Extra: openlineage
38
37
 
39
38
 
@@ -61,7 +60,7 @@ Provides-Extra: openlineage
61
60
 
62
61
  Package ``apache-airflow-providers-dbt-cloud``
63
62
 
64
- Release: ``4.3.1``
63
+ Release: ``4.3.2``
65
64
 
66
65
 
67
66
  `dbt Cloud <https://www.getdbt.com/product/dbt-cloud/>`__
@@ -74,7 +73,7 @@ This is a provider package for ``dbt.cloud`` provider. All classes for this prov
74
73
  are in ``airflow.providers.dbt.cloud`` python package.
75
74
 
76
75
  You can find package information and changelog for the provider
77
- in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-dbt-cloud/4.3.1/>`_.
76
+ in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-dbt-cloud/4.3.2/>`_.
78
77
 
79
78
  Installation
80
79
  ------------
@@ -88,14 +87,15 @@ The package supports the following python versions: 3.9,3.10,3.11,3.12
88
87
  Requirements
89
88
  ------------
90
89
 
91
- ================================= ==================
92
- PIP package Version required
93
- ================================= ==================
94
- ``apache-airflow`` ``>=2.9.0``
90
+ ========================================== ==================
91
+ PIP package Version required
92
+ ========================================== ==================
93
+ ``apache-airflow`` ``>=2.9.0``
94
+ ``apache-airflow-providers-common-compat`` ``>=1.6.0``
95
95
  ``apache-airflow-providers-http``
96
- ``asgiref`` ``>=2.3.0``
97
- ``aiohttp`` ``>=3.9.2``
98
- ================================= ==================
96
+ ``asgiref`` ``>=2.3.0``
97
+ ``aiohttp`` ``>=3.9.2``
98
+ ========================================== ==================
99
99
 
100
100
  Cross provider package dependencies
101
101
  -----------------------------------
@@ -119,5 +119,5 @@ Dependent package
119
119
  ================================================================================================================== =================
120
120
 
121
121
  The changelog for the provider package can be found in the
122
- `changelog <https://airflow.apache.org/docs/apache-airflow-providers-dbt-cloud/4.3.1/changelog.html>`_.
122
+ `changelog <https://airflow.apache.org/docs/apache-airflow-providers-dbt-cloud/4.3.2/changelog.html>`_.
123
123
 
@@ -23,7 +23,7 @@
23
23
 
24
24
  Package ``apache-airflow-providers-dbt-cloud``
25
25
 
26
- Release: ``4.3.1``
26
+ Release: ``4.3.2``
27
27
 
28
28
 
29
29
  `dbt Cloud <https://www.getdbt.com/product/dbt-cloud/>`__
@@ -36,7 +36,7 @@ This is a provider package for ``dbt.cloud`` provider. All classes for this prov
36
36
  are in ``airflow.providers.dbt.cloud`` python package.
37
37
 
38
38
  You can find package information and changelog for the provider
39
- in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-dbt-cloud/4.3.1/>`_.
39
+ in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-dbt-cloud/4.3.2/>`_.
40
40
 
41
41
  Installation
42
42
  ------------
@@ -50,14 +50,15 @@ The package supports the following python versions: 3.9,3.10,3.11,3.12
50
50
  Requirements
51
51
  ------------
52
52
 
53
- ================================= ==================
54
- PIP package Version required
55
- ================================= ==================
56
- ``apache-airflow`` ``>=2.9.0``
53
+ ========================================== ==================
54
+ PIP package Version required
55
+ ========================================== ==================
56
+ ``apache-airflow`` ``>=2.9.0``
57
+ ``apache-airflow-providers-common-compat`` ``>=1.6.0``
57
58
  ``apache-airflow-providers-http``
58
- ``asgiref`` ``>=2.3.0``
59
- ``aiohttp`` ``>=3.9.2``
60
- ================================= ==================
59
+ ``asgiref`` ``>=2.3.0``
60
+ ``aiohttp`` ``>=3.9.2``
61
+ ========================================== ==================
61
62
 
62
63
  Cross provider package dependencies
63
64
  -----------------------------------
@@ -81,4 +82,4 @@ Dependent package
81
82
  ================================================================================================================== =================
82
83
 
83
84
  The changelog for the provider package can be found in the
84
- `changelog <https://airflow.apache.org/docs/apache-airflow-providers-dbt-cloud/4.3.1/changelog.html>`_.
85
+ `changelog <https://airflow.apache.org/docs/apache-airflow-providers-dbt-cloud/4.3.2/changelog.html>`_.
@@ -25,7 +25,7 @@ build-backend = "flit_core.buildapi"
25
25
 
26
26
  [project]
27
27
  name = "apache-airflow-providers-dbt-cloud"
28
- version = "4.3.1"
28
+ version = "4.3.2"
29
29
  description = "Provider package apache-airflow-providers-dbt-cloud for Apache Airflow"
30
30
  readme = "README.rst"
31
31
  authors = [
@@ -58,6 +58,7 @@ requires-python = "~=3.9"
58
58
  # After you modify the dependencies, and rebuild your Breeze CI image with ``breeze ci-image build``
59
59
  dependencies = [
60
60
  "apache-airflow>=2.9.0",
61
+ "apache-airflow-providers-common-compat>=1.6.0",
61
62
  "apache-airflow-providers-http",
62
63
  "asgiref>=2.3.0",
63
64
  "aiohttp>=3.9.2",
@@ -68,10 +69,7 @@ dependencies = [
68
69
  [project.optional-dependencies]
69
70
  # pip install apache-airflow-providers-dbt-cloud[openlineage]
70
71
  "openlineage" = [
71
- "apache-airflow-providers-openlineage>=1.7.0",
72
- ]
73
- "common.compat" = [
74
- "apache-airflow-providers-common-compat"
72
+ "apache-airflow-providers-openlineage>=2.0.0",
75
73
  ]
76
74
 
77
75
  [dependency-groups]
@@ -96,8 +94,8 @@ apache-airflow-providers-fab = {workspace = true}
96
94
  apache-airflow-providers-standard = {workspace = true}
97
95
 
98
96
  [project.urls]
99
- "Documentation" = "https://airflow.apache.org/docs/apache-airflow-providers-dbt-cloud/4.3.1"
100
- "Changelog" = "https://airflow.apache.org/docs/apache-airflow-providers-dbt-cloud/4.3.1/changelog.html"
97
+ "Documentation" = "https://airflow.apache.org/docs/apache-airflow-providers-dbt-cloud/4.3.2"
98
+ "Changelog" = "https://airflow.apache.org/docs/apache-airflow-providers-dbt-cloud/4.3.2/changelog.html"
101
99
  "Bug Tracker" = "https://github.com/apache/airflow/issues"
102
100
  "Source Code" = "https://github.com/apache/airflow"
103
101
  "Slack Chat" = "https://s.apache.org/airflow-slack"
@@ -29,7 +29,7 @@ from airflow import __version__ as airflow_version
29
29
 
30
30
  __all__ = ["__version__"]
31
31
 
32
- __version__ = "4.3.1"
32
+ __version__ = "4.3.2"
33
33
 
34
34
  if packaging.version.parse(packaging.version.parse(airflow_version).base_version) < packaging.version.parse(
35
35
  "2.9.0"
@@ -27,8 +27,9 @@ def get_provider_info():
27
27
  "name": "dbt Cloud",
28
28
  "description": "`dbt Cloud <https://www.getdbt.com/product/dbt-cloud/>`__\n",
29
29
  "state": "ready",
30
- "source-date-epoch": 1742980047,
30
+ "source-date-epoch": 1743836022,
31
31
  "versions": [
32
+ "4.3.2",
32
33
  "4.3.1",
33
34
  "4.2.1",
34
35
  "4.2.0",
@@ -96,13 +97,11 @@ def get_provider_info():
96
97
  "extra-links": ["airflow.providers.dbt.cloud.operators.dbt.DbtCloudRunJobOperatorLink"],
97
98
  "dependencies": [
98
99
  "apache-airflow>=2.9.0",
100
+ "apache-airflow-providers-common-compat>=1.6.0",
99
101
  "apache-airflow-providers-http",
100
102
  "asgiref>=2.3.0",
101
103
  "aiohttp>=3.9.2",
102
104
  ],
103
- "optional-dependencies": {
104
- "openlineage": ["apache-airflow-providers-openlineage>=1.7.0"],
105
- "common.compat": ["apache-airflow-providers-common-compat"],
106
- },
105
+ "optional-dependencies": {"openlineage": ["apache-airflow-providers-openlineage>=2.0.0"]},
107
106
  "devel-dependencies": [],
108
107
  }
@@ -166,7 +166,7 @@ def provide_account_id(func: T) -> T:
166
166
 
167
167
  return await func(*bound_args.args, **bound_args.kwargs)
168
168
 
169
- return cast(T, wrapper)
169
+ return cast("T", wrapper)
170
170
 
171
171
 
172
172
  class DbtCloudHook(HttpHook):
@@ -569,8 +569,7 @@ class DbtCloudHook(HttpHook):
569
569
 
570
570
  if cause is not None and len(cause) > DBT_CAUSE_MAX_LENGTH:
571
571
  warnings.warn(
572
- f"Cause `{cause}` exceeds limit of {DBT_CAUSE_MAX_LENGTH}"
573
- f" characters and will be truncated.",
572
+ f"Cause `{cause}` exceeds limit of {DBT_CAUSE_MAX_LENGTH} characters and will be truncated.",
574
573
  UserWarning,
575
574
  stacklevel=2,
576
575
  )
@@ -21,6 +21,7 @@ import logging
21
21
  import re
22
22
  from typing import TYPE_CHECKING
23
23
 
24
+ from airflow.providers.common.compat.openlineage.check import require_openlineage_version
24
25
  from airflow.providers.dbt.cloud.version_compat import AIRFLOW_V_2_10_PLUS, AIRFLOW_V_3_0_PLUS
25
26
 
26
27
  if TYPE_CHECKING:
@@ -54,6 +55,7 @@ def _get_try_number(val):
54
55
  return val.try_number - 1
55
56
 
56
57
 
58
+ @require_openlineage_version(provider_min_version="2.0.0")
57
59
  def generate_openlineage_events_from_dbt_cloud_run(
58
60
  operator: DbtCloudRunJobOperator | DbtCloudJobRunSensor, task_instance: TaskInstance
59
61
  ) -> OperatorLineage:
@@ -73,14 +75,7 @@ def generate_openlineage_events_from_dbt_cloud_run(
73
75
  """
74
76
  from openlineage.common.provider.dbt import DbtCloudArtifactProcessor, ParentRunMetadata
75
77
 
76
- try:
77
- from airflow.providers.openlineage.conf import namespace
78
- except ModuleNotFoundError as e:
79
- from airflow.exceptions import AirflowOptionalProviderFeatureException
80
-
81
- msg = "Please install `apache-airflow-providers-openlineage>=1.7.0`"
82
- raise AirflowOptionalProviderFeatureException(e, msg)
83
-
78
+ from airflow.providers.openlineage.conf import namespace
84
79
  from airflow.providers.openlineage.extractors import OperatorLineage
85
80
  from airflow.providers.openlineage.plugins.adapter import (
86
81
  _PRODUCER,