Skip to content

Commit 69b06f0

Browse files
Bump python SDK (#368)
1 parent f241113 commit 69b06f0

File tree

9 files changed

+20
-20
lines changed

9 files changed

+20
-20
lines changed

.tools/update_python_examples.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ PROJECT_ROOT="$(dirname "$SELF_PATH")/.."
88

99
function search_and_replace_version() {
1010
pushd $1
11+
local project_dir=$1
1112
echo "upgrading Python version of $1 to $NEW_VERSION"
1213
if [ -e "pyproject.toml" ]; then
1314
# Use uv for pyproject.toml projects
@@ -18,18 +19,17 @@ function search_and_replace_version() {
1819
echo "No pyproject.toml or requirements.txt found in $(pwd)"
1920
exit 1
2021
fi
21-
popd
2222

23-
local project_dir=$1
2423
# If this is a template directory and has existing agents documentation, update it
25-
if [[ "$project_dir" == *"/templates/"* ]] && [ -f "$project_dir/.cursor/rules/AGENTS.md" ]; then
24+
if [[ "$project_dir" == *"/templates/"* ]] && [ -f "./.cursor/rules/AGENTS.md" ]; then
2625
echo "Updating agents documentation for template in $project_dir"
27-
wget -O "$project_dir/.cursor/rules/AGENTS.md" https://docs.restate.dev/develop/python/agents.md
26+
wget -O "./.cursor/rules/AGENTS.md" https://docs.restate.dev/develop/python/agents.md
2827
fi
29-
if [[ "$project_dir" == *"/templates/"* ]] && [ -f "$project_dir/.claude/CLAUDE.md" ]; then
28+
if [[ "$project_dir" == *"/templates/"* ]] && [ -f "./.claude/CLAUDE.md" ]; then
3029
echo "Updating agents documentation for template in $project_dir"
31-
wget -O "$project_dir/.claude/CLAUDE.md" https://docs.restate.dev/develop/python/agents.md
30+
wget -O "./.claude/CLAUDE.md" https://docs.restate.dev/develop/python/agents.md
3231
fi
32+
popd
3333
}
3434

3535
search_and_replace_version $PROJECT_ROOT/python/templates/python

python/patterns-use-cases/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ readme = "README.md"
99
requires-python = ">=3.11"
1010
dependencies = [
1111
"hypercorn",
12-
"restate-sdk[serde]>=0.13.0",
12+
"restate-sdk[serde]>=0.14.0",
1313
"pydantic",
1414
"httpx",
1515
"stripe",

python/templates/lambda/.claude/CLAUDE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ my_service = restate.Service("MyService")
1818

1919
@my_service.handler("myHandler")
2020
async def my_handler(ctx: restate.Context, greeting: str) -> str:
21-
return f"${greeting}!"
21+
return f"{greeting}!"
2222

2323

2424
app = restate.app([my_service])
@@ -34,12 +34,12 @@ my_object = restate.VirtualObject("MyVirtualObject")
3434

3535
@my_object.handler("myHandler")
3636
async def my_handler(ctx: restate.ObjectContext, greeting: str) -> str:
37-
return f"${greeting} ${ctx.key()}!"
37+
return f"{greeting} {ctx.key()}!"
3838

3939

4040
@my_object.handler(kind="shared")
4141
async def my_concurrent_handler(ctx: restate.ObjectSharedContext, greeting: str) -> str:
42-
return f"${greeting} ${ctx.key()}!"
42+
return f"{greeting} {ctx.key()}!"
4343

4444

4545
app = restate.app([my_object])

python/templates/lambda/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ readme = "README.md"
66
requires-python = ">=3.11"
77
dependencies = [
88
"pydantic>=2.10.6",
9-
"restate-sdk[serde]>=0.13.0",
9+
"restate-sdk[serde]>=0.14.0",
1010
]
1111

1212
[tool.hatch.build.targets.wheel]

python/templates/python/.claude/CLAUDE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ my_service = restate.Service("MyService")
1818

1919
@my_service.handler("myHandler")
2020
async def my_handler(ctx: restate.Context, greeting: str) -> str:
21-
return f"${greeting}!"
21+
return f"{greeting}!"
2222

2323

2424
app = restate.app([my_service])
@@ -34,12 +34,12 @@ my_object = restate.VirtualObject("MyVirtualObject")
3434

3535
@my_object.handler("myHandler")
3636
async def my_handler(ctx: restate.ObjectContext, greeting: str) -> str:
37-
return f"${greeting} ${ctx.key()}!"
37+
return f"{greeting} {ctx.key()}!"
3838

3939

4040
@my_object.handler(kind="shared")
4141
async def my_concurrent_handler(ctx: restate.ObjectSharedContext, greeting: str) -> str:
42-
return f"${greeting} ${ctx.key()}!"
42+
return f"{greeting} {ctx.key()}!"
4343

4444

4545
app = restate.app([my_object])

python/templates/python/.cursor/rules/AGENTS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ my_service = restate.Service("MyService")
1818

1919
@my_service.handler("myHandler")
2020
async def my_handler(ctx: restate.Context, greeting: str) -> str:
21-
return f"${greeting}!"
21+
return f"{greeting}!"
2222

2323

2424
app = restate.app([my_service])
@@ -34,12 +34,12 @@ my_object = restate.VirtualObject("MyVirtualObject")
3434

3535
@my_object.handler("myHandler")
3636
async def my_handler(ctx: restate.ObjectContext, greeting: str) -> str:
37-
return f"${greeting} ${ctx.key()}!"
37+
return f"{greeting} {ctx.key()}!"
3838

3939

4040
@my_object.handler(kind="shared")
4141
async def my_concurrent_handler(ctx: restate.ObjectSharedContext, greeting: str) -> str:
42-
return f"${greeting} ${ctx.key()}!"
42+
return f"{greeting} {ctx.key()}!"
4343

4444

4545
app = restate.app([my_object])

python/templates/python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ requires-python = ">=3.11"
77
dependencies = [
88
"hypercorn>=0.17.3",
99
"pydantic>=2.10.6",
10-
"restate-sdk[serde]>=0.13.0",
10+
"restate-sdk[serde]>=0.14.0",
1111
]
1212

1313
[tool.hatch.build.targets.wheel]

python/tutorials/tour-of-orchestration-python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ requires-python = ">=3.11"
77
dependencies = [
88
"hypercorn>=0.17.3",
99
"pydantic>=2.10.6",
10-
"restate-sdk[serde]>=0.13.0",
10+
"restate-sdk[serde]>=0.14.0",
1111
]
1212

1313
[tool.hatch.build.targets.wheel]

python/tutorials/tour-of-workflows-python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ dependencies = [
88
"hypercorn>=0.17.3",
99
"pydantic>=2.10.6",
1010
"httpx",
11-
"restate-sdk[serde]>=0.13.0",
11+
"restate-sdk[serde]>=0.14.0",
1212
]
1313

1414
[tool.hatch.build.targets.wheel]

0 commit comments

Comments
 (0)