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.
This commit is contained in:
Charlie Marsh 2025-07-08 16:13:02 -04:00 committed by GitHub
parent 7e48292fac
commit 5e2dc5a9aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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