uv
32dc9bef - Respect tool upgrades in `uv tool install` (#4736)

Commit
1 year ago
Respect tool upgrades in `uv tool install` (#4736) ## Summary For now the semantics are such that if the requested requirements from the command line don't match the receipt (or if any `--reinstall` or `--upgrade` is requested), we proceed with an install, passing the `--reinstall` and `--upgrade` to the underlying Python environment. This may lead to some unintuitive behaviors, but it's simplest for now. For example: - `uv tool install black<24` followed by `uv tool install black --upgrade` will install the latest version of `black`, removing the `<24` constraint. - `uv tool install black --with black-plugin` followed by `uv tool install black` will remove `black-plugin`. Closes https://github.com/astral-sh/uv/issues/4659.
Author
Parents
Loading