From 21669b14e7eb6b1e20c6a92246acac5bee280a33 Mon Sep 17 00:00:00 2001 From: Ashwin Bharambe Date: Sat, 28 Jun 2025 08:14:25 +0530 Subject: [PATCH] fix(docs): add setuptools explicitly (#2547) Given the shift to python3.12, we need to explicitly depend on `setuptools` for the pkg_resources import ## Test Plan Run ``` cd local/llama-stack UV_PROJECT_ENVIRONMENT=/tmp/docs uv sync --frozen --group docs cd /tmp/docs uv run python -m sphinx -T -b html -d _build/doctrees -D language=en \ ~/local/llama-stack/docs/source/ \ /tmp/docs/html ``` --- pyproject.toml | 1 + uv.lock | 2 ++ 2 files changed, 3 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 16f3c18ad..1c6892508 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -108,6 +108,7 @@ test = [ "requests", ] docs = [ + "setuptools", "sphinx-autobuild", "myst-parser", "sphinx", diff --git a/uv.lock b/uv.lock index 48fcb89bc..0907d1eb8 100644 --- a/uv.lock +++ b/uv.lock @@ -1272,6 +1272,7 @@ docs = [ { name = "linkify" }, { name = "myst-parser" }, { name = "requests" }, + { name = "setuptools" }, { name = "sphinx" }, { name = "sphinx-autobuild" }, { name = "sphinx-copybutton" }, @@ -1375,6 +1376,7 @@ docs = [ { name = "linkify" }, { name = "myst-parser" }, { name = "requests" }, + { name = "setuptools" }, { name = "sphinx" }, { name = "sphinx-autobuild" }, { name = "sphinx-copybutton" },