pyproject.toml: ship yaml files#2
Conversation
Fixes: jetm#1 shipcheck's wheels are missing the license_categories.yaml file, so as a result users hit errors like the following when running `shipcheck check --build-dir .`: |FileNotFoundError: [Errno 2] No such file or directory: |'/home/tgamblin/.local/share/uv/tools/shipcheck/lib64/python3.14/site-packages/shipcheck/checks/license_categories.yaml' Modify pyproject.toml with explicit entries for the uv build backend so that it includes .yaml files in the output wheel. Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
5efb0aa to
2def878
Compare
|
This should also catch the Compare with a temporary venv I created: |
|
@jetm thoughts? |
|
@threexc Thank you for the PR. I have added it to my queue to address while preparing the v0.0.5 release. |
|
Thanks @threexc — confirmed the fix locally. The missing source-include glob explains why both license_categories.yaml and cra/requirements.yaml were absent from the v0.0.4 wheel; the new code-integrity work I'm landing also adds another YAML asset, so this glob covers all current and future .yaml resources in src/shipcheck/. Merging and shipping as v0.0.5 alongside a check-set merge that retires the secure-boot and image-signing checks you're seeing in your terminal output — they're now consolidated into a single code-integrity check covering UEFI Secure Boot, signed FIT, dm-verity, and IMA/EVM. |
Fixes: #1 shipcheck's wheels are missing the license_categories.yaml file, so as a result users hit errors like the following when running `shipcheck check --build-dir .`: |FileNotFoundError: [Errno 2] No such file or directory: |'/home/tgamblin/.local/share/uv/tools/shipcheck/lib64/python3.14/site-packages/shipcheck/checks/license_categories.yaml' Modify pyproject.toml with explicit entries for the uv build backend so that it includes .yaml files in the output wheel. Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
shipcheck's wheels are missing the license_categories.yaml file, so as a result users hit errors like the following when running
shipcheck check --build-dir .:|FileNotFoundError: [Errno 2] No such file or directory: |'/home/tgamblin/.local/share/uv/tools/shipcheck/lib64/python3.14/site-packages/shipcheck/checks/license_categories.yaml'
Modify pyproject.toml with explicit entries for the uv build backend so that it includes .yaml files in the output wheel.
With this change, I can see what I believe to be the expected output for my build environment (which is not set up to build a proper product, for the record):