generated from coulomb/repo-seed
Add phase_memory.management for cross-store discovery and windowed activity reporting. Extend the phase-memory CLI with stores list and report commands, plus make report-7d for the default weekly operator view.
37 lines
1.2 KiB
Makefile
37 lines
1.2 KiB
Makefile
# phase-memory development and install targets
|
|
ROOT := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
|
|
|
|
.DEFAULT_GOAL := help
|
|
|
|
.PHONY: help install install-editable check test report-7d report
|
|
|
|
help:
|
|
@echo "phase-memory make targets"
|
|
@echo ""
|
|
@echo " make install # pip install this package (user/site)"
|
|
@echo " make install-editable # editable install for local development"
|
|
@echo " make check # verify import and print version"
|
|
@echo " make test # run pytest"
|
|
@echo " make report-7d # federated activity report (last 7 days)"
|
|
@echo " make report # federated report (REPORT_DAYS=7 default)"
|
|
@echo ""
|
|
@echo "For ops-warden integration, prefer: cd ../ops-warden && make install-all"
|
|
|
|
install-editable:
|
|
uv pip install -e "$(ROOT)"
|
|
|
|
install: install-editable
|
|
|
|
check:
|
|
@PYTHONPATH="$(ROOT)src" python3 -c "import phase_memory; print('phase-memory', phase_memory.__version__, 'ok')"
|
|
|
|
test:
|
|
PYTHONPATH="$(ROOT)src" python3 -m pytest
|
|
|
|
REPORT_DAYS ?= 7
|
|
|
|
report-7d:
|
|
PYTHONPATH="$(ROOT)src" python3 -m phase_memory.cli report --days 7 --format summary
|
|
|
|
report:
|
|
PYTHONPATH="$(ROOT)src" python3 -m phase_memory.cli report --days $(REPORT_DAYS) --format summary
|