Skip to content

Commit 33e6314

Browse files
Fix dependency configuration and Python compatibility for helloworld_with_ratelimiter
- Updated pyproject.toml to use uv.sources for local ratelimiter-ext dependency - Added tool.hatch.metadata.allow-direct-references configuration - Added .python-version file (gitignored) to ensure Python 3.12 compatibility - Resolved build issues with pydantic-core and ormsgpack on Python 3.14
1 parent 389a318 commit 33e6314

File tree

2 files changed

+661
-52
lines changed

2 files changed

+661
-52
lines changed

samples/python/agents/helloworld_with_ratelimiter/pyproject.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,19 @@ dependencies = [
1616
"sse-starlette>=2.3.5",
1717
"starlette>=0.46.2",
1818
"uvicorn>=0.34.2",
19-
"ratelimiter-ext @ file://../../extensions/ratelimiter",
19+
"ratelimiter-ext",
2020
]
2121

22+
[tool.uv.sources]
23+
ratelimiter-ext = { path = "../../extensions/ratelimiter", editable = true }
24+
2225
[project.optional-dependencies]
2326
ratelimiter = [
2427
]
2528

29+
[tool.hatch.metadata]
30+
allow-direct-references = true
31+
2632
[tool.hatch.build.targets.wheel]
2733
packages = ["."]
2834

0 commit comments

Comments
 (0)