Fix resource files not being installed with pip/uv#93
Open
Conversation
570dcd6 to
7548ad5
Compare
## Problem When installing via `pip install` or `uv add`, the resources folder was not being installed to site-packages. The YAML files were only included in the source tarball but not in the wheel distribution. ## Solution - Moved resources/ into lightspeed_stack_providers/ package - Added __init__.py files to make resources a proper Python package - Updated package-data configuration with explicit file listing (no wildcards) - Updated MANIFEST.in to reflect new location - Updated run.yaml and docker-compose.yml paths ## Security This approach is defensive: - Explicitly lists only the 6 required YAML files - No wildcards that could accidentally include sensitive files - Standard Python package structure using importlib.resources ## Testing Verified that: - All 6 YAML files are in the wheel - Files install correctly to site-packages - No unintended files (run.yaml, .env, etc.) are included Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
7548ad5 to
d80ad1b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR fixes a packaging issue where resource YAML files were not installed when using
pip installoruv add. The files were only in the source tarball, not the wheel distribution.Changes:
Type of change
Tools used to create PR
Related Tickets & Documents
Checklist before requesting a review
Testing
python3 -m zipfile -l dist/*.whl | grep yaml