Repository navigation
fix(deps): bump virtualenv and setuptools for security advisories - #5
Conversation
- virtualenv (dev extra): floor 21.14.9 -> 21.14.13, locked 21.15.1. Fixes GHSA-cx6f-vjhg-g3cc (HIGH) and GHSA-4f8h-vr72-p32c (MODERATE). - setuptools (build-system requires): floor 80.0 -> 84.1.0. Fixes GHSA-h35f-9h28-mq5c (MODERATE) and GHSA-xmj3-9gf7-h52w (LOW) in the package build environment. The runtime setuptools in uv.lock stays at 81.0.0 because torch 2.12.0 requires setuptools<82; lifting that needs a torch bump, left for a separate change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Update dependency minimums pyproject.toml |
The setuptools minimum changed from >=80.0 to >=84.1.0. The torch minimum changed from >=2.12.0 to >=2.13.0. The virtualenv minimum changed from >=21.14.9 to >=21.14.13. Existing upper bounds and the wheel requirement remain unchanged. |
Estimated code review effort: 1 (Trivial) | ~3 minutes
Change: Other
Possibly related PRs
- aravhawk/TensorPoW#3: Adds the virtualenv constraint whose minimum version this change updates.
- aravhawk/TensorPoW#6: Adds a torch constraint for the macOS MPS CI install; this change updates the project torch minimum.
Suggested reviewers: cursoragent
Merge Risk: 
Minimal · up to 9f674
-
The dependency floor updates present no identified merge-blocking risk.
Pre-merge checks: 
5
-
Full details: Title check
-
Explanation
The title clearly identifies the dependency and security-advisory updates for virtualenv and setuptools. It omits the torch dependency update but still accurately describes a major part of the changes.
Full details: Docstring Coverage
-
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)
-
Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
A rabbit checks the versions in a row,
Three minimums rise, while upper bounds stay so.
Setuptools, torch, virtualenv take their place,
The wheel requirement keeps its steady pace.
Then off I hop, with carrots in my case.
Comment @coderabbitai help to get the list of available commands.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
torch 2.12.x declares setuptools<82, holding the locked runtime setuptools at 81.0.0 (GHSA-h35f-9h28-mq5c, GHSA-xmj3-9gf7-h52w). torch 2.13.0 is the first release that only requires setuptools>=77.0.3, so raise the torch floor to >=2.13.0 and lock torch 2.13.0 with setuptools 84.2.1. torch 2.13.0 also fixes PYSEC-2025-194. torch 2.13.0 pins triton==3.7.1 and cuda-toolkit==13.0.3 on Linux, so those lock entries move with it. The PoW reference digest is unchanged on CPU and MPS. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Summary
Fixes:
--promptvalue unescaped inPS1whenpromptvarsis off, so prompt expansion later executes it. This is a regression in 21.14.9. Affected: virtualenv>=21.14.9,<21.14.13; first patched:21.14.13.>=21.14.8,<21.14.10; first patched:21.14.10.MANIFEST.inexclusions through an NFC/NFD Unicode normalization collision on macOS APFS/HFS+. Affected:<83.0.0; first patched:83.0.0.namespace_packages.txtduring legacy wheel installation. Affected:>=38.2.2,<84.1.0; first patched:84.1.0.2.13.0.Changes
devextra): floor>=21.14.9→>=21.14.13. Locked21.14.9→21.15.1.[build-system] requires): floor>=80.0→>=84.1.0, so isolated builds (pip install -e .,uv build) get a patched setuptools.>=2.12.0→>=2.13.0. Locked2.12.0→2.13.0. This unblocks the runtime setuptools inuv.lock:81.0.0→84.2.1.torch 2.12.0and2.12.1declaresetuptools<82on every cp312 wheel (macOS arm64, Linux x86_64/aarch64, Windows).2.13.0and later declare onlysetuptools>=77.0.3.triton 3.7.0→3.7.1,cuda-toolkit 13.0.2→13.0.3.0. No other packages move.2.13.0is below the CI-onlytorch<2.15cap for the macOS MPS job (ci: auto-run PR CI for write-access authors; approval only for untrusted PRs #6), so that cap doesn't affect this PR.Determinism impact
TensorPoW isn't in use yet, so a determinism-affecting torch change was approved. Even so, no determinism or golden-value changes: the PoW reference digest
f1aa4b92aceca26dbd45402dd4b996f9ff76d6c31db66df675bba44649bbbed3still matches under torch 2.13.0 on CPU and MPS (local Apple Silicon). No test vectors were edited. Linux x86/ARM CPU and Daytona H100 CUDA determinism weren't run locally; the approved-PR CI jobs cover them.Test results (locked env,
uv sync --locked --extra dev, Python 3.12.16, macOS arm64, torch 2.13.0 / setuptools 84.2.1 / virtualenv 21.15.1)ruff check .: passedruff format --check .: 118 files already formattedmypy src scripts: no issues in 63 source filespytest tests: 343 passedTENSORPOW_DETERMINISM_BACKEND=cpu pytest -m determinism tests/determinism: 2 passedTENSORPOW_DETERMINISM_BACKEND=mps pytest -m determinism tests/determinism: 2 passed (the test asserts the backend resolved tomps)Vulnerability scan (
pip-auditonuv export --all-extras)main:virtualenv 21.14.9(GHSA-4f8h-vr72-p32c),setuptools 81.0.0(PYSEC-2026-3447 / GHSA-h35f-9h28-mq5c, GHSA-xmj3-9gf7-h52w),torch 2.12.0(PYSEC-2025-194). No new findings. The pip-audit database doesn't list GHSA-cx6f-vjhg-g3cc yet. The locked21.15.1is outside its affected range.libp2p 0.6.0PYSEC-2026-3681. No fixed version has been published.zeroconf 0.147.4(5 advisories, fixed in ≤0.149.16),multidict 6.7.1(→6.9.1),opentelemetry-api 1.42.1(→1.45.1)🤖 Generated with Claude Code
Summary by CodeRabbit