apache-airflow-providers-elasticsearch 4.4.0rc1__py3-none-any.whl → 4.5.0rc2__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.
@@ -15,3 +15,27 @@
15
15
  # KIND, either express or implied. See the License for the
16
16
  # specific language governing permissions and limitations
17
17
  # under the License.
18
+ #
19
+ # NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE
20
+ # OVERWRITTEN WHEN PREPARING DOCUMENTATION FOR THE PACKAGES.
21
+ #
22
+ # IF YOU WANT TO MODIFY IT, YOU SHOULD MODIFY THE TEMPLATE
23
+ # `PROVIDER__INIT__PY_TEMPLATE.py.jinja2` IN the `dev/provider_packages` DIRECTORY
24
+ #
25
+ from __future__ import annotations
26
+
27
+ import packaging.version
28
+
29
+ __all__ = ["__version__"]
30
+
31
+ __version__ = "4.5.0"
32
+
33
+ try:
34
+ from airflow import __version__ as airflow_version
35
+ except ImportError:
36
+ from airflow.version import version as airflow_version
37
+
38
+ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"):
39
+ raise RuntimeError(
40
+ f"The package `apache-airflow-providers-elasticsearch:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501
41
+ )
@@ -27,7 +27,9 @@ def get_provider_info():
27
27
  "package-name": "apache-airflow-providers-elasticsearch",
28
28
  "name": "Elasticsearch",
29
29
  "description": "`Elasticsearch <https://www.elastic.co/elasticsearch>`__\n",
30
+ "suspended": False,
30
31
  "versions": [
32
+ "4.5.0",
31
33
  "4.4.0",
32
34
  "4.3.3",
33
35
  "4.3.2",
@@ -53,9 +55,9 @@ def get_provider_info():
53
55
  "1.0.0",
54
56
  ],
55
57
  "dependencies": [
56
- "apache-airflow>=2.3.0",
58
+ "apache-airflow>=2.4.0",
57
59
  "apache-airflow-providers-common-sql>=1.3.1",
58
- "elasticsearch>7",
60
+ "elasticsearch>7,<7.15.0",
59
61
  "elasticsearch-dbapi",
60
62
  "elasticsearch-dsl>=5.0.0",
61
63
  ],
@@ -24,6 +24,7 @@ from elasticsearch import Elasticsearch
24
24
  from es.elastic.api import Connection as ESConnection, connect
25
25
 
26
26
  from airflow.compat.functools import cached_property
27
+ from airflow.exceptions import AirflowProviderDeprecationWarning
27
28
  from airflow.hooks.base import BaseHook
28
29
  from airflow.models.connection import Connection as AirflowConnection
29
30
  from airflow.providers.common.sql.hooks.sql import DbApiHook
@@ -110,7 +111,7 @@ class ElasticsearchHook(ElasticsearchSQLHook):
110
111
  warnings.warn(
111
112
  """This class is deprecated.
112
113
  Please use `airflow.providers.elasticsearch.hooks.elasticsearch.ElasticsearchSQLHook`.""",
113
- DeprecationWarning,
114
+ AirflowProviderDeprecationWarning,
114
115
  stacklevel=3,
115
116
  )
116
117
  super().__init__(*args, **kwargs)
@@ -33,6 +33,7 @@ import pendulum
33
33
  from elasticsearch_dsl import Search
34
34
 
35
35
  from airflow.configuration import conf
36
+ from airflow.exceptions import AirflowProviderDeprecationWarning
36
37
  from airflow.models.dagrun import DagRun
37
38
  from airflow.models.taskinstance import TaskInstance
38
39
  from airflow.providers.elasticsearch.log.es_json_formatter import ElasticsearchJSONFormatter
