apache-airflow-providers-common-compat 1.2.1rc1__tar.gz → 1.2.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.

Potentially problematic release.


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

Files changed (18) hide show
  1. {apache_airflow_providers_common_compat-1.2.1rc1 → apache_airflow_providers_common_compat-1.2.2}/PKG-INFO +11 -8
  2. {apache_airflow_providers_common_compat-1.2.1rc1 → apache_airflow_providers_common_compat-1.2.2}/README.rst +4 -3
  3. {apache_airflow_providers_common_compat-1.2.1rc1 → apache_airflow_providers_common_compat-1.2.2}/airflow/providers/common/compat/__init__.py +1 -1
  4. {apache_airflow_providers_common_compat-1.2.1rc1 → apache_airflow_providers_common_compat-1.2.2}/airflow/providers/common/compat/assets/__init__.py +4 -1
  5. {apache_airflow_providers_common_compat-1.2.1rc1 → apache_airflow_providers_common_compat-1.2.2}/airflow/providers/common/compat/get_provider_info.py +2 -2
  6. apache_airflow_providers_common_compat-1.2.2/airflow/providers/common/compat/standard/__init__.py +16 -0
  7. apache_airflow_providers_common_compat-1.2.2/airflow/providers/common/compat/standard/operators.py +54 -0
  8. apache_airflow_providers_common_compat-1.2.2/airflow/providers/common/compat/standard/utils.py +31 -0
  9. {apache_airflow_providers_common_compat-1.2.1rc1 → apache_airflow_providers_common_compat-1.2.2}/pyproject.toml +8 -6
  10. {apache_airflow_providers_common_compat-1.2.1rc1 → apache_airflow_providers_common_compat-1.2.2}/airflow/providers/common/compat/LICENSE +0 -0
  11. {apache_airflow_providers_common_compat-1.2.1rc1 → apache_airflow_providers_common_compat-1.2.2}/airflow/providers/common/compat/lineage/__init__.py +0 -0
  12. {apache_airflow_providers_common_compat-1.2.1rc1 → apache_airflow_providers_common_compat-1.2.2}/airflow/providers/common/compat/lineage/hook.py +0 -0
  13. {apache_airflow_providers_common_compat-1.2.1rc1 → apache_airflow_providers_common_compat-1.2.2}/airflow/providers/common/compat/openlineage/__init__.py +0 -0
  14. {apache_airflow_providers_common_compat-1.2.1rc1 → apache_airflow_providers_common_compat-1.2.2}/airflow/providers/common/compat/openlineage/facet.py +0 -0
  15. {apache_airflow_providers_common_compat-1.2.1rc1 → apache_airflow_providers_common_compat-1.2.2}/airflow/providers/common/compat/openlineage/utils/__init__.py +0 -0
  16. {apache_airflow_providers_common_compat-1.2.1rc1 → apache_airflow_providers_common_compat-1.2.2}/airflow/providers/common/compat/openlineage/utils/utils.py +0 -0
  17. {apache_airflow_providers_common_compat-1.2.1rc1 → apache_airflow_providers_common_compat-1.2.2}/airflow/providers/common/compat/security/__init__.py +0 -0
  18. {apache_airflow_providers_common_compat-1.2.1rc1 → apache_airflow_providers_common_compat-1.2.2}/airflow/providers/common/compat/security/permissions.py +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.3
2
2
  Name: apache-airflow-providers-common-compat
3
- Version: 1.2.1rc1
3
+ Version: 1.2.2
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,16 +20,18 @@ 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.8.0rc0
23
+ Requires-Dist: apache-airflow>=2.8.0
24
24
  Requires-Dist: apache-airflow-providers-openlineage ; extra == "openlineage"
25
+ Requires-Dist: apache-airflow-providers-standard ; extra == "standard"
25
26
  Project-URL: Bug Tracker, https://github.com/apache/airflow/issues
26
- Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-common-compat/1.2.1/changelog.html
27
- Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-common-compat/1.2.1
27
+ Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-common-compat/1.2.2/changelog.html
28
+ Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-common-compat/1.2.2
28
29
  Project-URL: Slack Chat, https://s.apache.org/airflow-slack
