Repository navigation
Lower examples/tools requires-python to unblock Dependabot - #139
Open
stevewithey wants to merge 1 commit into
Open
stevewithey wants to merge 1 commit into
stevewithey wants to merge 1 commit into
Conversation
Dependabot's uv updater ignores .python-version: it picks the lowest Python satisfying the root requires-python (>=3.9 -> 3.10.22 on its image), runs `pyenv local 3.10.22`, then `uv lock`. The workspace member examples/tools required >=3.13, so every uv security update failed with "Python version incompatibility" (e.g. urllib3 2.8.0, Dependabot alert #28). The example uses no 3.11+ features, so lower its floor to >=3.10. The workspace lock now targets >=3.10, matching what Dependabot runs. Relocking only adds the 3.10 backports pytest needs (exceptiongroup, tomli) plus cp310-312 wheels; no pinned versions change. Verified locally by reproducing Dependabot's steps: with 3.10 pinned, `uv lock --upgrade-package urllib3==2.8.0` now succeeds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
stevewithey
marked this pull request as ready for review
November 13, 2026 15:44
stevewithey
enabled auto-merge (squash)
November 13, 2026 16:33
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Every Dependabot uv security update in this repo is failing, including urllib3 → 2.8.0 for alert #28 (high). The error is:
Dependabot's uv updater doesn't read our
.python-version(3.13). It takes the rootrequires-python(>=3.9) and picks the lowest Python it has installed, which is 3.10.22. It then runspyenv local 3.10.22anduv lock. Theexamples/toolsworkspace member requires>=3.13, so the lock can never resolve.uv python pincan't fix this because Dependabot overwrites the pin.What
examples/tools/pyproject.toml:requires-pythonchanges from>=3.13to>=3.10. The example uses no 3.11+ features.uv.lock: relocked. The lock now targets>=3.10, matching what Dependabot runs. The only additions are the 3.10 backports pytest needs (exceptiongroup,tomli) and the cp310–312 wheels. No pinned versions change.Verification
uv lock --upgrade-package urllib3==2.8.0. It now succeeds.ruff format --check,ruff checkandpytestall pass (28 tests).Once this merges, Dependabot should open the urllib3 PR itself.
Not in scope
tests/test_webhook.pyusesdatetime.UTC, which needs Python 3.11+. The test suite fails on 3.10 before and after this change. CI uses 3.12, so this isn't a blocker.>=3.9, butpytest>=9.0.3andrequests>=2.33.0already need 3.10+. Worth bumping the published floor to>=3.10separately.🤖 Generated with Claude Code