generated from coulomb/repo-seed
Add Makefile install and test targets for local development.
This commit is contained in:
27
Makefile
Normal file
27
Makefile
Normal 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
|
||||||
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user