This commit is contained in:
William Fu-Hinthorn
2025-03-07 10:49:59 -08:00
parent ecdf70a2ab
commit 656737009b
4 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -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
+3 -3
View File
@@ -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"]
+1 -1
View File
@@ -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."""