git: cdf7412f3947 - main - misc/py-langchain-core: update 1.5.1 → 1.6.2
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 07 Sep 2026 10:10:28 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=cdf7412f39470858d2884e93e6bce8b1bf87fd48
commit cdf7412f39470858d2884e93e6bce8b1bf87fd48
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-09-07 07:41:10 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-09-07 10:09:54 +0000
misc/py-langchain-core: update 1.5.1 → 1.6.2
---
misc/py-langchain-core/Makefile | 43 +++++++++++++++++++++++++++++++++++++++--
misc/py-langchain-core/distinfo | 6 +++---
2 files changed, 44 insertions(+), 5 deletions(-)
diff --git a/misc/py-langchain-core/Makefile b/misc/py-langchain-core/Makefile
index f80a8f963d69..2474ff383637 100644
--- a/misc/py-langchain-core/Makefile
+++ b/misc/py-langchain-core/Makefile
@@ -1,5 +1,5 @@
PORTNAME= langchain-core
-DISTVERSION= 1.5.1
+DISTVERSION= 1.6.2
CATEGORIES= misc python # machine-learning
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -14,7 +14,7 @@ LICENSE= MIT
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>0:devel/py-hatchling@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}jsonpatch>=1.33.0:devel/py-jsonpatch@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}langchain-protocol>=0.0.17:misc/py-langchain-protocol@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}langchain-protocol>=0.0.19:misc/py-langchain-protocol@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}langsmith>=0.3.45:misc/py-langsmith@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}packaging>=23.2.0:devel/py-packaging@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pydantic2>=2.7.4:devel/py-pydantic2@${PY_FLAVOR} \
@@ -44,5 +44,44 @@ USE_PYTHON= pep517 autoplist pytest
NO_ARCH= yes
# tests fail with: INTERNALERROR> ValueError: no option named 'only_extended'
+# Deselect tests that require network access, DNS resolution, blocking calls,
+# or specific upstream dependencies not available in the FreeBSD test environment.
+# the TEST_ARGS_part args should be added but they cause failures "blockbuster.blockbuster.BlockingError: Blocking call to os.read"
+# for some obscure reason.
+TEST_ARGS_part= --disable-plugin-autoload \
+ -p blockbuster \
+ -p freezegun \
+ -p langchain_tests \
+ -p pytest_asyncio.plugin \
+ -p pytest_benchmark.plugin \
+ -p pytest_codspeed.plugin \
+ -p pytest_mock \
+ -p pytest_socket \
+ -p responses \
+ -p xdist \
+ -p syrupy \
+ --asyncio-mode=auto
+TEST_ARGS= --deselect=tests/unit_tests/language_models/chat_models/test_base.py::test_invocation_params_passed_to_tracer_metadata \
+ --deselect=tests/unit_tests/language_models/chat_models/test_base.py::test_astream_events_v3_invocation_params_passed_to_tracer_metadata \
+ --deselect=tests/unit_tests/language_models/chat_models/test_base.py::test_user_lc_versions_metadata_survives_merge_astream \
+ --deselect=tests/unit_tests/runnables/test_fallbacks.py::test_fallbacks[chain] \
+ --deselect=tests/unit_tests/runnables/test_fallbacks.py::test_fallbacks[llm_multi] \
+ --deselect=tests/unit_tests/runnables/test_fallbacks.py::test_fallbacks[llm] \
+ --deselect=tests/unit_tests/test_ssrf_protection.py::TestValidateSafeUrl::test_dns_resolution_failure \
+ --deselect=tests/unit_tests/runnables/test_runnable.py::test_prompt_with_chat_model_and_parser \
+ --deselect=tests/unit_tests/runnables/test_runnable.py::test_prompt_with_llm_parser \
+ --deselect=tests/unit_tests/runnables/test_runnable.py::test_prompt_with_llm_and_async_lambda \
+ --deselect=tests/unit_tests/runnables/test_runnable.py::test_seq_dict_prompt_llm \
+ --deselect=tests/unit_tests/runnables/test_runnable.py::test_prompt_with_chat_model \
+ --deselect=tests/unit_tests/runnables/test_runnable.py::test_prompt_with_chat_model_async \
+ --deselect=tests/unit_tests/runnables/test_runnable.py::test_seq_prompt_map \
+ --deselect=tests/unit_tests/runnables/test_runnable.py::test_combining_sequences \
+ --deselect=tests/unit_tests/runnables/test_runnable.py::test_prompt_with_llm \
+ --deselect=tests/unit_tests/runnables/test_runnable.py::test_router_runnable \
+ --deselect=tests/unit_tests/runnables/test_runnable.py::test_each \
+ --deselect=tests/unit_tests/runnables/test_runnable.py::test_seq_prompt_dict \
+ --deselect=tests/unit_tests/utils/test_function_calling.py::test_convert_to_openai_function_nested_v2
+
+# tests as of 1.6.2: 2276 passed, 1 skipped, 9 xfailed, 5 warnings in 25.55s
.include <bsd.port.mk>
diff --git a/misc/py-langchain-core/distinfo b/misc/py-langchain-core/distinfo
index 5bdb840b297a..5b9cd9fb9453 100644
--- a/misc/py-langchain-core/distinfo
+++ b/misc/py-langchain-core/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1785090164
-SHA256 (langchain_core-1.5.1.tar.gz) = b0df382704c6403c1e0c9603415bce09290455d4aeeb38f350d15f78ca597483
-SIZE (langchain_core-1.5.1.tar.gz) = 972219
+TIMESTAMP = 1788718644
+SHA256 (langchain_core-1.6.2.tar.gz) = 1ec6d3a98f7c8cdbb5bb0deff86e7ca37e16bf4f8f49f022d10723656c62352d
+SIZE (langchain_core-1.6.2.tar.gz) = 1004390