Adds uv step (#890)
* pyenv: fixes #849 * feat: adds `uv` python manager step * moved new uv step from unix to generic --------- Co-authored-by: Lucas Parzianello <lucaspar@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
e91c00c9c0
commit
1b534800a9
@@ -1024,6 +1024,26 @@ pub fn run_poetry(ctx: &ExecutionContext) -> Result<()> {
|
||||
ctx.run_type().execute(poetry).args(["self", "update"]).status_checked()
|
||||
}
|
||||
|
||||
pub fn run_uv(ctx: &ExecutionContext) -> Result<()> {
|
||||
let uv_exec = require("uv")?;
|
||||
print_separator("uv");
|
||||
|
||||
ctx.run_type()
|
||||
.execute(&uv_exec)
|
||||
.args(["self", "update"])
|
||||
.status_checked()
|
||||
.ok();
|
||||
|
||||
// ignoring self-update errors, because they are likely due to uv's
|
||||
// installation being managed by another package manager, in which
|
||||
// case another step will handle the update.
|
||||
|
||||
ctx.run_type()
|
||||
.execute(&uv_exec)
|
||||
.args(["tool", "upgrade", "--all"])
|
||||
.status_checked()
|
||||
}
|
||||
|
||||
/// Involve `zvm upgrade` to update ZVM
|
||||
pub fn run_zvm(ctx: &ExecutionContext) -> Result<()> {
|
||||
let zvm = require("zvm")?;
|
||||
|
||||
Reference in New Issue
Block a user