rules_python icon indicating copy to clipboard operation
rules_python copied to clipboard

feat: Allow files in wheels to be installed to directories

Open Ahajha opened this issue 4 months ago • 1 comments

When specifying data_files in py_wheel, allow just the directory to be specified (with a trailing slash), in which case it will use the existing filename. This avoids duplicating (potentially platform-specific) names. Additionally, targets with multiple files can be installed as a group to a folder, with the same filename-preserving behavior.

Before, this would result in the file simply not being installed, so this only changes already-broken behavior.

PR Instructions/requirements

  • Update CHANGELOG.md as applicable
  • Update docs and tests, as applicable
  • Delete these instructions prior to sending the PR

Ahajha avatar Sep 03 '25 04:09 Ahajha

Sorry for the long pause while this sat here, been a busy few months but I got some time to come back to this. Still need to add a few tests + update docs, but the core functionality is ready.

Ahajha avatar Nov 19 '25 16:11 Ahajha