apache-airflow-providers-http 4.9.0rc2__tar.gz → 4.9.1rc1__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 (14) hide show
  1. {apache_airflow_providers_http-4.9.0rc2 → apache_airflow_providers_http-4.9.1rc1}/PKG-INFO +10 -10
  2. {apache_airflow_providers_http-4.9.0rc2 → apache_airflow_providers_http-4.9.1rc1}/README.rst +5 -5
  3. {apache_airflow_providers_http-4.9.0rc2 → apache_airflow_providers_http-4.9.1rc1}/airflow/providers/http/__init__.py +1 -1
  4. {apache_airflow_providers_http-4.9.0rc2 → apache_airflow_providers_http-4.9.1rc1}/airflow/providers/http/get_provider_info.py +4 -3
  5. {apache_airflow_providers_http-4.9.0rc2 → apache_airflow_providers_http-4.9.1rc1}/airflow/providers/http/hooks/http.py +2 -1
  6. {apache_airflow_providers_http-4.9.0rc2 → apache_airflow_providers_http-4.9.1rc1}/airflow/providers/http/operators/http.py +9 -8
  7. {apache_airflow_providers_http-4.9.0rc2 → apache_airflow_providers_http-4.9.1rc1}/airflow/providers/http/triggers/http.py +4 -4
  8. {apache_airflow_providers_http-4.9.0rc2 → apache_airflow_providers_http-4.9.1rc1}/pyproject.toml +5 -5
  9. {apache_airflow_providers_http-4.9.0rc2 → apache_airflow_providers_http-4.9.1rc1}/airflow/providers/http/LICENSE +0 -0
  10. {apache_airflow_providers_http-4.9.0rc2 → apache_airflow_providers_http-4.9.1rc1}/airflow/providers/http/hooks/__init__.py +0 -0
  11. {apache_airflow_providers_http-4.9.0rc2 → apache_airflow_providers_http-4.9.1rc1}/airflow/providers/http/operators/__init__.py +0 -0
  12. {apache_airflow_providers_http-4.9.0rc2 → apache_airflow_providers_http-4.9.1rc1}/airflow/providers/http/sensors/__init__.py +0 -0
  13. {apache_airflow_providers_http-4.9.0rc2 → apache_airflow_providers_http-4.9.1rc1}/airflow/providers/http/sensors/http.py +0 -0
  14. {apache_airflow_providers_http-4.9.0rc2 → apache_airflow_providers_http-4.9.1rc1}/airflow/providers/http/triggers/__init__.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: apache-airflow-providers-http
3
- Version: 4.9.0rc2
3
+ Version: 4.9.1rc1
4
4
  Summary: Provider package apache-airflow-providers-http for Apache Airflow
5
5
  Keywords: airflow-provider,http,airflow,integration
6
6
  Author-email: Apache Software Foundation <dev@airflow.apache.org>
@@ -20,14 +20,14 @@ Classifier: Programming Language :: Python :: 3.9
20
20
  Classifier: Programming Language :: Python :: 3.10
21
21
  Classifier: Programming Language :: Python :: 3.11
22
22
  Classifier: Topic :: System :: Monitoring
23
- Requires-Dist: aiohttp
23
+ Requires-Dist: aiohttp>=3.9.2
24
24
  Requires-Dist: apache-airflow>=2.6.0.dev0
25
25
  Requires-Dist: asgiref
26
- Requires-Dist: requests>=2.26.0
26
+ Requires-Dist: requests>=2.27.0,<3
27
27
  Requires-Dist: requests_toolbelt
28
28
  Project-URL: Bug Tracker, https://github.com/apache/airflow/issues
29
- Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-http/4.9.0/changelog.html
30
- Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-http/4.9.0
29
+ Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-http/4.9.1/changelog.html
30
+ Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-http/4.9.1
31
31
  Project-URL: Slack Chat, https://s.apache.org/airflow-slack
32
32
  Project-URL: Source Code, https://github.com/apache/airflow
33
33
  Project-URL: Twitter, https://twitter.com/ApacheAirflow
@@ -77,7 +77,7 @@ Project-URL: YouTube, https://www.youtube.com/channel/UCSXwxpWZQ7XZ1WL3wqevChA/
77
77
 
78
78
  Package ``apache-airflow-providers-http``
79
79
 
80
- Release: ``4.9.0.rc2``
80
+ Release: ``4.9.1.rc1``
81
81
 
82
82
 
83
83
  `Hypertext Transfer Protocol (HTTP) <https://www.w3.org/Protocols/>`__
@@ -90,7 +90,7 @@ This is a provider package for ``http`` provider. All classes for this provider
90
90
  are in ``airflow.providers.http`` python package.
91
91
 
92
92
  You can find package information and changelog for the provider
93
- in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-http/4.9.0/>`_.
93
+ in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-http/4.9.1/>`_.
94
94
 
