fix: remove bson import (#3924)

Remove bson import
This commit is contained in:
Jordan Frazier 2024-09-26 04:46:37 -07:00 committed by GitHub
commit 17cc9bafcd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 2 additions and 30 deletions

16
poetry.lock generated
View file

@ -586,20 +586,6 @@ urllib3 = {version = ">=1.25.4,<2.2.0 || >2.2.0,<3", markers = "python_version >
[package.extras]
crt = ["awscrt (==0.21.2)"]
[[package]]
name = "bson"
version = "0.5.10"
description = "BSON codec for Python"
optional = false
python-versions = "*"
files = [
{file = "bson-0.5.10.tar.gz", hash = "sha256:d6511b2ab051139a9123c184de1a04227262173ad593429d21e443d6462d6590"},
]
[package.dependencies]
python-dateutil = ">=2.4.0"
six = ">=1.9.0"
[[package]]
name = "build"
version = "1.2.2"
@ -12186,4 +12172,4 @@ local = ["ctransformers", "llama-cpp-python", "sentence-transformers"]
[metadata]
lock-version = "2.0"
python-versions = ">=3.10,<3.13"
content-hash = "5476d8752c1b91c0e8bec1952b468fe08c04905e393bf6a1aa2304297ca8983d"
content-hash = "b8b616387b7386f9beab685fcff95ca507f802eb9dc22bd9ae182f0793b11170"

View file

@ -104,7 +104,6 @@ dependencies = [
"composio-langchain==0.5.9",
"spider-client>=0.0.27",
"nltk>=3.9.1",
"bson>=0.5.10",
"lark>=1.2.2",
"jq>=1.8.0",
"pydantic-settings==2.4.0",
@ -219,7 +218,6 @@ astra-assistants = "^2.1.2"
composio-langchain = "0.5.9"
spider-client = "^0.0.27"
nltk = "^3.9.1"
bson = "^0.5.10"
lark = "^1.2.2"
jq = "^1.8.0"
clickhouse-connect = {version = "0.7.19", optional = true, extras = ["clickhouse-connect"]}

View file

@ -74,7 +74,7 @@ class MongoVectorStoreComponent(LCVectorStoreComponent):
return vector_store
def search_documents(self) -> list[Data]:
from bson import ObjectId
from bson.objectid import ObjectId
vector_store = self.build_vector_store()

12
uv.lock generated
View file

@ -439,16 +439,6 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/bc/47/e35f788047c91110f48703a6254e5c84e33111b3291f7b57a653ca00accf/botocore-1.34.162-py3-none-any.whl", hash = "sha256:2d918b02db88d27a75b48275e6fb2506e9adaaddbec1ffa6a8a0898b34e769be", size = 12468049 },
]
[[package]]
name = "bson"
version = "0.5.10"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "python-dateutil" },
{ name = "six" },
]
sdist = { url = "https://files.pythonhosted.org/packages/4d/53/7c534a38850f2252275d7f949aed2219095e90df1e2d180a9c8ed139e499/bson-0.5.10.tar.gz", hash = "sha256:d6511b2ab051139a9123c184de1a04227262173ad593429d21e443d6462d6590", size = 10363 }
[[package]]
name = "build"
version = "1.2.2"
@ -3397,7 +3387,6 @@ dependencies = [
{ name = "astra-assistants" },
{ name = "beautifulsoup4" },
{ name = "boto3" },
{ name = "bson" },
{ name = "certifi" },
{ name = "chromadb" },
{ name = "cohere" },
@ -3531,7 +3520,6 @@ requires-dist = [
{ name = "astra-assistants", specifier = ">=2.1.2" },
{ name = "beautifulsoup4", specifier = ">=4.12.2" },
{ name = "boto3", specifier = "~=1.34.162" },
{ name = "bson", specifier = ">=0.5.10" },
{ name = "cassio", marker = "extra == 'cassio'", specifier = ">=0.1.7" },
{ name = "celery", extras = ["redis"], marker = "extra == 'deploy'", specifier = ">=5.3.6" },
{ name = "certifi", specifier = ">=2023.11.17,<2025.0.0" },