Skip to content

Commit 640735d

Browse files
committed
Install websockets version dependent on python version
1 parent c1a125f commit 640735d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

setup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +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,<4;python_version<'3.8'",
93-
"websockets>=9.1,<10;python_version<'3.8'",
94-
"websockets>=10.0,<11;python_version>'3.7'",
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'",
9597
],
9698
python_requires='>=3.6,<4',
9799
extras_require=extras_require,

0 commit comments

Comments
 (0)