theoremlp / rules_uv

Bazel rules for running uv
Apache License 2.0
32 stars 16 forks source link

Ability to select python version #97

Closed chrisirhc closed 2 months ago

chrisirhc commented 2 months ago

Coming from rules_python, I'm used to being able to specify python_version = "3.11" on pip_compile . I'm not sure how to do this with rules_uv . It seems to only pick the default toolchain's python version with no way to override it. I'm guessing to support overriding, it would need to support passing in a different interpreter or perhaps use a transition?