feat: Phase 1 repackage to src/spectrax - #10
Merged
Conversation
Make SpectraX a proper package without behavior changes: pyproject.toml at repo root, package rename videofeed→spectrax under src/, path helpers for config/models/TLS, lifespan instead of on_event, core vs [cv] extras so CI stays torch-free, and compiled lockfiles. Keep keychain service video-feed-mediamtx and surveillance console alias for compatibility.
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.
Summary
pyproject.toml(pip install -e .) with package layoutsrc/spectrax/videofeed→spectrax; console scriptsspectrax+ temporarysurveillancealiasspectrax.paths; move example config toconfig/spectrax.yml@app.on_event("shutdown")with a FastAPI lifespan context[cv]extras so CI stays torch-free; adduvlockfiles; drop dead.encallowlist andsys.pathhacksvideo-feed-mediamtxso Phase 0 secrets keep workingTest plan
pip install -e ".[web-test,dev]"(Python 3.11/3.12)pytest tests/test_api_characterization.py tests/test_auth.py tests/test_config_security.py tests/test_package_layout.py(35 passed locally)spectrax --help/surveillance --helpruff check --select E,F,Bon Phase 1 paths./scripts/surveillance.sh configafterpip install -e ".[cv]"andspectrax admin set-password