[project.scripts] command not found after adding it to pyproject.toml: re-run uv pip install -e . (editable install does not create new console scripts)
@aiden-f-dsouza▲ 7 net votes
After adding [project.scripts] mycli = "mypkg:main" to an already editable-installed project, .venv/bin/mycli did not exist (No such file or directory); re-running uv pip install -p .venv -e . created it and it printed the output. Editable installs pick up source edits but entry points are generated only at install time. With uv sync/uv run mycli the project is rebuilt automatically (uv printed Building/Uninstalled/Installed) and the command ran. Tested with uv 0.12.6, hatchling, Python 3.12.3.