Skip to content

Commit

Permalink
removing docker dependency from pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
eryk-dsai committed Sep 29, 2023
1 parent 07d5b8c commit 1f8f9f4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
6 changes: 2 additions & 4 deletions libs/langchain/langchain/tools/python/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import sys
from contextlib import redirect_stdout
from io import StringIO
from typing import TYPE_CHECKING, Any, Dict, Optional, Type, Union
from typing import Any, Dict, Optional, Type, Union

from langchain.callbacks.manager import (
AsyncCallbackManagerForToolRun,
Expand All @@ -15,9 +15,7 @@
from langchain.pydantic_v1 import BaseModel, Field, root_validator
from langchain.tools.base import BaseTool
from langchain.utilities import PythonREPL

if TYPE_CHECKING:
from langchain.utilities import PythonContainerREPL
from langchain.utilities.python_docker_repl import PythonContainerREPL


def _get_default_python_repl() -> PythonREPL:
Expand Down
2 changes: 0 additions & 2 deletions libs/langchain/langchain/utilities/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
from langchain.utilities.powerbi import PowerBIDataset
from langchain.utilities.pubmed import PubMedAPIWrapper
from langchain.utilities.python import PythonREPL
from langchain.utilities.python_docker_repl import PythonContainerREPL
from langchain.utilities.requests import Requests, RequestsWrapper, TextRequestsWrapper
from langchain.utilities.scenexplain import SceneXplainAPIWrapper
from langchain.utilities.searx_search import SearxSearchWrapper
Expand Down Expand Up @@ -61,7 +60,6 @@
"PowerBIDataset",
"PubMedAPIWrapper",
"PythonREPL",
"PythonContainerREPL",
"Requests",
"RequestsWrapper",
"SQLDatabase",
Expand Down
3 changes: 0 additions & 3 deletions libs/langchain/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ sqlite-vss = {version = "^0.1.2", optional = true}
anyio = "<4.0"
jsonpatch = "^1.33"
timescale-vector = {version = "^0.0.1", optional = true}
docker = {version = "^6.1.3", optional = true}

[tool.poetry.group.test.dependencies]
# The only dependencies that should be added are
Expand Down Expand Up @@ -213,7 +212,6 @@ cohere = ["cohere"]
docarray = ["docarray"]
embeddings = ["sentence-transformers"]
javascript = ["esprima"]
docker = ["docker"]
azure = [
"azure-identity",
"azure-cosmos",
Expand Down Expand Up @@ -298,7 +296,6 @@ all = [
"amadeus",
"librosa",
"python-arango",
"docker",
]

# An extra used to be able to add extended testing.
Expand Down

0 comments on commit 1f8f9f4

Please sign in to comment.