Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "pydantic-ai-examples"
version = "0.0.35"
version = "0.0.36"
description = "Examples of how to use PydanticAI and what it can do."
authors = [{ name = "Samuel Colvin", email = "samuel@pydantic.dev" }]
license = "MIT"
Expand Down Expand Up @@ -32,7 +32,7 @@ classifiers = [
]
requires-python = ">=3.9"
dependencies = [
"pydantic-ai-slim[openai,vertexai,groq,anthropic]==0.0.35",
"pydantic-ai-slim[openai,vertexai,groq,anthropic]==0.0.36",
"asyncpg>=0.30.0",
"fastapi>=0.115.4",
"logfire[asyncpg,fastapi,sqlite3]>=2.6",
Expand Down
4 changes: 2 additions & 2 deletions pydantic_ai_slim/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "pydantic-ai-slim"
version = "0.0.35"
version = "0.0.36"
description = "Agent Framework / shim to use Pydantic with LLMs, slim package"
authors = [{ name = "Samuel Colvin", email = "samuel@pydantic.dev" }]
license = "MIT"
Expand Down Expand Up @@ -36,7 +36,7 @@ dependencies = [
"griffe>=1.3.2",
"httpx>=0.27",
"pydantic>=2.10",
"pydantic-graph==0.0.35",
"pydantic-graph==0.0.36",
"exceptiongroup; python_version < '3.11'",
"opentelemetry-api>=1.28.0",
"typing-inspection>=0.4.0",
Expand Down
2 changes: 1 addition & 1 deletion pydantic_graph/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "pydantic-graph"
version = "0.0.35"
version = "0.0.36"
description = "Graph and state machine library"
authors = [{ name = "Samuel Colvin", email = "samuel@pydantic.dev" }]
license = "MIT"
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "pydantic-ai"
version = "0.0.35"
version = "0.0.36"
description = "Agent Framework / shim to use Pydantic with LLMs"
authors = [
{ name = "Samuel Colvin", email = "samuel@pydantic.dev" },
Expand Down Expand Up @@ -36,7 +36,7 @@ classifiers = [
]
requires-python = ">=3.9"
dependencies = [
"pydantic-ai-slim[openai,vertexai,groq,anthropic,mistral,cohere,bedrock,cli]==0.0.35",
"pydantic-ai-slim[openai,vertexai,groq,anthropic,mistral,cohere,bedrock,cli]==0.0.36",
]

[project.urls]
Expand All @@ -46,7 +46,7 @@ Documentation = "https://ai.pydantic.dev"
Changelog = "https://github.com/pydantic/pydantic-ai/releases"

[project.optional-dependencies]
examples = ["pydantic-ai-examples==0.0.35"]
examples = ["pydantic-ai-examples==0.0.36"]
logfire = ["logfire>=2.3"]

[tool.uv.sources]
Expand Down
5 changes: 1 addition & 4 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,4 @@ def test_cli_help(capfd: CaptureFixture[str]):

def test_invalid_model(capfd: CaptureFixture[str]):
assert cli(['--model', 'invalid_model']) == 1
assert capfd.readouterr().out == snapshot("""\
pai - PydanticAI CLI v0.0.35
Invalid model "invalid_model"
""")
assert capfd.readouterr().out.splitlines() == snapshot([IsStr(), 'Invalid model "invalid_model"'])
31 changes: 17 additions & 14 deletions uprev.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import re
import subprocess
import sys

from pathlib import Path

ROOT_DIR = Path(__file__).parent
Expand All @@ -27,7 +26,7 @@
sys.exit(1)


old_version: str | None = None
old_version: str = None


def sub_version(m: re.Match[str]) -> str:
Expand Down Expand Up @@ -72,7 +71,17 @@ def replace_deps_version(text: str) -> tuple[str, int]:
graph_pp_text = graph_pp.read_text()
graph_pp_text, count_graph = replace_deps_version(graph_pp_text)

if count_root == 2 and count_ex == 2 and count_slim == 2 and count_graph == 1:
EXPECTED_COUNT_ROOT = 2
EXPECTED_COUNT_EX = 2
EXPECTED_COUNT_SLIM = 2
EXPECTED_COUNT_GRAPH = 1

if (
count_root == EXPECTED_COUNT_ROOT
and count_ex == EXPECTED_COUNT_EX
and count_slim == EXPECTED_COUNT_SLIM
and count_graph == EXPECTED_COUNT_GRAPH
):
root_pp.write_text(root_pp_text)
examples_pp.write_text(examples_pp_text)
slim_pp.write_text(slim_pp_text)
Expand All @@ -81,20 +90,14 @@ def replace_deps_version(text: str) -> tuple[str, int]:
subprocess.run(['make', 'sync'], check=True)
print(f'running `git switch -c uprev-{version}`...')
subprocess.run(['git', 'switch', '-c', f'uprev-{version}'], check=True)
print(
f'SUCCESS: replaced version in\n'
f' {root_pp}\n'
f' {examples_pp}\n'
f' {slim_pp}\n'
f' {graph_pp}'
)
print(f'SUCCESS: replaced version in\n {root_pp}\n {examples_pp}\n {slim_pp}\n {graph_pp}')
else:
print(
f'ERROR:\n'
f' {count_root} version references in {root_pp} (expected 2)\n'
f' {count_ex} version references in {examples_pp} (expected 2)\n'
f' {count_slim} version references in {slim_pp} (expected 1)',
f' {count_graph} version references in {graph_pp} (expected 1)',
f' {count_root} version references in {root_pp} (expected {EXPECTED_COUNT_ROOT})\n'
f' {count_ex} version references in {examples_pp} (expected {EXPECTED_COUNT_EX})\n'
f' {count_slim} version references in {slim_pp} (expected {EXPECTED_COUNT_SLIM})\n'
f' {count_graph} version references in {graph_pp} (expected {EXPECTED_COUNT_GRAPH})',
file=sys.stderr,
)
sys.exit(1)
8 changes: 4 additions & 4 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.