Updating UV Build Backend

Published on 2025-10-14 by Andrew Graham-Yooll

On my hobby project bakesite, I recently updated the build backend to use new default uv_build instead of the previous default hatchling.

This is how it was done:

--- a/pyproject.toml
+++ b/pyproject.toml
@@ -31,8 +31,8 @@ dependencies = [
 bakesite = "bakesite:main"
 
 [build-system]
-requires = ["hatchling"]
-build-backend = "hatchling.build"
+requires = ["uv_build>=0.9.2,<0.10.0"]
+build-backend = "uv_build"

Like most things with uv, stuff works out-of-the-box.