Skip to content

Commit c46e841

Browse files
authored
Switch back http provider after requests removes LGPL dependency (#16974)
Following merging the psf/requests#5797 and requests 2.26.0 release without LGPL chardet dependency, we can now bring back http as pre-installed provider as it does not bring chardet automatically any more.
1 parent a3f5c93 commit c46e841

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

docs/apache-airflow/extra-packages-ref.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ Those are extras that provide support for integration with external systems via
260260
+---------------------+-----------------------------------------------------+--------------------------------------+--------------+
261261
| grpc | ``pip install 'apache-airflow[grpc]'`` | Grpc hooks and operators | |
262262
+---------------------+-----------------------------------------------------+--------------------------------------+--------------+
263-
| http | ``pip install 'apache-airflow[http]'`` | HTTP hooks, operators and sensors | |
263+
| http | ``pip install 'apache-airflow[http]'`` | HTTP hooks, operators and sensors | * |
264264
+---------------------+-----------------------------------------------------+--------------------------------------+--------------+
265265
| imap | ``pip install 'apache-airflow[imap]'`` | IMAP hooks and sensors | * |
266266
+---------------------+-----------------------------------------------------+--------------------------------------+--------------+

setup.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -231,13 +231,13 @@ def write_version(filename: str = os.path.join(*[my_dir, "airflow", "git_version
231231
'distributed>=2.11.1, <2.20',
232232
]
233233
databricks = [
234-
'requests>=2.20.0, <3',
234+
'requests>=2.26.0, <3',
235235
]
236236
datadog = [
237237
'datadog>=0.14.0',
238238
]
239239
deprecated_api = [
240-
'requests>=2.20.0',
240+
'requests>=2.26.0',
241241
]
242242
doc = [
243243
# Sphinx is limited to < 3.5.0 because of https://github.com/sphinx-doc/sphinx/issues/8880
@@ -333,7 +333,9 @@ def write_version(filename: str = os.path.join(*[my_dir, "airflow", "git_version
333333
'thrift>=0.9.2',
334334
]
335335
http = [
336-
'requests>=2.20.0',
336+
# The 2.26.0 release of requests got rid of the chardet LGPL mandatory dependency, allowing us to
337+
# release it as a requirement for airflow
338+
'requests>=2.26.0',
337339
]
338340
http_provider = [
339341
# NOTE ! The HTTP provider is NOT preinstalled by default when Airflow is installed - because it
@@ -815,12 +817,9 @@ def sort_extras_requirements() -> Dict[str, List[str]]:
815817
# Those providers are pre-installed always when airflow is installed.
816818
# Those providers do not have dependency on airflow2.0 because that would lead to circular dependencies.
817819
# This is not a problem for PIP but some tools (pipdeptree) show those as a warning.
818-
# NOTE ! The HTTP provider is NOT preinstalled by default when Airflow is installed - because it
819-
# depends on `requests` library and until `chardet` is mandatory dependency of `requests`
820-
# we cannot make it mandatory dependency. See https://github.com/psf/requests/pull/5797
821820
PREINSTALLED_PROVIDERS = [
822821
'ftp',
823-
# 'http',
822+
'http',
824823
'imap',
825824
'sqlite',
826825
]

0 commit comments

Comments
 (0)