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>
29 lines
609 B
Makefile
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 {} +
|