diff --git a/py/BUILD.bazel b/py/BUILD.bazel index db1c47031c156..d4af61f0e0259 100644 --- a/py/BUILD.bazel +++ b/py/BUILD.bazel @@ -328,11 +328,11 @@ py_wheel( python_tag = "py3", requires = [ "urllib3[socks]>=2.5.0,<3.0", - "trio~=0.30.0", - "trio-websocket~=0.12.2", + "trio>=0.30.0,<1.0", + "trio-websocket>=0.12.2,<1.0", "certifi>=2025.6.15", - "typing_extensions~=4.14.0", - "websocket-client~=1.8.0", + "typing_extensions>=4.14.0,<5.0", + "websocket-client>=1.8.0,<2.0", ], strip_path_prefixes = [ "py/", diff --git a/py/pyproject.toml b/py/pyproject.toml index 5b2b0ad0d4d98..f33c879a04024 100644 --- a/py/pyproject.toml +++ b/py/pyproject.toml @@ -27,11 +27,11 @@ classifiers = [ ] dependencies = [ "urllib3[socks]>=2.5.0,<3.0", - "trio~=0.30.0", - "trio-websocket~=0.12.2", + "trio>=0.30.0,<1.0", + "trio-websocket>=0.12.2,<1.0", "certifi>=2025.6.15", - "typing_extensions~=4.14.0", - "websocket-client~=1.8.0", + "typing_extensions>=4.14.0,<5.0", + "websocket-client>=1.8.0,<2.0", ] [project.urls]