From bb157be7811e9c8fd08bd3fa206e4dd670ca74b1 Mon Sep 17 00:00:00 2001 From: Johannes Messner Date: Fri, 14 Apr 2023 17:54:52 +0200 Subject: [PATCH] chore: make weaviate dependency optional Signed-off-by: Johannes Messner --- poetry.lock | 21 +++++++++++---------- pyproject.toml | 3 ++- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/poetry.lock b/poetry.lock index ab4f3770eb8..9f63ee3cf39 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry and should not be changed by hand. +# This file is automatically @generated by Poetry 1.4.1 and should not be changed by hand. [[package]] name = "aiohttp" @@ -269,7 +269,7 @@ name = "authlib" version = "1.2.0" description = "The ultimate Python library in building OAuth and OpenID Connect servers and clients." category = "main" -optional = false +optional = true python-versions = "*" files = [ {file = "Authlib-1.2.0-py2.py3-none-any.whl", hash = "sha256:4ddf4fd6cfa75c9a460b361d4bd9dac71ffda0be879dbe4292a02e92349ad55a"}, @@ -718,7 +718,7 @@ name = "cryptography" version = "40.0.1" description = "cryptography is a package which provides cryptographic recipes and primitives to Python developers." category = "main" -optional = false +optional = true python-versions = ">=3.6" files = [ {file = "cryptography-40.0.1-cp36-abi3-macosx_10_12_universal2.whl", hash = "sha256:918cb89086c7d98b1b86b9fdb70c712e5a9325ba6f7d7cfb509e784e0cfc6917"}, @@ -4352,7 +4352,7 @@ name = "tqdm" version = "4.65.0" description = "Fast, Extensible Progress Meter" category = "main" -optional = false +optional = true python-versions = ">=3.7" files = [ {file = "tqdm-4.65.0-py3-none-any.whl", hash = "sha256:c4f53a17fe37e132815abceec022631be8ffe1b9381c2e6e30aa70edc99e9671"}, @@ -4575,7 +4575,7 @@ name = "validators" version = "0.20.0" description = "Python Data Validation for Humans™." category = "main" -optional = false +optional = true python-versions = ">=3.4" files = [ {file = "validators-0.20.0.tar.gz", hash = "sha256:24148ce4e64100a2d5e267233e23e7afeb55316b47d30faae7eb6e7292bc226a"}, @@ -4682,7 +4682,7 @@ name = "weaviate-client" version = "3.15.5" description = "A python native weaviate client" category = "main" -optional = false +optional = true python-versions = ">=3.7" files = [ {file = "weaviate-client-3.15.5.tar.gz", hash = "sha256:6da7e5d08dc9bb8b7879661d1a457c50af7d73e621a5305efe131160e83da69e"}, @@ -4955,20 +4955,21 @@ testing = ["flake8 (<5)", "func-timeout", "jaraco.functools", "jaraco.itertools" [extras] audio = ["pydub"] aws = ["smart-open"] -elasticsearch = ["elasticsearch", "elastic-transport"] -full = ["protobuf", "lz4", "pandas", "pillow", "types-pillow", "av", "pydub", "trimesh"] +elasticsearch = ["elastic-transport", "elasticsearch"] +full = ["av", "lz4", "pandas", "pillow", "protobuf", "pydub", "trimesh", "types-pillow"] hnswlib = ["hnswlib"] image = ["pillow", "types-pillow"] jac = ["jina-hubble-sdk"] mesh = ["trimesh"] pandas = ["pandas"] -proto = ["protobuf", "lz4"] +proto = ["lz4", "protobuf"] qdrant = ["qdrant-client"] torch = ["torch"] video = ["av"] +weaviate = ["weaviate-client"] web = ["fastapi"] [metadata] lock-version = "2.0" python-versions = ">=3.7,<4.0" -content-hash = "aa40883efd1be9aa2ff566b5dfbabd06c19c94ef3085772e48555e4234bbb415" +content-hash = "8921fee07061d4d583fa7bcb4309cdcc47d5b2c80bb6aa3f84ae99f61b61f5c4" diff --git a/pyproject.toml b/pyproject.toml index 45bc332f556..f200163376e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,7 +24,7 @@ hnswlib = {version = ">=0.6.2", optional = true } lz4 = {version= ">=1.0.0", optional = true} pydub = {version = "^0.25.1", optional = true } pandas = {version = ">=1.1.0", optional = true } -weaviate-client = {version = ">=3.15", extras = ["weaviate"]} +weaviate-client = {version = ">=3.15", optional = true} elasticsearch = {version = ">=7.10.1", optional = true } smart-open = {version = ">=6.3.0", extras = ["s3"], optional = true} jina-hubble-sdk = {version = ">=0.34.0", optional = true} @@ -45,6 +45,7 @@ aws = ["smart-open"] torch = ["torch"] web = ["fastapi"] qdrant = ["qdrant-client"] +weaviate = ["weaviate-client"] # all full = ["protobuf", "lz4", "pandas", "pillow", "types-pillow", "av", "pydub", "trimesh"]