|
|
|
@@ -16,9 +16,8 @@
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%{?sle15_python_module_pythons}
|
|
|
|
|
Name: python-langsmith
|
|
|
|
|
Version: 0.9.6
|
|
|
|
|
Version: 0.9.7
|
|
|
|
|
Release: 0
|
|
|
|
|
Summary: Client library for the LangSmith LLM tracing and evaluation platform
|
|
|
|
|
License: MIT
|
|
|
|
@@ -51,6 +50,7 @@ BuildRequires: %{python_module distro >= 1.7.0}
|
|
|
|
|
BuildRequires: %{python_module freezegun}
|
|
|
|
|
BuildRequires: %{python_module httpx >= 0.23.0}
|
|
|
|
|
BuildRequires: %{python_module multipart}
|
|
|
|
|
BuildRequires: %{python_module opentelemetry-sdk >= 1.30.0}
|
|
|
|
|
BuildRequires: %{python_module orjson >= 3.9.14}
|
|
|
|
|
BuildRequires: %{python_module packaging >= 23.2}
|
|
|
|
|
BuildRequires: %{python_module pydantic >= 2}
|
|
|
|
@@ -87,9 +87,10 @@ rm -f conftest.py
|
|
|
|
|
%check
|
|
|
|
|
export LANGSMITH_TRACING=false
|
|
|
|
|
# Run unit tests only; skip integration/network tests and modules that need
|
|
|
|
|
# optional providers (LLM wrappers, sandbox websockets client, CLI,
|
|
|
|
|
# opentelemetry) or langchain-core (which depends on langsmith -> build cycle).
|
|
|
|
|
%pytest tests/unit_tests -p no:langsmith_plugin --ignore tests/unit_tests/wrappers --ignore tests/unit_tests/sandbox --ignore tests/unit_tests/cli --ignore tests/unit_tests/evaluation --ignore tests/unit_tests/test_async_client.py --ignore tests/unit_tests/test_client.py --ignore tests/unit_tests/test_run_helpers.py --ignore tests/unit_tests/test_hybrid_tracing.py --ignore tests/unit_tests/test_span_utils.py -k 'not test_client_gc and not test_git_info and not test_as_runnable'
|
|
|
|
|
# optional providers (LLM wrappers, sandbox websockets client, CLI) or
|
|
|
|
|
# langchain-core (which depends on langsmith -> build cycle);
|
|
|
|
|
# test_hybrid_tracing.py carries an upstream module-level pytest.skip.
|
|
|
|
|
%pytest tests/unit_tests -p no:langsmith_plugin --ignore tests/unit_tests/wrappers --ignore tests/unit_tests/sandbox --ignore tests/unit_tests/cli --ignore tests/unit_tests/evaluation --ignore tests/unit_tests/test_async_client.py --ignore tests/unit_tests/test_client.py --ignore tests/unit_tests/test_run_helpers.py --ignore tests/unit_tests/test_hybrid_tracing.py -k 'not test_client_gc and not test_git_info and not test_as_runnable'
|
|
|
|
|
# Recompile the installed modules as hash-based bytecode: this package ships
|
|
|
|
|
# many modules, so timestamp-based .pyc desync from the reproducibility-clamped
|
|
|
|
|
# .py mtimes and trip python-bytecode-inconsistent-mtime.
|
|
|
|
|