rules_python icon indicating copy to clipboard operation
rules_python copied to clipboard

Define wheel version via file/target

Open mgosk opened this issue 1 year ago • 1 comments

🚀 feature request

Relevant Rules

  • py_wheel

Description

I would like use wheel version generated by other target.

Describe the solution you'd like


my_version_generator(
    name = "version"
    ...
)

py_wheel(
    name = "foo",
    version_file = ":version",
    ...
)

Solution should be a bit similiar to https://github.com/vaticle/bazel-distribution/blob/ebb4a9b342ec442c427705ec6a7919cce4c35c6e/maven/rules.bzl#L258

Describe alternatives you've considered

  • Generating version before build and passing via variable in volatile status. Solution is inconvenient for multiple modules and is against bazel design.

mgosk avatar Mar 13 '24 14:03 mgosk

This issue has been automatically marked as stale because it has not had any activity for 180 days. It will be closed if no further activity occurs in 30 days. Collaborators can add an assignee to keep this open indefinitely. Thanks for your contributions to rules_python!

github-actions[bot] avatar Sep 09 '24 22:09 github-actions[bot]