Skip to content

Commit 5f806da

Browse files
committed
langgraph-cli 0.1.52 (new formula)
This PR adds installer for the LangGraph CLI, a small package for building and deploying applications to the LangGraph platform. License: MIT Pypi: https://pypi.org/project/langgraph-cli/ Homepage: https://github.com/langchain-ai/langgraph/tree/main/libs/cli
1 parent 9e4a9f7 commit 5f806da

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

Formula/l/langgraph-cli.rb

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
class LanggraphCli < Formula
2+
include Language::Python::Virtualenv
3+
4+
desc "Command-line interface for deploying apps to the LangGraph platform"
5+
homepage "https://www.github.com/langchain-ai/langgraph"
6+
url "https://files.pythonhosted.org/packages/13/f4/e60c465ddc4d6fbfd6a9c002bbd491a747b4cbfa92db0e5c76245bfd5c97/langgraph_cli-0.1.52.tar.gz"
7+
sha256 "210eea115772df982408366b0aad06d226e6ea3752e8784c3ce99f388b2d07c9"
8+
license "MIT"
9+
10+
depends_on "python@3.13"
11+
12+
resource "click" do
13+
url "https://files.pythonhosted.org/packages/96/d3/f04c7bfcf5c1862a2a5b845c6b2b360488cf47af55dfa79c98f6a6bf98b5/click-8.1.7.tar.gz"
14+
sha256 "ca9853ad459e787e2192211578cc907e7594e294c7ccc834310722b41b9ca6de"
15+
end
16+
17+
def install
18+
virtualenv_install_with_resources
19+
end
20+
21+
test do
22+
(testpath/"graph.py").write <<~PYTHON
23+
from langgraph.graph import StateGraph
24+
builder = StateGraph(list)
25+
builder.add_node("anode", lambda x: ["foo"])
26+
builder.add_edge("__start__", "anode")
27+
graph = builder.compile()
28+
PYTHON
29+
30+
(testpath/"langgraph.json").write <<~JSON
31+
{
32+
"graphs": {
33+
"agent": "graph.py:graph"
34+
},
35+
"env": {},
36+
"dependencies": ["."]
37+
}
38+
JSON
39+
40+
system bin/"langgraph", "dockerfile", "DOCKERFILE"
41+
assert_path_exists "DOCKERFILE"
42+
dockerfile_content = File.read("DOCKERFILE")
43+
assert_match "FROM", dockerfile_content, "DOCKERFILE should contain 'FROM'"
44+
end
45+
end

0 commit comments

Comments
 (0)