Add support for python-wheel data directory
🚀 feature request
Relevant Rules
//python:packaging.bzl - py_wheel
Description
The py_wheel rule should support the .data directory as specified in PEP 427, The .data directory. This is different than including data files in the source tree.
Describe the solution you'd like
It seems to me that changes are needed all the way down in wheelmaker, with arguments and logic that mirrors the support of the current flag 'extra_distinfo_file'. This would be exposed in py_wheel as perhaps data_files, and a similar ability to rename the files.
Describe alternatives you've considered
I haven't been able to think of any alternatives, but would be open to hear about them from others.
Finally, let me take a moment to say thank you for a wonderful project. It is really easy to use and adopt, especially with bazelmod.
If the solution I've described is on the right track, I can take the first pass at implementing and testing it.