apache-airflow-providers-http 5.2.0__tar.gz → 5.2.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 (15) hide show
  1. {apache_airflow_providers_http-5.2.0 → apache_airflow_providers_http-5.2.1rc1}/PKG-INFO +27 -28
  2. {apache_airflow_providers_http-5.2.0 → apache_airflow_providers_http-5.2.1rc1}/README.rst +21 -22
  3. {apache_airflow_providers_http-5.2.0 → apache_airflow_providers_http-5.2.1rc1}/pyproject.toml +27 -10
  4. {apache_airflow_providers_http-5.2.0 → apache_airflow_providers_http-5.2.1rc1}/src/airflow/providers/http/__init__.py +1 -1
  5. {apache_airflow_providers_http-5.2.0 → apache_airflow_providers_http-5.2.1rc1}/src/airflow/providers/http/get_provider_info.py +4 -2
  6. {apache_airflow_providers_http-5.2.0 → apache_airflow_providers_http-5.2.1rc1}/src/airflow/providers/http/sensors/http.py +5 -4
  7. {apache_airflow_providers_http-5.2.0 → apache_airflow_providers_http-5.2.1rc1}/src/airflow/providers/http/LICENSE +0 -0
  8. {apache_airflow_providers_http-5.2.0 → apache_airflow_providers_http-5.2.1rc1}/src/airflow/providers/http/exceptions.py +0 -0
  9. {apache_airflow_providers_http-5.2.0 → apache_airflow_providers_http-5.2.1rc1}/src/airflow/providers/http/hooks/__init__.py +0 -0
  10. {apache_airflow_providers_http-5.2.0 → apache_airflow_providers_http-5.2.1rc1}/src/airflow/providers/http/hooks/http.py +0 -0
  11. {apache_airflow_providers_http-5.2.0 → apache_airflow_providers_http-5.2.1rc1}/src/airflow/providers/http/operators/__init__.py +0 -0
  12. {apache_airflow_providers_http-5.2.0 → apache_airflow_providers_http-5.2.1rc1}/src/airflow/providers/http/operators/http.py +0 -0
  13. {apache_airflow_providers_http-5.2.0 → apache_airflow_providers_http-5.2.1rc1}/src/airflow/providers/http/sensors/__init__.py +0 -0
  14. {apache_airflow_providers_http-5.2.0 → apache_airflow_providers_http-5.2.1rc1}/src/airflow/providers/http/triggers/__init__.py +0 -0
  15. {apache_airflow_providers_http-5.2.0 → apache_airflow_providers_http-5.2.1rc1}/src/airflow/providers/http/triggers/http.py +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.4
2
2
  Name: apache-airflow-providers-http
3
- Version: 5.2.0
3
+ Version: 5.2.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,46 +20,45 @@ 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.0
23
+ Requires-Dist: apache-airflow>=2.9.0rc0
24
24
  Requires-Dist: requests>=2.27.0,<3
25
- Requires-Dist: requests-toolbelt>=0.4.0
25
+ Requires-Dist: requests-toolbelt>=1.0.0
26
26
  Requires-Dist: aiohttp>=3.9.2,!=3.11.0
27
27
  Requires-Dist: asgiref>=2.3.0
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/5.2.0/changelog.html
30
- Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-http/5.2.0
29
+ Project-URL: Changelog, https://airflow.apache.org/docs/apache-airflow-providers-http/5.2.1/changelog.html
30
+ Project-URL: Documentation, https://airflow.apache.org/docs/apache-airflow-providers-http/5.2.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://x.com/ApacheAirflow
34
34
  Project-URL: YouTube, https://www.youtube.com/channel/UCSXwxpWZQ7XZ1WL3wqevChA/
35
35
 
36
36
 
37
- .. Licensed to the Apache Software Foundation (ASF) under one
38
- or more contributor license agreements. See the NOTICE file
39
- distributed with this work for additional information
40
- regarding copyright ownership. The ASF licenses this file
41
- to you under the Apache License, Version 2.0 (the
42
- "License"); you may not use this file except in compliance
43
- with the License. You may obtain a copy of the License at
37
+ .. Licensed to the Apache Software Foundation (ASF) under one
38
+ or more contributor license agreements. See the NOTICE file
39
+ distributed with this work for additional information
40
+ regarding copyright ownership. The ASF licenses this file
41
+ to you under the Apache License, Version 2.0 (the
42
+ "License"); you may not use this file except in compliance
43
+ with the License. You may obtain a copy of the License at
44
44
 
