惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

G
Google Developers Blog
博客园 - 司徒正美
Last Week in AI
Last Week in AI
Recent Announcements
Recent Announcements
Y
Y Combinator Blog
博客园 - 聂微东
M
MIT News - Artificial intelligence
博客园_首页
Jina AI
Jina AI
博客园 - 叶小钗
酷 壳 – CoolShell
酷 壳 – CoolShell
H
Hackread – Cybersecurity News, Data Breaches, AI and More
J
Java Code Geeks
F
Fortinet All Blogs
aimingoo的专栏
aimingoo的专栏
小众软件
小众软件
Vercel News
Vercel News
The Cloudflare Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
云风的 BLOG
云风的 BLOG
N
Netflix TechBlog - Medium
B
Blog
Google DeepMind News
Google DeepMind News
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

jdhao's digital space

Conversion between base64 and OpenCV or PIL Image 腾讯云对象存储博客图床开启 CDN 加速(不需要购买额外域名) Search and Replace in Multiple Files in Vim/Neovim Change Table Column Width in LaTeX Image or Table Side by Side in LaTeX LaTeX 并排显示图像或表格 Firenvim: Neovim inside Your Browser Content inside HTML tags missing in Latest Hugo? Creating Markdown Front Matter with Ultisnips Labelme JSON 标注格式转 voc XML 格式 Nifty Nvim Techniques That Make My Life Easier -- Series 6 macOS 下如何为视频制作字幕 Running Command Asynchronously inside Neovim Resolving Merge Conflict after Git Stash Pop Pylint: command not found? A Hands-on Experience with Neovim's Built-in LSP Support How to Convert PDF to Images with Imagemagick 互联网上常用缩略语集锦 File Backup in Neovim Converting PDF Pages to Images with Poppler Nifty Nvim Techniques That Make My Life Easier -- Series 5 Neovim Configuration for System-wide Use How to sort a list of tuple or list in Python -- lambda or itemgetter? Building A Vim Statusline from Scratch 人类第一颗原子弹爆炸始末 Distributed Training in PyTorch with Horovod Learning Expect Programming Essential Knowledge about SSH Nifty LaTeX Techniques -- Series 1 更改 Adsense 邮寄地址,重新寄送 PIN
Manage uv.lock file with Renovate
2026-05-14 · via jdhao's digital space

In our work, we are using renovate to update the dependency packages for Python projects. Previously when we are using good old pip and requirements.txt for package management, renovate works fine since it only needs to update the package version in requirements.txt. We switch to uv this year as our project management tool. Since uv uses pyproject.toml and uv.lock (lockfile) to ensure reproducible project setup, we have an issue that when renovate bot creates a PR for the package updates: it only changes pyproject.toml without updating uv.lock.

Of course, we can manually pull the PR and run uv lock and push changes, but this is annoying for every renovate bot PR.

Note that we are using Azure DevOps and self-hosted renovate running in Azure DevOps pipeline.

Let renovate manage the lockfile#

You can enable the lockfile maintenance support in renovate:

{
  $schema: "https://docs.renovatebot.com/renovate-schema.json",
  lockFileMaintenance: {
    enabled: true,
  }
}

Since we are using self-hosted renovate, we also have this in our config.js:

// https://docs.renovatebot.com/self-hosted-configuration/#binarysource
binarySource: 'install',

set up github token#

However, when the renovate is creating the PR, the uv.lock file is still not updated. In the log, we found some issues:

“artifactErrors”: [{“fileName”: “uv.lock”, “stderr”: “No tool releases found.”}] github.com token 401 unauthorized

As is suggested in this post, the github token needs to be set up correctly. Renovate needs the github token to get the latest release the tool (uv) to install and perform the lockfile update.

Install tools inside Docker#

Or we can also pre-install the tools inside the renovate Dockerfile:

FROM renovate/renovate:latest

# Install uv directly into the bot image
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/

use the full docker image#

To avoid installing the tools on the fly and make it just work. The renovate full image can also be used:

FROM renovate/renovate:full

References#