Swapping uv Indexes Without Version Drift 0 ▲ brtkwr.com 178 days ago · Tech · hide · Fediverse post TL;DR: I needed to repoint a batch of uv projects at a new package registry without changing a single resolved version. uv lock --no-upgrade re-resolves anyway when the index changes, so I rewrote the URLs in pyproject.toml and uv.lock with sed and verified with uv lock --locked. Motivation Link to heading I was migrating Python projects at work to a new package registry. The packages had been copied across byte-identical, so the only thing that should change in each project was the URL. I’d promised reviewers config-only diffs: same packages, same versions, new host. Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town