This is an automated email from the ASF dual-hosted git repository. ephraimanierobi pushed a commit to branch v3-1-test in repository https://gitbox.apache.org/repos/asf/airflow.git
commit f72763b79c0439226d6033a49a33408afb254043 Author: Jarek Potiuk <[email protected]> AuthorDate: Mon Dec 8 17:47:15 2025 +0100 Convert the exclusion on urllib3 to != for 2.6.0 (#59203) (#59212) After discussion in https://github.com/urllib3/urllib3/issues/3731 maintainers of urllib3 decided to restore the removed getheaders() method for now. We should change < to !=. (cherry picked from commit dd31202e8c4930689a61394ecced3af710494790) --- clients/python/pyproject.toml | 2 +- kubernetes-tests/pyproject.toml | 2 +- providers/cncf/kubernetes/pyproject.toml | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/clients/python/pyproject.toml b/clients/python/pyproject.toml index 59593b1d8dd..2cef853a066 100644 --- a/clients/python/pyproject.toml +++ b/clients/python/pyproject.toml @@ -51,7 +51,7 @@ classifiers = [ dependencies = [ "pydantic >= 2.11.0", "python-dateutil", - "urllib3 >= 2.1.0", + "urllib3>=2.1.0,!=2.6.0", ] [project.urls] diff --git a/kubernetes-tests/pyproject.toml b/kubernetes-tests/pyproject.toml index 90ddc85ea62..d7f71b9af3d 100644 --- a/kubernetes-tests/pyproject.toml +++ b/kubernetes-tests/pyproject.toml @@ -44,7 +44,7 @@ dependencies = [ # Urllib 2.6.0 breaks kubernetes client because kubernetes client uses deprecated in 2.0.0 and # removed in 2.6.0 `getheaders()` call (instead of `headers` property. # Tracked in https://github.com/kubernetes-client/python/issues/2477 - "urllib3>=2.1.0,<2.6.0", + "urllib3>=2.1.0,!=2.6.0", ] [tool.pytest] diff --git a/providers/cncf/kubernetes/pyproject.toml b/providers/cncf/kubernetes/pyproject.toml index 5b937c8e2ad..b586d75772e 100644 --- a/providers/cncf/kubernetes/pyproject.toml +++ b/providers/cncf/kubernetes/pyproject.toml @@ -71,6 +71,10 @@ dependencies = [ # potential breaking changes in Airflow Core as well (kubernetes is added as extra, so Airflow # core is not hard-limited via install-requirements, only by extra). "kubernetes>=32.0.0,<33.0.0", + # Urllib 2.6.0 breaks kubernetes client because kubernetes client uses deprecated in 2.0.0 and + # removed in 2.6.0 `getheaders()` call (instead of `headers` property. + # Tracked in https://github.com/kubernetes-client/python/issues/2477 + "urllib3>=2.1.0,!=2.6.0", # the version is limited to the next MAJOR version and should by synced with the kubernetes version "kubernetes_asyncio>=32.0.0,<33.0.0", ]
