Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 9 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,18 @@ clean:
rm -rf build/ dist/ *.egg-info .pytest_cache .ruff_cache
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true

# Create virtual environment (requires Python 3.10+)
# Create/sync virtual environment (requires uv)
venv:
@if [ ! -d .venv ]; then \
echo "Creating virtual environment..."; \
PYTHON=$$(command -v python3.12 || command -v python3.11 || command -v python3.10 || echo "python3"); \
$$PYTHON -m venv .venv && .venv/bin/pip install --upgrade pip; \
fi
uv sync

# Install with dev dependencies (for development)
dev: venv
.venv/bin/pip install -e ".[dev]"
dev:
uv sync --extra dev

# Full installation: venv + deps + service + CLI + MCP
install: venv
install:
@echo "Installing dependencies..."
.venv/bin/pip install -e .
uv sync
@echo ""
@if [ "$$(uname)" = "Darwin" ]; then \
echo "Installing LaunchAgent (macOS)..."; \
Expand Down Expand Up @@ -92,10 +88,10 @@ restart:
fi; \
fi

# Reinstall: pip install + restart service (picks up code changes)
reinstall: venv
# Reinstall: uv sync + restart service (picks up code changes)
reinstall:
@echo "Reinstalling package..."
.venv/bin/pip install -e .
uv sync
@$(MAKE) restart

# Uninstall: service + CLI + MCP config
Expand Down