From 879249b490f41d6af7ca13d4c3f4a5110af08d09 Mon Sep 17 00:00:00 2001 From: Alan Guo Date: Mon, 3 Jul 2023 10:16:25 -0700 Subject: [PATCH] Pin pydantic to < 2.0.0 (#37000) (#37018) 2.0.0 brings breaking changes Here's a failed CI run: https://buildkite.com/ray-project/oss-ci-build-pr/builds/27338#01890d26-94ff-42f2-80be-c2ac0a86e8d3/447-762 --- python/requirements.txt | 2 +- python/setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/requirements.txt b/python/requirements.txt index 59ce5d7448f1..e78259a5028c 100644 --- a/python/requirements.txt +++ b/python/requirements.txt @@ -60,5 +60,5 @@ starlette typer fsspec pandas>=1.3 -pydantic +pydantic<2 py-spy>=0.2.0 diff --git a/python/setup.py b/python/setup.py index 01d02d4276e5..272005901bb8 100644 --- a/python/setup.py +++ b/python/setup.py @@ -250,7 +250,7 @@ def get_packages(self): "requests", "gpustat >= 1.0.0", # for windows "opencensus", - "pydantic", + "pydantic < 2", # 2.0.0 brings breaking changes "prometheus_client >= 0.7.1", "smart_open", "virtualenv >=20.0.24, < 20.21.1", # For pip runtime env.