apache-airflow-providers-telegram 4.1.0rc1__tar.gz → 4.1.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.
Files changed (21) hide show
  1. {apache-airflow-providers-telegram-4.1.0rc1/apache_airflow_providers_telegram.egg-info → apache-airflow-providers-telegram-4.1.1}/PKG-INFO +25 -7
  2. {apache-airflow-providers-telegram-4.1.0rc1 → apache-airflow-providers-telegram-4.1.1}/README.rst +21 -3
  3. {apache-airflow-providers-telegram-4.1.0rc1 → apache-airflow-providers-telegram-4.1.1}/airflow/providers/telegram/__init__.py +8 -5
  4. {apache-airflow-providers-telegram-4.1.0rc1 → apache-airflow-providers-telegram-4.1.1}/airflow/providers/telegram/get_provider_info.py +1 -0
  5. {apache-airflow-providers-telegram-4.1.0rc1 → apache-airflow-providers-telegram-4.1.1}/airflow/providers/telegram/hooks/telegram.py +4 -4
  6. {apache-airflow-providers-telegram-4.1.0rc1 → apache-airflow-providers-telegram-4.1.1}/airflow/providers/telegram/operators/telegram.py +2 -2
  7. {apache-airflow-providers-telegram-4.1.0rc1 → apache-airflow-providers-telegram-4.1.1/apache_airflow_providers_telegram.egg-info}/PKG-INFO +25 -7
  8. {apache-airflow-providers-telegram-4.1.0rc1 → apache-airflow-providers-telegram-4.1.1}/apache_airflow_providers_telegram.egg-info/requires.txt +1 -1
  9. {apache-airflow-providers-telegram-4.1.0rc1 → apache-airflow-providers-telegram-4.1.1}/pyproject.toml +6 -4
  10. {apache-airflow-providers-telegram-4.1.0rc1 → apache-airflow-providers-telegram-4.1.1}/setup.cfg +5 -5
  11. {apache-airflow-providers-telegram-4.1.0rc1 → apache-airflow-providers-telegram-4.1.1}/setup.py +1 -1
  12. {apache-airflow-providers-telegram-4.1.0rc1 → apache-airflow-providers-telegram-4.1.1}/LICENSE +0 -0
  13. {apache-airflow-providers-telegram-4.1.0rc1 → apache-airflow-providers-telegram-4.1.1}/MANIFEST.in +0 -0
  14. {apache-airflow-providers-telegram-4.1.0rc1 → apache-airflow-providers-telegram-4.1.1}/NOTICE +0 -0
  15. {apache-airflow-providers-telegram-4.1.0rc1 → apache-airflow-providers-telegram-4.1.1}/airflow/providers/telegram/hooks/__init__.py +0 -0
  16. {apache-airflow-providers-telegram-4.1.0rc1 → apache-airflow-providers-telegram-4.1.1}/airflow/providers/telegram/operators/__init__.py +0 -0
  17. {apache-airflow-providers-telegram-4.1.0rc1 → apache-airflow-providers-telegram-4.1.1}/apache_airflow_providers_telegram.egg-info/SOURCES.txt +0 -0
  18. {apache-airflow-providers-telegram-4.1.0rc1 → apache-airflow-providers-telegram-4.1.1}/apache_airflow_providers_telegram.egg-info/dependency_links.txt +0 -0
  19. {apache-airflow-providers-telegram-4.1.0rc1 → apache-airflow-providers-telegram-4.1.1}/apache_airflow_providers_telegram.egg-info/entry_points.txt +0 -0
  20. {apache-airflow-providers-telegram-4.1.0rc1 → apache-airflow-providers-telegram-4.1.1}/apache_airflow_providers_telegram.egg-info/not-zip-safe +0 -0
  21. {apache-airflow-providers-telegram-4.1.0rc1 → apache-airflow-providers-telegram-4.1.1}/apache_airflow_providers_telegram.egg-info/top_level.txt +0 -0
@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: apache-airflow-providers-telegram
3
- Version: 4.1.0rc1
3
+ Version: 4.1.1
4
4
  Summary: Provider for Apache Airflow. Implements apache-airflow-providers-telegram package
5
5
  Home-page: https://airflow.apache.org/
6
6
  Download-URL: https://archive.apache.org/dist/airflow/providers
7
7
  Author: Apache Software Foundation
8
8
  Author-email: dev@airflow.apache.org
9
9
  License: Apache License 2.0
10
- Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.1.0/
10
+ Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.1.1/
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
@@ -21,12 +21,12 @@ Classifier: Intended Audience :: System Administrators
21
21
  Classifier: Framework :: Apache Airflow
22
22
  Classifier: Framework :: Apache Airflow :: Provider
23
23
  Classifier: License :: OSI Approved :: Apache Software License
24
- Classifier: Programming Language :: Python :: 3.7
25
24
  Classifier: Programming Language :: Python :: 3.8
26
25
  Classifier: Programming Language :: Python :: 3.9
27
26
  Classifier: Programming Language :: Python :: 3.10
27
+ Classifier: Programming Language :: Python :: 3.11
28
28
  Classifier: Topic :: System :: Monitoring
29
- Requires-Python: ~=3.7
29
+ Requires-Python: ~=3.8
30
30
  Description-Content-Type: text/x-rst
31
31
  License-File: LICENSE
32
32
  License-File: NOTICE
@@ -52,7 +52,7 @@ License-File: NOTICE
52
52
 
53
53
  Package ``apache-airflow-providers-telegram``
54
54
 
55
- Release: ``4.1.0rc1``
55
+ Release: ``4.1.1``
56
56
 
57
57
 
58
58
  `Telegram <https://telegram.org/>`__
@@ -65,7 +65,7 @@ This is a provider package for ``telegram`` provider. All classes for this provi
65
65
  are in ``airflow.providers.telegram`` python package.
66
66
 
67
67
  You can find package information and changelog for the provider
68
- in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.1.0/>`_.
68
+ in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.1.1/>`_.
69
69
 
70
70
 
71
71
  Installation
