Repository navigation
Conversation
filelock 4.2.1 and later need Python 3.11, so the lockfile could not take the patched release while the SDK still supported 3.10. Python 3.10 reached end of life in October 2026. Raise requires-python to 3.11, drop the 3.10 classifier, correct the contributor setup instructions, and upgrade filelock to 4.3.3. The lock also drops exceptiongroup, which only 3.10 needed. filelock comes in through the dev extra alone, so installed packages are unaffected. Bump the version to 3.7.0, since dropping a Python version is a minor release.
|
bugbot run |
PR SummaryMedium Risk Overview The dev lockfile upgrades Reviewed by Cursor Bugbot for commit 3cae5b6. Configure here. |
>=3.11 and patch filelock in the dev lockfile
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 3cae5b6. Configure here.
The dev extra installed hatch only so contributors could run `hatch build`. hatch depends on virtualenv, which brings in filelock and python-discovery, so every filelock advisory landed on this lockfile even though the SDK never imports it. CI installs its own hatch through the setup-hatch action and does not use the extra. `python -m build` calls the same hatchling backend declared in build-system and isolates the build with the standard library venv module, so the dev extra no longer needs virtualenv. hatchling leaves the extra too, since build tools fetch it from build-system.requires.
>=3.11 and patch filelock in the dev lockfile|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Raises the SDK's Python floor to 3.11 and replaces
hatchwithbuildin thedevextra. Together these clear all 40 open Dependabot alerts, which are all forfilelock, and removefilelockfrom the lockfile entirely, so futurefilelockadvisories no longer apply to this repository.Why
filelockreachesuv.lockonly throughhatch, by way ofvirtualenvandpython-discovery, in thedevextra. The SDK never imports it, so installs ofsocketdevwere never exposed. Dependabot still could not offer a fix:filelock4.2.1 and later need Python 3.11, so with a 3.10 floor the newest resolvable version was 3.32.7.filelockis also receiving advisories in batches (40 since October 23), so keeping it in the lockfile means repeated alert churn for a tool contributors seldom use.Changes
requires-pythonmoves from>= 3.10to>= 3.11, and the 3.10 classifier is removed. Python 3.10 reached end of life in October 2026. Installs on 3.10 keep resolving to 3.6.x.devextra replaceshatchandhatchlingwithbuild.python -m buildcalls the samehatchlingbackend from[build-system]and isolates the build with the standard libraryvenvmodule rather thanvirtualenv.CONTRIBUTING.mdusespython -m buildand asks for Python 3.11 or newer, replacing an outdated 3.9 reference.uv.lockdropsfilelock,virtualenv,python-discovery,exceptiongroup, and the rest ofhatch's tree, going from 68 to 43 packages.CI is unchanged: the
setup-hatchaction installs its own pinnedhatchwithpipand does not use thedevextra.Notes for review
main, not stacked on ci: Enforce Ruff lint and formatting #129. ci: Enforce Ruff lint and formatting #129 addspre-committo thedevextra, andpre-commitalso depends onvirtualenv, which would bringfilelockback. ci: Enforce Ruff lint and formatting #129 should installpre-commitas a standalone tool (uv tool install pre-commit, oruvx pre-commit install) rather than through the extra. Expect small conflicts with ci: Enforce Ruff lint and formatting #129 inpyproject.toml,uv.lockandCHANGELOG.md, whichever merges second.requires-python.socketdevexactly and already requires 3.11, so it can move to 3.7.0 without changing its own floor.Validation
python -m buildproduces the wheel and sdist, andtwine checkpasses on both.uv lock --checkpasses.main(existing findings that ci: Enforce Ruff lint and formatting #129 fixes). This change adds none.Refs CE-503