Skip to content

Commit 7bbe9ba

Browse files
fix: constrain transitive setuptools to the patched release (#381)
#373 raised the build-system pin to setuptools>=83.0.0, but that only governs building this package -- it does not constrain the resolved environment. setuptools also arrives transitively (torch, pip-audit) with no lower bound, so uv.lock stayed on 82.0.1 and the <83.0.0 advisory remained open against the lockfile. Add a uv constraint-dependencies entry so the transitive resolution is pinned forward too, without introducing setuptools as a direct runtime dependency. Verified: uv sync --group dev --locked, ruff check, ruff format --check, pytest (527 passing, 5 skipped), pip-audit clean. Claude-Session: https://claude.ai/code/session_01GhbwK5NKaXutwKjqYzGjDk Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
1 parent 288a780 commit 7bbe9ba

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

backend/pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ torchvision = [
101101
]
102102

103103
[tool.uv]
104+
# setuptools arrives transitively (torch, pip-audit) and resolved to 82.0.1,
105+
# which is GHSA-affected (<83.0.0). The build-system pin above only governs
106+
# building this package, not the resolved environment, so constrain it here.
107+
constraint-dependencies = ["setuptools>=83.0.0"]
104108
conflicts = [
105109
[
106110
{ extra = "cpu" },

backend/uv.lock

Lines changed: 6 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)