[Python] Support pydantic v1 as well (#337)

Support both Pydantic v1 and v2 (breaking changes)
This commit is contained in:
Lei Xu
2023-07-18 19:53:09 -07:00
committed by GitHub
parent a636bb1075
commit 63acdc2069
3 changed files with 67 additions and 15 deletions

View File

@@ -1,7 +1,7 @@
[project]
name = "lancedb"
version = "0.1.12"
dependencies = ["pylance~=0.5.8", "ratelimiter", "retry", "tqdm", "aiohttp", "pydantic>=2", "attr"]
dependencies = ["pylance~=0.5.8", "ratelimiter", "retry", "tqdm", "aiohttp", "pydantic", "attr", "semver"]
description = "lancedb"
authors = [
{ name = "LanceDB Devs", email = "dev@lancedb.com" },
@@ -52,3 +52,6 @@ requires = [
"wheel",
]
build-backend = "setuptools.build_meta"
[tool.isort]
profile = "black"