diff --git a/Makefile b/Makefile index f48a785a9..5b0c9649b 100644 --- a/Makefile +++ b/Makefile @@ -47,7 +47,8 @@ env-tests-optional: env env-tests llama-index-embeddings-huggingface \ llama-index-embeddings-openai \ unstructured \ - chromadb + chromadb \ + langchain-openai env-tests-db: env-tests poetry run pip install \ diff --git a/src/apps/langchain/pyproject.toml b/src/apps/langchain/pyproject.toml index 5bec7f2f2..0176c813f 100644 --- a/src/apps/langchain/pyproject.toml +++ b/src/apps/langchain/pyproject.toml @@ -29,9 +29,18 @@ classifiers = [ [tool.poetry.dependencies] python = "^3.8.1" trulens-core = { version = "^1.0.0" } -langchain = ">=0.2.10" -langchain-core = ">=0.2.0" -pydantic = "^2.4.2" +langchain = [ + { version = ">=0.2.10,<0.3.0", python = "<3.9" }, + { version = ">=0.3.0", python = ">=3.9" }, +] +langchain-core = [ + { version = ">=0.2.0,<0.3.0", python = "<3.9" }, + { version = ">=0.3.0", python = ">=3.9" }, +] +pydantic = [ + { version = "^1.0.0", python = "<3.9" }, + { version = ">=2.4.2", python = ">=3.9" }, +] [tool.poetry.group.dev.dependencies] trulens-core = { path = "../../core" } diff --git a/src/apps/llamaindex/pyproject.toml b/src/apps/llamaindex/pyproject.toml index 752500445..724369277 100644 --- a/src/apps/llamaindex/pyproject.toml +++ b/src/apps/llamaindex/pyproject.toml @@ -30,7 +30,10 @@ classifiers = [ python = "^3.8.1" trulens-core = { version = "^1.0.0" } trulens-apps-langchain = { version = "^1.0.0" } -pydantic = "^2.4.2" +pydantic = [ + { version = "^1.0.0", python = "<3.9" }, + { version = ">=2.4.2", python = ">=3.9" }, +] llama-index = ">=0.11" tiktoken = [ { version = ">=0.3.3", python = "<3.13" }, diff --git a/src/apps/nemo/pyproject.toml b/src/apps/nemo/pyproject.toml index fba182d0d..ac7ff7f23 100644 --- a/src/apps/nemo/pyproject.toml +++ b/src/apps/nemo/pyproject.toml @@ -30,7 +30,10 @@ classifiers = [ python = "^3.8.1,<3.13" trulens-core = { version = "^1.0.0" } trulens-apps-langchain = { version = "^1.0.0" } -pydantic = "^2.4.2" +pydantic = [ + { version = "^1.0.0", python = "<3.9" }, + { version = ">=2.4.2", python = ">=3.9" }, +] nemoguardrails = ">=0.9" onnxruntime = [ { version = ">=1.14.0,<1.20.0", python = "<3.10" }, diff --git a/src/core/pyproject.toml b/src/core/pyproject.toml index 8380153d3..86c48bafc 100644 --- a/src/core/pyproject.toml +++ b/src/core/pyproject.toml @@ -35,7 +35,10 @@ numpy = [ munch = "^2.5" dill = ">=0.3.8" typing_extensions = "^4.9" -pydantic = "^2.4.2" +pydantic = [ + { version = "^1.0.0", python = "<3.9" }, + { version = ">=2.4.2", python = ">=3.9" }, +] pandas = ">=1.0.0" rich = "^13.6" requests = "^2.31" diff --git a/src/feedback/pyproject.toml b/src/feedback/pyproject.toml index 949309b25..4e8d7f070 100644 --- a/src/feedback/pyproject.toml +++ b/src/feedback/pyproject.toml @@ -30,7 +30,10 @@ classifiers = [ python = "^3.8.1" trulens-core = { version = "^1.0.0" } nltk = "^3.9.1" -pydantic = "^2.4.2" +pydantic = [ + { version = "^1.0.0", python = "<3.9" }, + { version = ">=2.4.2", python = ">=3.9" }, +] requests = "^2.31" numpy = [ { version = ">=1.23.0,<1.25.0", python = "<3.9" }, diff --git a/src/providers/langchain/pyproject.toml b/src/providers/langchain/pyproject.toml index 30f81292c..9c8e3b8eb 100644 --- a/src/providers/langchain/pyproject.toml +++ b/src/providers/langchain/pyproject.toml @@ -30,7 +30,14 @@ classifiers = [ python = "^3.8.1" trulens-core = { version = "^1.0.0" } trulens-feedback = { version = "^1.0.0" } -langchain-core = ">=0.2.0" +langchain-core = [ + { version = ">=0.2.0,<0.3.0", python = "<3.9" }, + { version = ">=0.3.0", python = ">=3.9" }, +] +pydantic = [ + { version = "^1.0.0", python = "<3.9" }, + { version = ">=2.4.2", python = ">=3.9" }, +] [tool.poetry.group.dev.dependencies] trulens-core = { path = "../../core" } diff --git a/src/providers/openai/pyproject.toml b/src/providers/openai/pyproject.toml index 7ac1e88a3..a6ffcfd81 100644 --- a/src/providers/openai/pyproject.toml +++ b/src/providers/openai/pyproject.toml @@ -31,7 +31,14 @@ python = "^3.8.1" trulens-core = { version = "^1.0.0" } trulens-feedback = { version = "^1.0.0" } openai = ">=1.52.1" -langchain-community = ">=0.0.20" +langchain-community = [ + { version = ">=0.0.20,<0.3.0", python = "<3.9" }, + { version = ">=0.3.0", python = ">=3.9" }, +] +pydantic = [ + { version = "^1.0.0", python = "<3.9" }, + { version = ">=2.4.2", python = ">=3.9" }, +] [tool.poetry.group.dev.dependencies] trulens-core = { path = "../../core" }