@@ -105,7 +106,7 @@ class ElasticsearchTaskHandler(FileTaskHandler, ExternalLoggingMixin, LoggingMix
105
106
  if USE_PER_RUN_LOG_ID and log_id_template is not None:
106
107
  warnings.warn(
107
108
  "Passing log_id_template to ElasticsearchTaskHandler is deprecated and has no effect",
108
- DeprecationWarning,
109
+ AirflowProviderDeprecationWarning,
109
110
  )
110
111
 
111
112
  self.log_id_template = log_id_template # Only used on Airflow < 2.3.2.
@@ -1,19 +1,18 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: apache-airflow-providers-elasticsearch
3
- Version: 4.4.0rc1
3
+ Version: 4.5.0rc2
4
4
  Summary: Provider for Apache Airflow. Implements apache-airflow-providers-elasticsearch package
5
5
  Home-page: https://airflow.apache.org/
6
+ Download-URL: https://archive.apache.org/dist/airflow/providers
6
7
  Author: Apache Software Foundation
7
8
  Author-email: dev@airflow.apache.org
8
9
  License: Apache License 2.0
9
- Download-URL: https://archive.apache.org/dist/airflow/providers
10
- Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-elasticsearch/4.4.0/
10
+ Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-elasticsearch/4.5.0/
11
11
  Project-URL: Bug Tracker, https://github.com/apache/airflow/issues
12
12
  Project-URL: Source Code, https://github.com/apache/airflow
13
13
  Project-URL: Slack Chat, https://s.apache.org/airflow-slack
14
14
  Project-URL: Twitter, https://twitter.com/ApacheAirflow
15
15
  Project-URL: YouTube, https://www.youtube.com/channel/UCSXwxpWZQ7XZ1WL3wqevChA/
16
- Platform: UNKNOWN
17
16
  Classifier: Development Status :: 5 - Production/Stable
18
17
  Classifier: Environment :: Console
19
18
  Classifier: Environment :: Web Environment
@@ -32,10 +31,10 @@ Description-Content-Type: text/x-rst
32
31
  License-File: LICENSE
33
32
  License-File: NOTICE
34
33
  Requires-Dist: apache-airflow-providers-common-sql (>=1.3.1.dev0)
35
- Requires-Dist: apache-airflow (>=2.3.0.dev0)
34
+ Requires-Dist: apache-airflow (>=2.4.0.dev0)
36
35
  Requires-Dist: elasticsearch-dbapi
37
36
  Requires-Dist: elasticsearch-dsl (>=5.0.0)
38
- Requires-Dist: elasticsearch (>7)
37
+ Requires-Dist: elasticsearch (<7.15.0,>7)
39
38
  Provides-Extra: common.sql
40
39
  Requires-Dist: apache-airflow-providers-common-sql ; extra == 'common.sql'
41
40
 
@@ -60,7 +59,7 @@ Requires-Dist: apache-airflow-providers-common-sql ; extra == 'common.sql'
60
59
 
61
60
  Package ``apache-airflow-providers-elasticsearch``
62
61
 
63
- Release: ``4.4.0rc1``
62
+ Release: ``4.5.0rc2``
64
63
 
65
64
 
66
65
  `Elasticsearch <https://www.elastic.co/elasticsearch>`__
@@ -73,7 +72,7 @@ This is a provider package for ``elasticsearch`` provider. All classes for this
73
72
  are in ``airflow.providers.elasticsearch`` python package.
74
73
 
75
74
  You can find package information and changelog for the provider
76
- in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-elasticsearch/4.4.0/>`_.
75
+ in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-elasticsearch/4.5.0/>`_.
77
76
 
78
77
 
79
78
  Installation
@@ -91,9 +90,9 @@ Requirements
91
90
  ======================================= ==================
92
91
  PIP package Version required
93
92
  ======================================= ==================
94
- ``apache-airflow`` ``>=2.3.0``
93
+ ``apache-airflow`` ``>=2.4.0``
95
94
  ``apache-airflow-providers-common-sql`` ``>=1.3.1``
96
- ``elasticsearch`` ``>7``
95
+ ``elasticsearch`` ``>7,<7.15.0``
97
96
  ``elasticsearch-dbapi``
98
97
  ``elasticsearch-dsl`` ``>=5.0.0``
99
98
  ======================================= ==================
@@ -143,6 +142,30 @@ Dependent package
143
142
  Changelog
144
143
  ---------
145
144
 
145
+ 4.5.0
146
+ .....
147
+
148
+ .. note::
149
+ This release of provider is only available for Airflow 2.4+ as explained in the
150
+ `Apache Airflow providers support policy <https://github.com/apache/airflow/blob/main/PROVIDERS.rst#minimum-supported-version-of-airflow-for-community-managed-providers>`_.
151
+
152
+ Misc
153
+ ~~~~
154
+
155
+ * ``Bump minimum Airflow version in providers (#30917)``
156
+ * ``Upper-bind elasticearch integration (#31255)``
157
+
158
+ .. Below changes are excluded from the changelog. Move them to
159
+ appropriate section above if needed. Do not delete the lines(!):
160
+ * ``Use 'AirflowProviderDeprecationWarning' in providers (#30975)``
161
+ * ``Restore trigger logging (#29482)``
162
+ * ``Revert "Enable individual trigger logging (#27758)" (#29472)``
163
+ * ``Add full automation for min Airflow version for providers (#30994)``
164
+ * ``Add mechanism to suspend providers (#30422)``
165
+ * ``Use '__version__' in providers not 'version' (#31393)``
166
+ * ``Fixing circular import error in providers caused by airflow version check (#31379)``
167
+ * ``Prepare docs for May 2023 wave of Providers (#31252)``
168
+
146
169
  4.4.0
147
170
  .....
148
171
 
@@ -182,8 +205,9 @@ Bug Fixes
182
205
  4.3.0
183
206
  .....
184
207
 
185
- This release of provider is only available for Airflow 2.3+ as explained in the
186
- `Apache Airflow providers support policy <https://github.com/apache/airflow/blob/main/README.md#support-for-providers>`_.
208
+ .. note::
209
+ This release of provider is only available for Airflow 2.3+ as explained in the
210
+ `Apache Airflow providers support policy <https://github.com/apache/airflow/blob/main/PROVIDERS.rst#minimum-supported-version-of-airflow-for-community-managed-providers>`_.
187
211
 
188
212
  Misc
189
213
  ~~~~
@@ -242,8 +266,9 @@ Bug Fixes
242
266
  Breaking changes
243
267
  ~~~~~~~~~~~~~~~~
244
268
 
245
- * This release of provider is only available for Airflow 2.2+ as explained in the Apache Airflow
246
- providers support policy https://github.com/apache/airflow/blob/main/README.md#support-for-providers
269
+ .. note::
270
+ This release of provider is only available for Airflow 2.2+ as explained in the
271
+ `Apache Airflow providers support policy <https://github.com/apache/airflow/blob/main/PROVIDERS.rst#minimum-supported-version-of-airflow-for-community-managed-providers>`_.
247
272
 
248
273
  Misc
249
274
  ~~~~
@@ -459,5 +484,3 @@ Bug fixes
459
484
  .....
460
485
 
461
486
  Initial version of the provider.
462
-
463
-
@@ -0,0 +1,14 @@
1
+ airflow/providers/elasticsearch/__init__.py,sha256=rQl-yV1Q8HyxaUFDHlFqOu5RSy2fLA983PW5WfBz75g,1538
2
+ airflow/providers/elasticsearch/get_provider_info.py,sha256=133-ADSIPbkNBne3dhkqeN5QJse6Xx97ixmWukLnfDc,2904
3
+ airflow/providers/elasticsearch/hooks/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
4
+ airflow/providers/elasticsearch/hooks/elasticsearch.py,sha256=06zyxXe7isR1-fYHC6hp2V9J9GgE9sVbPE1jNyyGHAw,5488
5
+ airflow/providers/elasticsearch/log/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
6
+ airflow/providers/elasticsearch/log/es_json_formatter.py,sha256=3vZ7CLX1yU9AAb66Jsn5PPlgL0g3pb3IUvWLMeIOUfI,1808
7
+ airflow/providers/elasticsearch/log/es_task_handler.py,sha256=9DNZn3OEs2Gx5tZDpXR59-9ekrexsXBi4yqQp25cc38,17262
8
+ apache_airflow_providers_elasticsearch-4.5.0rc2.dist-info/LICENSE,sha256=gXPVwptPlW1TJ4HSuG5OMPg-a3h43OGMkZRR1rpwfJA,10850
9
+ apache_airflow_providers_elasticsearch-4.5.0rc2.dist-info/METADATA,sha256=OYe-yxHpWaVmKKbfrtFmMvZD15WqrcrXRnvPCArybNc,15875
10
+ apache_airflow_providers_elasticsearch-4.5.0rc2.dist-info/NOTICE,sha256=m-6s2XynUxVSUIxO4rVablAZCvFq-wmLrqV91DotRBw,240
11
+ apache_airflow_providers_elasticsearch-4.5.0rc2.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
12
+ apache_airflow_providers_elasticsearch-4.5.0rc2.dist-info/entry_points.txt,sha256=dAJ1Ib0gGGXb1p2Gd9pMCFzyIXRCqHax_eno9jpWDWk,110
13
+ apache_airflow_providers_elasticsearch-4.5.0rc2.dist-info/top_level.txt,sha256=OeMVH5md7fr2QQWpnZoOWWxWO-0WH1IP70lpTVwopPg,8
14
+ apache_airflow_providers_elasticsearch-4.5.0rc2.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.38.4)
2
+ Generator: bdist_wheel (0.40.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,3 +1,2 @@
1
1
  [apache_airflow_provider]
2
2
  provider_info = airflow.providers.elasticsearch.get_provider_info:get_provider_info
3
-
@@ -1,14 +0,0 @@
1
- airflow/providers/elasticsearch/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
2
- airflow/providers/elasticsearch/get_provider_info.py,sha256=-Oml__0I6ztW4CdQoRNrR7Yul0XZsGXQnCoyie5TQX4,2847
3
- airflow/providers/elasticsearch/hooks/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
4
- airflow/providers/elasticsearch/hooks/elasticsearch.py,sha256=2_9qR9twDv8DgAkLD_QI_YLCJyoXup6LEPnt91le3X8,5408
5
- airflow/providers/elasticsearch/log/__init__.py,sha256=9hdXHABrVpkbpjZgUft39kOFL2xSGeG4GEua0Hmelus,785
6
- airflow/providers/elasticsearch/log/es_json_formatter.py,sha256=3vZ7CLX1yU9AAb66Jsn5PPlgL0g3pb3IUvWLMeIOUfI,1808
7
- airflow/providers/elasticsearch/log/es_task_handler.py,sha256=GK0ee8aM0RY-nQylA-LdSz8rxpRn7EQuG0vxFw9x5ek,17182
8
- apache_airflow_providers_elasticsearch-4.4.0rc1.dist-info/LICENSE,sha256=gXPVwptPlW1TJ4HSuG5OMPg-a3h43OGMkZRR1rpwfJA,10850
9
- apache_airflow_providers_elasticsearch-4.4.0rc1.dist-info/METADATA,sha256=vFsOT5DYbPE-4JrOlEz7eUgU0bbykBniG8PV2Vx6VwY,14685
10
- apache_airflow_providers_elasticsearch-4.4.0rc1.dist-info/NOTICE,sha256=m-6s2XynUxVSUIxO4rVablAZCvFq-wmLrqV91DotRBw,240
11
- apache_airflow_providers_elasticsearch-4.4.0rc1.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
12
- apache_airflow_providers_elasticsearch-4.4.0rc1.dist-info/entry_points.txt,sha256=KAcOuP_fUgO1aPIV8CmN5H5_qLwz0J9hrtCG5hftsBg,111
13
- apache_airflow_providers_elasticsearch-4.4.0rc1.dist-info/top_level.txt,sha256=OeMVH5md7fr2QQWpnZoOWWxWO-0WH1IP70lpTVwopPg,8
14
- apache_airflow_providers_elasticsearch-4.4.0rc1.dist-info/RECORD,,