Skip to content

Commit

Permalink
[py] add deprecation library requirement (#13402)
Browse files Browse the repository at this point in the history
* [py] add deprecation library
* [py] use typing_extensions instead of deprecated package
  • Loading branch information
titusfortner authored Jan 20, 2024
1 parent b7f27a2 commit f83765d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions py/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ py_library(
imports = ["."],
visibility = ["//visibility:public"],
deps = [
requirement("typing_extensions"),
requirement("trio"),
requirement("trio_websocket"),
requirement("urllib3"),
Expand Down
1 change: 1 addition & 0 deletions py/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ sortedcontainers==2.4.0
toml==0.10.2
trio>=0.20.0
trio-websocket==0.9.2
typing_extensions==4.9.0
urllib3[socks]==2.0.7
wsproto==1.2.0
zipp==3.17.0
9 changes: 5 additions & 4 deletions py/requirements_lock.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ attrs==23.1.0 \
# via
# -r py/requirements.txt
# outcome
# pytest
# trio
certifi==2023.7.22 \
--hash=sha256:539cc1d13202e33ca466e88b2807e29f4c13049d6d87031a3c110744495cb082 \
Expand Down Expand Up @@ -263,9 +262,7 @@ pyopenssl==22.0.0 \
pyparsing==3.1.1 \
--hash=sha256:32c7c0b711493c72ff18a981d24f28aaf9c1fb7ed5e9667c9e84e3db623bdbfb \
--hash=sha256:ede28a1a32462f5a9705e07aea48001a08f7cf81a021585011deba701581a0db
# via
# -r py/requirements.txt
# packaging
# via -r py/requirements.txt
pysocks==1.7.1 \
--hash=sha256:08e69f092cc6dbe92a0fdd16eeb9b9ffbc13cadfe5ca4c7bd92ffb078b293299 \
--hash=sha256:2725bd0a9925919b9b51739eea5f9e2bae91e83288108a9ad338b2e3a4435ee5 \
Expand Down Expand Up @@ -324,6 +321,10 @@ trio-websocket==0.9.2 \
--hash=sha256:5b558f6e83cc20a37c3b61202476c5295d1addf57bd65543364e0337e37ed2bc \
--hash=sha256:a3d34de8fac26023eee701ed1e7bf4da9a8326b61a62934ec9e53b64970fd8fe
# via -r py/requirements.txt
typing-extensions==4.9.0 \
--hash=sha256:23478f88c37f27d76ac8aee6c905017a143b0b1b886c3c9f66bc2fd94f9f5783 \
--hash=sha256:af72aea155e91adfc61c3ae9e0e342dbc0cba726d6cba4b6c72c1f34e47291cd
# via -r py/requirements.txt
urllib3[socks]==2.0.7 \
--hash=sha256:c97dfde1f7bd43a71c8d2a58e369e9b2bf692d1334ea9f9cae55add7d0dd0f84 \
--hash=sha256:fdb6d215c776278489906c2f8916e6e7d4f5a9b602ccbcfdf7f016fc8da0596e
Expand Down
1 change: 1 addition & 0 deletions py/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
'selenium.webdriver.support', ],
'include_package_data': True,
'install_requires': [
"typing_extension~= 4.9",
"urllib3[socks]>=1.26,<3",
"trio~=0.17",
"trio-websocket~=0.9",
Expand Down

0 comments on commit f83765d

Please sign in to comment.