45
- .. http://www.apache.org/licenses/LICENSE-2.0
45
+ .. http://www.apache.org/licenses/LICENSE-2.0
46
46
 
47
- .. Unless required by applicable law or agreed to in writing,
48
- software distributed under the License is distributed on an
49
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
50
- KIND, either express or implied. See the License for the
51
- specific language governing permissions and limitations
52
- under the License.
47
+ .. Unless required by applicable law or agreed to in writing,
48
+ software distributed under the License is distributed on an
49
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
50
+ KIND, either express or implied. See the License for the
51
+ specific language governing permissions and limitations
52
+ under the License.
53
53
 
54
- .. NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE OVERWRITTEN!
55
-
56
- .. IF YOU WANT TO MODIFY TEMPLATE FOR THIS FILE, YOU SHOULD MODIFY THE TEMPLATE
57
- `PROVIDER_README_TEMPLATE.rst.jinja2` IN the `dev/breeze/src/airflow_breeze/templates` DIRECTORY
54
+ .. NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE OVERWRITTEN!
58
55
 
56
+ .. IF YOU WANT TO MODIFY TEMPLATE FOR THIS FILE, YOU SHOULD MODIFY THE TEMPLATE
57
+ ``PROVIDER_README_TEMPLATE.rst.jinja2`` IN the ``dev/breeze/src/airflow_breeze/templates`` DIRECTORY
59
58
 
60
59
  Package ``apache-airflow-providers-http``
61
60
 
62
- Release: ``5.2.0``
61
+ Release: ``5.2.1``
63
62
 
64
63
 
65
64
  `Hypertext Transfer Protocol (HTTP) <https://www.w3.org/Protocols/>`__
@@ -72,7 +71,7 @@ This is a provider package for ``http`` provider. All classes for this provider
72
71
  are in ``airflow.providers.http`` python package.
73
72
 
74
73
  You can find package information and changelog for the provider
75
- in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-http/5.2.0/>`_.
74
+ in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-http/5.2.1/>`_.
76
75
 
77
76
  Installation
78
77
  ------------
@@ -91,11 +90,11 @@ PIP package Version required
91
90
  ===================== ====================
92
91
  ``apache-airflow`` ``>=2.9.0``
93
92
  ``requests`` ``>=2.27.0,<3``
94
- ``requests-toolbelt`` ``>=0.4.0``
93
+ ``requests-toolbelt`` ``>=1.0.0``
95
94
  ``aiohttp`` ``!=3.11.0,>=3.9.2``
96
95
  ``asgiref`` ``>=2.3.0``
97
96
  ===================== ====================
98
97
 
99
98
  The changelog for the provider package can be found in the
100
- `changelog <https://airflow.apache.org/docs/apache-airflow-providers-http/5.2.0/changelog.html>`_.
99
+ `changelog <https://airflow.apache.org/docs/apache-airflow-providers-http/5.2.1/changelog.html>`_.
101
100
 
@@ -1,30 +1,29 @@
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
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
9
 
10
- .. http://www.apache.org/licenses/LICENSE-2.0
10
+ .. http://www.apache.org/licenses/LICENSE-2.0
11
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.
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
18
 
19
- .. NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE OVERWRITTEN!
20
-
21
- .. IF YOU WANT TO MODIFY TEMPLATE FOR THIS FILE, YOU SHOULD MODIFY THE TEMPLATE
22
- `PROVIDER_README_TEMPLATE.rst.jinja2` IN the `dev/breeze/src/airflow_breeze/templates` DIRECTORY
19
+ .. NOTE! THIS FILE IS AUTOMATICALLY GENERATED AND WILL BE OVERWRITTEN!
23
20
 
21
+ .. IF YOU WANT TO MODIFY TEMPLATE FOR THIS FILE, YOU SHOULD MODIFY THE TEMPLATE
22
+ ``PROVIDER_README_TEMPLATE.rst.jinja2`` IN the ``dev/breeze/src/airflow_breeze/templates`` DIRECTORY
24
23
 
25
24
  Package ``apache-airflow-providers-http``
26
25
 
27
- Release: ``5.2.0``
26
+ Release: ``5.2.1``
28
27
 
29
28
 
30
29
  `Hypertext Transfer Protocol (HTTP) <https://www.w3.org/Protocols/>`__
