From 921d206045d0a1055686361c04bda707f793315c Mon Sep 17 00:00:00 2001 From: "claude[bot]" <209825114+claude[bot]@users.noreply.github.com> Date: Fri, 15 Aug 2025 07:43:52 +0000 Subject: [PATCH] fix: replace logfire-api with logfire dependency in pydantic-evals MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes the MagicMock issue when logfire is not installed by ensuring logfire is always available. Previously, logfire-api provided only the interface while actual span duration calculations require the full logfire package. Fixes #2209 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Marcelo Trylesinski --- pydantic_evals/pyproject.toml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pydantic_evals/pyproject.toml b/pydantic_evals/pyproject.toml index 13e51126d..571d0b80d 100644 --- a/pydantic_evals/pyproject.toml +++ b/pydantic_evals/pyproject.toml @@ -49,7 +49,7 @@ requires-python = ">=3.9" [tool.hatch.metadata.hooks.uv-dynamic-versioning] dependencies = [ "rich>=13.9.4", - "logfire-api>=3.14.1", + "logfire>=3.14.1", "pydantic>=2.10", "pydantic-ai-slim=={{ version }}", "anyio>=0", @@ -58,7 +58,6 @@ dependencies = [ ] [project.optional-dependencies] -logfire = ["logfire>=3.14.1"] [project.urls] Homepage = "https://ai.pydantic.dev/evals"