Repository navigation
deps: bump setuptools build pins and raise the ip-address override to 10.3.1 - #10138
Conversation
… 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.
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. |
|
Confirmed main still sits at |
|
@codex review |
There was a problem hiding this comment.
💡 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".
| @@ -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"] | |||
There was a problem hiding this comment.
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 👍 / 👎.
There was a problem hiding this comment.
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.tomlat tagv82.0.1, line 29:requires-python = ">=3.9". - setuptools
NEWS.rstlists "Require Python 3.10 or later" underv83.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.
|
Codex Review: Didn't find any major issues. What shall we delve into next? Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
|
Verified both bumps locally against the branch head. setuptools 82.0.1 / setuptools-scm 9.2.2
82.0.1 is a ceiling here, not an arbitrary stopping point. setuptools 83.0.0 raises its own One consequence worth recording so it does not get re-raised later: GHSA-h35f-9h28-mq5c ( ip-address 10.3.1The lockfile integrity hash matches what the registry serves for 10.3.1 exactly. On dropping the
CI86 passing, 0 failing. |
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
mainbackwards. It also carries one change that breaks a fresh install outright.This PR carries only the two items from #5374 that
mainhas not already moved past.What changed
setuptools80.9.0 -> 82.0.1,setuptools-scm9.2.0 -> 9.2.2pyproject.toml[build-system] requires. Verified locally withpython -m build:studio/frontend/dist(703 assets, includingindex.html) andstudio/frontend/package-lock.jsonThat last check matters because
setuptools-scmregisters thesetuptools.file_findersentry point that governs sdist file discovery, andpython -m buildbuilds the wheel from the sdist. It is exactly the assertionwheel-smoke.ymlmakes, andwheel-smoke.ymltriggers onpyproject.toml, so this bump gets real CI coverage here.ip-addressoverride 10.1.1 -> 10.3.1studio/frontend/package.jsonoverrides, plus the regenerated lockfile entry.10.3.1 is the first version that clears every open advisory:
maincurrently 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 auditnow reportsip-addressclean.The
express-rate-limit8.5.0 -> 8.5.1 bump from #5374 is dropped as unnecessary: the override fixes the resolvedip-addressversion regardless of whichexpress-rate-limitis installed.What is deliberately not carried over
#5374 also changed the
datasetsconstraint in two extras:That range is dead on arrival.
patch_datasets()inunsloth/import_fixes.pyraisesNotImplementedErrorfor datasets 4.4.0 through 4.5.0, and it is called unconditionally at import fromunsloth/_gpu_init.py. The releases on PyPI in[4.0, 4.6)are4.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:The range would also re-admit
4.0.*and4.1.0, excluded since #3392, with no stated rationale. Nothing in PR CI installs thehuggingfacenotorchextra, 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 updatestudio/backend/requirements/no-torch-runtime.txtin the same commit, since that file mirrors the extra by hand.Test plan
python -m buildsucceeds with the new build pins; wheel ships the frontend bundlenpm cireproduces the lockfile with no churn beyond the intended entrynpm run buildpassesnpm auditreportsip-addresscleanscripts/lockfile_supply_chain_audit.pyreports 0 findings across 3 npm + 1 cargo lockfilesNote for a follow-up
npm auditstill reports 7 open advisories againsthono4.12.25, which needs >= 4.12.34. That is pre-existing onmainand unrelated to this PR, so it is not bundled here.