Skip to content

Commit 1a59f74

Browse files
authored
Version 0.0.36 (#1072)
1 parent 6f991cb commit 1a59f74

File tree

7 files changed

+30
-30
lines changed

7 files changed

+30
-30
lines changed

examples/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "pydantic-ai-examples"
7-
version = "0.0.35"
7+
version = "0.0.36"
88
description = "Examples of how to use PydanticAI and what it can do."
99
authors = [{ name = "Samuel Colvin", email = "[email protected]" }]
1010
license = "MIT"
@@ -32,7 +32,7 @@ classifiers = [
3232
]
3333
requires-python = ">=3.9"
3434
dependencies = [
35-
"pydantic-ai-slim[openai,vertexai,groq,anthropic]==0.0.35",
35+
"pydantic-ai-slim[openai,vertexai,groq,anthropic]==0.0.36",
3636
"asyncpg>=0.30.0",
3737
"fastapi>=0.115.4",
3838
"logfire[asyncpg,fastapi,sqlite3]>=2.6",

pydantic_ai_slim/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "pydantic-ai-slim"
7-
version = "0.0.35"
7+
version = "0.0.36"
88
description = "Agent Framework / shim to use Pydantic with LLMs, slim package"
99
authors = [{ name = "Samuel Colvin", email = "[email protected]" }]
1010
license = "MIT"
@@ -36,7 +36,7 @@ dependencies = [
3636
"griffe>=1.3.2",
3737
"httpx>=0.27",
3838
"pydantic>=2.10",
39-
"pydantic-graph==0.0.35",
39+
"pydantic-graph==0.0.36",
4040
"exceptiongroup; python_version < '3.11'",
4141
"opentelemetry-api>=1.28.0",
4242
"typing-inspection>=0.4.0",

pydantic_graph/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "pydantic-graph"
7-
version = "0.0.35"
7+
version = "0.0.36"
88
description = "Graph and state machine library"
99
authors = [{ name = "Samuel Colvin", email = "[email protected]" }]
1010
license = "MIT"

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "pydantic-ai"
7-
version = "0.0.35"
7+
version = "0.0.36"
88
description = "Agent Framework / shim to use Pydantic with LLMs"
99
authors = [
1010
{ name = "Samuel Colvin", email = "[email protected]" },
@@ -36,7 +36,7 @@ classifiers = [
3636
]
3737
requires-python = ">=3.9"
3838
dependencies = [
39-
"pydantic-ai-slim[openai,vertexai,groq,anthropic,mistral,cohere,bedrock,cli]==0.0.35",
39+
"pydantic-ai-slim[openai,vertexai,groq,anthropic,mistral,cohere,bedrock,cli]==0.0.36",
4040
]
4141

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

4848
[project.optional-dependencies]
49-
examples = ["pydantic-ai-examples==0.0.35"]
49+
examples = ["pydantic-ai-examples==0.0.36"]
5050
logfire = ["logfire>=2.3"]
5151

5252
[tool.uv.sources]

tests/test_cli.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,4 @@ def test_cli_help(capfd: CaptureFixture[str]):
4646

4747
def test_invalid_model(capfd: CaptureFixture[str]):
4848
assert cli(['--model', 'invalid_model']) == 1
49-
assert capfd.readouterr().out == snapshot("""\
50-
pai - PydanticAI CLI v0.0.35
51-
Invalid model "invalid_model"
52-
""")
49+
assert capfd.readouterr().out.splitlines() == snapshot([IsStr(), 'Invalid model "invalid_model"'])

uprev.py

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
import re
1616
import subprocess
1717
import sys
18-
1918
from pathlib import Path
2019

2120
ROOT_DIR = Path(__file__).parent
@@ -27,7 +26,7 @@
2726
sys.exit(1)
2827

2928

30-
old_version: str | None = None
29+
old_version: str = None
3130

3231

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

75-
if count_root == 2 and count_ex == 2 and count_slim == 2 and count_graph == 1:
74+
EXPECTED_COUNT_ROOT = 2
75+
EXPECTED_COUNT_EX = 2
76+
EXPECTED_COUNT_SLIM = 2
77+
EXPECTED_COUNT_GRAPH = 1
78+
79+
if (
80+
count_root == EXPECTED_COUNT_ROOT
81+
and count_ex == EXPECTED_COUNT_EX
82+
and count_slim == EXPECTED_COUNT_SLIM
83+
and count_graph == EXPECTED_COUNT_GRAPH
84+
):
7685
root_pp.write_text(root_pp_text)
7786
examples_pp.write_text(examples_pp_text)
7887
slim_pp.write_text(slim_pp_text)
@@ -81,20 +90,14 @@ def replace_deps_version(text: str) -> tuple[str, int]:
8190
subprocess.run(['make', 'sync'], check=True)
8291
print(f'running `git switch -c uprev-{version}`...')
8392
subprocess.run(['git', 'switch', '-c', f'uprev-{version}'], check=True)
84-
print(
85-
f'SUCCESS: replaced version in\n'
86-
f' {root_pp}\n'
87-
f' {examples_pp}\n'
88-
f' {slim_pp}\n'
89-
f' {graph_pp}'
90-
)
93+
print(f'SUCCESS: replaced version in\n {root_pp}\n {examples_pp}\n {slim_pp}\n {graph_pp}')
9194
else:
9295
print(
9396
f'ERROR:\n'
94-
f' {count_root} version references in {root_pp} (expected 2)\n'
95-
f' {count_ex} version references in {examples_pp} (expected 2)\n'
96-
f' {count_slim} version references in {slim_pp} (expected 1)',
97-
f' {count_graph} version references in {graph_pp} (expected 1)',
97+
f' {count_root} version references in {root_pp} (expected {EXPECTED_COUNT_ROOT})\n'
98+
f' {count_ex} version references in {examples_pp} (expected {EXPECTED_COUNT_EX})\n'
99+
f' {count_slim} version references in {slim_pp} (expected {EXPECTED_COUNT_SLIM})\n'
100+
f' {count_graph} version references in {graph_pp} (expected {EXPECTED_COUNT_GRAPH})',
98101
file=sys.stderr,
99102
)
100103
sys.exit(1)

uv.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)