Skip to content

Commit

Permalink
fix version problem
Browse files Browse the repository at this point in the history
Signed-off-by: Future-Outlier <[email protected]>
  • Loading branch information
Future-Outlier committed Mar 10, 2024
1 parent 59de770 commit abf08f7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/pythonbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ jobs:
- flytekit-kf-pytorch
- flytekit-kf-tensorflow
- flytekit-mlflow
- flytekit-mmcloud
- flytekit-modin
- flytekit-onnx-pytorch
- flytekit-onnx-scikitlearn
Expand Down
2 changes: 1 addition & 1 deletion plugins/flytekit-pydantic/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

microlib_name = f"flytekitplugins-{PLUGIN_NAME}"

plugin_requires = ["flytekit>=1.7.0,<2.0.0", "pydantic<2.0.0"]
plugin_requires = ["flytekit>=1.7.0b0,<2.0.0", "pydantic"]

__version__ = "0.0.0+develop"

Expand Down
7 changes: 6 additions & 1 deletion plugins/flytekit-pydantic/tests/test_type_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,19 @@
from flyteidl.core.types_pb2 import SimpleType
from flytekitplugins.pydantic import BaseModelTransformer
from flytekitplugins.pydantic.commons import PYDANTIC_SUPPORTED_FLYTE_TYPES
from pydantic import BaseModel, Extra

import flytekit
from flytekit.core import context_manager
from flytekit.core.type_engine import TypeEngine
from flytekit.types import directory
from flytekit.types.file import file

try:
# it will cause error if it is lesser than 2.0 version
from pydantic.v1 import BaseModel, Extra
except ImportError:
from pydantic import BaseModel, Extra


class TrainConfig(BaseModel):
"""Config BaseModel for testing purposes."""
Expand Down

0 comments on commit abf08f7

Please sign in to comment.