Commit 7548ad5
Fix resource files not being installed with pip/uv
## 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>1 parent b9602ce commit 7548ad5
19 files changed
Lines changed: 13 additions & 5 deletions
File tree
- lightspeed_stack_providers/resources
- external_providers
- inline
- agents
- safety
- remote
- agents
- tool_runtime
- vector_io
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
0 commit comments