Why uv rm Removes Source Declarations from pyproject.toml
Summary Removing a dependency with uv rm also strips the entry from the [tool.uv.sources] table, because uv treats that entry as part of the installed package definition. To keep the source declaration while un‑installing the package, you must manipulate the pyproject.toml manually (or with a script) rather than using uv rm. Root Cause uv rm … Read more