@@ -75,7 +75,7 @@ You can install this package on top of an existing Airflow 2 installation (see `
75
75
  for the minimum Airflow version supported) via
76
76
  ``pip install apache-airflow-providers-telegram``
77
77
 
78
- The package supports the following python versions: 3.7,3.8,3.9,3.10
78
+ The package supports the following python versions: 3.8,3.9,3.10,3.11
79
79
 
80
80
  Requirements
81
81
  ------------
@@ -113,6 +113,21 @@ PIP package Version required
113
113
  Changelog
114
114
  ---------
115
115
 
116
+ 4.1.1
117
+ .....
118
+
119
+ .. note::
120
+ This release dropped support for Python 3.7
121
+
122
+ Misc
123
+ ~~~~
124
+
125
+ * ``Add note about dropping Python 3.7 for providers (#32015)``
126
+
127
+ .. Below changes are excluded from the changelog. Move them to
128
+ appropriate section above if needed. Do not delete the lines(!):
129
+ * ``Add D400 pydocstyle check - Providers (#31427)``
130
+
116
131
  4.1.0
117
132
  .....
118
133
 
@@ -129,6 +144,9 @@ Misc
129
144
  appropriate section above if needed. Do not delete the lines(!):
130
145
  * ``Add full automation for min Airflow version for providers (#30994)``
131
146
  * ``Add mechanism to suspend providers (#30422)``
147
+ * ``Use '__version__' in providers not 'version' (#31393)``
148
+ * ``Fixing circular import error in providers caused by airflow version check (#31379)``
149
+ * ``Prepare docs for May 2023 wave of Providers (#31252)``
132
150
 
133
151
  4.0.0
134
152
  .....
@@ -19,7 +19,7 @@
19
19
 
20
20
  Package ``apache-airflow-providers-telegram``
21
21
 
22
- Release: ``4.1.0rc1``
22
+ Release: ``4.1.1``
23
23
 
24
24
 
25
25
  `Telegram <https://telegram.org/>`__
@@ -32,7 +32,7 @@ This is a provider package for ``telegram`` provider. All classes for this provi
32
32
  are in ``airflow.providers.telegram`` python package.
33
33
 
34
34
  You can find package information and changelog for the provider
35
- in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.1.0/>`_.
35
+ in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.1.1/>`_.
36
36
 
37
37
 
38
38
  Installation
@@ -42,7 +42,7 @@ You can install this package on top of an existing Airflow 2 installation (see `
42
42
  for the minimum Airflow version supported) via
43
43
  ``pip install apache-airflow-providers-telegram``
44
44
 
45
- The package supports the following python versions: 3.7,3.8,3.9,3.10
45
+ The package supports the following python versions: 3.8,3.9,3.10,3.11
46
46
 
47
47
  Requirements
48
48
  ------------
@@ -80,6 +80,21 @@ PIP package Version required
80
80
  Changelog
81
81
  ---------
82
82
 
83
+ 4.1.1
84
+ .....
85
+
86
+ .. note::
87
+ This release dropped support for Python 3.7
88
+
89
+ Misc
90
+ ~~~~
91
+
92
+ * ``Add note about dropping Python 3.7 for providers (#32015)``
93
+
94
+ .. Below changes are excluded from the changelog. Move them to
95
+ appropriate section above if needed. Do not delete the lines(!):
96
+ * ``Add D400 pydocstyle check - Providers (#31427)``
97
+
83
98
  4.1.0
84
99
  .....
85
100
 
@@ -96,6 +111,9 @@ Misc
96
111
  appropriate section above if needed. Do not delete the lines(!):
97
112
  * ``Add full automation for min Airflow version for providers (#30994)``
98
113
  * ``Add mechanism to suspend providers (#30422)``
114
+ * ``Use '__version__' in providers not 'version' (#31393)``
115
+ * ``Fixing circular import error in providers caused by airflow version check (#31379)``
116
+ * ``Prepare docs for May 2023 wave of Providers (#31252)``
99
117
 
100
118
  4.0.0
101
119
  .....
@@ -26,13 +26,16 @@ from __future__ import annotations
26
26
 
27
27
  import packaging.version
28
28
 
29
- import airflow
29
+ __all__ = ["__version__"]
30
30
 
31
- __all__ = ["version"]
31
+ __version__ = "4.1.1"
32
32
 
33
- version = "4.1.0"
33
+ try:
34
+ from airflow import __version__ as airflow_version
35
+ except ImportError:
36
+ from airflow.version import version as airflow_version
34
37
 
35
- if packaging.version.parse(airflow.version.version) < packaging.version.parse("2.4.0"):
38
+ if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"):
36
39
  raise RuntimeError(
37
- f"The package `apache-airflow-providers-telegram:{version}` requires Apache Airflow 2.4.0+"
40
+ f"The package `apache-airflow-providers-telegram:{__version__}` requires Apache Airflow 2.4.0+" # NOQA: E501
38
41
  )
@@ -29,6 +29,7 @@ def get_provider_info():
29
29
  "description": "`Telegram <https://telegram.org/>`__\n",
30
30
  "suspended": False,
31
31
  "versions": [
32
+ "4.1.1",
32
33
  "4.1.0",
33
34
  "4.0.0",
34
35
  "3.1.1",
@@ -15,7 +15,7 @@
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
- """Hook for Telegram"""
18
+ """Hook for Telegram."""
19
19
  from __future__ import annotations
20
20
 
21
21
  import asyncio
@@ -71,7 +71,7 @@ class TelegramHook(BaseHook):
71
71
 
72
72
  def get_conn(self) -> telegram.Bot:
73
73
  """
74
- Returns the telegram bot client
74
+ Returns the telegram bot client.
75
75
 
76
76
  :return: telegram bot client
77
77
  """
@@ -79,7 +79,7 @@ class TelegramHook(BaseHook):
79
79
 
80
80
  def __get_token(self, token: str | None, telegram_conn_id: str | None) -> str:
81
81
  """
82
- Returns the telegram API token
82
+ Returns the telegram API token.
83
83
 
84
84
  :param token: telegram API token
85
85
  :param telegram_conn_id: telegram connection name
@@ -100,7 +100,7 @@ class TelegramHook(BaseHook):
100
100
 
101
101
  def __get_chat_id(self, chat_id: str | None, telegram_conn_id: str | None) -> str | None:
102
102
  """
103
- Returns the telegram chat ID for a chat/channel/group
103
+ Returns the telegram chat ID for a chat/channel/group.
104
104
 
105
105
  :param chat_id: optional chat ID
106
106
  :param telegram_conn_id: telegram connection name
@@ -15,7 +15,7 @@
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
- """Operator for Telegram"""
18
+ """Operator for Telegram."""
19
19
  from __future__ import annotations
20
20
 
21
21
  from typing import TYPE_CHECKING, Sequence
@@ -71,7 +71,7 @@ class TelegramOperator(BaseOperator):
71
71
  super().__init__(**kwargs)
72
72
 
73
73
  def execute(self, context: Context) -> None:
74
- """Calls the TelegramHook to post the provided Telegram message"""
74
+ """Calls the TelegramHook to post the provided Telegram message."""
75
75
  if self.text:
76
76
  self.telegram_kwargs["text"] = self.text
77
77
 
@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: apache-airflow-providers-telegram
3
- Version: 4.1.0rc1
3
+ Version: 4.1.1
4
4
  Summary: Provider for Apache Airflow. Implements apache-airflow-providers-telegram package
5
5
  Home-page: https://airflow.apache.org/
6
6
  Download-URL: https://archive.apache.org/dist/airflow/providers
7
7
  Author: Apache Software Foundation
8
8
  Author-email: dev@airflow.apache.org
9
9
  License: Apache License 2.0
10
- Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.1.0/
10
+ Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.1.1/
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
@@ -21,12 +21,12 @@ Classifier: Intended Audience :: System Administrators
21
21
  Classifier: Framework :: Apache Airflow
22
22
  Classifier: Framework :: Apache Airflow :: Provider
23
23
  Classifier: License :: OSI Approved :: Apache Software License
24
- Classifier: Programming Language :: Python :: 3.7
25
24
  Classifier: Programming Language :: Python :: 3.8
26
25
  Classifier: Programming Language :: Python :: 3.9
27
26
  Classifier: Programming Language :: Python :: 3.10
27
+ Classifier: Programming Language :: Python :: 3.11
28
28
  Classifier: Topic :: System :: Monitoring
29
- Requires-Python: ~=3.7
29
+ Requires-Python: ~=3.8
30
30
  Description-Content-Type: text/x-rst
31
31
  License-File: LICENSE
32
32
  License-File: NOTICE
@@ -52,7 +52,7 @@ License-File: NOTICE
52
52
 
53
53
  Package ``apache-airflow-providers-telegram``
54
54
 
55
- Release: ``4.1.0rc1``
55
+ Release: ``4.1.1``
56
56
 
57
57
 
58
58
  `Telegram <https://telegram.org/>`__
@@ -65,7 +65,7 @@ This is a provider package for ``telegram`` provider. All classes for this provi
65
65
  are in ``airflow.providers.telegram`` python package.
66
66
 
67
67
  You can find package information and changelog for the provider
68
- in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.1.0/>`_.
68
+ in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.1.1/>`_.
69
69
 
70
70
 
71
71
  Installation
@@ -75,7 +75,7 @@ You can install this package on top of an existing Airflow 2 installation (see `
75
75
  for the minimum Airflow version supported) via
76
76
  ``pip install apache-airflow-providers-telegram``
77
77
 
78
- The package supports the following python versions: 3.7,3.8,3.9,3.10
78
+ The package supports the following python versions: 3.8,3.9,3.10,3.11
79
79
 
80
80
  Requirements
81
81
  ------------
@@ -113,6 +113,21 @@ PIP package Version required
113
113
  Changelog
114
114
  ---------
115
115
 
116
+ 4.1.1
117
+ .....
118
+
119
+ .. note::
120
+ This release dropped support for Python 3.7
121
+
122
+ Misc
123
+ ~~~~
124
+
125
+ * ``Add note about dropping Python 3.7 for providers (#32015)``
126
+
127
+ .. Below changes are excluded from the changelog. Move them to
128
+ appropriate section above if needed. Do not delete the lines(!):
129
+ * ``Add D400 pydocstyle check - Providers (#31427)``
130
+
116
131
  4.1.0
117
132
  .....
118
133
 
@@ -129,6 +144,9 @@ Misc
129
144
  appropriate section above if needed. Do not delete the lines(!):
130
145
  * ``Add full automation for min Airflow version for providers (#30994)``
131
146
  * ``Add mechanism to suspend providers (#30422)``
147
+ * ``Use '__version__' in providers not 'version' (#31393)``
148
+ * ``Fixing circular import error in providers caused by airflow version check (#31379)``
149
+ * ``Prepare docs for May 2023 wave of Providers (#31252)``
132
150
 
133
151
  4.0.0
134
152
  .....
@@ -1,2 +1,2 @@
1
- apache-airflow>=2.4.0.dev0
1
+ apache-airflow>=2.4.0
2
2
  python-telegram-bot>=20.0.0
@@ -26,6 +26,9 @@ target-version = ['py37', 'py38', 'py39', 'py310']
26
26
  requires = ['setuptools==67.2.0']
27
27
  build-backend = "setuptools.build_meta"
28
28
 
29
+ [project]
30
+ requires-python = ">=3.8"
31
+
29
32
  [tool.ruff]
30
33
  typing-modules = ["airflow.typing_compat"]
31
34
  line-length = 110
@@ -35,12 +38,10 @@ extend-exclude = [
35
38
  "airflow/providers/google/ads/_vendor/*",
36
39
  # The files generated by stubgen aren't 100% valid syntax it turns out, and we don't ship them, so we can
37
40
  # ignore them in ruff
38
- "airflow/providers/common/sql/*/*.pyi"
41
+ "airflow/providers/common/sql/*/*.pyi",
42
+ "airflow/migrations/versions/*.py"
39
43
  ]
40
44
 
41
- # TODO: Bump to Python 3.8 when support for Python 3.7 is dropped in Airflow.
42
- target-version = "py37"
43
-
44
45
  extend-select = [
45
46
  "I", # Missing required import (auto-fixable)
46
47
  "UP", # Pyupgrade
@@ -53,6 +54,7 @@ extend-select = [
53
54
  "D106",
54
55
  "D2",
55
56
  "D3",
57
+ "D400",
56
58
  # "D401", # Not enabled by ruff, but we don't want it
57
59
  "D402",
58
60
  "D403",
@@ -21,13 +21,13 @@ classifiers =
21
21
  Framework :: Apache Airflow
22
22
  Framework :: Apache Airflow :: Provider
23
23
  License :: OSI Approved :: Apache Software License
24
- Programming Language :: Python :: 3.7
25
24
  Programming Language :: Python :: 3.8
26
25
  Programming Language :: Python :: 3.9
27
26
  Programming Language :: Python :: 3.10
27
+ Programming Language :: Python :: 3.11
28
28
  Topic :: System :: Monitoring
29
29
  project_urls =
30
- Documentation=https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.1.0/
30
+ Documentation=https://airflow.apache.org/docs/apache-airflow-providers-telegram/4.1.1/
31
31
  Bug Tracker=https://github.com/apache/airflow/issues
32
32
  Source Code=https://github.com/apache/airflow
33
33
  Slack Chat=https://s.apache.org/airflow-slack
@@ -40,13 +40,13 @@ python_tag = py3
40
40
  [options]
41
41
  zip_safe = False
42
42
  include_package_data = True
43
- python_requires = ~=3.7
43
+ python_requires = ~=3.8
44
44
  packages = find:
45
45
  setup_requires =
46
46
  setuptools
47
47
  wheel
48
48
  install_requires =
49
- apache-airflow>=2.4.0.dev0
49
+ apache-airflow>=2.4.0
50
50
  python-telegram-bot>=20.0.0
51
51
 
52
52
  [options.entry_points]
@@ -57,6 +57,6 @@ apache_airflow_provider =
57
57
  packages = airflow.providers.telegram
58
58
 
59
59
  [egg_info]
60
- tag_build = rc1
60
+ tag_build =
61
61
  tag_date = 0
62
62
 
@@ -26,7 +26,7 @@
26
26
 
27
27
  from setuptools import find_namespace_packages, setup
28
28
 
29
- version = "4.1.0"
29
+ version = "4.1.1"
30
30
 
31
31
 
32
32
  def do_setup():