diff --git a/py/BUILD.bazel b/py/BUILD.bazel index 5fcb877dcfc4b..b46d65e8a3da8 100644 --- a/py/BUILD.bazel +++ b/py/BUILD.bazel @@ -327,7 +327,7 @@ py_wheel( python_requires = ">=3.9", python_tag = "py3", requires = [ - "urllib3[socks]~=2.5.0", + "urllib3[socks]>=2.5.0,<3.0", "trio~=0.30.0", "trio-websocket~=0.12.2", "certifi>=2025.6.15", diff --git a/py/pyproject.toml b/py/pyproject.toml index 4611b38cb5f62..3431c3ca41a01 100644 --- a/py/pyproject.toml +++ b/py/pyproject.toml @@ -26,7 +26,7 @@ classifiers = [ "Programming Language :: Python :: 3.13", ] dependencies = [ - "urllib3[socks]~=2.5.0", + "urllib3[socks]>=2.5.0,<3.0", "trio~=0.30.0", "trio-websocket~=0.12.2", "certifi>=2025.6.15",