@@ -37,7 +36,7 @@ This is a provider package for ``http`` provider. All classes for this provider
37
36
  are in ``airflow.providers.http`` python package.
38
37
 
39
38
  You can find package information and changelog for the provider
40
- in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-http/5.2.0/>`_.
39
+ in the `documentation <https://airflow.apache.org/docs/apache-airflow-providers-http/5.2.1/>`_.
41
40
 
42
41
  Installation
43
42
  ------------
@@ -56,10 +55,10 @@ PIP package Version required
56
55
  ===================== ====================
57
56
  ``apache-airflow`` ``>=2.9.0``
58
57
  ``requests`` ``>=2.27.0,<3``
59
- ``requests-toolbelt`` ``>=0.4.0``
58
+ ``requests-toolbelt`` ``>=1.0.0``
60
59
  ``aiohttp`` ``!=3.11.0,>=3.9.2``
61
60
  ``asgiref`` ``>=2.3.0``
62
61
  ===================== ====================
63
62
 
64
63
  The changelog for the provider package can be found in the
65
- `changelog <https://airflow.apache.org/docs/apache-airflow-providers-http/5.2.0/changelog.html>`_.
64
+ `changelog <https://airflow.apache.org/docs/apache-airflow-providers-http/5.2.1/changelog.html>`_.
@@ -20,12 +20,12 @@
20
20
  # IF YOU WANT TO MODIFY THIS FILE EXCEPT DEPENDENCIES, YOU SHOULD MODIFY THE TEMPLATE
21
21
  # `pyproject_TEMPLATE.toml.jinja2` IN the `dev/breeze/src/airflow_breeze/templates` DIRECTORY
22
22
  [build-system]
23
- requires = ["flit_core==3.10.1"]
23
+ requires = ["flit_core==3.11.0"]
24
24
  build-backend = "flit_core.buildapi"
25
25
 
26
26
  [project]
27
27
  name = "apache-airflow-providers-http"
28
- version = "5.2.0"
28
+ version = "5.2.1.rc1"
29
29
  description = "Provider package apache-airflow-providers-http for Apache Airflow"
30
30
  readme = "README.rst"
