Add Makefile install and test targets for local development.

This commit is contained in:
2026-07-03 00:54:25 +02:00
parent 592577f7cd
commit 0320b112fd
2 changed files with 35 additions and 1 deletions

27
Makefile Normal file
View File

@@ -0,0 +1,27 @@
# 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

View File

@@ -30,7 +30,14 @@ Adjacent repositories own nearby but separate concerns:
## Quick Start ## Quick Start
```bash ```bash
python3 -m pytest make test
```
Install for local development or ops-warden integration:
```bash
make install-editable
# or from ops-warden: make install-all
``` ```
The default test suite uses only deterministic local fixtures. The default test suite uses only deterministic local fixtures.