apache-airflow-providers-telegram 4.8.1__py3-none-any.whl → 4.8.2rc1__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/telegram/__init__.py +1 -1
- airflow/providers/telegram/hooks/telegram.py +1 -5
- airflow/providers/telegram/version_compat.py +8 -2
- {apache_airflow_providers_telegram-4.8.1.dist-info → apache_airflow_providers_telegram-4.8.2rc1.dist-info}/METADATA +11 -9
- apache_airflow_providers_telegram-4.8.2rc1.dist-info/RECORD +12 -0
- apache_airflow_providers_telegram-4.8.1.dist-info/RECORD +0 -12
- {apache_airflow_providers_telegram-4.8.1.dist-info → apache_airflow_providers_telegram-4.8.2rc1.dist-info}/WHEEL +0 -0
- {apache_airflow_providers_telegram-4.8.1.dist-info → apache_airflow_providers_telegram-4.8.2rc1.dist-info}/entry_points.txt +0 -0
@@ -29,7 +29,7 @@ from airflow import __version__ as airflow_version
|
|
29
29
|
|
30
30
|
__all__ = ["__version__"]
|
31
31
|
|
32
|
-
__version__ = "4.8.
|
32
|
+
__version__ = "4.8.2"
|
33
33
|
|
34
34
|
if packaging.version.parse(packaging.version.parse(airflow_version).base_version) < packaging.version.parse(
|
35
35
|
"2.10.0"
|
@@ -26,11 +26,7 @@ import telegram
|
|
26
26
|
import tenacity
|
27
27
|
|
28
28
|
from airflow.exceptions import AirflowException
|
29
|
-
|
30
|
-
try:
|
31
|
-
from airflow.sdk import BaseHook
|
32
|
-
except ImportError:
|
33
|
-
from airflow.hooks.base import BaseHook # type: ignore[attr-defined,no-redef]
|
29
|
+
from airflow.providers.telegram.version_compat import BaseHook
|
34
30
|
|
35
31
|
|
36
32
|
class TelegramHook(BaseHook):
|
@@ -33,10 +33,16 @@ def get_base_airflow_version_tuple() -> tuple[int, int, int]:
|
|
33
33
|
|
34
34
|
|
35
35
|
AIRFLOW_V_3_0_PLUS = get_base_airflow_version_tuple() >= (3, 0, 0)
|
36
|
+
AIRFLOW_V_3_1_PLUS: bool = get_base_airflow_version_tuple() >= (3, 1, 0)
|
37
|
+
|
38
|
+
if AIRFLOW_V_3_1_PLUS:
|
39
|
+
from airflow.sdk import BaseHook
|
40
|
+
else:
|
41
|
+
from airflow.hooks.base import BaseHook # type: ignore[attr-defined,no-redef]
|
36
42
|
|
37
43
|
if AIRFLOW_V_3_0_PLUS:
|
38
44
|
from airflow.sdk import BaseOperator
|
39
45
|
else:
|
40
|
-
from airflow.models import BaseOperator
|
46
|
+
from airflow.models import BaseOperator
|
41
47
|
|
42
|
-
__all__ = ["AIRFLOW_V_3_0_PLUS", "BaseOperator"]
|
48
|
+
__all__ = ["AIRFLOW_V_3_0_PLUS", "AIRFLOW_V_3_1_PLUS", "BaseHook", "BaseOperator"]
|
@@ -1,11 +1,11 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: apache-airflow-providers-telegram
|
3
|
-
Version: 4.8.
|
3
|
+
Version: 4.8.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>
|
7
7
|
Maintainer-email: Apache Software Foundation <dev@airflow.apache.org>
|
8
|
-
Requires-Python:
|
8
|
+
Requires-Python: >=3.10
|
9
9
|
Description-Content-Type: text/x-rst
|
10
10
|
Classifier: Development Status :: 5 - Production/Stable
|
11
11
|
Classifier: Environment :: Console
|
@@ -18,12 +18,13 @@ 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
|
+
Classifier: Programming Language :: Python :: 3.13
|
21
22
|
Classifier: Topic :: System :: Monitoring
|
22
|
-
Requires-Dist: apache-airflow>=2.10.
|
23
|
+
Requires-Dist: apache-airflow>=2.10.0rc1
|
23
24
|
Requires-Dist: python-telegram-bot>=20.2
|
24
25
|
Project-URL: Bug Tracker, https://github.com/apache/airflow/issues
|
25
|
-
Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.8.
|
26
|
-
Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.8.
|
26
|
+
Project-URL: Changelog, https://airflow.staged.apache.org/docs/apache-airflow-providers-telegram/4.8.2/changelog.html
|
27
|
+
Project-URL: Documentation, https://airflow.staged.apache.org/docs/apache-airflow-providers-telegram/4.8.2
|
27
28
|
Project-URL: Mastodon, https://fosstodon.org/@airflow
|
28
29
|
Project-URL: Slack Chat, https://s.apache.org/airflow-slack
|
29
30
|
Project-URL: Source Code, https://github.com/apache/airflow
|
@@ -54,8 +55,9 @@ Project-URL: YouTube, https://www.youtube.com/channel/UCSXwxpWZQ7XZ1WL3wqevChA/
|
|
54
55
|
|
55
56
|
Package ``apache-airflow-providers-telegram``
|
56
57
|
|
57
|
-
Release: ``4.8.
|
58
|
+
Release: ``4.8.2``
|
58
59
|
|
60
|
+
Release Date: ``|PypiReleaseDate|``
|
59
61
|
|
60
62
|
`Telegram <https://telegram.org/>`__
|
61
63
|
|
@@ -67,7 +69,7 @@ This is a provider package for ``telegram`` provider. All classes for this provi
|
|
67
69
|
are in ``airflow.providers.telegram`` python package.
|
68
70
|
|
69
71
|
You can find package information and changelog for the provider
|
70
|
-
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.8.
|
72
|
+
in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.8.2/>`_.
|
71
73
|
|
72
74
|
Installation
|
73
75
|
------------
|
@@ -76,7 +78,7 @@ You can install this package on top of an existing Airflow 2 installation (see `
|
|
76
78
|
for the minimum Airflow version supported) via
|
77
79
|
``pip install apache-airflow-providers-telegram``
|
78
80
|
|
79
|
-
The package supports the following python versions: 3.10,3.11,3.12
|
81
|
+
The package supports the following python versions: 3.10,3.11,3.12,3.13
|
80
82
|
|
81
83
|
Requirements
|
82
84
|
------------
|
@@ -89,5 +91,5 @@ PIP package Version required
|
|
89
91
|
======================= ==================
|
90
92
|
|
91
93
|
The changelog for the provider package can be found in the
|
92
|
-
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.8.
|
94
|
+
`changelog <https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.8.2/changelog.html>`_.
|
93
95
|
|
@@ -0,0 +1,12 @@
|
|
1
|
+
airflow/providers/telegram/LICENSE,sha256=gXPVwptPlW1TJ4HSuG5OMPg-a3h43OGMkZRR1rpwfJA,10850
|
2
|
+
airflow/providers/telegram/__init__.py,sha256=2w-loHA3rQcdm_3Zgudlw6B3bkmQIt21H2wJhuOIdjs,1497
|
3
|
+
airflow/providers/telegram/get_provider_info.py,sha256=YiuVUvlgd3Nat0GtRfOS47eFUiDNB1vlpdK1BXNRsIs,2134
|
4
|
+
airflow/providers/telegram/version_compat.py,sha256=rSCzUYsqEbM9-qivzLBYCnll2FFVAvk8LyMZvUi_sNE,1958
|
5
|
+
airflow/providers/telegram/hooks/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
|
6
|
+
airflow/providers/telegram/hooks/telegram.py,sha256=uc1qk07iOtM37S1dxOndwhYu_yribbLNdeZ3b-EDM4s,6941
|
7
|
+
airflow/providers/telegram/operators/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
|
8
|
+
airflow/providers/telegram/operators/telegram.py,sha256=OEu62HtXLIVtKaWSgwspf48WqOg-Yjo2LRfsOUpLxPA,5107
|
9
|
+
apache_airflow_providers_telegram-4.8.2rc1.dist-info/entry_points.txt,sha256=QbI_ZGIDTfpx3npCqi0CebJFs_NCjoG8Tn9dGkQDBkE,104
|
10
|
+
apache_airflow_providers_telegram-4.8.2rc1.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
|
11
|
+
apache_airflow_providers_telegram-4.8.2rc1.dist-info/METADATA,sha256=3nLtu_C_lhFTABJ4iRzT-wsBCVw39oRoUP55cEiAGeA,3960
|
12
|
+
apache_airflow_providers_telegram-4.8.2rc1.dist-info/RECORD,,
|
@@ -1,12 +0,0 @@
|
|
1
|
-
airflow/providers/telegram/LICENSE,sha256=gXPVwptPlW1TJ4HSuG5OMPg-a3h43OGMkZRR1rpwfJA,10850
|
2
|
-
airflow/providers/telegram/__init__.py,sha256=fGv-Vd5Xkzbcf5fPRENPTCX2gR-9FJ6X54UIiE6oqPc,1497
|
3
|
-
airflow/providers/telegram/get_provider_info.py,sha256=YiuVUvlgd3Nat0GtRfOS47eFUiDNB1vlpdK1BXNRsIs,2134
|
4
|
-
airflow/providers/telegram/version_compat.py,sha256=0VNFig0J24YH-32j11aTLlLRXdnHCmQHrNYkBXbOjx4,1727
|
5
|
-
airflow/providers/telegram/hooks/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
|
6
|
-
airflow/providers/telegram/hooks/telegram.py,sha256=R--Ku7gtTtyBG5m8W-K0MjZxjdAXtlQ9B-zSV9P0XG0,7024
|
7
|
-
airflow/providers/telegram/operators/__init__.py,sha256=mlJxuZLkd5x-iq2SBwD3mvRQpt3YR7wjz_nceyF1IaI,787
|
8
|
-
airflow/providers/telegram/operators/telegram.py,sha256=OEu62HtXLIVtKaWSgwspf48WqOg-Yjo2LRfsOUpLxPA,5107
|
9
|
-
apache_airflow_providers_telegram-4.8.1.dist-info/entry_points.txt,sha256=QbI_ZGIDTfpx3npCqi0CebJFs_NCjoG8Tn9dGkQDBkE,104
|
10
|
-
apache_airflow_providers_telegram-4.8.1.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
|
11
|
-
apache_airflow_providers_telegram-4.8.1.dist-info/METADATA,sha256=gSM73wWpEKpo0nlz_LeLQIsYIK_tD_nmGG1FLj7dY68,3848
|
12
|
-
apache_airflow_providers_telegram-4.8.1.dist-info/RECORD,,
|
File without changes
|