Skip to content

Commit b4dff6f

Browse files
fix(server): add httpx to runtime dependencies (#205)
## Summary `httpx` is listed only under `[dependency-groups] dev`, but `server/src/agent_control_server/auth_framework/providers/http_upstream.py` imports `httpx` at module load time. Wheels built without dev dependencies therefore fail with `ModuleNotFoundError: No module named 'httpx'` on server start. ## Reproduction Build a production wheel (no dev deps) and start the server: ``` uv sync --package agent-control-server --no-dev .venv/bin/agent-control-server # ... # File "src/agent_control_server/auth_framework/providers/__init__.py", line 4, in <module> # from .http_upstream import HttpUpstreamAuthProvider # File "src/agent_control_server/auth_framework/providers/http_upstream.py", line 45, in <module> # import httpx # ModuleNotFoundError: No module named 'httpx' ``` ## Fix Add `"httpx>=0.27.0"` to the runtime `dependencies` list in `server/pyproject.toml`. Existing dev-deps entry is unchanged.
1 parent fae0ad3 commit b4dff6f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎server/pyproject.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ dependencies = [
1111
"fastapi>=0.109.0",
1212
"starlette-exporter>=0.23.0",
1313
"uvicorn[standard]>=0.27.0",
14+
"httpx>=0.27.0", # For auth_framework HTTP providers
1415
"pydantic>=2.5.0",
1516
"pydantic-settings>=2.1.0",
1617
"SQLAlchemy>=2.0.0",

0 commit comments

Comments
 (0)