Files
desklock/gateway/Makefile
T
jpmschweitzerandClaude Fable 5 22f00fda0f
Test, Build and Push / test-gateway (push) Successful in 33s
Test, Build and Push / release (push) Skipped
Test, Build and Push / build-gateway (push) Skipped
Drop audioop: request 16 kHz directly via Speaches sample_rate extension
Settles the Python version question: floor >=3.11, no ceiling.
Container moves to python:3.13-slim, CI tests on 3.13. The embedded
Piper fallback resamples with numpy (already present via [speech]).
Verified with a live round trip at 16 kHz.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-14 18:13:58 +02:00

29 lines
609 B
Makefile

.PHONY: setup run test lint typecheck clean
# any Python >= 3.11 works; system python3 on tower-of-joy is 3.8, hence explicit
PYTHON ?= python3.12
setup:
$(PYTHON) -m venv .venv
.venv/bin/pip install -e ".[dev]"
setup-speech:
.venv/bin/pip install -e ".[dev,speech]"
run:
.venv/bin/uvicorn desklock_gateway.main:app --host 0.0.0.0 --port 8600 --reload
test:
.venv/bin/pytest
lint:
.venv/bin/ruff check src tests
.venv/bin/ruff format --check src tests
typecheck:
.venv/bin/mypy src
clean:
rm -rf .venv .pytest_cache .ruff_cache .mypy_cache
find . -type d -name __pycache__ -exec rm -rf {} +