diff --git a/README.rst b/README.rst index adbfb9a..f74889c 100644 --- a/README.rst +++ b/README.rst @@ -110,9 +110,9 @@ in a fresh virtualenv). .. note:: - ``pip-deepfreeze`` has experimental support for the `uv + ``pip-deepfreeze`` has experimental support for the `uv pip `_ installer. To use it, run ``pip-df sync - --installer=uv``. + --installer=uvpip``. When you add or remove dependencies of your project, run ``pip-df sync`` again to update your environment and ``requirements.txt``. @@ -355,7 +355,7 @@ pip-df sync dependencies of the project. If not specified, ask confirmation. - --installer [pip|uv] + --installer [pip|uvpip] --help Show this message and exit. @@ -396,7 +396,7 @@ Example: [tool.pip-deepfreeze.sync] extras = "test,doc" post_sync_commands = ["pip-preserve-requirements requirements*.txt"] - installer = "uv" + installer = "uvpip" Other tools ----------- diff --git a/news/144.removal b/news/144.removal new file mode 100644 index 0000000..868f40b --- /dev/null +++ b/news/144.removal @@ -0,0 +1,3 @@ +Change ``--installer=uv`` to ``--installer=uvpip``. This is a breaking change that +we do while this is young, to avoid possible confusion in the future with other ``uv`` +install mechanisms that are on their roadmap. diff --git a/src/pip_deepfreeze/pip.py b/src/pip_deepfreeze/pip.py index e918e78..a8e2950 100644 --- a/src/pip_deepfreeze/pip.py +++ b/src/pip_deepfreeze/pip.py @@ -54,7 +54,7 @@ class PipInspectReport(TypedDict, total=False): class Installer(str, Enum): pip = "pip" - uv = "uv" + uvpip = "uvpip" def _pip_install_cmd_and_env(python: str) -> Tuple[List[str], Dict[str, str]]: @@ -74,7 +74,7 @@ def _install_cmd_and_env( ) -> Tuple[List[str], Dict[str, str]]: if installer == Installer.pip: return _pip_install_cmd_and_env(python) - elif installer == Installer.uv: + elif installer == Installer.uvpip: if get_python_version_info(python) < (3, 7): log_error("The 'uv' installer requires Python 3.7 or later.") raise typer.Exit(1)