apache-airflow-providers-telegram 4.7.0rc2__tar.gz → 4.7.1__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: apache-airflow-providers-telegram
3
- Version: 4.7.0rc2
3
+ Version: 4.7.1
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>
@@ -20,34 +20,17 @@ 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.9.0rc0
23
+ Requires-Dist: apache-airflow>=2.9.0
24
24
  Requires-Dist: python-telegram-bot>=20.2
25
25
  Project-URL: Bug Tracker, https://github.com/apache/airflow/issues
26
- Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.7.0/changelog.html
27
- Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.7.0
26
+ Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.7.1/changelog.html
27
+ Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.7.1
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://x.com/ApacheAirflow
31
31
  Project-URL: YouTube, https://www.youtube.com/channel/UCSXwxpWZQ7XZ1WL3wqevChA/
32
32
 
33
33
 
34
- .. Licensed to the Apache Software Foundation (ASF) under one
35
- or more contributor license agreements. See the NOTICE file
36
- distributed with this work for additional information
37
- regarding copyright ownership. The ASF licenses this file
38
- to you under the Apache License, Version 2.0 (the
39
- "License"); you may not use this file except in compliance
40
- with the License. You may obtain a copy of the License at
41
-
42
- .. http://www.apache.org/licenses/LICENSE-2.0
43
-
44
- .. Unless required by applicable law or agreed to in writing,
45
- software distributed under the License is distributed on an
46
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
47
- KIND, either express or implied. See the License for the
48
- specific language governing permissions and limitations
49
- under the License.
50
-
51
34
  .. Licensed to the Apache Software Foundation (ASF) under one
52
35
  or more contributor license agreements. See the NOTICE file
53
36
  distributed with this work for additional information
@@ -65,8 +48,7 @@ Project-URL: YouTube, https://www.youtube.com/channel/UCSXwxpWZQ7XZ1WL3wqevChA/
65
48
  specific language governing permissions and limitations
66
49
  under the License.
67
50
 
68
- .. NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE
69
- OVERWRITTEN WHEN PREPARING PACKAGES.
51
+ .. NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE OVERWRITTEN!
70
52
 
71
53
  .. IF YOU WANT TO MODIFY TEMPLATE FOR THIS FILE, YOU SHOULD MODIFY THE TEMPLATE
72
54
  `PROVIDER_README_TEMPLATE.rst.jinja2` IN the `dev/breeze/src/airflow_breeze/templates` DIRECTORY
@@ -74,7 +56,7 @@ Project-URL: YouTube, https://www.youtube.com/channel/UCSXwxpWZQ7XZ1WL3wqevChA/
74
56
 
75
57
  Package ``apache-airflow-providers-telegram``
76
58
 
77
- Release: ``4.7.0.rc2``
59
+ Release: ``4.7.1``
78
60
 
79
61
 
80
62
  `Telegram <https://telegram.org/>`__
@@ -87,7 +69,7 @@ This is a provider package for ``telegram`` provider. All classes for this provi
87
69
  are in ``airflow.providers.telegram`` python package.
88
70
 
89
71
  You can find package information and changelog for the provider
90
- in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.7.0/>`_.
72
+ in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.7.1/>`_.
91
73
 
92
74
  Installation
93
75
  ------------
@@ -109,4 +91,5 @@ PIP package Version required
109
91
  ======================= ==================
110
92
 
111
93
  The changelog for the provider package can be found in the
112
- `changelog <https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.7.0/changelog.html>`_.
94
+ `changelog <https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.7.1/changelog.html>`_.
95
+
@@ -1,21 +1,4 @@
1
1
 
2
- .. Licensed to the Apache Software Foundation (ASF) under one
3
- or more contributor license agreements. See the NOTICE file
4
- distributed with this work for additional information
5
- regarding copyright ownership. The ASF licenses this file
6
- to you under the Apache License, Version 2.0 (the
7
- "License"); you may not use this file except in compliance
8
- with the License. You may obtain a copy of the License at
9
-
10
- .. http://www.apache.org/licenses/LICENSE-2.0
11
-
12
- .. Unless required by applicable law or agreed to in writing,
13
- software distributed under the License is distributed on an
14
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
- KIND, either express or implied. See the License for the
16
- specific language governing permissions and limitations
17
- under the License.
18
-
19
2
  .. Licensed to the Apache Software Foundation (ASF) under one
20
3
  or more contributor license agreements. See the NOTICE file
21
4
  distributed with this work for additional information
@@ -33,8 +16,7 @@
33
16
  specific language governing permissions and limitations
34
17
  under the License.
35
18
 
36
- .. NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE
37
- OVERWRITTEN WHEN PREPARING PACKAGES.
19
+ .. NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE OVERWRITTEN!
38
20
 
39
21
  .. IF YOU WANT TO MODIFY TEMPLATE FOR THIS FILE, YOU SHOULD MODIFY THE TEMPLATE
40
22
  `PROVIDER_README_TEMPLATE.rst.jinja2` IN the `dev/breeze/src/airflow_breeze/templates` DIRECTORY
