Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-langchain-core for
openSUSE:Factory checked in at 2026-09-22 21:58:32
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-langchain-core (Old)
and /work/SRC/openSUSE:Factory/.python-langchain-core.new.383539 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-langchain-core"
Tue Sep 22 21:58:32 2026 rev:15 rq:1379737 version:1.6.4
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-langchain-core/python-langchain-core.changes
2026-09-12 21:25:21.409533875 +0200
+++
/work/SRC/openSUSE:Factory/.python-langchain-core.new.383539/python-langchain-core.changes
2026-09-22 21:58:33.365420449 +0200
@@ -1,0 +2,10 @@
+Tue Sep 22 17:12:14 UTC 2026 - Martin Pluskal <[email protected]>
+
+- Update to 1.6.4:
+ * BaseChatMessageHistory and InMemoryChatMessageHistory are
+ deprecated and scheduled for removal in 2.0.0
+ * BaseChatMessageHistory defines a cooperative __init__, so
+ subclasses that also derive from pydantic BaseModel keep
+ accepting their field keyword arguments
+
+-------------------------------------------------------------------
Old:
----
langchain_core-1.6.3.tar.gz
New:
----
langchain_core-1.6.4.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-langchain-core.spec ++++++
--- /var/tmp/diff_new_pack.GzWb9t/_old 2026-09-22 21:58:34.295459444 +0200
+++ /var/tmp/diff_new_pack.GzWb9t/_new 2026-09-22 21:58:34.297459528 +0200
@@ -17,7 +17,7 @@
Name: python-langchain-core
-Version: 1.6.3
+Version: 1.6.4
Release: 0
Summary: Building applications with LLMs through composability
License: MIT
++++++ langchain_core-1.6.3.tar.gz -> langchain_core-1.6.4.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/langchain_core-1.6.3/PKG-INFO
new/langchain_core-1.6.4/PKG-INFO
--- old/langchain_core-1.6.3/PKG-INFO 2020-02-02 01:00:00.000000000 +0100
+++ new/langchain_core-1.6.4/PKG-INFO 2020-02-02 01:00:00.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.5
Name: langchain-core
-Version: 1.6.3
+Version: 1.6.4
Summary: Building applications with LLMs through composability
Project-URL: Homepage, https://docs.langchain.com/
Project-URL: Documentation,
https://reference.langchain.com/python/langchain_core/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/langchain_core-1.6.3/langchain_core/chat_history.py
new/langchain_core-1.6.4/langchain_core/chat_history.py
--- old/langchain_core-1.6.3/langchain_core/chat_history.py 2020-02-02
01:00:00.000000000 +0100
+++ new/langchain_core-1.6.4/langchain_core/chat_history.py 2020-02-02
01:00:00.000000000 +0100
@@ -3,10 +3,11 @@
from __future__ import annotations
from abc import ABC, abstractmethod
-from typing import TYPE_CHECKING
+from typing import TYPE_CHECKING, Any
from pydantic import BaseModel, Field
+from langchain_core._api import deprecated
from langchain_core.messages import (
AIMessage,
BaseMessage,
@@ -19,6 +20,14 @@
from collections.abc import Sequence
+@deprecated(
+ since="1.6.4",
+ removal="2.0.0",
+ addendum=(
+ "See the short-term memory documentation for recommended alternatives:
"
+ "https://docs.langchain.com/oss/python/langchain/short-term-memory"
+ ),
+)
class BaseChatMessageHistory(ABC):
"""Abstract base class for storing chat message history.
@@ -96,6 +105,10 @@
layer, so this operation is expected to incur some latency.
"""
+ def __init__(self, *args: Any, **kwargs: Any) -> None:
+ """Initialize cooperatively to preserve multiple inheritance."""
+ super().__init__(*args, **kwargs)
+
async def aget_messages(self) -> list[BaseMessage]:
"""Async version of getting messages.
@@ -199,6 +212,14 @@
return get_buffer_string(self.messages)
+@deprecated(
+ since="1.6.4",
+ removal="2.0.0",
+ addendum=(
+ "See the short-term memory documentation for recommended alternatives:
"
+ "https://docs.langchain.com/oss/python/langchain/short-term-memory"
+ ),
+)
class InMemoryChatMessageHistory(BaseChatMessageHistory, BaseModel):
"""In memory implementation of chat message history.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/langchain_core-1.6.3/langchain_core/version.py
new/langchain_core-1.6.4/langchain_core/version.py
--- old/langchain_core-1.6.3/langchain_core/version.py 2020-02-02
01:00:00.000000000 +0100
+++ new/langchain_core-1.6.4/langchain_core/version.py 2020-02-02
01:00:00.000000000 +0100
@@ -1,3 +1,3 @@
"""Version information for `langchain-core`."""
-VERSION = "1.6.3"
+VERSION = "1.6.4"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/langchain_core-1.6.3/pyproject.toml
new/langchain_core-1.6.4/pyproject.toml
--- old/langchain_core-1.6.3/pyproject.toml 2020-02-02 01:00:00.000000000
+0100
+++ new/langchain_core-1.6.4/pyproject.toml 2020-02-02 01:00:00.000000000
+0100
@@ -21,7 +21,7 @@
"Topic :: Software Development :: Libraries :: Python Modules",
]
-version = "1.6.3"
+version = "1.6.4"
requires-python = ">=3.10.0,<4.0.0"
dependencies = [
"langsmith>=0.3.45,<1.0.0",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/langchain_core-1.6.3/tests/unit_tests/chat_history/test_chat_history.py
new/langchain_core-1.6.4/tests/unit_tests/chat_history/test_chat_history.py
--- old/langchain_core-1.6.3/tests/unit_tests/chat_history/test_chat_history.py
2020-02-02 01:00:00.000000000 +0100
+++ new/langchain_core-1.6.4/tests/unit_tests/chat_history/test_chat_history.py
2020-02-02 01:00:00.000000000 +0100
@@ -1,9 +1,36 @@
from collections.abc import Sequence
-from langchain_core.chat_history import BaseChatMessageHistory
+import pytest
+
+from langchain_core.chat_history import (
+ BaseChatMessageHistory,
+ InMemoryChatMessageHistory,
+)
from langchain_core.messages import BaseMessage, HumanMessage
[email protected](
+ "history_class", [BaseChatMessageHistory, InMemoryChatMessageHistory]
+)
+def test_chat_history_deprecated(history_class: type[BaseChatMessageHistory])
-> None:
+ assert "deprecated" in (history_class.__doc__ or "")
+ assert "https://docs.langchain.com/oss/python/langchain/short-term-memory"
in (
+ history_class.__doc__ or ""
+ )
+
+
+async def test_in_memory_history_initialization() -> None:
+ messages = [HumanMessage(content="Hello")]
+ history = InMemoryChatMessageHistory(messages=messages)
+ assert await history.aget_messages() == messages
+ other_history = InMemoryChatMessageHistory()
+ await other_history.aadd_messages([HumanMessage(content="World")])
+ assert history.messages == messages
+ await history.aclear()
+ assert history.messages == []
+ assert other_history.messages == [HumanMessage(content="World")]
+
+
def test_add_message_implementation_only() -> None:
"""Test implementation of add_message only."""
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/langchain_core-1.6.3/uv.lock
new/langchain_core-1.6.4/uv.lock
--- old/langchain_core-1.6.3/uv.lock 2020-02-02 01:00:00.000000000 +0100
+++ new/langchain_core-1.6.4/uv.lock 2020-02-02 01:00:00.000000000 +0100
@@ -28,16 +28,16 @@
[[package]]
name = "anyio"
-version = "4.12.0"
+version = "4.14.2"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "exceptiongroup", marker = "python_full_version < '3.11'" },
{ name = "idna" },
{ name = "typing-extensions", marker = "python_full_version < '3.13'" },
]
-sdist = { url =
"https://files.pythonhosted.org/packages/16/ce/8a777047513153587e5434fd752e89334ac33e379aa3497db860eeb60377/anyio-4.12.0.tar.gz",
hash =
"sha256:73c693b567b0c55130c104d0b43a9baf3aa6a31fc6110116509f27bf75e21ec0", size
= 228266, upload-time = "2025-11-28T23:37:38.911Z" }
+sdist = { url =
"https://files.pythonhosted.org/packages/61/cc/a381afa6efea9f496eff839d4a6a1aed3bfafc7b3ab4b0d1b243a12573dd/anyio-4.14.2.tar.gz",
hash =
"sha256:cfa139f3ed1a23ee8f88a145ddb5ac7605b8bbfd8592baacd7ce3d8bb4313c7f", size
= 260176, upload-time = "2026-07-12T20:29:07.082Z" }
wheels = [
- { url =
"https://files.pythonhosted.org/packages/7f/9c/36c5c37947ebfb8c7f22e0eb6e4d188ee2d53aa3880f3f2744fb894f0cb1/anyio-4.12.0-py3-none-any.whl",
hash =
"sha256:dad2376a628f98eeca4881fc56cd06affd18f659b17a747d3ff0307ced94b1bb", size
= 113362, upload-time = "2025-11-28T23:36:57.897Z" },
+ { url =
"https://files.pythonhosted.org/packages/da/35/f2287558c17e29fafc8ef3daf819bb9834061cfa43bff8014f7df7f63bdc/anyio-4.14.2-py3-none-any.whl",
hash =
"sha256:9f505dda5ac9f0c8309b5e8bd445a8c2bf7246f3ce950121e45ea15bc41d1494", size
= 125813, upload-time = "2026-07-12T20:29:05.763Z" },
]
[[package]]
@@ -1073,7 +1073,7 @@
[[package]]
name = "langchain-core"
-version = "1.6.3"
+version = "1.6.4"
source = { editable = "." }
dependencies = [
{ name = "httpx" },
@@ -2859,11 +2859,11 @@
[[package]]
name = "soupsieve"
-version = "2.8.4"
+version = "2.9"
source = { registry = "https://pypi.org/simple" }
-sdist = { url =
"https://files.pythonhosted.org/packages/47/2c/0a5f6f8ee0d5589e48c7640213ed5175d52cf540a06725b628cc1a45d6ce/soupsieve-2.8.4.tar.gz",
hash =
"sha256:e121fd02e975c695e4e9e8774a5ee35d74714b59307868dcc5319ad2d9e3328e", size
= 121110, upload-time = "2026-05-24T13:55:57.154Z" }
+sdist = { url =
"https://files.pythonhosted.org/packages/80/f1/93422647dd7e461f23d254e6b2bfa687a85b53aeb4903fcdbb74474d4584/soupsieve-2.9.tar.gz",
hash =
"sha256:acee8417325c5653e1377dc31eccad59eb82cbc65942afe6174c53b3aaad63fc", size
= 122122, upload-time = "2026-07-19T01:35:18.425Z" }
wheels = [
- { url =
"https://files.pythonhosted.org/packages/5e/f5/0c41cb68dcae6b7de4fac4188a3a9589e21fb31df21ea3a2e888db95e6c9/soupsieve-2.8.4-py3-none-any.whl",
hash =
"sha256:e7e6b0769c8f51ed59acab6e994b00621096cfb1c640a7509295987388fbaf65", size
= 37304, upload-time = "2026-05-24T13:55:55.406Z" },
+ { url =
"https://files.pythonhosted.org/packages/7b/d6/3185ab5ad1280319b31986898f3206dd7227cd75e293d4dba2a5e6bf27a0/soupsieve-2.9-py3-none-any.whl",
hash =
"sha256:a2b2c76d67df2382d245409fd71e321a571717e58463efa32ace87dcadac2c12", size
= 37387, upload-time = "2026-07-19T01:35:17.106Z" },
]
[[package]]