From e1665667b662f910aea11c6597dac23ca50f67e6 Mon Sep 17 00:00:00 2001 From: Evan Senter Date: Sun, 25 Jan 2026 00:29:14 +0000 Subject: [PATCH 1/2] build: Switch Makefile from pip to uv uv-managed venvs don't include pip by default, causing `make install` to fail. Updated venv, dev, install, and reinstall targets to use uv commands instead. Co-Authored-By: Claude Opus 4.5 --- Makefile | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index 8febeb8..15ee043 100644 --- a/Makefile +++ b/Makefile @@ -20,22 +20,21 @@ 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 virtual environment and sync dependencies (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; \ + uv sync; \ fi # 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)..."; \ @@ -92,10 +91,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 From 1e1a82169691e3aeaf3d616d62dce9e8098fa1af Mon Sep 17 00:00:00 2001 From: Evan Senter Date: Sun, 25 Jan 2026 00:38:26 +0000 Subject: [PATCH 2/2] build: Simplify venv target uv sync is idempotent - no need for directory check. Co-Authored-By: Claude Opus 4.5 --- Makefile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 15ee043..175da9d 100644 --- a/Makefile +++ b/Makefile @@ -20,12 +20,9 @@ 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 and sync dependencies (requires uv) +# Create/sync virtual environment (requires uv) venv: - @if [ ! -d .venv ]; then \ - echo "Creating virtual environment..."; \ - uv sync; \ - fi + uv sync # Install with dev dependencies (for development) dev: