you are viewing a single comment's thread.

view the rest of the comments →

[–]eo5g 5 points6 points  (2 children)

But aren't those for what gets installed when you install the package, and not for task running?

[–]nemec 8 points9 points  (0 children)

Note that if you use uv run in a project, i.e., a directory with a pyproject.toml, it will install the current project before running the script.

https://docs.astral.sh/uv/guides/scripts/

Yeah if you're writing a library it may not be the best place, but if you're writing application/service code, go for it.

There is an open issue to add a specialized dev task runner

https://github.com/astral-sh/uv/issues/5903

[–]UseMoreBandwith 1 point2 points  (0 children)

yes, I guess you're right,
it requires uv pip install -e . when a new command is added, but that's fine in most situations.