%global _empty_manifest_terminate_build 0
Name: python-langchain
Version: 0.3.28
Release: 1
Summary: Building applications with LLMs through composability
License: MIT
URL: https://pypi.org/project/langchain/
Source0: https://files.pythonhosted.org/packages/87/bb/a65e29c8e4aaf0348c2617962e427c8e760d82a67adbd197019e49c7769d/langchain-0.3.28.tar.gz
BuildArch: noarch
Requires: (python3-langchain-core<1.0.0 with python3-langchain-core>=0.3.73)
Requires: (python3-langchain-text-splitters<1.0.0 with python3-langchain-text-splitters>=0.3.9)
Requires: (python3-langsmith<1.0.0 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-requests<3 with python3-requests>=2)
Requires: (python3-PyYAML<7.0.0 with python3-PyYAML>=5.3.0)
Requires: (python3-async-timeout<5.0.0 with python3-async-timeout>=4.0.0)
Requires: (python3-langchain-community)
Requires: (python3-langchain-anthropic)
Requires: (python3-langchain-openai)
Requires: (python3-langchain-azure-ai)
Requires: (python3-langchain-cohere)
Requires: (python3-langchain-google-vertexai)
Requires: (python3-langchain-google-genai)
Requires: (python3-langchain-fireworks)
Requires: (python3-langchain-ollama)
Requires: (python3-langchain-together)
Requires: (python3-langchain-mistralai)
Requires: (python3-langchain-huggingface)
Requires: (python3-langchain-groq)
Requires: (python3-langchain-aws)
Requires: (python3-langchain-deepseek)
Requires: (python3-langchain-xai)
Requires: (python3-langchain-perplexity)
%description
Large language models (LLMs) are emerging as a transformative technology, enabling developers to build applications that they previously could not. However, using these LLMs in isolation is often insufficient for creating a truly powerful app - the real power comes when you can combine them with other sources of computation or knowledge.
%package -n python3-langchain
Summary: Building applications with LLMs through composability
Provides: python-langchain
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python-pdm-backend
%description -n python3-langchain
Large language models (LLMs) are emerging as a transformative technology, enabling developers to build applications that they previously could not. However, using these LLMs in isolation is often insufficient for creating a truly powerful app - the real power comes when you can combine them with other sources of computation or knowledge.
%prep
%autosetup -n langchain-0.3.28
%build
%pyproject_build
%install
%pyproject_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
touch filelist.lst
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%files -n python3-langchain -f filelist.lst
%{python3_sitelib}/*
%changelog
* Mon Aug 24 2026 Hongyu Shi <shywzt@iCloud.com> - 0.3.28-1
- Upgrade to 0.3.28, relax langsmith constraint to <1.0.0 and align
langchain-core>=0.3.73, langchain-text-splitters>=0.3.9, PyYAML<7.0.0
* Fri Jun 13 2025 WANG-shine <wangshuai321@huawei.com> - 0.3.25-2
- Fix bug with sqlalchemy version
* Sat May 10 2025 Python_Bot <Python_Bot@openeuler.org> - 0.3.25-1
- Package Spec generated