diff --git a/pyproject.toml b/pyproject.toml index 140c63c9..ac2fd039 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -71,7 +71,7 @@ typing = [ "typing-extensions >= 3.7.4.3", ] uv = [ - "uv >= 0.1.15", + "uv >= 0.1.18", ] virtualenv = [ "virtualenv >= 20.0.35", diff --git a/src/build/env.py b/src/build/env.py index 1e7ff1f6..e583e682 100644 --- a/src/build/env.py +++ b/src/build/env.py @@ -297,8 +297,7 @@ def create(self, path: str) -> None: def install_requirements(self, requirements: Collection[str]) -> None: cmd = [self._uv_bin, 'pip'] if _ctx.verbosity > 1: - # uv doesn't support doubling up -v unlike pip. - cmd += ['-v'] + cmd += [f'-{"v" * min(2, _ctx.verbosity - 1)}'] run_subprocess([*cmd, 'install', *requirements], env={**os.environ, 'VIRTUAL_ENV': self._env_path}) @property diff --git a/tests/test_env.py b/tests/test_env.py index 7b1fa2ea..035457fa 100644 --- a/tests/test_env.py +++ b/tests/test_env.py @@ -221,7 +221,7 @@ def test_uv_impl_install_cmd_well_formed( assert len(install_call.args) == 1 assert install_call.args[0][1:] == [ 'pip', - *(['-v'] if verbosity > 1 else []), + *(['-vv' if verbosity > 2 else '-v'] if verbosity > 1 else []), 'install', 'some', 'requirements',