Skip to content

Commit

Permalink
[cherry-pick 1.5.2] pin pydantic to <2.0 (#1645) (#1107)
Browse files Browse the repository at this point in the history
* 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 <michael@neuralmagic.com>
  • Loading branch information
bfineran and mgoin committed Jul 5, 2023
1 parent 9d4bc0b commit 42c857c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions setup.py
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/deepsparse/version.py
Expand Up @@ -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 = (
Expand Down

0 comments on commit 42c857c

Please sign in to comment.