Skip to content

deps: bump setuptools build pins and raise the ip-address override to 10.3.1 - #10138

Merged
danielhanchen merged 3 commits into
mainfrom
deps-live-subset-of-5374
Sep 6, 2026
Merged

danielhanchen merged 3 commits into
mainfrom
deps-live-subset-of-5374

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

Replaces #5374. That PR batched ten Dependabot PRs, but it was opened on 2026-05-11 and its head is now 2,846 commits behind main. In the intervening four months, later Dependabot runs advanced almost all of the same dependencies past the versions it proposes, so merging it would move main backwards. It also carries one change that breaks a fresh install outright.

This PR carries only the two items from #5374 that main has not already moved past.

What changed

setuptools 80.9.0 -> 82.0.1, setuptools-scm 9.2.0 -> 9.2.2

pyproject.toml [build-system] requires. Verified locally with python -m build:

  • sdist and wheel both build clean
  • the wheel still ships studio/frontend/dist (703 assets, including index.html) and studio/frontend/package-lock.json

That last check matters because setuptools-scm registers the setuptools.file_finders entry point that governs sdist file discovery, and python -m build builds the wheel from the sdist. It is exactly the assertion wheel-smoke.yml makes, and wheel-smoke.yml triggers on pyproject.toml, so this bump gets real CI coverage here.

ip-address override 10.1.1 -> 10.3.1

studio/frontend/package.json overrides, plus the regenerated lockfile entry.

10.3.1 is the first version that clears every open advisory:

Advisory Severity Affects Fixed in
GHSA-mwp4-54f8-5fhr high <= 10.3.0 10.3.1
GHSA-4xrf-jv44-h6hh moderate >= 10.1.1, <= 10.2.1 10.2.2
GHSA-22jq-vg5j-6vgg moderate >= 10.1.1, <= 10.2.0 10.2.1
GHSA-v2v4-37r5-5v8g moderate <= 10.1.0 10.1.1

main currently sits at 10.1.1, which is exposed to the first three. The 10.2.0 that #5374 proposed would have cleared neither of the top two. npm audit now reports ip-address clean.

The express-rate-limit 8.5.0 -> 8.5.1 bump from #5374 is dropped as unnecessary: the override fixes the resolved ip-address version regardless of which express-rate-limit is installed.

What is deliberately not carried over

#5374 also changed the datasets constraint in two extras:

- "datasets>=3.4.1,!=4.0.*,!=4.1.0,<4.4.0"
+ "datasets>=4.0,<4.6"

That range is dead on arrival. patch_datasets() in unsloth/import_fixes.py raises NotImplementedError for datasets 4.4.0 through 4.5.0, and it is called unconditionally at import from unsloth/_gpu_init.py. The releases on PyPI in [4.0, 4.6) are 4.0.0, 4.1.0, 4.1.1, 4.2.0, 4.3.0, 4.4.0, 4.4.1, 4.4.2, 4.5.0, so a resolver picks 4.5.0, which is inside the raise band:

datasets==4.0.0   -> OK
datasets==4.1.0   -> OK
datasets==4.3.0   -> OK
datasets==4.4.0   -> RAISES NotImplementedError
datasets==4.4.1   -> RAISES NotImplementedError
datasets==4.4.2   -> RAISES NotImplementedError
datasets==4.5.0   -> RAISES NotImplementedError

The range would also re-admit 4.0.* and 4.1.0, excluded since #3392, with no stated rationale. Nothing in PR CI installs the huggingfacenotorch extra, which is why #5374 stayed green.

If the ceiling should be raised, the correct shape already exists unmerged on trl-1x-datasets-caps: datasets>=3.4.1,!=4.0.*,!=4.1.0,!=4.4.*,!=4.5.0,<5.0.0. That belongs in its own PR, and it needs to update studio/backend/requirements/no-torch-runtime.txt in the same commit, since that file mirrors the extra by hand.

Test plan

  • python -m build succeeds with the new build pins; wheel ships the frontend bundle
  • npm ci reproduces the lockfile with no churn beyond the intended entry
  • npm run build passes
  • npm audit reports ip-address clean
  • scripts/lockfile_supply_chain_audit.py reports 0 findings across 3 npm + 1 cargo lockfiles
  • CI on this PR

Note for a follow-up

npm audit still reports 7 open advisories against hono 4.12.25, which needs >= 4.12.34. That is pre-existing on main and unrelated to this PR, so it is not bundled here.

… 10.3.1

Carries the only two dependency updates from the stale combine PR #5374 that
current main has not already moved past. Everything else in that PR (the action
SHA pins, oxc-parser, hono, tauri, rand, openssl, rustls-webpki) has since been
advanced further on main by later Dependabot runs, so merging it would move main
backwards.

setuptools 80.9.0 -> 82.0.1 and setuptools-scm 9.2.0 -> 9.2.2 in
[build-system] requires. Verified with a local `python -m build`: sdist and wheel
both build, and the wheel still ships studio/frontend/dist (703 assets including
index.html), which is the assertion wheel-smoke.yml makes and the one that
depends on setuptools-scm's sdist file finder.

