Using `uv run` as a task runner
For those of us migrating over from Rye, one of its nice features is the built-in task runner using `rye run` and `[tool.rye.scripts]`. For example: ``` [tool.rye.scripts] hello = "echo Hello from Rye!" ``` ``` $ rye run hello Hello from Rye! ``` It could have some more features - here is a selection of feature requests from the community: * https://github.com/astral-sh/rye/issues/695 * https://github.com/astral-sh/rye/issues/652 * https://github.com/astral-sh/rye/issues/930 * https://github.com/astral-sh/rye/issues/1243 A lot of these requested features are things that other 3rd party tools currently offer. I thought it might be useful to highlight a few other tools here, in particular because they also integrate with the `pyproject.toml` ecosystem and can be used with uv today. * ### Poe the Poet https://github.com/nat-n/poethepoet ``` uv add --dev poethepoet ``` ``` [tool.poe.tasks] hello = "echo Hello from poe!" ``` ``` $ uv run poe hello Poe => echo Hello from 'poe!' Hello from poe! ``` * ### taskipy https://github.com/taskipy/taskipy ``` uv add --dev taskipy ``` ``` [tool.taskipy.tasks] hello = "echo Hello from taskipy!" ``` ``` $ uv run task hello Hello from taskipy! ``` Perhaps these can serve as some inspiration for a future `uv run` task runner and also in the meantime offer a solution for people coming over from Rye looking for a way to run tasks.
Posted by my1e5 on Aug 8, 2024, 11:00 AM
Tags
Related issues
- [Meta] Feedback on granular control over Copilot changes
- unexpected status 401 Unauthorized issue
- [MODEL] Measurable quality regression in Claude generation 5 (Fable 5 / Opus 5 / Sonnet 5): worse nonsense detection, ~2x verbosity, under-disclosed model fallb
- [CRITICAL] Subagent spawning and subagent pattern bugs trigger infinite recursion, infinite token usage, grossly inefficient token usage, and lost accumulated s
- Video stops playing after some minutes
- [MODEL] Claude verbose code comments by default — ignores instructions to stop.
Raise real-world problems, find people facing the same issue, and discuss solutions.2,000 issues0 comments
github (Software)
[Meta] Feedback on granular control over Copilot changes
unexpected status 401 Unauthorized issue
[MODEL] Measurable quality regression in Claude generation 5 (Fable 5 / Opus 5 / Sonnet 5): worse nonsense detection, ~2x verbosity, under-disclosed model fallb
[CRITICAL] Subagent spawning and subagent pattern bugs trigger infinite recursion, infinite token usage, grossly inefficient token usage, and lost accumulated s
Video stops playing after some minutes
[MODEL] Claude verbose code comments by default — ignores instructions to stop.
Scope Codex VS Code chats to the current workspace/project
Update on "Co-authored-by: Copilot" in commit messages
Using `uv run` as a task runner
For those of us migrating over from Rye, one of its nice features is the built-in task runner using `rye run` and `[tool.rye.scripts]`. For example: ``` [tool.rye.scripts] hello = "echo Hello from Rye!" ``` ``` $ rye run hello Hello from Rye! ``` It could have some more features - here is a selection of feature requests from the community: * https://github.com/astral-sh/rye/issues/695 * https://github.com/astral-sh/rye/issues/652 * https://github.com/astral-sh/rye/issues/930 * https://github.com/astral-sh/rye/issues/1243 A lot of these requested features are things that other 3rd party tools currently offer. I thought it might be useful to highlight a few other tools here, in particular because they also integrate with the `pyproject.toml` ecosystem and can be used with uv today. * ### Poe the Poet https://github.com/nat-n/poethepoet ``` uv add --dev poethepoet ``` ``` [tool.poe.tasks] hello = "echo Hello from poe!" ``` ``` $ uv run poe hello Poe => echo Hello from 'poe!' Hello from poe! ``` * ### taskipy https://github.com/taskipy/taskipy ``` uv add --dev taskipy ``` ``` [tool.taskipy.tasks] hello = "echo Hello from taskipy!" ``` ``` $ uv run task hello Hello from taskipy! ``` Perhaps these can serve as some inspiration for a future `uv run` task runner and also in the meantime offer a solution for people coming over from Rye looking for a way to run tasks.
Comments (0)
No comments yet. Start the discussion.