Add prefix to paths and remove explicit file list - #709
Conversation
PR Summary by QodoUse Hatch sources prefix + glob includes to avoid brittle wheel file lists
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
b3d4211 to
8ea2cb4
Compare
Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
The list of files in
ymir-commonwas out of date again. I don't think that full restructuring of the layout is warranted at this point, but we can at least make situation slightly less brittle.Hatch allows for rewriting of paths. This way we can pretend that our
pyproject.tomlfiles are actually two levels higher than they are. With this prefix in place, we can safely select files by a glob and do away with the list.https://hatch.pypa.io/latest/config/build/#rewriting-paths