generated from coulomb/repo-seed
27 lines
824 B
Makefile
27 lines
824 B
Makefile
# phase-memory development and install targets
|
|
ROOT := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
|
|
|
|
.DEFAULT_GOAL := help
|
|
|
|
.PHONY: help install install-editable check test
|
|
|
|
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 ""
|
|
@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
|