From 42c857cf6b584043538178547db10eab4df26e20 Mon Sep 17 00:00:00 2001 From: Benjamin Fineran Date: Wed, 5 Jul 2023 15:11:46 -0400 Subject: [PATCH] [cherry-pick 1.5.2] pin pydantic to <2.0 (#1645) (#1107) * Restrict `pydantic<2.0.0` due to breaking changes (#1104) > Pydantic V2 is a ground-up rewrite that offers many new features, performance improvements, and some breaking changes compared to Pydantic V1. ``` deepsparse/pipeline.py:822: in class PipelineConfig(BaseModel): ... NameError: Field "model_path" has conflict with protected namespace "model_" ``` * bump version to 1.5.2 --------- Co-authored-by: Michael Goin --- setup.py | 7 +++---- src/deepsparse/version.py | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/setup.py b/setup.py index d9dbeaa19d..da3b41be5d 100644 --- a/setup.py +++ b/setup.py @@ -85,9 +85,9 @@ def _parse_requirements_file(file_path): _deps = [ - "numpy>=1.16.3,<=1.21.6", - "onnx>=1.5.0,<=1.12.0", - "pydantic>=1.8.2", + "numpy>=1.16.3", + "onnx>=1.5.0,<1.15.0", + "pydantic>=1.8.2,<2.0.0", "requests>=2.0.0", "tqdm>=4.0.0", "protobuf>=3.12.2,<=3.20.1", @@ -120,7 +120,6 @@ def _parse_requirements_file(file_path): _server_deps = [ "uvicorn>=0.15.0", "fastapi>=0.70.0,<0.87.0", - "pydantic>=1.8.2", "requests>=2.26.0", "python-multipart>=0.0.5", "prometheus-client>=0.14.1", diff --git a/src/deepsparse/version.py b/src/deepsparse/version.py index 4695fbe635..bf3d63bb4d 100644 --- a/src/deepsparse/version.py +++ b/src/deepsparse/version.py @@ -39,7 +39,7 @@ from deepsparse.generated_version import is_enterprise, is_release, splash, version except Exception: # otherwise, fall back to version info in this file - version = "1.5.1" + version = "1.5.2" is_release = False is_enterprise = False splash = (