From 5e34ddd051835fcde5e049d43bec5b9d3666727c Mon Sep 17 00:00:00 2001 From: tijmenstor <23655598+tijmenstor@users.noreply.github.com> Date: Mon, 26 Jan 2026 09:48:28 +0100 Subject: [PATCH] Move server dependencies to optional extras The client only needs `requests` - move fastapi, pydantic, and uvicorn to [project.optional-dependencies] server. This significantly reduces the dependency footprint for users who only need the policy client (e.g., via Homebrew), avoiding the need to compile pydantic-core from Rust source. To run the example server: pip install devleaps-agent-policies[server] Co-Authored-By: Claude Opus 4.5 --- pyproject.toml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 4f26bc5..1ca0219 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,13 +23,15 @@ classifiers = [ ] dependencies = [ - "fastapi==0.118.0", - "pydantic==2.12.5", "requests==2.32.5", - "uvicorn==0.37.0", ] [project.optional-dependencies] +server = [ + "fastapi==0.118.0", + "pydantic==2.12.5", + "uvicorn==0.37.0", +] dev = [ "httpx==0.28.1", "pytest==8.4.2", @@ -37,7 +39,7 @@ dev = [ [project.scripts] devleaps-policy-client = "devleaps.policies.client.client:main" -devleaps-policy-example-server = "devleaps.policies.example.main:main" +# To run the example server: pip install devleaps-agent-policies[server] && python -m devleaps.policies.example.main [build-system] requires = ["hatchling"]