|
.PHONY: install dev run test test-unit test-integration clean build uninstall
|
|
|
|
install:
|
|
pip install -r requirements.txt
|
|
|
|
dev:
|
|
pip install -e .
|
|
|
|
run:
|
|
python -m rsearch
|
|
|
|
test: test-integration
|
|
|
|
test-unit:
|
|
pytest tests/ -v --ignore=tests/test_providers.py
|
|
|
|
test-integration:
|
|
pytest tests/test_providers.py -v
|
|
|
|
test-quick:
|
|
curl -s "http://localhost:8080/health" | python -m json.tool
|
|
curl -s "http://localhost:8080/search?query=python&count=3" | python -m json.tool
|
|
|
|
clean:
|
|
rm -rf __pycache__ *.egg-info dist build .eggs rsearch/__pycache__ tests/__pycache__ .pytest_cache
|
|
|
|
build:
|
|
python -m build
|
|
|
|
uninstall:
|
|
pip uninstall -y rsearch
|