From 521dd0343cf86d9f78ac5c62c56590dcc7399a84 Mon Sep 17 00:00:00 2001 From: zhangyale <1194926515@qq.com> Date: Thu, 12 Jun 2025 15:18:14 +0800 Subject: [PATCH] update file --- 0001-update-version.patch | 12 ++++++++++++ python-langchain.spec | 8 ++++++-- 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 0001-update-version.patch diff --git a/0001-update-version.patch b/0001-update-version.patch new file mode 100644 index 0000000..bdcff74 --- /dev/null +++ b/0001-update-version.patch @@ -0,0 +1,12 @@ +diff -Naur python-langchain_old/langchain-0.3.25/pyproject.toml python-langchain_new/langchain-0.3.25/pyproject.toml +--- python-langchain_old/langchain-0.3.25/pyproject.toml 2025-05-03 02:36:02.316915000 +0800 ++++ python-langchain_new/langchain-0.3.25/pyproject.toml 2025-06-12 15:08:08.000000000 +0800 +@@ -12,7 +12,7 @@ + "langchain-text-splitters<1.0.0,>=0.3.8", + "langsmith<0.4,>=0.1.17", + "pydantic<3.0.0,>=2.7.4", +- "SQLAlchemy<3,>=1.4", ++ "SQLAlchemy2<3,>=1.4", + "requests<3,>=2", + "PyYAML>=5.3", + "async-timeout<5.0.0,>=4.0.0; python_version < \"3.11\"", diff --git a/python-langchain.spec b/python-langchain.spec index ab1a4eb..616a849 100644 --- a/python-langchain.spec +++ b/python-langchain.spec @@ -1,18 +1,19 @@ %global _empty_manifest_terminate_build 0 Name: python-langchain Version: 0.3.25 -Release: 1 +Release: 2 Summary: Building applications with LLMs through composability License: MIT URL: https://pypi.org/project/langchain/ Source0: https://files.pythonhosted.org/packages/fc/f9/a256609096a9fc7a1b3a6300a97000091efabdf21555a97988f93d4d9258/langchain-0.3.25.tar.gz +Patch0: 0001-update-version.patch BuildArch: noarch Requires: (python3-langchain-core<1.0.0 with python3-langchain-core>=0.3.58) Requires: (python3-langchain-text-splitters<1.0.0 with python3-langchain-text-splitters>=0.3.8) Requires: (python3-langsmith<0.4 with python3-langsmith>=0.1.17) Requires: (python3-pydantic<3.0.0 with python3-pydantic>=2.7.4) -Requires: (python3-SQLAlchemy<3 with python3-SQLAlchemy>=1.4) +Requires: (python3-SQLAlchemy2<3 with python3-SQLAlchemy2>=1.4) Requires: (python3-requests<3 with python3-requests>=2) Requires: (python3-PyYAML>=5.3) Requires: (python3-async-timeout<5.0.0 with python3-async-timeout>=4.0.0) @@ -50,6 +51,7 @@ Large language models (LLMs) are emerging as a transformative technology, enabli %prep %autosetup -n langchain-0.3.25 +%patch -P 0 -p2 %build %pyproject_build @@ -84,5 +86,7 @@ mv %{buildroot}/doclist.lst . %{python3_sitelib}/* %changelog +* Thu Jun 12 2025 ylzhangah - 0.3.25-2 +- Update SQLAlchemy2 version * Sat May 10 2025 Python_Bot - 0.3.25-1 - Package Spec generated -- Gitee