Skip to content

Add build-system to fix CLI entry point#3

Merged
pnilan merged 1 commit intomainfrom
fix/add-build-system
Mar 7, 2026
Merged

Add build-system to fix CLI entry point#3
pnilan merged 1 commit intomainfrom
fix/add-build-system

Conversation

@pnilan
Copy link
Owner

@pnilan pnilan commented Mar 7, 2026

What

Fix the patchwork CLI command not being installed by uv sync. Without a [build-system] table in pyproject.toml, uv treats the project as unpackaged and skips entry point installation, causing uv run patchwork to fail with "No such file or directory".

How

  • pyproject.toml — Add [build-system] table with hatchling as the build backend. This tells uv to build and install the package (including the patchwork CLI entry point) into the virtual environment.
  • uv.lock — Updated automatically; source changes from virtual to editable.

Recommended Review Order

  1. pyproject.toml

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.
@pnilan pnilan merged commit fa792b7 into main Mar 7, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant