git: 2c69bbf6230b - main - misc/py-langchain: update 1.3.14 → 1.4.0

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Mon, 07 Sep 2026 10:10:31 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2c69bbf6230b92f68618b85bfe6c60a494912ef3

commit 2c69bbf6230b92f68618b85bfe6c60a494912ef3
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-09-07 07:44:35 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-09-07 10:09:55 +0000

    misc/py-langchain: update 1.3.14 → 1.4.0
---
 misc/py-langchain/Makefile | 20 ++++++++++++++------
 misc/py-langchain/distinfo |  6 +++---
 2 files changed, 17 insertions(+), 9 deletions(-)

diff --git a/misc/py-langchain/Makefile b/misc/py-langchain/Makefile
index b8e37592fd24..08912c5d46fa 100644
--- a/misc/py-langchain/Makefile
+++ b/misc/py-langchain/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	langchain
-DISTVERSION=	1.3.14
+DISTVERSION=	1.4.0
 CATEGORIES=	misc python # machine-learning
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -13,11 +13,11 @@ LICENSE=	MIT
 
 BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hatchling>0:devel/py-hatchling@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}langchain-core>=1.4.9:misc/py-langchain-core@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}langgraph>=1.2.5:misc/py-langgraph@${PY_FLAVOR} \
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}langchain-core>=1.6.2:misc/py-langchain-core@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}langgraph>=1.2.11:misc/py-langgraph@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pydantic2>=2.7.4:devel/py-pydantic2@${PY_FLAVOR}
 TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}blockbuster>=1.5.26:devel/py-blockbuster@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}langchain-openai>0:misc/py-langchain-openai@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}langchain-openai>=1.6.0:misc/py-langchain-openai@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}langchain-tests>=1.1.9:misc/py-langchain-tests@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pytest-asyncio>=1.3.0:devel/py-pytest-asyncio@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pytest-benchmark>=5.1.0:devel/py-pytest-benchmark@${PY_FLAVOR} \
@@ -35,7 +35,15 @@ USE_PYTHON=	pep517 autoplist pytest
 NO_ARCH=	yes
 
 TEST_ENV=	${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
-
-# tests as of 1.3.14: 148 failed, 1434 passed, 33 skipped, 524 warnings in 473.93s
+# Integration tests and shell-tool tests require network/API keys or a
+# full shell environment that is not available during package builds.
+TEST_ARGS=	--ignore=${WRKSRC}/tests/integration_tests \
+		--ignore=${WRKSRC}/tests/unit_tests/agents/middleware/implementations/test_shell_tool.py \
+		--ignore=${WRKSRC}/tests/unit_tests/mcp \
+		--ignore=${WRKSRC}/tests/unit_tests/test_imports.py \
+		--ignore=${WRKSRC}/tests/unit_tests/test_pytest_config.py \
+		--deselect=tests/unit_tests/agents/middleware/implementations/test_tool_emulator.py::TestLLMToolEmulatorModelConfiguration::test_default_model_deprecated_and_missing_langchain_anthropic_raises_clear_error
+
+# tests as of 1.4.0: 1067 passed, 12 skipped, 28 warnings in 12.81s
 
 .include <bsd.port.mk>
diff --git a/misc/py-langchain/distinfo b/misc/py-langchain/distinfo
index 8d1b00e2e542..5eaf171f6d66 100644
--- a/misc/py-langchain/distinfo
+++ b/misc/py-langchain/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1784498601
-SHA256 (langchain-1.3.14.tar.gz) = 1b6696c72ba3bbbce54d745e0180742c9f6ece8bbc59ed5a46c3e20b9a435929
-SIZE (langchain-1.3.14.tar.gz) = 645181
+TIMESTAMP = 1788718642
+SHA256 (langchain-1.4.0.tar.gz) = 08da122a439f738f4c09a5158cfa3d2c1d8bea2d0bde7fbbf4aeb4d7f7fd9d80
+SIZE (langchain-1.4.0.tar.gz) = 729354