Files
phase-memory/Makefile
tegwick d72f64d7a0 fix: make install uses uv tool install without requiring a venv
uv pip install needs a virtual environment. Use uv tool install for the
global CLI path and make sync for editable .venv development installs.
2026-07-03 01:34:57 +02:00

42 lines
1.3 KiB
Makefile

# phase-memory development and install targets
ROOT := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
.DEFAULT_GOAL := help
.PHONY: help sync install install-editable check test report-7d report
help:
@echo "phase-memory make targets"
@echo ""
@echo " make install # install phase-memory CLI (uv tool, no venv)"
@echo " make sync # create .venv and editable install (dev)"
@echo " make install-editable # alias for make sync"
@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"
sync:
uv venv --allow-existing
uv pip install -e "$(ROOT)"
install-editable: sync
install:
uv tool install . --force
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