-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve python requirements management and create an example venv (#186)
Make use of [uv](https://docs.astral.sh/uv/) to manage python dependencies. Accomplish this by replacing `load("@rules_python//python:pip.bzl", "compile_pip_requirements")` with `load("@rules_uv//uv:pip.bzl", "pip_compile")` This results in `bazel run //:requirements.update && bazel run //:gazelle_python_manifest.update` having significantly improved performance | branch | fresh | repeated | | --- | --- | --- | | master | 42s | 18s | | better_pip_rules | 24s | 2s | So, 9x performance improvement when doing a no-op, and 2x improvement for the "fresh" case. Not exactly the 10-100x gains claimed by uv. But this is a bit of a different case 🤷 Also - Update aspect_rules_py
- Loading branch information
1 parent
a31ed90
commit c853e45
Showing
6 changed files
with
789 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.