apache-airflow-providers-common-compat 1.6.1__py3-none-any.whl → 1.7.0rc1__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-common-compat might be problematic. Click here for more details.

@@ -29,11 +29,11 @@ from airflow import __version__ as airflow_version
29
29
 
30
30
  __all__ = ["__version__"]
31
31
 
32
- __version__ = "1.6.1"
32
+ __version__ = "1.7.0"
33
33
 
34
34
  if packaging.version.parse(packaging.version.parse(airflow_version).base_version) < packaging.version.parse(
35
- "2.9.0"
35
+ "2.10.0"
36
36
  ):
37
37
  raise RuntimeError(
38
- f"The package `apache-airflow-providers-common-compat:{__version__}` needs Apache Airflow 2.9.0+"
38
+ f"The package `apache-airflow-providers-common-compat:{__version__}` needs Apache Airflow 2.10.0+"
39
39
  )
@@ -20,7 +20,6 @@ from __future__ import annotations
20
20
  from typing import TYPE_CHECKING
21
21
 
22
22
  from airflow.providers.common.compat.version_compat import (
23
- AIRFLOW_V_2_10_PLUS,
24
23
  AIRFLOW_V_3_0_PLUS,
25
24
  )
26
25
 
@@ -38,16 +37,12 @@ else:
38
37
  from airflow.auth.managers.models.resource_details import DatasetDetails as AssetDetails
39
38
  from airflow.datasets import (
40
39
  Dataset as Asset,
40
+ DatasetAlias as AssetAlias,
41
41
  DatasetAll as AssetAll,
42
42
  DatasetAny as AssetAny,
43
+ expand_alias_to_datasets as expand_alias_to_assets,
43
44
  )
44
45
 
45
- if AIRFLOW_V_2_10_PLUS:
46
- from airflow.datasets import (
47
- DatasetAlias as AssetAlias,
48
- expand_alias_to_datasets as expand_alias_to_assets,
49
- )
50
-
51
46
 
52
47
  __all__ = [
53
48
  "Asset",
@@ -16,7 +16,7 @@
16
16
  # under the License.
17
17
  from __future__ import annotations
18
18
 
19
- from airflow.providers.common.compat.version_compat import AIRFLOW_V_2_10_PLUS, AIRFLOW_V_3_0_PLUS
19
+ from airflow.providers.common.compat.version_compat import AIRFLOW_V_3_0_PLUS
20
20
 
21
21
 
22
22
  def _get_asset_compat_hook_lineage_collector():
@@ -85,9 +85,7 @@ def get_hook_lineage_collector():
85
85
 
86
86
  return get_hook_lineage_collector()
87
87
 
88
- # HookLineageCollector added in 2.10
89
- if AIRFLOW_V_2_10_PLUS:
90
- return _get_asset_compat_hook_lineage_collector()
88
+ return _get_asset_compat_hook_lineage_collector()
91
89
 
92
90
  # For the case that airflow has not yet upgraded to 2.10 or higher,
93
91
  # but using the providers that already uses `get_hook_lineage_collector`
@@ -19,8 +19,6 @@ from __future__ import annotations
19
19
 
20
20
  from typing import TYPE_CHECKING
21
21
 
22
- from airflow.providers.common.compat.version_compat import AIRFLOW_V_2_10_PLUS
23
-
24
22
  if TYPE_CHECKING:
25
23
  from airflow.providers.standard.operators.python import (
26
24
  _SERIALIZERS,
@@ -38,13 +36,15 @@ else:
38
36
  )
39
37
  except ModuleNotFoundError:
40
38
  from airflow.operators.python import (
39
+ _SERIALIZERS,
41
40
  PythonOperator,
42
41
  ShortCircuitOperator,
43
- get_current_context,
44
42
  )
45
43
 
46
- if AIRFLOW_V_2_10_PLUS:
47
- from airflow.operators.python import _SERIALIZERS
44
+ try:
45
+ from airflow.sdk import get_current_context
46
+ except (ImportError, ModuleNotFoundError):
47
+ from airflow.providers.standard.operators.python import get_current_context
48
48
 
49
49
 
50
50
  __all__ = ["PythonOperator", "_SERIALIZERS", "ShortCircuitOperator", "get_current_context"]
@@ -32,5 +32,4 @@ def get_base_airflow_version_tuple() -> tuple[int, int, int]:
32
32
  return airflow_version.major, airflow_version.minor, airflow_version.micro
33
33
 
34
34
 
35
- AIRFLOW_V_2_10_PLUS = get_base_airflow_version_tuple() >= (2, 10, 0)
36
35
  AIRFLOW_V_3_0_PLUS = get_base_airflow_version_tuple() >= (3, 0, 0)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: apache-airflow-providers-common-compat
3
- Version: 1.6.1
3
+ Version: 1.7.0rc1
4
4
  Summary: Provider package apache-airflow-providers-common-compat for Apache Airflow
5
5
  Keywords: airflow-provider,common.compat,airflow,integration
6
6
  Author-email: Apache Software Foundation <dev@airflow.apache.org>
@@ -20,12 +20,12 @@ Classifier: Programming Language :: Python :: 3.10
20
20
  Classifier: Programming Language :: Python :: 3.11
21
21
  Classifier: Programming Language :: Python :: 3.12
22
22
  Classifier: Topic :: System :: Monitoring
23
- Requires-Dist: apache-airflow>=2.9.0
23
+ Requires-Dist: apache-airflow>=2.10.0rc1
24
24
  Requires-Dist: apache-airflow-providers-openlineage ; extra == "openlineage"
25
25
  Requires-Dist: apache-airflow-providers-standard ; extra == "standard"
26
26
  Project-URL: Bug Tracker, https://github.com/apache/airflow/issues
27
- Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-common-compat/1.6.1/changelog.html
28
- Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-common-compat/1.6.1
27
+ Project-URL: Changelog, https://airflow.staged.apache.org/docs/apache-airflow-providers-common-compat/1.7.0/changelog.html
28
+ Project-URL: Documentation, https://airflow.staged.apache.org/docs/apache-airflow-providers-common-compat/1.7.0
29
29
  Project-URL: Mastodon, https://fosstodon.org/@airflow
30
30
  Project-URL: Slack Chat, https://s.apache.org/airflow-slack
31
31
  Project-URL: Source Code, https://github.com/apache/airflow
@@ -58,7 +58,7 @@ Provides-Extra: standard
58
58
 
59
59
  Package ``apache-airflow-providers-common-compat``
60
60
 
61
- Release: ``1.6.1``
61
+ Release: ``1.7.0``
62
62
 
63
63
 
64
64
  Common Compatibility Provider - providing compatibility code for previous Airflow versions
@@ -71,7 +71,7 @@ This is a provider package for ``common.compat`` provider. All classes for this
71
71
  are in ``airflow.providers.common.compat`` python package.
72
72
 
73
73
  You can find package information and changelog for the provider
74
- in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-common-compat/1.6.1/>`_.
74
+ in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-common-compat/1.7.0/>`_.
75
75
 
76
76
  Installation
77
77
  ------------
@@ -88,7 +88,7 @@ Requirements
88
88
  ================== ==================
89
89
  PIP package Version required
90
90
  ================== ==================
91
- ``apache-airflow`` ``>=2.9.0``
91
+ ``apache-airflow`` ``>=2.10.0``
92
92
  ================== ==================
93
93
 
94
94
  Cross provider package dependencies
@@ -112,5 +112,5 @@ Dependent package
112
112
  ============================================================================================================== ===============
113
113
 
114
114
  The changelog for the provider package can be found in the
115
- `changelog <https://airflow.apache.org/docs/apache-airflow-providers-common-compat/1.6.1/changelog.html>`_.
115
+ `changelog <https://airflow.apache.org/docs/apache-airflow-providers-common-compat/1.7.0/changelog.html>`_.
116
116
 
@@ -1,12 +1,12 @@
1
1
  airflow/providers/common/compat/LICENSE,sha256=gXPVwptPlW1TJ4HSuG5OMPg-a3h43OGMkZRR1rpwfJA,10850
2
- airflow/providers/common/compat/__init__.py,sha256=eZ0SlfQ8f7lr3w1UAUACl8T219AZZah95gcBDPIjgmI,1500
2
+ airflow/providers/common/compat/__init__.py,sha256=9a6oo3UOoyLPygJU29y5wjZUC_aGUgzNQmBxJR6n9kU,1502
3
3
  airflow/providers/common/compat/check.py,sha256=d6at8iFn_c2jbnmvswoMYz1DFUrAbQTVKMCA5PYAOrQ,4347
4
4
  airflow/providers/common/compat/get_provider_info.py,sha256=BfscTzSrq5WxqTt4njI9WwvWyvE3JjYYfZEdrSRT6IU,1555
5
- airflow/providers/common/compat/version_compat.py,sha256=aHg90_DtgoSnQvILFICexMyNlHlALBdaeWqkX3dFDug,1605
6
- airflow/providers/common/compat/assets/__init__.py,sha256=73zbqrAVBepkL83xpjRjzLQF7LzI-uA-3pBu5n7-g80,2202
5
+ airflow/providers/common/compat/version_compat.py,sha256=j5PCtXvZ71aBjixu-EFTNtVDPsngzzs7os0ZQDgFVDk,1536
6
+ airflow/providers/common/compat/assets/__init__.py,sha256=P1xX2Nw8LeS3u_Prz-SZL_jtTteHXqDd-0G8hZXD8oU,2079
7
7
  airflow/providers/common/compat/lineage/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
8
8
  airflow/providers/common/compat/lineage/entities.py,sha256=otob45spY8YSa5fMx3XXg-JWNZttS8g4WrkvYte2HFY,2651
9
- airflow/providers/common/compat/lineage/hook.py,sha256=0ujOAFXc3U0zqAJfKVgSRAHCa6lKwlNd7yMacUyNdD8,3977
9
+ airflow/providers/common/compat/lineage/hook.py,sha256=_crCr77ltf-C7S64JlpJthEDi5AGfE9pNOSH8sIWij0,3883
10
10
  airflow/providers/common/compat/notifier/__init__.py,sha256=ENJCBUjdRT68heVSfI8fhMs4hi6bUh5CYUkQTwTaqxM,1189
11
11
  airflow/providers/common/compat/openlineage/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
12
12
  airflow/providers/common/compat/openlineage/check.py,sha256=jcrz1xgqsUd9TCF564U_JGvU8Vyrss7qpiMaQz_ZIqA,4672
@@ -18,10 +18,10 @@ airflow/providers/common/compat/openlineage/utils/utils.py,sha256=KB_1emJIEeYxPG
18
18
  airflow/providers/common/compat/security/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
19
19
  airflow/providers/common/compat/security/permissions.py,sha256=lkmW7IyE56sK0xPdc2dg7EeuS_EJBVfERoSD_Ct7lf0,1448
20
20
  airflow/providers/common/compat/standard/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
21
- airflow/providers/common/compat/standard/operators.py,sha256=1jsiu8Cc6S2Xhhfo2Rh5PqJCnQ1CBH_UW5q7s3Y0Mpc,1712
21
+ airflow/providers/common/compat/standard/operators.py,sha256=Po2g9_40SbtEY9KjODIucEx6a1zfvtNGZSO-NJhwMIk,1723
22
22
  airflow/providers/common/compat/standard/triggers.py,sha256=XBi9KE-cAY_TlIyKVqr1-EU7xZNqgCVTugXZObV3gaQ,1177
23
23
  airflow/providers/common/compat/standard/utils.py,sha256=SvTXThqYRKVfmRRpq-D5eNcxQjY9TESrTyl3n670QM8,1289
24
- apache_airflow_providers_common_compat-1.6.1.dist-info/entry_points.txt,sha256=OdOClAuY8E82VvA-Zo6narFujtXdGihHKZH2HfmlPIo,109
25
- apache_airflow_providers_common_compat-1.6.1.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
26
- apache_airflow_providers_common_compat-1.6.1.dist-info/METADATA,sha256=Du6voA4UHw_brqAS98MPbIwAnprDPQCZ6EH-djT0Hm4,5278
27
- apache_airflow_providers_common_compat-1.6.1.dist-info/RECORD,,
24
+ apache_airflow_providers_common_compat-1.7.0rc1.dist-info/entry_points.txt,sha256=OdOClAuY8E82VvA-Zo6narFujtXdGihHKZH2HfmlPIo,109
25
+ apache_airflow_providers_common_compat-1.7.0rc1.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
26
+ apache_airflow_providers_common_compat-1.7.0rc1.dist-info/METADATA,sha256=yDfDEIHTA9FT-s79rYtoDhOKKt6KCJO4HwSZzPr1scU,5300
27
+ apache_airflow_providers_common_compat-1.7.0rc1.dist-info/RECORD,,