95
95
  Installation
96
96
  ------------
@@ -108,11 +108,11 @@ Requirements
108
108
  PIP package Version required
109
109
  ===================== ==================
110
110
  ``apache-airflow`` ``>=2.6.0``
111
- ``requests`` ``>=2.26.0``
111
+ ``requests`` ``>=2.27.0,<3``
112
112
  ``requests_toolbelt``
113
- ``aiohttp``
113
+ ``aiohttp`` ``>=3.9.2``
114
114
  ``asgiref``
115
115
  ===================== ==================
116
116
 
117
117
  The changelog for the provider package can be found in the
118
- `changelog <https://airflow.apache.org/docs/apache-airflow-providers-http/4.9.0/changelog.html>`_.
118
+ `changelog <https://airflow.apache.org/docs/apache-airflow-providers-http/4.9.1/changelog.html>`_.
@@ -42,7 +42,7 @@
42
42
 
43
43
  Package ``apache-airflow-providers-http``
44
44
 
45
- Release: ``4.9.0.rc2``
45
+ Release: ``4.9.1.rc1``
46
46
 
47
47
 
48
48
  `Hypertext Transfer Protocol (HTTP) <https://www.w3.org/Protocols/>`__
@@ -55,7 +55,7 @@ This is a provider package for ``http`` provider. All classes for this provider
55
55
  are in ``airflow.providers.http`` 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-http/4.9.0/>`_.
58
+ in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-http/4.9.1/>`_.
59
59
 
60
60
  Installation
61
61
  ------------
@@ -73,11 +73,11 @@ Requirements
73
73
  PIP package Version required
74
74
  ===================== ==================
75
75
  ``apache-airflow`` ``>=2.6.0``
76
- ``requests`` ``>=2.26.0``
76
+ ``requests`` ``>=2.27.0,<3``
77
77
  ``requests_toolbelt``
78
- ``aiohttp``
78
+ ``aiohttp`` ``>=3.9.2``
79
79
  ``asgiref``
80
80
  ===================== ==================
81
81
 
82
82
  The changelog for the provider package can be found in the
83
- `changelog <https://airflow.apache.org/docs/apache-airflow-providers-http/4.9.0/changelog.html>`_.
83
+ `changelog <https://airflow.apache.org/docs/apache-airflow-providers-http/4.9.1/changelog.html>`_.
@@ -27,7 +27,7 @@ import packaging.version
27
27
 
28
28
  __all__ = ["__version__"]
29
29
 
30
- __version__ = "4.9.0"
30
+ __version__ = "4.9.1"
31
31
 
32
32
  try:
33
33
  from airflow import __version__ as airflow_version
@@ -28,8 +28,9 @@ def get_provider_info():
28
28
  "name": "Hypertext Transfer Protocol (HTTP)",
29
29
  "description": "`Hypertext Transfer Protocol (HTTP) <https://www.w3.org/Protocols/>`__\n",
30
30
  "state": "ready",
31
- "source-date-epoch": 1705912133,
31
+ "source-date-epoch": 1707636407,
32
32
  "versions": [
33
+ "4.9.1",
33
34
  "4.9.0",
34
35
  "4.8.0",
35
36
  "4.7.0",
@@ -59,9 +60,9 @@ def get_provider_info():
59
60
  ],
60
61
  "dependencies": [
61
62
  "apache-airflow>=2.6.0",
62
- "requests>=2.26.0",
63
+ "requests>=2.27.0,<3",
63
64
  "requests_toolbelt",
64
- "aiohttp",
65
+ "aiohttp>=3.9.2",
65
66
  "asgiref",
66
67
  ],
