From 5e2dc5a9aa18aaa942f26513ca3b8ae4704eb018 Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Tue, 8 Jul 2025 16:13:02 -0400 Subject: [PATCH] Remove `uv pip sync` suggestion with `pyproject.toml` (#14510) ## Summary I think doing this would almost always be a mistake, since it won't install any transitive dependencies. Instead, I took the opportunity to mention the `pylock.toml` format. Closes https://github.com/astral-sh/uv/issues/14507#issuecomment-3050083116. --- docs/pip/compile.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/pip/compile.md b/docs/pip/compile.md index c25414270..07780ff45 100644 --- a/docs/pip/compile.md +++ b/docs/pip/compile.md @@ -127,10 +127,10 @@ To sync an environment with a `requirements.txt` file: $ uv pip sync requirements.txt ``` -To sync an environment with a `pyproject.toml` file: +To sync an environment with a [PEP 751](https://peps.python.org/pep-0751/) `pylock.toml` file: ```console -$ uv pip sync pyproject.toml +$ uv pip sync pylock.toml ``` ## Adding constraints