From 4cd954042758e537376cdd37d21b0e35a95686d8 Mon Sep 17 00:00:00 2001 From: Nuno Campos Date: Fri, 13 Sep 2024 11:13:10 -0700 Subject: [PATCH] Remove grandalf from dev deps - this was never included in published package, given it's a dev dep, but some people get confused, so easier to remove --- libs/langgraph/poetry.lock | 35 ++--------------------- libs/langgraph/pyproject.toml | 3 -- libs/langgraph/tests/test_pregel_async.py | 5 ---- 3 files changed, 2 insertions(+), 41 deletions(-) diff --git a/libs/langgraph/poetry.lock b/libs/langgraph/poetry.lock index b9c425218..81cb5c810 100644 --- a/libs/langgraph/poetry.lock +++ b/libs/langgraph/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 1.8.3 and should not be changed by hand. +# This file is automatically @generated by Poetry 1.8.2 and should not be changed by hand. [[package]] name = "aiosqlite" @@ -631,23 +631,6 @@ files = [ {file = "fqdn-1.5.1.tar.gz", hash = "sha256:105ed3677e767fb5ca086a0c1f4bb66ebc3c100be518f0e0d755d9eae164d89f"}, ] -[[package]] -name = "grandalf" -version = "0.8" -description = "Graph and drawing algorithms framework" -optional = false -python-versions = "*" -files = [ - {file = "grandalf-0.8-py3-none-any.whl", hash = "sha256:793ca254442f4a79252ea9ff1ab998e852c1e071b863593e5383afee906b4185"}, - {file = "grandalf-0.8.tar.gz", hash = "sha256:2813f7aab87f0d20f334a3162ccfbcbf085977134a17a5b516940a93a77ea974"}, -] - -[package.dependencies] -pyparsing = "*" - -[package.extras] -full = ["numpy", "ply"] - [[package]] name = "h11" version = "0.14.0" @@ -2100,20 +2083,6 @@ files = [ [package.extras] windows-terminal = ["colorama (>=0.4.6)"] -[[package]] -name = "pyparsing" -version = "3.1.2" -description = "pyparsing module - Classes and methods to define and execute parsing grammars" -optional = false -python-versions = ">=3.6.8" -files = [ - {file = "pyparsing-3.1.2-py3-none-any.whl", hash = "sha256:f9db75911801ed778fe61bb643079ff86601aca99fcae6345aa67292038fb742"}, - {file = "pyparsing-3.1.2.tar.gz", hash = "sha256:a1bac0ce561155ecc3ed78ca94d3c9378656ad4c94c1270de543f621420f94ad"}, -] - -[package.extras] -diagrams = ["jinja2", "railroad-diagrams"] - [[package]] name = "pyperf" version = "2.7.0" @@ -3159,4 +3128,4 @@ test = ["big-O", "importlib-resources", "jaraco.functools", "jaraco.itertools", [metadata] lock-version = "2.0" python-versions = ">=3.9.0,<4.0" -content-hash = "d0a7dd0a9bb6c125398545644e1e673c4ef677a36285988d4a607da474697672" +content-hash = "f72e42e6f957927f9acf19a838ad5331eb2ed11f0e58df3a6d3240eafb3dc057" diff --git a/libs/langgraph/pyproject.toml b/libs/langgraph/pyproject.toml index 2b71e5162..5d5cd12c5 100644 --- a/libs/langgraph/pyproject.toml +++ b/libs/langgraph/pyproject.toml @@ -12,7 +12,6 @@ python = ">=3.9.0,<4.0" langchain-core = ">=0.2.39,<0.4" langgraph-checkpoint = "^1.0.2" - [tool.poetry.group.dev.dependencies] pytest = "^8.3.2" pytest-cov = "^4.0.0" @@ -21,7 +20,6 @@ pytest-mock = "^3.10.0" syrupy = "^4.0.2" httpx = "^0.26.0" pytest-watcher = "^0.4.1" -grandalf = "^0.8" mypy = "^1.6.0" ruff = "^0.6.2" jupyter = "^1.0.0" @@ -53,7 +51,6 @@ docstring-code-line-length = "dynamic" [tool.mypy] ignore_missing_imports = "True" disallow_untyped_defs = "True" -exclude = ["notebooks", "examples", "example_data"] [tool.coverage.run] omit = ["tests/*"] diff --git a/libs/langgraph/tests/test_pregel_async.py b/libs/langgraph/tests/test_pregel_async.py index e55e50fac..86617146e 100644 --- a/libs/langgraph/tests/test_pregel_async.py +++ b/libs/langgraph/tests/test_pregel_async.py @@ -6213,8 +6213,6 @@ async def qa(data: State) -> State: app = workflow.compile() - assert app.get_graph().draw_ascii() == snapshot - assert await app.ainvoke({"query": "what is weather in sf"}, debug=True) == { "query": "analyzed: query: what is weather in sf", "docs": ["doc1", "doc2", "doc3", "doc4"], @@ -6352,8 +6350,6 @@ async def decider(data: State) -> str: app = workflow.compile() - assert app.get_graph().draw_ascii() == snapshot - async with assert_ctx_once(): with pytest.raises(ValidationError): await app.ainvoke({"query": {}}) @@ -6873,7 +6869,6 @@ async def side(state: State): app = graph.compile() - assert app.get_graph().draw_ascii() == snapshot assert await app.ainvoke({"my_key": "my value", "never_called": never_called}) == { "my_key": "my value there and back again", "never_called": never_called,