Skip to content

Commit a288086

Browse files
authored
chore: remove unnecessary deps (#1285)
1 parent 7cbca81 commit a288086

File tree

8 files changed

+1680
-5477
lines changed

8 files changed

+1680
-5477
lines changed

langfuse/_utils/serializer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Serializable: # type: ignore
2828

2929
# Attempt to import numpy
3030
try:
31-
import numpy as np
31+
import numpy as np # type: ignore[import-not-found]
3232
except ImportError:
3333
np = None # type: ignore
3434

poetry.lock

Lines changed: 1679 additions & 5083 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -23,37 +23,14 @@ opentelemetry-exporter-otlp = "^1.33.1"
2323

2424
[tool.poetry.group.dev.dependencies]
2525
pytest = ">=7.4,<9.0"
26-
chromadb = ">=0.4.2,<0.6.0"
27-
tiktoken = "0.7.0"
2826
pytest-timeout = "^2.1.0"
2927
pytest-xdist = "^3.3.1"
30-
respx = ">=0.20.2,<0.22.0"
31-
google-search-results = "^2.4.2"
32-
huggingface_hub = ">=0.16.4,<0.25.0"
3328
pre-commit = "^3.2.2"
34-
anthropic = ">=0.17.0,<1"
35-
bs4 = ">=0.0.1,<0.0.3"
36-
lark = "^1.1.7"
3729
pytest-asyncio = ">=0.21.1,<0.24.0"
3830
pytest-httpserver = "^1.0.8"
39-
boto3 = "^1.28.59"
4031
ruff = ">=0.1.8,<0.6.0"
4132
mypy = "^1.0.0"
42-
langchain-mistralai = ">=0.0.1,<0.3"
43-
google-cloud-aiplatform = "^1.38.1"
44-
cohere = ">=4.46,<6.0"
45-
langchain-google-vertexai = ">=1.0.0,<3.0.0"
4633
langchain-openai = ">=0.0.5,<0.3"
47-
dashscope = "^1.14.1"
48-
pymongo = "^4.6.1"
49-
llama-index-llms-anthropic = ">=0.1.1,<0.6"
50-
bson = "^0.5.10"
51-
langchain-anthropic = ">=0.1.4,<0.4"
52-
langchain-groq = ">=0.1.3,<0.3"
53-
langchain-aws = ">=0.1.3,<0.3"
54-
langchain-ollama = "^0.2.0"
55-
langchain-cohere = "^0.3.3"
56-
langchain-community = ">=0.2.14,<0.4"
5734
langgraph = "^0.2.62"
5835

5936
[tool.poetry.group.docs.dependencies]
@@ -62,7 +39,6 @@ pdoc = "^14.4.0"
6239
[tool.poetry.extras]
6340
openai = ["openai"]
6441
langchain = ["langchain"]
65-
llama-index = ["llama-index"]
6642

6743
[build-system]
6844
requires = ["poetry-core>=1.0.0"]

tests/test_extract_model.py

Lines changed: 0 additions & 158 deletions
This file was deleted.

tests/test_json.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from unittest.mock import patch
88

99
import pytest
10-
from bson import ObjectId
1110
from langchain.schema.messages import HumanMessage
1211
from pydantic import BaseModel
1312

@@ -129,11 +128,3 @@ def test_observation_level():
129128
result = json.dumps(ObservationLevel.ERROR, cls=EventSerializer)
130129

131130
assert result == '"ERROR"'
132-
133-
134-
def test_mongo_cursor():
135-
test_id = ObjectId("5f3e3e3e3e3e3e3e3e3e3e3e")
136-
137-
result = json.dumps(test_id, cls=EventSerializer)
138-
139-
assert isinstance(result, str)

0 commit comments

Comments
 (0)