Skip to content

Commit 42c857c

Browse files
bfineranmgoin
andauthored
[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 <module> class PipelineConfig(BaseModel): ... NameError: Field "model_path" has conflict with protected namespace "model_" ``` * bump version to 1.5.2 --------- Co-authored-by: Michael Goin <[email protected]>
1 parent 9d4bc0b commit 42c857c

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

setup.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ def _parse_requirements_file(file_path):
8585

8686

8787
_deps = [
88-
"numpy>=1.16.3,<=1.21.6",
89-
"onnx>=1.5.0,<=1.12.0",
90-
"pydantic>=1.8.2",
88+
"numpy>=1.16.3",
89+
"onnx>=1.5.0,<1.15.0",
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",

src/deepsparse/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
from deepsparse.generated_version import is_enterprise, is_release, splash, version
4040
except Exception:
4141
# otherwise, fall back to version info in this file
42-
version = "1.5.1"
42+
version = "1.5.2"
4343
is_release = False
4444
is_enterprise = False
4545
splash = (

0 commit comments

Comments
 (0)