Skip to content

fix(runtimes): Remove unused Pydantic dependencies#1725

Merged
jesse-c merged 1 commit into
SeldonIO:masterfrom
jesse-c:remove-unnecessary-pydantic-deps
Apr 30, 2024
Merged

fix(runtimes): Remove unused Pydantic dependencies#1725
jesse-c merged 1 commit into
SeldonIO:masterfrom
jesse-c:remove-unnecessary-pydantic-deps

Conversation

@jesse-c

@jesse-c jesse-c commented Apr 29, 2024

Copy link
Copy Markdown
Contributor

These runtimes don't explicitly use Pydantic. Remove the dependency then to make that clear, and to increase flexibility. A step towards Pydantic v2.

@jesse-c jesse-c self-assigned this Apr 29, 2024
@jesse-c
jesse-c marked this pull request as ready for review April 29, 2024 15:30

@mauicv mauicv left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sakoush sakoush left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM approving assuming comments are sorted before merging:

  • I have a comment on poetry version to be aligned with what we specify during docker build.

  • I also see no pyproject.toml changes for some runtimes e.g. alibi-explain so I am not sure if they were missed?

Comment thread poetry.lock
@jesse-c

jesse-c commented Apr 30, 2024

Copy link
Copy Markdown
Contributor Author

I also see no pyproject.toml changes for some runtimes e.g. alibi-explain so I am not sure if they were missed?

This is for unused Pydantic dependency declarations. Alibi Explain uses Pydantic [1].

[1] https://github.com/jesse-c/MLServer/blob/02268574ff8cb5d330edfeb8cc10b64896472e22/runtimes/alibi-explain/mlserver_alibi_explain/common.py#L7

These runtimes don't explicitly use Pydantic. Remove the dependency
then to make that clear, and to increase flexibility.
@jesse-c
jesse-c merged commit 3638be9 into SeldonIO:master Apr 30, 2024
@jesse-c
jesse-c deleted the remove-unnecessary-pydantic-deps branch April 30, 2024 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants