apache-airflow-providers-common-compat 1.8.0rc1__py3-none-any.whl → 1.9.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.
- airflow/providers/common/compat/__init__.py +1 -1
- airflow/providers/common/compat/connection/__init__.py +50 -0
- airflow/providers/common/compat/sqlalchemy/orm.py +1 -1
- {apache_airflow_providers_common_compat-1.8.0rc1.dist-info → apache_airflow_providers_common_compat-1.9.0rc1.dist-info}/METADATA +11 -7
- {apache_airflow_providers_common_compat-1.8.0rc1.dist-info → apache_airflow_providers_common_compat-1.9.0rc1.dist-info}/RECORD +9 -7
- apache_airflow_providers_common_compat-1.9.0rc1.dist-info/licenses/NOTICE +5 -0
- {apache_airflow_providers_common_compat-1.8.0rc1.dist-info → apache_airflow_providers_common_compat-1.9.0rc1.dist-info}/WHEEL +0 -0
- {apache_airflow_providers_common_compat-1.8.0rc1.dist-info → apache_airflow_providers_common_compat-1.9.0rc1.dist-info}/entry_points.txt +0 -0
- {airflow/providers/common/compat → apache_airflow_providers_common_compat-1.9.0rc1.dist-info/licenses}/LICENSE +0 -0
|
@@ -29,7 +29,7 @@ from airflow import __version__ as airflow_version
|
|
|
29
29
|
|
|
30
30
|
__all__ = ["__version__"]
|
|
31
31
|
|
|
32
|
-
__version__ = "1.
|
|
32
|
+
__version__ = "1.9.0"
|
|
33
33
|
|
|
34
34
|
if packaging.version.parse(packaging.version.parse(airflow_version).base_version) < packaging.version.parse(
|
|
35
35
|
"2.10.0"
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
import logging
|
|
21
|
+
from typing import TYPE_CHECKING
|
|
22
|
+
|
|
23
|
+
from airflow.providers.common.compat.sdk import BaseHook
|
|
24
|
+
|
|
25
|
+
if TYPE_CHECKING:
|
|
26
|
+
from airflow.providers.common.compat.sdk import Connection
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
log = logging.getLogger(__name__)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
async def get_async_connection(conn_id: str) -> Connection:
|
|
33
|
+
"""
|
|
34
|
+
Get an asynchronous Airflow connection that is backwards compatible.
|
|
35
|
+
|
|
36
|
+
:param conn_id: The provided connection ID.
|
|
37
|
+
:returns: Connection
|
|
38
|
+
"""
|
|
39
|
+
from asgiref.sync import sync_to_async
|
|
40
|
+
|
|
41
|
+
if hasattr(BaseHook, "aget_connection"):
|
|
42
|
+
log.debug("Get connection using `BaseHook.aget_connection().")
|
|
43
|
+
return await BaseHook.aget_connection(conn_id=conn_id)
|
|
44
|
+
log.debug("Get connection using `BaseHook.get_connection().")
|
|
45
|
+
return await sync_to_async(BaseHook.get_connection)(conn_id=conn_id)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
__all__ = [
|
|
49
|
+
"get_async_connection",
|
|
50
|
+
]
|
|
@@ -21,7 +21,7 @@ try:
|
|
|
21
21
|
from sqlalchemy.orm import mapped_column
|
|
22
22
|
except ImportError:
|
|
23
23
|
# fallback for SQLAlchemy < 2.0
|
|
24
|
-
def mapped_column(*args, **kwargs):
|
|
24
|
+
def mapped_column(*args, **kwargs): # type: ignore[misc]
|
|
25
25
|
from sqlalchemy import Column
|
|
26
26
|
|
|
27
27
|
return Column(*args, **kwargs)
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: apache-airflow-providers-common-compat
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.9.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>
|
|
7
7
|
Maintainer-email: Apache Software Foundation <dev@airflow.apache.org>
|
|
8
8
|
Requires-Python: >=3.10
|
|
9
9
|
Description-Content-Type: text/x-rst
|
|
10
|
+
License-Expression: Apache-2.0
|
|
10
11
|
Classifier: Development Status :: 5 - Production/Stable
|
|
11
12
|
Classifier: Environment :: Console
|
|
12
13
|
Classifier: Environment :: Web Environment
|
|
@@ -14,18 +15,20 @@ Classifier: Intended Audience :: Developers
|
|
|
14
15
|
Classifier: Intended Audience :: System Administrators
|
|
15
16
|
Classifier: Framework :: Apache Airflow
|
|
16
17
|
Classifier: Framework :: Apache Airflow :: Provider
|
|
17
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
|
18
18
|
Classifier: Programming Language :: Python :: 3.10
|
|
19
19
|
Classifier: Programming Language :: Python :: 3.11
|
|
20
20
|
Classifier: Programming Language :: Python :: 3.12
|
|
21
21
|
Classifier: Programming Language :: Python :: 3.13
|
|
22
22
|
Classifier: Topic :: System :: Monitoring
|
|
23
|
+
License-File: LICENSE
|
|
24
|
+
License-File: NOTICE
|
|
23
25
|
Requires-Dist: apache-airflow>=2.10.0rc1
|
|
26
|
+
Requires-Dist: asgiref>=2.3.0
|
|
24
27
|
Requires-Dist: apache-airflow-providers-openlineage ; extra == "openlineage"
|
|
25
28
|
Requires-Dist: apache-airflow-providers-standard ; extra == "standard"
|
|
26
29
|
Project-URL: Bug Tracker, https://github.com/apache/airflow/issues
|
|
27
|
-
Project-URL: Changelog, https://airflow.staged.apache.org/docs/apache-airflow-providers-common-compat/1.
|
|
28
|
-
Project-URL: Documentation, https://airflow.staged.apache.org/docs/apache-airflow-providers-common-compat/1.
|
|
30
|
+
Project-URL: Changelog, https://airflow.staged.apache.org/docs/apache-airflow-providers-common-compat/1.9.0/changelog.html
|
|
31
|
+
Project-URL: Documentation, https://airflow.staged.apache.org/docs/apache-airflow-providers-common-compat/1.9.0
|
|
29
32
|
Project-URL: Mastodon, https://fosstodon.org/@airflow
|
|
30
33
|
Project-URL: Slack Chat, https://s.apache.org/airflow-slack
|
|
31
34
|
Project-URL: Source Code, https://github.com/apache/airflow
|
|
@@ -58,7 +61,7 @@ Provides-Extra: standard
|
|
|
58
61
|
|
|
59
62
|
Package ``apache-airflow-providers-common-compat``
|
|
60
63
|
|
|
61
|
-
Release: ``1.
|
|
64
|
+
Release: ``1.9.0``
|
|
62
65
|
|
|
63
66
|
|
|
64
67
|
Common Compatibility Provider - providing compatibility code for previous Airflow versions
|
|
@@ -71,7 +74,7 @@ This is a provider package for ``common.compat`` provider. All classes for this
|
|
|
71
74
|
are in ``airflow.providers.common.compat`` python package.
|
|
72
75
|
|
|
73
76
|
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.
|
|
77
|
+
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-common-compat/1.9.0/>`_.
|
|
75
78
|
|
|
76
79
|
Installation
|
|
77
80
|
------------
|
|
@@ -89,6 +92,7 @@ Requirements
|
|
|
89
92
|
PIP package Version required
|
|
90
93
|
================== ==================
|
|
91
94
|
``apache-airflow`` ``>=2.10.0``
|
|
95
|
+
``asgiref`` ``>=2.3.0``
|
|
92
96
|
================== ==================
|
|
93
97
|
|
|
94
98
|
Cross provider package dependencies
|
|
@@ -121,5 +125,5 @@ Extra Dependencies
|
|
|
121
125
|
=============== ========================================
|
|
122
126
|
|
|
123
127
|
The changelog for the provider package can be found in the
|
|
124
|
-
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-common-compat/1.
|
|
128
|
+
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-common-compat/1.9.0/changelog.html>`_.
|
|
125
129
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
airflow/providers/common/compat/
|
|
2
|
-
airflow/providers/common/compat/__init__.py,sha256=gD_LMyyIrCFT4-3zmNRsHVsfHu8BlvXR80wNURTQWAc,1502
|
|
1
|
+
airflow/providers/common/compat/__init__.py,sha256=wOAjCNmBamb2JOHXZffbOg2NX4eF4dwrQpgwMKUpq9o,1502
|
|
3
2
|
airflow/providers/common/compat/_compat_utils.py,sha256=MAB8q34kchNo05y5iufKs_82MXe-lLbpwHlfbb1tJGQ,4294
|
|
4
3
|
airflow/providers/common/compat/check.py,sha256=d6at8iFn_c2jbnmvswoMYz1DFUrAbQTVKMCA5PYAOrQ,4347
|
|
5
4
|
airflow/providers/common/compat/get_provider_info.py,sha256=BfscTzSrq5WxqTt4njI9WwvWyvE3JjYYfZEdrSRT6IU,1555
|
|
6
5
|
airflow/providers/common/compat/sdk.py,sha256=EJ7bu4Iuuqu0W1JCCo9k-PD14ZAtz_KiTedmnVCoLUk,11264
|
|
7
6
|
airflow/providers/common/compat/version_compat.py,sha256=4f4HIVNU9aCzHJO2HlKkm0nlr2gpIGmcLI46LeMqpBk,1805
|
|
8
7
|
airflow/providers/common/compat/assets/__init__.py,sha256=P1xX2Nw8LeS3u_Prz-SZL_jtTteHXqDd-0G8hZXD8oU,2079
|
|
8
|
+
airflow/providers/common/compat/connection/__init__.py,sha256=K7z3lzLEdQjf_hh8GfdglqajdemvVb1h_i2srqTtKgc,1677
|
|
9
9
|
airflow/providers/common/compat/lineage/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
|
|
10
10
|
airflow/providers/common/compat/lineage/entities.py,sha256=ZdZh_U4i05xhpWtTMwaWxgzEIFHT7dF5zEUwCDdtRcA,2668
|
|
11
11
|
airflow/providers/common/compat/lineage/hook.py,sha256=L3kOTptvjmeH2aN-EieAbNfIBVUQvR9_etrI2gXF0Cc,3157
|
|
@@ -20,12 +20,14 @@ airflow/providers/common/compat/openlineage/utils/utils.py,sha256=KB_1emJIEeYxPG
|
|
|
20
20
|
airflow/providers/common/compat/security/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
|
|
21
21
|
airflow/providers/common/compat/security/permissions.py,sha256=lkmW7IyE56sK0xPdc2dg7EeuS_EJBVfERoSD_Ct7lf0,1448
|
|
22
22
|
airflow/providers/common/compat/sqlalchemy/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
|
|
23
|
-
airflow/providers/common/compat/sqlalchemy/orm.py,sha256=
|
|
23
|
+
airflow/providers/common/compat/sqlalchemy/orm.py,sha256=neegkGV3edwyBKHafxJ-7QMc6WXX0WipVm3mXCqTUGc,1068
|
|
24
24
|
airflow/providers/common/compat/standard/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
|
|
25
25
|
airflow/providers/common/compat/standard/operators.py,sha256=MUQelwNbAbgdrA2RJkK2SJDz5AvhQ9VW6sr328r6khQ,1599
|
|
26
26
|
airflow/providers/common/compat/standard/triggers.py,sha256=ZGqIvGtliogw5-avmTm_4oY-7nX1pbeCk7jLz3vb3Ck,1157
|
|
27
27
|
airflow/providers/common/compat/standard/utils.py,sha256=GN38uPDqhpPaFD1CQAEQuSG2FAY8pJ_Q_-EIFDE7D08,1335
|
|
28
|
-
apache_airflow_providers_common_compat-1.
|
|
29
|
-
apache_airflow_providers_common_compat-1.
|
|
30
|
-
apache_airflow_providers_common_compat-1.
|
|
31
|
-
apache_airflow_providers_common_compat-1.
|
|
28
|
+
apache_airflow_providers_common_compat-1.9.0rc1.dist-info/entry_points.txt,sha256=OdOClAuY8E82VvA-Zo6narFujtXdGihHKZH2HfmlPIo,109
|
|
29
|
+
apache_airflow_providers_common_compat-1.9.0rc1.dist-info/licenses/LICENSE,sha256=gXPVwptPlW1TJ4HSuG5OMPg-a3h43OGMkZRR1rpwfJA,10850
|
|
30
|
+
apache_airflow_providers_common_compat-1.9.0rc1.dist-info/licenses/NOTICE,sha256=E3-_E02gwwSEFzeeWPKmnIjOoos3hW28CLISV6sYrbQ,168
|
|
31
|
+
apache_airflow_providers_common_compat-1.9.0rc1.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
|
|
32
|
+
apache_airflow_providers_common_compat-1.9.0rc1.dist-info/METADATA,sha256=t2-GEqPZtyvSsem2C5nT8vX5ST6-8GvBXfmce5RpZJo,5613
|
|
33
|
+
apache_airflow_providers_common_compat-1.9.0rc1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|