@@ -42,7 +24,7 @@
42
24
 
43
25
  Package ``apache-airflow-providers-telegram``
44
26
 
45
- Release: ``4.7.0.rc2``
27
+ Release: ``4.7.1``
46
28
 
47
29
 
48
30
  `Telegram <https://telegram.org/>`__
@@ -55,7 +37,7 @@ This is a provider package for ``telegram`` provider. All classes for this provi
55
37
  are in ``airflow.providers.telegram`` python package.
56
38
 
57
39
  You can find package information and changelog for the provider
58
- in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.7.0/>`_.
40
+ in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.7.1/>`_.
59
41
 
60
42
  Installation
61
43
  ------------
@@ -77,4 +59,4 @@ PIP package Version required
77
59
  ======================= ==================
78
60
 
79
61
  The changelog for the provider package can be found in the
80
- `changelog <https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.7.0/changelog.html>`_.
62
+ `changelog <https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.7.1/changelog.html>`_.
@@ -1,4 +1,3 @@
1
-
2
1
  # Licensed to the Apache Software Foundation (ASF) under one
3
2
  # or more contributor license agreements. See the NOTICE file
4
3
  # distributed with this work for additional information
@@ -16,10 +15,9 @@
16
15
  # specific language governing permissions and limitations
17
16
  # under the License.
18
17
 
19
- # NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE
20
- # OVERWRITTEN WHEN PREPARING PACKAGES.
18
+ # NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE OVERWRITTEN!
21
19
 
22
- # IF YOU WANT TO MODIFY THIS FILE, YOU SHOULD MODIFY THE TEMPLATE
20
+ # IF YOU WANT TO MODIFY THIS FILE EXCEPT DEPENDENCIES, YOU SHOULD MODIFY THE TEMPLATE
23
21
  # `pyproject_TEMPLATE.toml.jinja2` IN the `dev/breeze/src/airflow_breeze/templates` DIRECTORY
24
22
  [build-system]
25
23
  requires = ["flit_core==3.10.1"]
@@ -27,7 +25,7 @@ build-backend = "flit_core.buildapi"
27
25
 
28
26
  [project]
29
27
  name = "apache-airflow-providers-telegram"
30
- version = "4.7.0.rc2"
28
+ version = "4.7.1"
31
29
  description = "Provider package apache-airflow-providers-telegram for Apache Airflow"
32
30
  readme = "README.rst"
