apache-airflow-providers-common-compat 1.0.0rc1__tar.gz → 1.1.0__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.
- {apache_airflow_providers_common_compat-1.0.0rc1 → apache_airflow_providers_common_compat-1.1.0}/PKG-INFO +7 -7
- {apache_airflow_providers_common_compat-1.0.0rc1 → apache_airflow_providers_common_compat-1.1.0}/README.rst +3 -3
- {apache_airflow_providers_common_compat-1.0.0rc1 → apache_airflow_providers_common_compat-1.1.0}/airflow/providers/common/compat/__init__.py +1 -1
- {apache_airflow_providers_common_compat-1.0.0rc1 → apache_airflow_providers_common_compat-1.1.0}/airflow/providers/common/compat/get_provider_info.py +1 -1
- apache_airflow_providers_common_compat-1.1.0/airflow/providers/common/compat/lineage/__init__.py +16 -0
- apache_airflow_providers_common_compat-1.1.0/airflow/providers/common/compat/lineage/hook.py +41 -0
- apache_airflow_providers_common_compat-1.1.0/airflow/providers/common/compat/openlineage/__init__.py +16 -0
- apache_airflow_providers_common_compat-1.1.0/airflow/providers/common/compat/openlineage/facet.py +158 -0
- {apache_airflow_providers_common_compat-1.0.0rc1 → apache_airflow_providers_common_compat-1.1.0}/pyproject.toml +4 -4
- {apache_airflow_providers_common_compat-1.0.0rc1 → apache_airflow_providers_common_compat-1.1.0}/airflow/providers/common/compat/LICENSE +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: apache-airflow-providers-common-compat
|
|
3
|
-
Version: 1.0
|
|
3
|
+
Version: 1.1.0
|
|
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>
|
|
@@ -21,10 +21,10 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
21
21
|
Classifier: Programming Language :: Python :: 3.11
|
|
22
22
|
Classifier: Programming Language :: Python :: 3.12
|
|
23
23
|
Classifier: Topic :: System :: Monitoring
|
|
24
|
-
Requires-Dist: apache-airflow>=2.7.
|
|
24
|
+
Requires-Dist: apache-airflow>=2.7.0
|
|
25
25
|
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.
|
|
27
|
-
Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-common-compat/1.
|
|
26
|
+
Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-common-compat/1.1.0/changelog.html
|
|
27
|
+
Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-common-compat/1.1.0
|
|
28
28
|
Project-URL: Slack Chat, https://s.apache.org/airflow-slack
|
|
29
29
|
Project-URL: Source Code, https://github.com/apache/airflow
|
|
30
30
|
Project-URL: Twitter, https://twitter.com/ApacheAirflow
|
|
@@ -74,7 +74,7 @@ Project-URL: YouTube, https://www.youtube.com/channel/UCSXwxpWZQ7XZ1WL3wqevChA/
|
|
|
74
74
|
|
|
75
75
|
Package ``apache-airflow-providers-common-compat``
|
|
76
76
|
|
|
77
|
-
Release: ``1.
|
|
77
|
+
Release: ``1.1.0``
|
|
78
78
|
|
|
79
79
|
|
|
80
80
|
``Common Compatibility Provider - providing compatibility code for previous Airflow versions.``
|
|
@@ -87,7 +87,7 @@ This is a provider package for ``common.compat`` provider. All classes for this
|
|
|
87
87
|
are in ``airflow.providers.common.compat`` python package.
|
|
88
88
|
|
|
89
89
|
You can find package information and changelog for the provider
|
|
90
|
-
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-common-compat/1.
|
|
90
|
+
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-common-compat/1.1.0/>`_.
|
|
91
91
|
|
|
92
92
|
Installation
|
|
93
93
|
------------
|
|
@@ -108,4 +108,4 @@ PIP package Version required
|
|
|
108
108
|
================== ==================
|
|
109
109
|
|
|
110
110
|
The changelog for the provider package can be found in the
|
|
111
|
-
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-common-compat/1.
|
|
111
|
+
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-common-compat/1.1.0/changelog.html>`_.
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
|
|
43
43
|
Package ``apache-airflow-providers-common-compat``
|
|
44
44
|
|
|
45
|
-
Release: ``1.
|
|
45
|
+
Release: ``1.1.0``
|
|
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.
|
|
58
|
+
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-common-compat/1.1.0/>`_.
|
|
59
59
|
|
|
60
60
|
Installation
|
|
61
61
|
------------
|
|
@@ -76,4 +76,4 @@ PIP package Version required
|
|
|
76
76
|
================== ==================
|
|
77
77
|
|
|
78
78
|
The changelog for the provider package can be found in the
|
|
79
|
-
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-common-compat/1.
|
|
79
|
+
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-common-compat/1.1.0/changelog.html>`_.
|
|
@@ -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.1.0"
|
|
33
33
|
|
|
34
34
|
if packaging.version.parse(packaging.version.parse(airflow_version).base_version) < packaging.version.parse(
|
|
35
35
|
"2.7.0"
|
|
@@ -29,7 +29,7 @@ def get_provider_info():
|
|
|
29
29
|
"description": "``Common Compatibility Provider - providing compatibility code for previous Airflow versions.``\n",
|
|
30
30
|
"state": "ready",
|
|
31
31
|
"source-date-epoch": 1716287191,
|
|
32
|
-
"versions": ["1.0.0"],
|
|
32
|
+
"versions": ["1.1.0", "1.0.0"],
|
|
33
33
|
"dependencies": ["apache-airflow>=2.7.0"],
|
|
34
34
|
"integrations": [
|
|
35
35
|
{
|
apache_airflow_providers_common_compat-1.1.0/airflow/providers/common/compat/lineage/__init__.py
ADDED
|
@@ -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,41 @@
|
|
|
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
|
+
from __future__ import annotations
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
def get_hook_lineage_collector():
|
|
21
|
+
# HookLineageCollector added in 2.10
|
|
22
|
+
try:
|
|
23
|
+
from airflow.lineage.hook import get_hook_lineage_collector
|
|
24
|
+
|
|
25
|
+
return get_hook_lineage_collector()
|
|
26
|
+
except ImportError:
|
|
27
|
+
|
|
28
|
+
class NoOpCollector:
|
|
29
|
+
"""
|
|
30
|
+
NoOpCollector is a hook lineage collector that does nothing.
|
|
31
|
+
|
|
32
|
+
It is used when you want to disable lineage collection.
|
|
33
|
+
"""
|
|
34
|
+
|
|
35
|
+
def add_input_dataset(self, *_, **__):
|
|
36
|
+
pass
|
|
37
|
+
|
|
38
|
+
def add_output_dataset(self, *_, **__):
|
|
39
|
+
pass
|
|
40
|
+
|
|
41
|
+
return NoOpCollector()
|
apache_airflow_providers_common_compat-1.1.0/airflow/providers/common/compat/openlineage/__init__.py
ADDED
|
@@ -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.
|
apache_airflow_providers_common_compat-1.1.0/airflow/providers/common/compat/openlineage/facet.py
ADDED
|
@@ -0,0 +1,158 @@
|
|
|
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
|
+
|
|
23
|
+
def create_no_op(*_, **__) -> None:
|
|
24
|
+
"""
|
|
25
|
+
Create a no-op placeholder.
|
|
26
|
+
|
|
27
|
+
This function creates and returns a None value, used as a placeholder when the OpenLineage client
|
|
28
|
+
library is available. It represents an action that has no effect.
|
|
29
|
+
"""
|
|
30
|
+
return None
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
if TYPE_CHECKING:
|
|
34
|
+
from openlineage.client.generated.base import (
|
|
35
|
+
BaseFacet,
|
|
36
|
+
Dataset,
|
|
37
|
+
DatasetFacet,
|
|
38
|
+
InputDataset,
|
|
39
|
+
OutputDataset,
|
|
40
|
+
RunFacet,
|
|
41
|
+
)
|
|
42
|
+
from openlineage.client.generated.column_lineage_dataset import (
|
|
43
|
+
ColumnLineageDatasetFacet,
|
|
44
|
+
Fields,
|
|
45
|
+
InputField,
|
|
46
|
+
)
|
|
47
|
+
from openlineage.client.generated.documentation_dataset import DocumentationDatasetFacet
|
|
48
|
+
from openlineage.client.generated.error_message_run import ErrorMessageRunFacet
|
|
49
|
+
from openlineage.client.generated.external_query_run import ExternalQueryRunFacet
|
|
50
|
+
from openlineage.client.generated.extraction_error_run import Error, ExtractionErrorRunFacet
|
|
51
|
+
from openlineage.client.generated.lifecycle_state_change_dataset import (
|
|
52
|
+
LifecycleStateChange,
|
|
53
|
+
LifecycleStateChangeDatasetFacet,
|
|
54
|
+
PreviousIdentifier,
|
|
55
|
+
)
|
|
56
|
+
from openlineage.client.generated.output_statistics_output_dataset import (
|
|
57
|
+
OutputStatisticsOutputDatasetFacet,
|
|
58
|
+
)
|
|
59
|
+
from openlineage.client.generated.schema_dataset import SchemaDatasetFacet, SchemaDatasetFacetFields
|
|
60
|
+
from openlineage.client.generated.sql_job import SQLJobFacet
|
|
61
|
+
from openlineage.client.generated.symlinks_dataset import Identifier, SymlinksDatasetFacet
|
|
62
|
+
else:
|
|
63
|
+
try:
|
|
64
|
+
try:
|
|
65
|
+
from openlineage.client.generated.base import (
|
|
66
|
+
BaseFacet,
|
|
67
|
+
Dataset,
|
|
68
|
+
DatasetFacet,
|
|
69
|
+
InputDataset,
|
|
70
|
+
OutputDataset,
|
|
71
|
+
RunFacet,
|
|
72
|
+
)
|
|
73
|
+
from openlineage.client.generated.column_lineage_dataset import (
|
|
74
|
+
ColumnLineageDatasetFacet,
|
|
75
|
+
Fields,
|
|
76
|
+
InputField,
|
|
77
|
+
)
|
|
78
|
+
from openlineage.client.generated.documentation_dataset import DocumentationDatasetFacet
|
|
79
|
+
from openlineage.client.generated.error_message_run import ErrorMessageRunFacet
|
|
80
|
+
from openlineage.client.generated.external_query_run import ExternalQueryRunFacet
|
|
81
|
+
from openlineage.client.generated.extraction_error_run import Error, ExtractionErrorRunFacet
|
|
82
|
+
from openlineage.client.generated.lifecycle_state_change_dataset import (
|
|
83
|
+
LifecycleStateChange,
|
|
84
|
+
LifecycleStateChangeDatasetFacet,
|
|
85
|
+
PreviousIdentifier,
|
|
86
|
+
)
|
|
87
|
+
from openlineage.client.generated.output_statistics_output_dataset import (
|
|
88
|
+
OutputStatisticsOutputDatasetFacet,
|
|
89
|
+
)
|
|
90
|
+
from openlineage.client.generated.schema_dataset import (
|
|
91
|
+
SchemaDatasetFacet,
|
|
92
|
+
SchemaDatasetFacetFields,
|
|
93
|
+
)
|
|
94
|
+
from openlineage.client.generated.sql_job import SQLJobFacet
|
|
95
|
+
from openlineage.client.generated.symlinks_dataset import Identifier, SymlinksDatasetFacet
|
|
96
|
+
except ImportError:
|
|
97
|
+
from openlineage.client.facet import (
|
|
98
|
+
BaseFacet,
|
|
99
|
+
BaseFacet as DatasetFacet,
|
|
100
|
+
BaseFacet as RunFacet,
|
|
101
|
+
ColumnLineageDatasetFacet,
|
|
102
|
+
ColumnLineageDatasetFacetFieldsAdditional as Fields,
|
|
103
|
+
ColumnLineageDatasetFacetFieldsAdditionalInputFields as InputField,
|
|
104
|
+
DocumentationDatasetFacet,
|
|
105
|
+
ErrorMessageRunFacet,
|
|
106
|
+
ExternalQueryRunFacet,
|
|
107
|
+
ExtractionError as Error,
|
|
108
|
+
ExtractionErrorRunFacet,
|
|
109
|
+
LifecycleStateChange,
|
|
110
|
+
LifecycleStateChangeDatasetFacet,
|
|
111
|
+
LifecycleStateChangeDatasetFacetPreviousIdentifier as PreviousIdentifier,
|
|
112
|
+
OutputStatisticsOutputDatasetFacet,
|
|
113
|
+
SchemaDatasetFacet,
|
|
114
|
+
SchemaField as SchemaDatasetFacetFields,
|
|
115
|
+
SqlJobFacet as SQLJobFacet,
|
|
116
|
+
SymlinksDatasetFacet,
|
|
117
|
+
SymlinksDatasetFacetIdentifiers as Identifier,
|
|
118
|
+
)
|
|
119
|
+
from openlineage.client.run import Dataset, InputDataset, OutputDataset
|
|
120
|
+
except ImportError:
|
|
121
|
+
# When no openlineage client library installed we create no-op classes.
|
|
122
|
+
# This allows avoiding raising ImportError when making OL imports in top-level code
|
|
123
|
+
# (which shouldn't be the case anyway).
|
|
124
|
+
BaseFacet = Dataset = DatasetFacet = InputDataset = OutputDataset = RunFacet = (
|
|
125
|
+
ColumnLineageDatasetFacet
|
|
126
|
+
) = Fields = InputField = DocumentationDatasetFacet = ErrorMessageRunFacet = ExternalQueryRunFacet = (
|
|
127
|
+
Error
|
|
128
|
+
) = ExtractionErrorRunFacet = LifecycleStateChange = LifecycleStateChangeDatasetFacet = (
|
|
129
|
+
PreviousIdentifier
|
|
130
|
+
) = OutputStatisticsOutputDatasetFacet = SchemaDatasetFacet = SchemaDatasetFacetFields = (
|
|
131
|
+
SQLJobFacet
|
|
132
|
+
) = Identifier = SymlinksDatasetFacet = create_no_op
|
|
133
|
+
|
|
134
|
+
__all__ = [
|
|
135
|
+
"BaseFacet",
|
|
136
|
+
"Dataset",
|
|
137
|
+
"DatasetFacet",
|
|
138
|
+
"InputDataset",
|
|
139
|
+
"OutputDataset",
|
|
140
|
+
"RunFacet",
|
|
141
|
+
"ColumnLineageDatasetFacet",
|
|
142
|
+
"Fields",
|
|
143
|
+
"InputField",
|
|
144
|
+
"DocumentationDatasetFacet",
|
|
145
|
+
"ErrorMessageRunFacet",
|
|
146
|
+
"ExternalQueryRunFacet",
|
|
147
|
+
"Error",
|
|
148
|
+
"ExtractionErrorRunFacet",
|
|
149
|
+
"LifecycleStateChange",
|
|
150
|
+
"LifecycleStateChangeDatasetFacet",
|
|
151
|
+
"PreviousIdentifier",
|
|
152
|
+
"OutputStatisticsOutputDatasetFacet",
|
|
153
|
+
"SchemaDatasetFacet",
|
|
154
|
+
"SchemaDatasetFacetFields",
|
|
155
|
+
"SQLJobFacet",
|
|
156
|
+
"Identifier",
|
|
157
|
+
"SymlinksDatasetFacet",
|
|
158
|
+
]
|
|
@@ -28,7 +28,7 @@ build-backend = "flit_core.buildapi"
|
|
|
28
28
|
|
|
29
29
|
[project]
|
|
30
30
|
name = "apache-airflow-providers-common-compat"
|
|
31
|
-
version = "1.
|
|
31
|
+
version = "1.1.0"
|
|
32
32
|
description = "Provider package apache-airflow-providers-common-compat for Apache Airflow"
|
|
33
33
|
readme = "README.rst"
|
|
34
34
|
authors = [
|
|
@@ -56,12 +56,12 @@ classifiers = [
|
|
|
56
56
|
]
|
|
57
57
|
requires-python = "~=3.8"
|
|
58
58
|
dependencies = [
|
|
59
|
-
"apache-airflow>=2.7.
|
|
59
|
+
"apache-airflow>=2.7.0",
|
|
60
60
|
]
|
|
61
61
|
|
|
62
62
|
[project.urls]
|
|
63
|
-
"Documentation" = "https://airflow.apache.org/docs/apache-airflow-providers-common-compat/1.
|
|
64
|
-
"Changelog" = "https://airflow.apache.org/docs/apache-airflow-providers-common-compat/1.
|
|
63
|
+
"Documentation" = "https://airflow.apache.org/docs/apache-airflow-providers-common-compat/1.1.0"
|
|
64
|
+
"Changelog" = "https://airflow.apache.org/docs/apache-airflow-providers-common-compat/1.1.0/changelog.html"
|
|
65
65
|
"Bug Tracker" = "https://github.com/apache/airflow/issues"
|
|
66
66
|
"Source Code" = "https://github.com/apache/airflow"
|
|
67
67
|
"Slack Chat" = "https://s.apache.org/airflow-slack"
|