apache-airflow-providers-telegram 4.5.1rc1__tar.gz → 4.5.2rc1__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.
- {apache_airflow_providers_telegram-4.5.1rc1 → apache_airflow_providers_telegram-4.5.2rc1}/PKG-INFO +6 -6
- {apache_airflow_providers_telegram-4.5.1rc1 → apache_airflow_providers_telegram-4.5.2rc1}/README.rst +3 -3
- {apache_airflow_providers_telegram-4.5.1rc1 → apache_airflow_providers_telegram-4.5.2rc1}/airflow/providers/telegram/LICENSE +4 -4
- {apache_airflow_providers_telegram-4.5.1rc1 → apache_airflow_providers_telegram-4.5.2rc1}/airflow/providers/telegram/__init__.py +1 -1
- {apache_airflow_providers_telegram-4.5.1rc1 → apache_airflow_providers_telegram-4.5.2rc1}/airflow/providers/telegram/get_provider_info.py +2 -1
- {apache_airflow_providers_telegram-4.5.1rc1 → apache_airflow_providers_telegram-4.5.2rc1}/airflow/providers/telegram/hooks/telegram.py +4 -3
- {apache_airflow_providers_telegram-4.5.1rc1 → apache_airflow_providers_telegram-4.5.2rc1}/pyproject.toml +3 -3
- {apache_airflow_providers_telegram-4.5.1rc1 → apache_airflow_providers_telegram-4.5.2rc1}/airflow/providers/telegram/hooks/__init__.py +0 -0
- {apache_airflow_providers_telegram-4.5.1rc1 → apache_airflow_providers_telegram-4.5.2rc1}/airflow/providers/telegram/operators/__init__.py +0 -0
- {apache_airflow_providers_telegram-4.5.1rc1 → apache_airflow_providers_telegram-4.5.2rc1}/airflow/providers/telegram/operators/telegram.py +0 -0
{apache_airflow_providers_telegram-4.5.1rc1 → apache_airflow_providers_telegram-4.5.2rc1}/PKG-INFO
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: apache-airflow-providers-telegram
|
3
|
-
Version: 4.5.
|
3
|
+
Version: 4.5.2rc1
|
4
4
|
Summary: Provider package apache-airflow-providers-telegram for Apache Airflow
|
5
5
|
Keywords: airflow-provider,telegram,airflow,integration
|
6
6
|
Author-email: Apache Software Foundation <dev@airflow.apache.org>
|
@@ -24,8 +24,8 @@ Classifier: Topic :: System :: Monitoring
|
|
24
24
|
Requires-Dist: apache-airflow>=2.7.0rc0
|
25
25
|
Requires-Dist: python-telegram-bot>=20.2
|
26
26
|
Project-URL: Bug Tracker, https://github.com/apache/airflow/issues
|
27
|
-
Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.5.
|
28
|
-
Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.5.
|
27
|
+
Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.5.2/changelog.html
|
28
|
+
Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.5.2
|
29
29
|
Project-URL: Slack Chat, https://s.apache.org/airflow-slack
|
30
30
|
Project-URL: Source Code, https://github.com/apache/airflow
|
31
31
|
Project-URL: Twitter, https://twitter.com/ApacheAirflow
|
@@ -75,7 +75,7 @@ Project-URL: YouTube, https://www.youtube.com/channel/UCSXwxpWZQ7XZ1WL3wqevChA/
|
|
75
75
|
|
76
76
|
Package ``apache-airflow-providers-telegram``
|
77
77
|
|
78
|
-
Release: ``4.5.
|
78
|
+
Release: ``4.5.2.rc1``
|
79
79
|
|
80
80
|
|
81
81
|
`Telegram <https://telegram.org/>`__
|
@@ -88,7 +88,7 @@ This is a provider package for ``telegram`` provider. All classes for this provi
|
|
88
88
|
are in ``airflow.providers.telegram`` python package.
|
89
89
|
|
90
90
|
You can find package information and changelog for the provider
|
91
|
-
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.5.
|
91
|
+
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.5.2/>`_.
|
92
92
|
|
93
93
|
Installation
|
94
94
|
------------
|
@@ -110,4 +110,4 @@ PIP package Version required
|
|
110
110
|
======================= ==================
|
111
111
|
|
112
112
|
The changelog for the provider package can be found in the
|
113
|
-
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.5.
|
113
|
+
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.5.2/changelog.html>`_.
|
{apache_airflow_providers_telegram-4.5.1rc1 → apache_airflow_providers_telegram-4.5.2rc1}/README.rst
RENAMED
@@ -42,7 +42,7 @@
|
|
42
42
|
|
43
43
|
Package ``apache-airflow-providers-telegram``
|
44
44
|
|
45
|
-
Release: ``4.5.
|
45
|
+
Release: ``4.5.2.rc1``
|
46
46
|
|
47
47
|
|
48
48
|
`Telegram <https://telegram.org/>`__
|
@@ -55,7 +55,7 @@ This is a provider package for ``telegram`` provider. All classes for this provi
|
|
55
55
|
are in ``airflow.providers.telegram`` 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-telegram/4.5.
|
58
|
+
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.5.2/>`_.
|
59
59
|
|
60
60
|
Installation
|
61
61
|
------------
|
@@ -77,4 +77,4 @@ PIP package Version required
|
|
77
77
|
======================= ==================
|
78
78
|
|
79
79
|
The changelog for the provider package can be found in the
|
80
|
-
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.5.
|
80
|
+
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.5.2/changelog.html>`_.
|
@@ -215,7 +215,7 @@ Third party Apache 2.0 licenses
|
|
215
215
|
|
216
216
|
The following components are provided under the Apache 2.0 License.
|
217
217
|
See project link for details. The text of each license is also included
|
218
|
-
at licenses/LICENSE-[project].txt.
|
218
|
+
at 3rd-party-licenses/LICENSE-[project].txt.
|
219
219
|
|
220
220
|
(ALv2 License) hue v4.3.0 (https://github.com/cloudera/hue/)
|
221
221
|
(ALv2 License) jqclock v2.3.0 (https://github.com/JohnRDOrazio/jQuery-Clock-Plugin)
|
@@ -227,7 +227,7 @@ MIT licenses
|
|
227
227
|
========================================================================
|
228
228
|
|
229
229
|
The following components are provided under the MIT License. See project link for details.
|
230
|
-
The text of each license is also included at licenses/LICENSE-[project].txt.
|
230
|
+
The text of each license is also included at 3rd-party-licenses/LICENSE-[project].txt.
|
231
231
|
|
232
232
|
(MIT License) jquery v3.5.1 (https://jquery.org/license/)
|
233
233
|
(MIT License) dagre-d3 v0.6.4 (https://github.com/cpettitt/dagre-d3)
|
@@ -243,11 +243,11 @@ The text of each license is also included at licenses/LICENSE-[project].txt.
|
|
243
243
|
BSD 3-Clause licenses
|
244
244
|
========================================================================
|
245
245
|
The following components are provided under the BSD 3-Clause license. See project links for details.
|
246
|
-
The text of each license is also included at licenses/LICENSE-[project].txt.
|
246
|
+
The text of each license is also included at 3rd-party-licenses/LICENSE-[project].txt.
|
247
247
|
|
248
248
|
(BSD 3 License) d3 v5.16.0 (https://d3js.org)
|
249
249
|
(BSD 3 License) d3-shape v2.1.0 (https://github.com/d3/d3-shape)
|
250
250
|
(BSD 3 License) cgroupspy 0.2.1 (https://github.com/cloudsigma/cgroupspy)
|
251
251
|
|
252
252
|
========================================================================
|
253
|
-
See licenses/LICENSES-ui.txt for packages used in `/airflow/www`
|
253
|
+
See 3rd-party-licenses/LICENSES-ui.txt for packages used in `/airflow/www`
|
@@ -29,7 +29,7 @@ from airflow import __version__ as airflow_version
|
|
29
29
|
|
30
30
|
__all__ = ["__version__"]
|
31
31
|
|
32
|
-
__version__ = "4.5.
|
32
|
+
__version__ = "4.5.2"
|
33
33
|
|
34
34
|
if packaging.version.parse(packaging.version.parse(airflow_version).base_version) < packaging.version.parse(
|
35
35
|
"2.7.0"
|
@@ -28,8 +28,9 @@ def get_provider_info():
|
|
28
28
|
"name": "Telegram",
|
29
29
|
"description": "`Telegram <https://telegram.org/>`__\n",
|
30
30
|
"state": "ready",
|
31
|
-
"source-date-epoch":
|
31
|
+
"source-date-epoch": 1718605519,
|
32
32
|
"versions": [
|
33
|
+
"4.5.2",
|
33
34
|
"4.5.1",
|
34
35
|
"4.5.0",
|
35
36
|
"4.4.0",
|
@@ -142,17 +142,18 @@ class TelegramHook(BaseHook):
|
|
142
142
|
|
143
143
|
:param api_params: params for telegram_instance.send_message. It can also be used to override chat_id
|
144
144
|
"""
|
145
|
-
kwargs = {
|
146
|
-
"chat_id": self.chat_id,
|
145
|
+
kwargs: dict[str, Any] = {
|
147
146
|
"parse_mode": telegram.constants.ParseMode.HTML,
|
148
147
|
"disable_web_page_preview": True,
|
149
148
|
}
|
149
|
+
if self.chat_id is not None:
|
150
|
+
kwargs["chat_id"] = self.chat_id
|
150
151
|
kwargs.update(api_params)
|
151
152
|
|
152
153
|
if "text" not in kwargs or kwargs["text"] is None:
|
153
154
|
raise AirflowException("'text' must be provided for telegram message")
|
154
155
|
|
155
|
-
if kwargs
|
156
|
+
if kwargs.get("chat_id") is None:
|
156
157
|
raise AirflowException("'chat_id' must be provided for telegram message")
|
157
158
|
|
158
159
|
response = asyncio.run(self.connection.send_message(**kwargs))
|
@@ -28,7 +28,7 @@ build-backend = "flit_core.buildapi"
|
|
28
28
|
|
29
29
|
[project]
|
30
30
|
name = "apache-airflow-providers-telegram"
|
31
|
-
version = "4.5.
|
31
|
+
version = "4.5.2.rc1"
|
32
32
|
description = "Provider package apache-airflow-providers-telegram for Apache Airflow"
|
33
33
|
readme = "README.rst"
|
34
34
|
authors = [
|
@@ -61,8 +61,8 @@ dependencies = [
|
|
61
61
|
]
|
62
62
|
|
63
63
|
[project.urls]
|
64
|
-
"Documentation" = "https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.5.
|
65
|
-
"Changelog" = "https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.5.
|
64
|
+
"Documentation" = "https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.5.2"
|
65
|
+
"Changelog" = "https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.5.2/changelog.html"
|
66
66
|
"Bug Tracker" = "https://github.com/apache/airflow/issues"
|
67
67
|
"Source Code" = "https://github.com/apache/airflow"
|
68
68
|
"Slack Chat" = "https://s.apache.org/airflow-slack"
|
File without changes
|
File without changes
|