Skip to content

Commit 05d37d9

Browse files
mgoinhorheynm
authored andcommitted
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 <module> class PipelineConfig(BaseModel): ... NameError: Field "model_path" has conflict with protected namespace "model_" ```
1 parent d8eafaf commit 05d37d9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

setup.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def _parse_requirements_file(file_path):
8787
_deps = [
8888
"numpy>=1.16.3",
8989
"onnx>=1.5.0,<1.15.0",
90-
"pydantic>=1.8.2",
90+
"pydantic>=1.8.2,<2.0.0",
9191
"requests>=2.0.0",
9292
"tqdm>=4.0.0",
9393
"protobuf>=3.12.2,<=3.20.1",
@@ -120,7 +120,6 @@ def _parse_requirements_file(file_path):
120120
_server_deps = [
121121
"uvicorn>=0.15.0",
122122
"fastapi>=0.70.0,<0.87.0",
123-
"pydantic>=1.8.2",
124123
"requests>=2.26.0",
125124
"python-multipart>=0.0.5",
126125
"prometheus-client>=0.14.1",

0 commit comments

Comments
 (0)