You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
committed
feat(wheels): add configurable build tag hook for wheel filenames
Implement the accepted proposal from docs/proposals/wheel-build-tag-hook.md
(issue #1059, tracking issue #1181).
Add a `wheels.build_tag_hook` option in global settings that lets downstream
projects append environment-specific suffixes (OS, accelerator, torch ABI)
to wheel build tags via a user-defined callable. The hook receives ctx, req,
version, and wheel_tags and returns suffix segments joined with `_`.
- Add `WheelSettings` model with `build_tag_hook: ImportString` to settings
- Add `get_build_tag()` and `_validate_build_tag_segments()` to wheels.py
- Update `add_extra_metadata_to_wheels()`, bootstrapper cache checks, and
`_is_wheel_built()` to use computed build tags
- Minimal finder update to match suffixed build tag filenames
- Validate hook output: reject single strings, invalid chars, non-strings
- No behavior change when hook is not configured
Closes: #1181
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Justin Larkin <jlarkin@redhat.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: Justin Larkin <jlarkin@redhat.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: Justin Larkin <jlarkin@redhat.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: Justin Larkin <jlarkin@redhat.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: Justin Larkin <jlarkin@redhat.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
0 commit comments