From 1f8af84cc368dae06e241e078d22a39153addfeb Mon Sep 17 00:00:00 2001 From: Patrick Nilan Date: Sat, 7 Mar 2026 13:57:05 -0800 Subject: [PATCH] Add build-system to fix entry point installation Without a [build-system] table, uv treats the project as unpackaged and skips installing the patchwork CLI entry point. Add hatchling as the build backend so uv sync installs the command correctly. --- pyproject.toml | 4 ++++ uv.lock | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 24c9ec9..2de6908 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,6 +12,10 @@ dependencies = [ "pyyaml", ] +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + [project.scripts] patchwork = "patchwork.cli:main_cli" diff --git a/uv.lock b/uv.lock index 7dab9ba..5e9c6bc 100644 --- a/uv.lock +++ b/uv.lock @@ -1317,7 +1317,7 @@ wheels = [ [[package]] name = "patchwork" version = "0.1.0" -source = { virtual = "." } +source = { editable = "." } dependencies = [ { name = "pydantic-ai" }, { name = "python-dotenv" },