CLI: Ensure correct api version is used (#4237)

Signed-off-by: William Fu-Hinthorn <13333726+hinthornw@users.noreply.github.com>
This commit is contained in:
William FH
2025-04-10 15:56:07 +00:00
committed by GitHub
parent 06e660a845
commit a03cb0b16d
2 changed files with 7 additions and 2 deletions
+6 -1
View File
@@ -406,7 +406,12 @@ class Config(TypedDict, total=False):
"""
PIP_CLEANUP_LINES = """# -- Removing pip from the final image ~<:===~~~ --
PIP_CLEANUP_LINES = """# -- Ensure user deps didn't inadvertently overwrite langgraph-api
RUN mkdir -p /api/langgraph_api /api/langgraph_runtime /api/langgraph_license && \
touch /api/langgraph_api/__init__.py /api/langgraph_runtime/__init__.py /api/langgraph_license/__init__.py
RUN PYTHONDONTWRITEBYTECODE=1 pip install --no-cache-dir --no-deps -e /api
# -- End of ensuring user deps didn't inadvertently overwrite langgraph-api --
# -- Removing pip from the final image ~<:===~~~ --
RUN pip uninstall -y pip setuptools wheel && \
rm -rf /usr/local/lib/python*/site-packages/pip* /usr/local/lib/python*/site-packages/setuptools* /usr/local/lib/python*/site-packages/wheel* && \
find /usr/local/bin -name "pip*" -delete
+1 -1
View File
@@ -1,6 +1,6 @@
[tool.poetry]
name = "langgraph-cli"
version = "0.2.0"
version = "0.2.1"
description = "CLI for interacting with LangGraph API"
authors = []
license = "MIT"