29
30
  Project-URL: Source Code, https://github.com/apache/airflow
30
31
  Project-URL: Twitter, https://twitter.com/ApacheAirflow
31
32
  Project-URL: YouTube, https://www.youtube.com/channel/UCSXwxpWZQ7XZ1WL3wqevChA/
32
33
  Provides-Extra: openlineage
34
+ Provides-Extra: standard
33
35
 
34
36
 
35
37
  .. Licensed to the Apache Software Foundation (ASF) under one
@@ -75,7 +77,7 @@ Provides-Extra: openlineage
75
77
 
76
78
  Package ``apache-airflow-providers-common-compat``
77
79
 
78
- Release: ``1.2.1.rc1``
80
+ Release: ``1.2.2``
79
81
 
80
82
 
81
83
  ``Common Compatibility Provider - providing compatibility code for previous Airflow versions.``
@@ -88,7 +90,7 @@ This is a provider package for ``common.compat`` provider. All classes for this
88
90
  are in ``airflow.providers.common.compat`` python package.
89
91
 
90
92
  You can find package information and changelog for the provider
91
- in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-common-compat/1.2.1/>`_.
93
+ in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-common-compat/1.2.2/>`_.
92
94
 
93
95
  Installation
94
96
  ------------
@@ -125,7 +127,8 @@ You can install such cross-provider dependencies when installing from PyPI. For
125
127
  Dependent package Extra
126
128
  ============================================================================================================== ===============
127
129
  `apache-airflow-providers-openlineage <https://airflow.apache.org/docs/apache-airflow-providers-openlineage>`_ ``openlineage``
130
+ `apache-airflow-providers-standard <https://airflow.apache.org/docs/apache-airflow-providers-standard>`_ ``standard``
128
131
  ============================================================================================================== ===============
129
132
 
130
133
  The changelog for the provider package can be found in the
131
- `changelog <https://airflow.apache.org/docs/apache-airflow-providers-common-compat/1.2.1/changelog.html>`_.
134
+ `changelog <https://airflow.apache.org/docs/apache-airflow-providers-common-compat/1.2.2/changelog.html>`_.
@@ -42,7 +42,7 @@
42
42
 
43
43
  Package ``apache-airflow-providers-common-compat``
44
44
 
45
- Release: ``1.2.1.rc1``
45
+ Release: ``1.2.2``
46
46
 
47
47
 
48
48
  ``Common Compatibility Provider - providing compatibility code for previous Airflow versions.``
@@ -55,7 +55,7 @@ This is a provider package for ``common.compat`` provider. All classes for this
55
55
  are in ``airflow.providers.common.compat`` python package.
56
56
 
57
57
  You can find package information and changelog for the provider
58
- in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-common-compat/1.2.1/>`_.
58
+ in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-common-compat/1.2.2/>`_.
59
59
 
60
60
  Installation
61
61
  ------------
@@ -92,7 +92,8 @@ You can install such cross-provider dependencies when installing from PyPI. For
92
92
  Dependent package Extra
93
93
  ============================================================================================================== ===============
94
94
  `apache-airflow-providers-openlineage <https://airflow.apache.org/docs/apache-airflow-providers-openlineage>`_ ``openlineage``
95
+ `apache-airflow-providers-standard <https://airflow.apache.org/docs/apache-airflow-providers-standard>`_ ``standard``
95
96
  ============================================================================================================== ===============
96
97
 
97
98
  The changelog for the provider package can be found in the
98
- `changelog <https://airflow.apache.org/docs/apache-airflow-providers-common-compat/1.2.1/changelog.html>`_.
99
+ `changelog <https://airflow.apache.org/docs/apache-airflow-providers-common-compat/1.2.2/changelog.html>`_.
@@ -29,7 +29,7 @@ from airflow import __version__ as airflow_version
29
29
 
30
30
  __all__ = ["__version__"]
31
31
 