ip-address override 10.1.1 -> 10.3.1. 10.3.1 is the first version that clears
all four open advisories: GHSA-mwp4-54f8-5fhr (high, affects <= 10.3.0),
GHSA-4xrf-jv44-h6hh (fixed 10.2.2), GHSA-22jq-vg5j-6vgg (fixed 10.2.1) and
GHSA-v2v4-37r5-5v8g (fixed 10.1.1). The 10.2.0 that #5374 proposed would have
cleared neither of the first two. `npm audit` now reports ip-address clean.

Deliberately NOT carried over from #5374: its pyproject change relaxing the
datasets pin to `datasets>=4.0,<4.6`. That range resolves to datasets 4.5.0,
and patch_datasets() in unsloth/import_fixes.py raises NotImplementedError for
4.4.0 through 4.5.0, so it would make a fresh install fail at import.

The express-rate-limit bump from #5374 is also dropped as unnecessary: the
ip-address override governs the resolved version regardless of which
express-rate-limit is installed.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 1, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-06T05:52:56.179388Z 656a6f3 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@danielhanchen

Copy link
Copy Markdown
Member Author

Confirmed main still sits at ip-address 10.1.1 in studio/frontend/package.json and at setuptools 80.9.0 in pyproject.toml, so both bumps still apply and the advisory coverage checks out. Will get this reviewed.

@oobabooga

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3d67b9a447

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread pyproject.toml
@@ -1,5 +1,5 @@
[build-system]
requires = ["setuptools==80.9.0", "setuptools-scm==9.2.0"]
requires = ["setuptools==82.0.1", "setuptools-scm==9.2.2"]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Retain a Python 3.9-compatible setuptools build pin

For Python 3.9, which the project still declares as supported on line 10, setuptools==82.0.1 cannot be resolved because that release requires Python 3.10 or newer. Consequently, source and Git installs that create an isolated PEP 517 build environment fail before building the package; keep the previous compatible pin behind a python_version < '3.10' marker (or raise the project's Python floor).

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

setuptools 82.0.1 declares requires-python = ">=3.9", so it resolves on 3.9. The 3.10 floor arrives in 83.0.0, one release later.

  • PyPI metadata for 82.0.1, both the wheel and the sdist: requires_python: ">=3.9". For 83.0.0 both read ">=3.10".
  • Upstream pyproject.toml at tag v82.0.1, line 29: requires-python = ">=3.9".
  • setuptools NEWS.rst lists "Require Python 3.10 or later" under v83.0.0, not under 82.x.

82.0.1 is in fact the highest setuptools that still honors this project's requires-python = ">=3.9,<3.15", which is why the pin stops there rather than at the current 84.0.0. Adding a python_version < '3.10' marker would pin an older setuptools on a Python version that 82.0.1 already supports.

Verified locally: python -m build on this branch produces a wheel whose metadata reads Generator: setuptools (82.0.1), so the isolated PEP 517 environment resolves the pin.

@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Sep 5, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

Reviewed commit: 3d67b9a447

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@oobabooga

Copy link
Copy Markdown
Member

Verified both bumps locally against the branch head.

setuptools 82.0.1 / setuptools-scm 9.2.2

python -m build succeeds and the resulting wheel's metadata reads Generator: setuptools (82.0.1), so the isolated PEP 517 environment does resolve the new pin. Every content assertion wheel-smoke.yml makes holds: studio/frontend/package-lock.json and studio/frontend/dist/index.html are both present (716 dist files), no node_modules, no bun.lock, and 0 test paths plus 0 IOC fixtures in the wheel and the sdist alike.

82.0.1 is a ceiling here, not an arbitrary stopping point. setuptools 83.0.0 raises its own requires-python to >=3.10, and this project declares >=3.9,<3.15, so 83.0.0 and the current 84.0.0 are both unusable until that floor moves.

One consequence worth recording so it does not get re-raised later: GHSA-h35f-9h28-mq5c (MANIFEST.in exclusion bypass on an NFC/NFD normalization collision) is first fixed in 83.0.0, so it stays open at 82.0.1 and cannot be closed without dropping Python 3.9. It is inert here regardless. The advisory only affects non-ASCII patterns, this repo has zero non-ASCII tracked filenames, and the empty test-path counts above show the prune and global-exclude rules in MANIFEST.in still bite.

ip-address 10.3.1

The lockfile integrity hash matches what the registry serves for 10.3.1 exactly. npm ci reproduces the lockfile with no churn and installs 10.3.1 at node_modules/ip-address, which is the only ip-address node across all three tracked lockfiles. npm audit no longer lists ip-address at all. The four advisories in the description match the GitHub advisory database on range, severity and first patched version.

On dropping the express-rate-limit bump, that reads right: express-rate-limit reaches the tree only as a transitive dependency of @modelcontextprotocol/sdk, and nothing under studio/frontend/src imports it, so the override is the entire runtime surface of this change.

scripts/lockfile_supply_chain_audit.py reports 0 findings across 3 npm and 1 cargo lockfile.

CI

86 passing, 0 failing. linux ubuntu2404-nonroot failed once on an archive.ubuntu.com hash sum mismatch while provisioning the bootstrap transport, which is a mirror sync race in a step that runs before this ref's tree is even fetched. It passed on re-run. Two macos-15 jobs are still queued on runner capacity.

@danielhanchen
danielhanchen merged commit 7a00795 into main Sep 6, 2026
94 checks passed
@danielhanchen
danielhanchen deleted the deps-live-subset-of-5374 branch September 6, 2026 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants