docs(uv): update README and lock docs for uv.lock support (#4408) The documentation still described `uv.lock` support as planned, even though `pip.parse` and `lock` now support `uv.lock` files directly under Bzlmod. Update the documentation to reflect current `uv.lock` support and note that `uv.lock` already includes cross-platform distribution URLs and hashes, avoiding PyPI Simple API queries and storing hashes in `MODULE.bazel.lock`. Work towards #4278
diff --git a/README.md b/README.md index d0facc7..c736947 100644 --- a/README.md +++ b/README.md
@@ -35,9 +35,11 @@ don't support directly. Any additional information that we need will be retrieved from the SimpleAPI during the `bzlmod` extension evaluation phase. Then it will be written to the `MODULE.bazel.lock` file for future reuse. We - have plans to support `uv.lock` file directly. `uv` is recommended for - generating a fully locked `requirements.txt` file and we do provide a rule for - it. + also support `uv.lock` files directly under `bzlmod`, which already contain + cross-platform distribution URLs and hashes and do not require SimpleAPI + queries or storing distribution hashes in `MODULE.bazel.lock`. `uv` is + recommended for generating `uv.lock` or a fully locked `requirements.txt` + file, and we provide a rule for it. * The `py_binary`, `py_test` rules should scale to large monorepos and we work hard to minimize the work done during analysis and build phase. What is more, the space requirements for should be minimal, so we strive to use symlinks
diff --git a/docs/pypi/lock.md b/docs/pypi/lock.md index 51b5b12..ae2a598 100644 --- a/docs/pypi/lock.md +++ b/docs/pypi/lock.md
@@ -238,6 +238,9 @@ The {obj}`lock` rule also supports generating cross-platform `uv.lock` files using `uv lock` when {arg}`lock.out` ends with `.lock` (such as `uv.lock`). +Because `uv.lock` already records distribution URLs and hashes across +platforms, {obj}`pip.parse` does not need to query the PyPI Simple API or store +distribution hashes in `MODULE.bazel.lock`. ### Example usage