chore(deps): pin uv to 0.11.26 and enable 72-hour dependency cooldown#81
Open
toshke wants to merge 2 commits into
Open
chore(deps): pin uv to 0.11.26 and enable 72-hour dependency cooldown#81toshke wants to merge 2 commits into
toshke wants to merge 2 commits into
Conversation
- Pin uv from 'latest' to '0.11.26' in mise for reproducible installs - Add [tool.uv] exclude-newer = "3 days" to block packages published within the last 72 hours from entering the lockfile Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
uv records the 3-day cooldown as exclude-newer-span = "P3D" in the lock [options] block for reproducibility. Also syncs package version from pyproject.toml (0.4.2 -> 0.4.3, was stale in the prior lock). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
ee6480f to
5f822ac
Compare
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.
What
'latest'to'0.11.26'in.mise.toml[tool.uv] exclude-newer = "3 days"topyproject.tomlWhy pin uv?
uv = 'latest'means everymise installcan silently pull a different uv binary, making builds non-reproducible. Pinning to an exact version gives reproducible installs across CI and local environments. Runmise installafter merging to pull the pinned binary.Why
exclude-newer = "3 days"?uv's
exclude-newerresolver setting refuses to consider any package version published to PyPI within the last N days. Setting it to3 days(72 hours) means:This is a resolver-level control: it applies whenever
uv lockoruv addruns, with no runtime overhead.Opting a specific package out
If you ever need to pull a package released less than 72 hours ago, temporarily comment out or remove the setting for that resolution, then restore it.
Checklist
.mise.toml—uv = 'latest'→uv = "0.11.26"pyproject.toml—[tool.uv] exclude-newer = "3 days"addedmise installlocally after merging