mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-31 12:19:58 +02:00
Update
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2025 LangChain AI, Inc.
|
||||
Copyright (c) 2025 LangChain, Inc.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
||||
@@ -13,7 +13,7 @@ import uv
|
||||
|
||||
def main():
|
||||
"""Install langgraph-cli using uv in an isolated environment."""
|
||||
print("Installing LangGraph CLI in an isolated environment...")
|
||||
print("Installing LangGraph CLI...")
|
||||
|
||||
try:
|
||||
uv_bin = uv.find_uv_bin()
|
||||
@@ -51,8 +51,8 @@ def main():
|
||||
|
||||
def get_latest_python_version() -> str:
|
||||
"""Get the latest compatible Python version for installation."""
|
||||
# Try to use Python 3.12 if possible, otherwise fall back to the current version
|
||||
target_version = "3.12"
|
||||
# Try to use Python 3.13 if possible, otherwise fall back to the current version
|
||||
target_version = "3.13"
|
||||
try:
|
||||
# Check if this version is available through uv
|
||||
uv_bin = uv.find_uv_bin()
|
||||
@@ -62,7 +62,7 @@ def get_latest_python_version() -> str:
|
||||
text=True,
|
||||
check=False,
|
||||
)
|
||||
if "3.12" in result.stdout:
|
||||
if target_version in result.stdout:
|
||||
return f"python{target_version}"
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
@@ -12,9 +12,9 @@ packages = [{ include = "langgraph_cli_install" }]
|
||||
langgraph-cli-install = "langgraph_cli_install.main:main"
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.8.0,<4.0"
|
||||
packaging = "^23.0"
|
||||
uv = "^0.1.24"
|
||||
python = "^3.9.0,<4.0"
|
||||
packaging = ">=23.0"
|
||||
uv = ">=0.6.0"
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry-core"]
|
||||
|
||||
@@ -198,7 +198,7 @@ class CorsConfig(TypedDict, total=False):
|
||||
allow_origin_regex: str
|
||||
"""Optional. A regex pattern for matching allowed origins, used if you have dynamic subdomains.
|
||||
|
||||
Example: "^https://.*\.mycompany\.com$"
|
||||
Example: "^https://\\.*\\.mycompany\\.com$"
|
||||
"""
|
||||
expose_headers: list[str]
|
||||
"""Optional. List of headers that browsers are allowed to read from the response in cross-origin contexts."""
|
||||
|
||||
Reference in New Issue
Block a user