[Serve] Only install dataclasses on Python 3.6 (#10936)

This commit is contained in:
architkulkarni 2020-09-22 09:39:39 -07:00 committed by GitHub
parent 2d16ab2e16
commit 67c653c053
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 5 deletions

View file

@ -2,7 +2,7 @@ aiohttp
blist
boto3
cython==0.29.0
dataclasses
dataclasses; python_version < '3.7'
dm-tree
feather-format
flask

View file

@ -38,13 +38,13 @@ tabulate
tensorboardX
uvicorn
pydantic
dataclasses
dataclasses; python_version < '3.7'
# Requirements for running tests
blist; platform_system != "Windows"
boto3
cython==0.29.0
dataclasses
dataclasses; python_version < '3.7'
dask[complete]
feather-format
gym

View file

@ -103,8 +103,14 @@ optional_ray_files += ray_dashboard_files
# in this directory
extras = {
"debug": [],
"serve": ["uvicorn", "flask", "requests", "pydantic", "dataclasses"],
"tune": ["tabulate", "tensorboardX", "pandas", "dataclasses"]
"serve": [
"uvicorn", "flask", "requests", "pydantic",
"dataclasses; python_version < '3.7'"
],
"tune": [
"tabulate", "tensorboardX", "pandas",
"dataclasses; python_version < '3.7'"
]
}
extras["rllib"] = extras["tune"] + [