Skip to content

Commit 3589528

Browse files
JacobCoffeeclaude
andauthored
refactor: migrate all packages to uv build backend (#108)
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 85dd63c commit 3589528

File tree

3 files changed

+8
-17
lines changed

3 files changed

+8
-17
lines changed

packages/byte-common/pyproject.toml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,5 @@ readme = "README.md"
1818
license = { text = "MIT" }
1919

2020
[build-system]
21-
requires = ["hatchling"]
22-
build-backend = "hatchling.build"
23-
24-
[tool.hatch.metadata]
25-
allow-direct-references = true
21+
requires = ["uv_build>=0.9.11,<0.10.0"]
22+
build-backend = "uv_build"

pyproject.toml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,11 @@ run-web = "byte_bot.cli:run_web"
6262
run-all = "byte_bot.cli:run_all"
6363

6464
[build-system]
65-
requires = ["hatchling", "nodeenv"]
66-
build-backend = "hatchling.build"
65+
requires = ["uv_build>=0.9.11,<0.10.0"]
66+
build-backend = "uv_build"
6767

68-
[tool.hatch.metadata]
69-
allow-direct-references = true
70-
71-
[tool.hatch.build.targets.wheel]
72-
packages = ["byte_bot/"]
68+
[tool.uv.build-backend]
69+
module-root = "" # Flat layout: byte_bot/ at root, not src/byte_bot/
7370

7471
[tool.uv.workspace]
7572
members = [

services/api/pyproject.toml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,8 @@ requires-python = ">=3.12,<4.0"
2222
license = { text = "MIT" }
2323

2424
[build-system]
25-
requires = ["hatchling"]
26-
build-backend = "hatchling.build"
27-
28-
[tool.hatch.metadata]
29-
allow-direct-references = true
25+
requires = ["uv_build>=0.9.11,<0.10.0"]
26+
build-backend = "uv_build"
3027

3128
[tool.uv.sources]
3229
byte-common = { workspace = true }

0 commit comments

Comments
 (0)