Skip to content

Commit 9723ce8

Browse files
committed
Install websockets version dependent on python version
1 parent 31df807 commit 9723ce8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,10 @@
9090
"requests>=2.16.0,<3.0.0",
9191
# remove typing_extensions after python_requires>=3.8, see web3._utils.compat
9292
"typing-extensions>=3.7.4.1,<5;python_version<'3.8'",
93-
"websockets>=9.1,<11",
93+
# websockets 10.0 removed support for python 3.6.
94+
# We can remove this line once we drop 3.6 support as well
95+
"websockets>=9.1,<10;python_version<'3.7'",
96+
"websockets>=9.1,<11;python_version>'3.6'",
9497
],
9598
python_requires='>=3.6,<4',
9699
extras_require=extras_require,

0 commit comments

Comments
 (0)