31
31
  authors = [
@@ -52,22 +52,42 @@ classifiers = [
52
52
  ]
53
53
  requires-python = "~=3.9"
54
54
 
55
- # The dependencies should be modified in place in the generated file
55
+ # The dependencies should be modified in place in the generated file.
56
56
  # Any change in the dependencies is preserved when the file is regenerated
57
+ # Make sure to run ``breeze static-checks --type update-providers-dependencies --all-files``
58
+ # After you modify the dependencies, and rebuild your Breeze CI image with ``breeze ci-image build``
57
59
  dependencies = [
58
- "apache-airflow>=2.9.0",
60
+ "apache-airflow>=2.9.0rc0",
59
61
  # The 2.26.0 release of requests got rid of the chardet LGPL mandatory dependency, allowing us to
60
62
  # release it as a requirement for airflow
61
63
  "requests>=2.27.0,<3",
62
- "requests-toolbelt>=0.4.0",
64
+ "requests-toolbelt>=1.0.0",
63
65
  # aiohttp 3.11.0 had incompatible change: https://github.com/aio-libs/aiohttp/issues/9866
64
66
  "aiohttp>=3.9.2,!=3.11.0",
65
67
  "asgiref>=2.3.0",
66
68
  ]
67
69
 
70
+ [dependency-groups]
71
+ dev = [
72
+ "apache-airflow",
73
+ "apache-airflow-task-sdk",
74
+ "apache-airflow-devel-common",
75
+ # Additional devel dependencies (do not remove this line and add extra development dependencies)
76
+ ]
77
+
78
+ [tool.uv.sources]
79
+ # These names must match the names as defined in the pyproject.toml of the workspace items,
80
+ # *not* the workspace folder paths
81
+ apache-airflow = {workspace = true}
82
+ apache-airflow-devel-common = {workspace = true}
83
+ apache-airflow-task-sdk = {workspace = true}
84
+ apache-airflow-providers-common-sql = {workspace = true}
85
+ apache-airflow-providers-fab = {workspace = true}
86
+ apache-airflow-providers-standard = {workspace = true}
87
+
68
88
  [project.urls]
69
- "Documentation" = "https://airflow.apache.org/docs/apache-airflow-providers-http/5.2.0"
70
- "Changelog" = "https://airflow.apache.org/docs/apache-airflow-providers-http/5.2.0/changelog.html"
89
+ "Documentation" = "https://airflow.apache.org/docs/apache-airflow-providers-http/5.2.1"
90
+ "Changelog" = "https://airflow.apache.org/docs/apache-airflow-providers-http/5.2.1/changelog.html"
71
91
  "Bug Tracker" = "https://github.com/apache/airflow/issues"
72
92
  "Source Code" = "https://github.com/apache/airflow"
73
93
  "Slack Chat" = "https://s.apache.org/airflow-slack"
@@ -79,6 +99,3 @@ provider_info = "airflow.providers.http.get_provider_info:get_provider_info"
79
99
 
80
100
  [tool.flit.module]
81
101
  name = "airflow.providers.http"
82
-
83
- [tool.pytest.ini_options]
84
- ignore = "tests/system/"
@@ -29,7 +29,7 @@ from airflow import __version__ as airflow_version
29
29
 
30
30
  __all__ = ["__version__"]
31
31
 
32
- __version__ = "5.2.0"
32
+ __version__ = "5.2.1"
33
33
 
34
34
  if packaging.version.parse(packaging.version.parse(airflow_version).base_version) < packaging.version.parse(
35
35
  "2.9.0"
@@ -27,8 +27,9 @@ def get_provider_info():
27
27
  "name": "Hypertext Transfer Protocol (HTTP)",
28
28
  "description": "`Hypertext Transfer Protocol (HTTP) <https://www.w3.org/Protocols/>`__\n",
29
29
  "state": "ready",
30
- "source-date-epoch": 1739963578,
30
+ "source-date-epoch": 1741508912,
31
31
  "versions": [
32
+ "5.2.1",
32
33
  "5.2.0",
33
34
  "5.0.0",
34
35
  "4.13.3",
@@ -107,8 +108,9 @@ def get_provider_info():
107
108
  "dependencies": [
108
109
  "apache-airflow>=2.9.0",
109
110
  "requests>=2.27.0,<3",
110
- "requests-toolbelt>=0.4.0",
111
+ "requests-toolbelt>=1.0.0",
111
112
  "aiohttp>=3.9.2,!=3.11.0",
112
113
  "asgiref>=2.3.0",
113
114
  ],
115
+ "devel-dependencies": [],
114
116
  }
@@ -30,6 +30,7 @@ from airflow.sensors.base import BaseSensorOperator
30
30
  if TYPE_CHECKING:
31
31
  try:
32
32
  from airflow.sdk.definitions.context import Context
33
+ from airflow.sensors.base import PokeReturnValue
33
34
  except ImportError:
34
35
  # TODO: Remove once provider drops support for Airflow 2
35
36
  from airflow.utils.context import Context
@@ -102,7 +103,7 @@ class HttpSensor(BaseSensorOperator):
102
103
  request_kwargs: dict[str, Any] | None = None,
103
104
  headers: dict[str, Any] | None = None,
104
105
  response_error_codes_allowlist: list[str] | None = None,
105
- response_check: Callable[..., bool] | None = None,
106
+ response_check: Callable[..., bool | PokeReturnValue] | None = None,
106
107
  extra_options: dict[str, Any] | None = None,
107
108
  tcp_keep_alive: bool = True,
108
109
  tcp_keep_alive_idle: int = 120,
@@ -129,7 +130,7 @@ class HttpSensor(BaseSensorOperator):
129
130
  self.deferrable = deferrable
130
131
  self.request_kwargs = request_kwargs or {}
131
132
 
132
- def poke(self, context: Context) -> bool:
133
+ def poke(self, context: Context) -> bool | PokeReturnValue:
133
134
  from airflow.utils.operator_helpers import determine_kwargs
134
135
 
135
136
  hook = HttpHook(
@@ -163,9 +164,9 @@ class HttpSensor(BaseSensorOperator):
163
164
 
164
165
  return True
165
166
 
166
- def execute(self, context: Context) -> None:
167
+ def execute(self, context: Context) -> Any:
167
168
  if not self.deferrable or self.response_check:
168
- super().execute(context=context)
169
+ return super().execute(context=context)
169
170
  elif not self.poke(context):
170
171
  self.defer(
171
172
  timeout=timedelta(seconds=self.timeout),