33
31
  authors = [
@@ -53,14 +51,17 @@ classifiers = [
53
51
  "Topic :: System :: Monitoring",
54
52
  ]
55
53
  requires-python = "~=3.9"
54
+
55
+ # The dependencies should be modified in place in the generated file
56
+ # Any change in the dependencies is preserved when the file is regenerated
56
57
  dependencies = [
57
- "apache-airflow>=2.9.0rc0",
58
+ "apache-airflow>=2.9.0",
58
59
  "python-telegram-bot>=20.2",
59
60
  ]
60
61
 
61
62
  [project.urls]
62
- "Documentation" = "https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.7.0"
63
- "Changelog" = "https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.7.0/changelog.html"
63
+ "Documentation" = "https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.7.1"
64
+ "Changelog" = "https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.7.1/changelog.html"
64
65
  "Bug Tracker" = "https://github.com/apache/airflow/issues"
65
66
  "Source Code" = "https://github.com/apache/airflow"
66
67
  "Slack Chat" = "https://s.apache.org/airflow-slack"
@@ -72,3 +73,6 @@ provider_info = "airflow.providers.telegram.get_provider_info:get_provider_info"
72
73
 
73
74
  [tool.flit.module]
74
75
  name = "airflow.providers.telegram"
76
+
77
+ [tool.pytest.ini_options]
78
+ ignore = "tests/system/"
@@ -199,55 +199,3 @@ distributed under the License is distributed on an "AS IS" BASIS,
199
199
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
200
  See the License for the specific language governing permissions and
201
201
  limitations under the License.
202
-
203
- ============================================================================
204
- APACHE AIRFLOW SUBCOMPONENTS:
205
-
206
- The Apache Airflow project contains subcomponents with separate copyright
207
- notices and license terms. Your use of the source code for the these
208
- subcomponents is subject to the terms and conditions of the following
209
- licenses.
210
-
211
-
212
- ========================================================================
213
- Third party Apache 2.0 licenses
214
- ========================================================================
215
-
216
- The following components are provided under the Apache 2.0 License.
217
- See project link for details. The text of each license is also included
218
- at 3rd-party-licenses/LICENSE-[project].txt.
219
-
220
- (ALv2 License) hue v4.3.0 (https://github.com/cloudera/hue/)
221
- (ALv2 License) jqclock v2.3.0 (https://github.com/JohnRDOrazio/jQuery-Clock-Plugin)
222
- (ALv2 License) bootstrap3-typeahead v4.0.2 (https://github.com/bassjobsen/Bootstrap-3-Typeahead)
223
- (ALv2 License) connexion v2.7.0 (https://github.com/zalando/connexion)
224
-
225
- ========================================================================
226
- MIT licenses
227
- ========================================================================
228
-
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 3rd-party-licenses/LICENSE-[project].txt.
231
-
232
- (MIT License) jquery v3.5.1 (https://jquery.org/license/)
233
- (MIT License) dagre-d3 v0.6.4 (https://github.com/cpettitt/dagre-d3)
234
- (MIT License) bootstrap v3.4.1 (https://github.com/twbs/bootstrap/)
235
- (MIT License) d3-tip v0.9.1 (https://github.com/Caged/d3-tip)
236
- (MIT License) dataTables v1.10.25 (https://datatables.net)
237
- (MIT License) normalize.css v3.0.2 (http://necolas.github.io/normalize.css/)
238
- (MIT License) ElasticMock v1.3.2 (https://github.com/vrcmarcos/elasticmock)
239
- (MIT License) MomentJS v2.24.0 (http://momentjs.com/)
240
- (MIT License) eonasdan-bootstrap-datetimepicker v4.17.49 (https://github.com/eonasdan/bootstrap-datetimepicker/)
241
-
242
- ========================================================================
243
- BSD 3-Clause licenses
244
- ========================================================================
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 3rd-party-licenses/LICENSE-[project].txt.
247
-
248
- (BSD 3 License) d3 v5.16.0 (https://d3js.org)
249
- (BSD 3 License) d3-shape v2.1.0 (https://github.com/d3/d3-shape)
250
- (BSD 3 License) cgroupspy 0.2.1 (https://github.com/cloudsigma/cgroupspy)
251
-
252
- ========================================================================
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.7.0"
32
+ __version__ = "4.7.1"
33
33
 
34
34
  if packaging.version.parse(packaging.version.parse(airflow_version).base_version) < packaging.version.parse(
35
35
  "2.9.0"
@@ -15,8 +15,7 @@
15
15
  # specific language governing permissions and limitations
16
16
  # under the License.
17
17
 
18
- # NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE
19
- # OVERWRITTEN WHEN PREPARING PACKAGES.
18
+ # NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE OVERWRITTEN!
20
19
  #
21
20
  # IF YOU WANT TO MODIFY THIS FILE, YOU SHOULD MODIFY THE TEMPLATE
22
21
  # `get_provider_info_TEMPLATE.py.jinja2` IN the `dev/breeze/src/airflow_breeze/templates` DIRECTORY
@@ -28,8 +27,9 @@ def get_provider_info():
28
27
  "name": "Telegram",
29
28
  "description": "`Telegram <https://telegram.org/>`__\n",
30
29
  "state": "ready",
31
- "source-date-epoch": 1734537315,
30
+ "source-date-epoch": 1739964570,
32
31
  "versions": [
32
+ "4.7.1",
33
33
  "4.7.0",
34
34
  "4.6.0",
35
35
  "4.5.2",
@@ -54,13 +54,12 @@ def get_provider_info():
54
54
  "1.0.1",
55
55
  "1.0.0",
56
56
  ],
57
- "dependencies": ["apache-airflow>=2.9.0", "python-telegram-bot>=20.2"],
58
57
  "integrations": [
59
58
  {
60
59
  "integration-name": "Telegram",
61
60
  "external-doc-url": "https://telegram.org/",
62
61
  "how-to-guide": ["/docs/apache-airflow-providers-telegram/operators.rst"],
63
- "logo": "/integration-logos/telegram/Telegram.png",
62
+ "logo": "/docs/integration-logos/Telegram.png",
64
63
  "tags": ["service"],
65
64
  }
66
65
  ],
@@ -79,4 +78,5 @@ def get_provider_info():
79
78
  "hooks": [
80
79
  {"integration-name": "Telegram", "python-modules": ["airflow.providers.telegram.hooks.telegram"]}
81
80
  ],
81
+ "dependencies": ["apache-airflow>=2.9.0", "python-telegram-bot>=20.2"],
82
82
  }
@@ -27,7 +27,11 @@ from airflow.models import BaseOperator
27
27
  from airflow.providers.telegram.hooks.telegram import TelegramHook
28
28
 
29
29
  if TYPE_CHECKING:
30
- from airflow.utils.context import Context
30
+ try:
31
+ from airflow.sdk.definitions.context import Context
32
+ except ImportError:
33
+ # TODO: Remove once provider drops support for Airflow 2
34
+ from airflow.utils.context import Context
31
35
 
32
36
 
33
37
  class TelegramOperator(BaseOperator):
@@ -22,9 +22,9 @@ from __future__ import annotations
22
22
  import asyncio
23
23
  from typing import Any
24
24
 
25
- import telegram
26
25
  import tenacity
27
26
 
27
+ import telegram
28
28
  from airflow.exceptions import AirflowException
29
29
  from airflow.hooks.base import BaseHook
30
30