32
- __version__ = "1.2.1"
32
+ __version__ = "1.2.2"
33
33
 
34
34
  if packaging.version.parse(packaging.version.parse(airflow_version).base_version) < packaging.version.parse(
35
35
  "2.8.0"
@@ -47,11 +47,14 @@ else:
47
47
 
48
48
  _IS_AIRFLOW_2_10_OR_HIGHER = Version(Version(AIRFLOW_VERSION).base_version) >= Version("2.10.0")
49
49
  _IS_AIRFLOW_2_9_OR_HIGHER = Version(Version(AIRFLOW_VERSION).base_version) >= Version("2.9.0")
50
+ _IS_AIRFLOW_2_8_OR_HIGHER = Version(Version(AIRFLOW_VERSION).base_version) >= Version("2.8.0")
50
51
 
51
52
  # dataset is renamed to asset since Airflow 3.0
52
- from airflow.auth.managers.models.resource_details import DatasetDetails as AssetDetails
53
53
  from airflow.datasets import Dataset as Asset
54
54
 
55
+ if _IS_AIRFLOW_2_8_OR_HIGHER:
56
+ from airflow.auth.managers.models.resource_details import DatasetDetails as AssetDetails
57
+
55
58
  if _IS_AIRFLOW_2_9_OR_HIGHER:
56
59
  from airflow.datasets import (
57
60
  DatasetAll as AssetAll,
@@ -28,8 +28,8 @@ def get_provider_info():
28
28
  "name": "Common Compat",
29
29
  "description": "``Common Compatibility Provider - providing compatibility code for previous Airflow versions.``\n",
30
30
  "state": "ready",
31
- "source-date-epoch": 1728484960,
32
- "versions": ["1.2.1", "1.2.0", "1.1.0", "1.0.0"],
31
+ "source-date-epoch": 1731569875,
32
+ "versions": ["1.2.2", "1.2.1", "1.2.0", "1.1.0", "1.0.0"],
33
33
  "dependencies": ["apache-airflow>=2.8.0"],
34
34
  "integrations": [
35
35
  {
@@ -0,0 +1,16 @@
1
+ # Licensed to the Apache Software Foundation (ASF) under one
2
+ # or more contributor license agreements. See the NOTICE file
3
+ # distributed with this work for additional information
4
+ # regarding copyright ownership. The ASF licenses this file
5
+ # to you under the Apache License, Version 2.0 (the
6
+ # "License"); you may not use this file except in compliance
7
+ # with the License. You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ # KIND, either express or implied. See the License for the
15
+ # specific language governing permissions and limitations
16
+ # under the License.
@@ -0,0 +1,54 @@
1
+ # Licensed to the Apache Software Foundation (ASF) under one
2
+ # or more contributor license agreements. See the NOTICE file
3
+ # distributed with this work for additional information
4
+ # regarding copyright ownership. The ASF licenses this file
5
+ # to you under the Apache License, Version 2.0 (the
6
+ # "License"); you may not use this file except in compliance
7
+ # with the License. You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ # KIND, either express or implied. See the License for the
15
+ # specific language governing permissions and limitations
16
+ # under the License.
17
+
18
+ from __future__ import annotations
19
+
20
+ from typing import TYPE_CHECKING
21
+
22
+ from airflow import __version__ as AIRFLOW_VERSION
23
+
24
+ if TYPE_CHECKING:
25
+ from airflow.providers.standard.operators.python import (
26
+ _SERIALIZERS,
27
+ PythonOperator,
28
+ ShortCircuitOperator,
29
+ get_current_context,
30
+ )
31
+ else:
32
+ try:
33
+ from airflow.providers.standard.operators.python import (
34
+ _SERIALIZERS,
35
+ PythonOperator,
36
+ ShortCircuitOperator,
37
+ get_current_context,
38
+ )
39
+ except ModuleNotFoundError:
40
+ from packaging.version import Version
41
+
42
+ _IS_AIRFLOW_2_10_OR_HIGHER = Version(Version(AIRFLOW_VERSION).base_version) >= Version("2.10.0")
43
+
44
+ from airflow.operators.python import (
45
+ PythonOperator,
46
+ ShortCircuitOperator,
47
+ get_current_context,
48
+ )
49
+
50
+ if _IS_AIRFLOW_2_10_OR_HIGHER:
51
+ from airflow.operators.python import _SERIALIZERS
52
+
53
+
54
+ __all__ = ["PythonOperator", "_SERIALIZERS", "ShortCircuitOperator", "get_current_context"]
@@ -0,0 +1,31 @@
1
+ # Licensed to the Apache Software Foundation (ASF) under one
2
+ # or more contributor license agreements. See the NOTICE file
3
+ # distributed with this work for additional information
4
+ # regarding copyright ownership. The ASF licenses this file
5
+ # to you under the Apache License, Version 2.0 (the
6
+ # "License"); you may not use this file except in compliance
7
+ # with the License. You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ # KIND, either express or implied. See the License for the
15
+ # specific language governing permissions and limitations
16
+ # under the License.
17
+
18
+ from __future__ import annotations
19
+
20
+ from typing import TYPE_CHECKING
21
+
22
+ if TYPE_CHECKING:
23
+ from airflow.providers.standard.utils.python_virtualenv import prepare_virtualenv, write_python_script
24
+ else:
25
+ try:
26
+ from airflow.providers.standard.utils.python_virtualenv import prepare_virtualenv, write_python_script
27
+ except ModuleNotFoundError:
28
+ from airflow.utils.python_virtualenv import prepare_virtualenv, write_python_script
29
+
30
+
31
+ __all__ = ["write_python_script", "prepare_virtualenv"]
@@ -21,14 +21,13 @@
21
21
 
22
22
  # IF YOU WANT TO MODIFY THIS FILE, YOU SHOULD MODIFY THE TEMPLATE
23
23
  # `pyproject_TEMPLATE.toml.jinja2` IN the `dev/breeze/src/airflow_breeze/templates` DIRECTORY
24
- #
25
24
  [build-system]
26
- requires = ["flit_core >=3.2,<4"]
25
+ requires = ["flit_core==3.10.1"]
27
26
  build-backend = "flit_core.buildapi"
28
27
 
29
28
  [project]
30
29
  name = "apache-airflow-providers-common-compat"
31
- version = "1.2.1.rc1"
30
+ version = "1.2.2"
32
31
  description = "Provider package apache-airflow-providers-common-compat for Apache Airflow"
33
32
  readme = "README.rst"
34
33
  authors = [
@@ -55,12 +54,12 @@ classifiers = [
55
54
  ]
56
55
  requires-python = "~=3.9"
57
56
  dependencies = [
58
- "apache-airflow>=2.8.0rc0",
57
+ "apache-airflow>=2.8.0",
59
58
  ]
60
59
 
61
60
  [project.urls]
62
- "Documentation" = "https://airflow.apache.org/docs/apache-airflow-providers-common-compat/1.2.1"
63
- "Changelog" = "https://airflow.apache.org/docs/apache-airflow-providers-common-compat/1.2.1/changelog.html"
61
+ "Documentation" = "https://airflow.apache.org/docs/apache-airflow-providers-common-compat/1.2.2"
62
+ "Changelog" = "https://airflow.apache.org/docs/apache-airflow-providers-common-compat/1.2.2/changelog.html"
64
63
  "Bug Tracker" = "https://github.com/apache/airflow/issues"
65
64
  "Source Code" = "https://github.com/apache/airflow"
66
65
  "Slack Chat" = "https://s.apache.org/airflow-slack"
@@ -73,6 +72,9 @@ provider_info = "airflow.providers.common.compat.get_provider_info:get_provider_
73
72
  "openlineage" = [
74
73
  "apache-airflow-providers-openlineage",
75
74
  ]
75
+ "standard" = [
76
+ "apache-airflow-providers-standard",
77
+ ]
76
78
 
77
79
  [tool.flit.module]
78
80
  name = "airflow.providers.common.compat"