67
68
  "integrations": [
@@ -258,7 +258,8 @@ class HttpHook(BaseHook):
258
258
  """
259
259
  self._retry_obj = tenacity.Retrying(**_retry_args)
260
260
 
261
- return self._retry_obj(self.run, *args, **kwargs)
261
+ # TODO: remove ignore type when https://github.com/jd/tenacity/issues/428 is resolved
262
+ return self._retry_obj(self.run, *args, **kwargs) # type: ignore
262
263
 
263
264
  def url_from_endpoint(self, endpoint: str | None) -> str:
264
265
  """Combine base url with endpoint."""
@@ -19,9 +19,9 @@ from __future__ import annotations
19
19
 
20
20
  import base64
21
21
  import pickle
22
- import warnings
23
22
  from typing import TYPE_CHECKING, Any, Callable, Sequence
24
23
 
24
+ from deprecated import deprecated
25
25
  from requests import Response
26
26
 
27
27
  from airflow.configuration import conf
@@ -233,7 +233,7 @@ class HttpOperator(BaseOperator):
233
233
  self, context: Context, event: dict, paginated_responses: None | list[Response] = None
234
234
  ):
235
235
  """
236
- Callback for when the trigger fires - returns immediately.
236
+ Execute callback when the trigger fires; returns immediately.
237
237
 
238
238
  Relies on trigger to throw an exception, otherwise it assumes execution was successful.
239
239
  """
@@ -291,6 +291,13 @@ class HttpOperator(BaseOperator):
291
291
  )
292
292
 
293
293
 
294
+ @deprecated(
295
+ reason=(
296
+ "Class `SimpleHttpOperator` is deprecated and "
297
+ "will be removed in a future release. Please use `HttpOperator` instead."
298
+ ),
299
+ category=AirflowProviderDeprecationWarning,
300
+ )
294
301
  class SimpleHttpOperator(HttpOperator):
295
302
  """
296
303
  Calls an endpoint on an HTTP system to execute an action.
@@ -345,10 +352,4 @@ class SimpleHttpOperator(HttpOperator):
345
352
  """
346
353
 
347
354
  def __init__(self, **kwargs: Any):
348
- warnings.warn(
349
- "Class `SimpleHttpOperator` is deprecated and "
350
- "will be removed in a future release. Please use `HttpOperator` instead.",
351
- AirflowProviderDeprecationWarning,
352
- stacklevel=2,
353
- )
354
355
  super().__init__(**kwargs)
@@ -71,7 +71,7 @@ class HttpTrigger(BaseTrigger):
71
71
  self.extra_options = extra_options
72
72
 
73
73
  def serialize(self) -> tuple[str, dict[str, Any]]:
74
- """Serializes HttpTrigger arguments and classpath."""
74
+ """Serialize HttpTrigger arguments and classpath."""
75
75
  return (
76
76
  "airflow.providers.http.triggers.http.HttpTrigger",
77
77
  {
@@ -86,7 +86,7 @@ class HttpTrigger(BaseTrigger):
86
86
  )
87
87
 
88
88
  async def run(self) -> AsyncIterator[TriggerEvent]:
89
- """Makes a series of asynchronous http calls via an http hook."""
89
+ """Make a series of asynchronous http calls via a http hook."""
90
90
  hook = HttpAsyncHook(
91
91
  method=self.method,
92
92
  http_conn_id=self.http_conn_id,
@@ -162,7 +162,7 @@ class HttpSensorTrigger(BaseTrigger):
162
162
  self.poke_interval = poke_interval
163
163
 
164
164
  def serialize(self) -> tuple[str, dict[str, Any]]:
165
- """Serializes HttpTrigger arguments and classpath."""
165
+ """Serialize HttpTrigger arguments and classpath."""
166
166
  return (
167
167
  "airflow.providers.http.triggers.http.HttpSensorTrigger",
168
168
  {
@@ -176,7 +176,7 @@ class HttpSensorTrigger(BaseTrigger):
176
176
  )
177
177
 
178
178
  async def run(self) -> AsyncIterator[TriggerEvent]:
179
- """Makes a series of asynchronous http calls via an http hook."""
179
+ """Make a series of asynchronous http calls via an http hook."""
180
180
  hook = self._get_async_hook()
181
181
  while True:
182
182
  try:
@@ -28,7 +28,7 @@ build-backend = "flit_core.buildapi"
28
28
 
29
29
  [project]
30
30
  name = "apache-airflow-providers-http"
31
- version = "4.9.0.rc2"
31
+ version = "4.9.1.rc1"
32
32
  description = "Provider package apache-airflow-providers-http for Apache Airflow"
33
33
  readme = "README.rst"
34
34
  authors = [
@@ -55,16 +55,16 @@ classifiers = [
55
55
  ]
56
56
  requires-python = "~=3.8"
57
57
  dependencies = [
58
- "aiohttp",
58
+ "aiohttp>=3.9.2",
59
59
  "apache-airflow>=2.6.0.dev0",
60
60
  "asgiref",
61
- "requests>=2.26.0",
61
+ "requests>=2.27.0,<3",
62
62
  "requests_toolbelt",
63
63
  ]
64
64
 
65
65
  [project.urls]
66
- "Documentation" = "https://airflow.apache.org/docs/apache-airflow-providers-http/4.9.0"
67
- "Changelog" = "https://airflow.apache.org/docs/apache-airflow-providers-http/4.9.0/changelog.html"
66
+ "Documentation" = "https://airflow.apache.org/docs/apache-airflow-providers-http/4.9.1"
67
+ "Changelog" = "https://airflow.apache.org/docs/apache-airflow-providers-http/4.9.1/changelog.html"
68
68
  "Bug Tracker" = "https://github.com/apache/airflow/issues"
69
69
  "Source Code" = "https://github.com/apache/airflow"
70
70
  "Slack Chat" = "https://s.apache.org/airflow-slack"