fix: constrain transitive setuptools to the patched release - #381
Conversation
#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. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GhbwK5NKaXutwKjqYzGjDk
PR Context Summary
Suggested issue links
Use |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe backend project configuration adds a uv dependency constraint requiring ChangesDependency Resolution
Estimated code review effort: 1 (Trivial) | ~5 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
ApprovabilityVerdict: Approved 12a0a85 This is a straightforward security fix that constrains the transitive setuptools dependency to >=83.0.0 to address a known vulnerability (GHSA). The change only affects dependency resolution, not runtime behavior, and the author is the designated code owner of this file. You can customize Macroscope's approvability policy. Learn more. |
Summary
Closes the last actionable backend advisory:
setuptools <83.0.0(medium) againstbackend/uv.lock.#373 bumped the build-system pin to
setuptools>=83.0.0, but[build-system].requiresonly governs building this package — it does not constrain the resolved environment. setuptools also arrives transitively viatorchandpip-auditwith no lower bound, souv.lockstayed on 82.0.1 and the alert stayed open.Adding
constraint-dependenciesunder[tool.uv]pins the transitive resolution forward without making setuptools a direct runtime dependency:uv lockthen moves it:Updated setuptools v82.0.1 -> v83.0.0.Type of change
Release impact
How to test
All green locally: 527 tests passing (5 skipped),
pip-auditreports no known vulnerabilities.Summary by CodeRabbit