Skip to content

Commit f83765d

Browse files
authored
[py] add deprecation library requirement (#13402)
* [py] add deprecation library * [py] use typing_extensions instead of deprecated package
1 parent b7f27a2 commit f83765d

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

py/BUILD.bazel

+1
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ py_library(
154154
imports = ["."],
155155
visibility = ["//visibility:public"],
156156
deps = [
157+
requirement("typing_extensions"),
157158
requirement("trio"),
158159
requirement("trio_websocket"),
159160
requirement("urllib3"),

py/requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ sortedcontainers==2.4.0
2929
toml==0.10.2
3030
trio>=0.20.0
3131
trio-websocket==0.9.2
32+
typing_extensions==4.9.0
3233
urllib3[socks]==2.0.7
3334
wsproto==1.2.0
3435
zipp==3.17.0

py/requirements_lock.txt

+5-4
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ attrs==23.1.0 \
1717
# via
1818
# -r py/requirements.txt
1919
# outcome
20-
# pytest
2120
# trio
2221
certifi==2023.7.22 \
2322
--hash=sha256:539cc1d13202e33ca466e88b2807e29f4c13049d6d87031a3c110744495cb082 \
@@ -263,9 +262,7 @@ pyopenssl==22.0.0 \
263262
pyparsing==3.1.1 \
264263
--hash=sha256:32c7c0b711493c72ff18a981d24f28aaf9c1fb7ed5e9667c9e84e3db623bdbfb \
265264
--hash=sha256:ede28a1a32462f5a9705e07aea48001a08f7cf81a021585011deba701581a0db
266-
# via
267-
# -r py/requirements.txt
268-
# packaging
265+
# via -r py/requirements.txt
269266
pysocks==1.7.1 \
270267
--hash=sha256:08e69f092cc6dbe92a0fdd16eeb9b9ffbc13cadfe5ca4c7bd92ffb078b293299 \
271268
--hash=sha256:2725bd0a9925919b9b51739eea5f9e2bae91e83288108a9ad338b2e3a4435ee5 \
@@ -324,6 +321,10 @@ trio-websocket==0.9.2 \
324321
--hash=sha256:5b558f6e83cc20a37c3b61202476c5295d1addf57bd65543364e0337e37ed2bc \
325322
--hash=sha256:a3d34de8fac26023eee701ed1e7bf4da9a8326b61a62934ec9e53b64970fd8fe
326323
# via -r py/requirements.txt
324+
typing-extensions==4.9.0 \
325+
--hash=sha256:23478f88c37f27d76ac8aee6c905017a143b0b1b886c3c9f66bc2fd94f9f5783 \
326+
--hash=sha256:af72aea155e91adfc61c3ae9e0e342dbc0cba726d6cba4b6c72c1f34e47291cd
327+
# via -r py/requirements.txt
327328
urllib3[socks]==2.0.7 \
328329
--hash=sha256:c97dfde1f7bd43a71c8d2a58e369e9b2bf692d1334ea9f9cae55add7d0dd0f84 \
329330
--hash=sha256:fdb6d215c776278489906c2f8916e6e7d4f5a9b602ccbcfdf7f016fc8da0596e

py/setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
'selenium.webdriver.support', ],
7373
'include_package_data': True,
7474
'install_requires': [
75+
"typing_extension~= 4.9",
7576
"urllib3[socks]>=1.26,<3",
7677
"trio~=0.17",
7778
"trio-websocket~=0.9",

0 commit comments

Comments
 (0)