python-wheel-build / fromager

Build your own wheels
https://fromager.readthedocs.io/en/latest/
Apache License 2.0
7 stars 11 forks source link

Add labels for custom metadata #412

Open tiran opened 1 month ago

tiran commented 1 month ago

Should we add a label system like Kubernetes's labels to Fromager? Labels could be used to provide metadata in package .yaml files. Users can add labels to packages and plugins can act upon the presence and value of a label.

Questions:

Use case:

Declare that a package contains GPU specific code

# torch.yaml`
labels:
    gpu_specific: true
dhellmann commented 1 month ago

I'm not clear how the example you give is useful. What plugin code would look at labels and not already know that a package has GPU-specific code?