feat: uv lock rule instead of genrule by aignas · Pull Request #2657 · bazel-contrib/rules_python

aignas

@aignas aignas changed the title uv lock rule instead of genrule feat: uv lock rule instead of genrule

Mar 13, 2025

@aignas aignas marked this pull request as ready for review

March 13, 2025 15:23

rickeylev

rickeylev

rickeylev

rickeylev

@aignas

This change implements the uv pip compile as a rule.

In order to also make things easier to debug we provide
a runnable rule that has the same arguments and updates
the source tree output file automatically.

The main design is to have a regular lock rule and then
it returns a custom provider that has all of the recipe
ingredients to construct an executable rule. The execution
depends on having bash or powershell, however the
powershell script is not yet complete and requires some
help from the community.

Work towards bazel-contrib#1975.

Address all of the comments

@aignas

aignas

@aignas

aignas

aignas

rickeylev

@aignas aignas deleted the uv-lock-rule-instead-of-genrule branch

March 27, 2025 22:34