File python-langchain-tests.spec of Package python-langchain-tests
#
# spec file for package python-langchain-tests
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: python-langchain-tests
Version: 0.3.20
Release: 0
Summary: Standard tests for LangChain implementations
License: MIT
URL: None
Source: https://files.pythonhosted.org/packages/source/l/langchain-tests/langchain_tests-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module pdm-backend}
BuildRequires: %{python_module pip}
# SECTION test requirements
BuildRequires: %{python_module httpx >= 0.25.0}
BuildRequires: %{python_module langchain-core >= 0.3.63}
BuildRequires: %{python_module numpy >= 1.26.2}
BuildRequires: %{python_module pytest >= 7}
BuildRequires: %{python_module pytest-asyncio >= 0.20}
BuildRequires: %{python_module pytest-benchmark}
BuildRequires: %{python_module pytest-codspeed}
BuildRequires: %{python_module pytest-recording}
BuildRequires: %{python_module pytest-socket >= 0.6.0}
BuildRequires: %{python_module syrupy >= 4}
BuildRequires: %{python_module vcrpy >= 7.0}
# /SECTION
BuildRequires: fdupes
Requires: python-httpx >= 0.25.0
Requires: python-langchain-core >= 0.3.63
Requires: python-numpy >= 1.26.2
Requires: python-pytest >= 7
Requires: python-pytest-asyncio >= 0.20
Requires: python-pytest-benchmark
Requires: python-pytest-codspeed
Requires: python-pytest-recording
Requires: python-pytest-socket >= 0.6.0
Requires: python-syrupy >= 4
Requires: python-vcrpy >= 7.0
BuildArch: noarch
%python_subpackages
%description
This is a testing library for LangChain integrations. It contains the base classes for
a standard set of tests.
%prep
%autosetup -p1 -n langchain_tests-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%{python_sitelib}/langchain_tests
%{python_sitelib}/langchain_tests-%{version}.dist-info
%changelog