Fix failed build and add websockets version specifier (#1239)

* add websockets version constraint

* fix failed build
This commit is contained in:
7 2018-06-07 10:07:26 -07:00 committed by Raphael Deem
parent 2f30f4f69f
commit baa689ad43
3 changed files with 3 additions and 3 deletions

View File

@ -2,4 +2,4 @@ aiofiles
httptools httptools
ujson; sys_platform != "win32" and implementation_name == "cpython" ujson; sys_platform != "win32" and implementation_name == "cpython"
uvloop; sys_platform != "win32" and implementation_name == "cpython" uvloop; sys_platform != "win32" and implementation_name == "cpython"
websockets websockets>=4.0,<5.0

View File

@ -60,7 +60,7 @@ requirements = [
uvloop, uvloop,
ujson, ujson,
'aiofiles>=0.3.0', 'aiofiles>=0.3.0',
'websockets>=4.0', 'websockets>=4.0,<5.0',
] ]
if strtobool(os.environ.get("SANIC_NO_UJSON", "no")): if strtobool(os.environ.get("SANIC_NO_UJSON", "no")):
print("Installing without uJSON") print("Installing without uJSON")

View File

@ -12,7 +12,7 @@ deps =
pytest-cov pytest-cov
pytest-sanic pytest-sanic
pytest-sugar pytest-sugar
aiohttp>=2.3 aiohttp>=2.3,<=3.2.1
chardet<=2.3.0 chardet<=2.3.0
beautifulsoup4 beautifulsoup4
gunicorn gunicorn