**Issues Fixed:** - Removed [tool.uv.scripts] (not supported by UV) - Updated requires-python from >=3.7 to >=3.8 (Flask requirement) - Removed tool.uv.dev-dependencies (deprecated) **Makefile Added:** - make start - Run the wedding phone system - make test - Run audio tests - make install - Install dependencies - make clean - Clean temporary files - make help - Show available commands **Service Updated:** - Changed ExecStart from 'uv run start' to 'make start' - Uses Makefile for proper UV execution **Documentation Updated:** - Primary method now uses Make commands - Added UV direct commands as alternative - Updated file structure to include Makefile **Usage:** ```bash # Recommended make start # Alternative uv run python rotary_phone_web.py # Service uses make internally sudo systemctl start wedding-phone ``` 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
36 lines
962 B
Makefile
36 lines
962 B
Makefile
# Wedding Phone Makefile
|
|
# Simple commands to run the wedding phone system
|
|
|
|
.PHONY: start test install clean help
|
|
|
|
start:
|
|
@echo "Starting Wedding Phone System..."
|
|
uv run python rotary_phone_web.py
|
|
|
|
test:
|
|
@echo "Running audio tests..."
|
|
uv run python test_complete.py
|
|
|
|
install:
|
|
@echo "Installing dependencies..."
|
|
uv pip install -e .
|
|
|
|
clean:
|
|
@echo "Cleaning up..."
|
|
rm -rf __pycache__ .pytest_cache templates/
|
|
find . -type d -name "__pycache__" -exec rm -rf {} + 2>/dev/null || true
|
|
find . -type f -name "*.pyc" -delete
|
|
|
|
help:
|
|
@echo "Wedding Phone - Available Commands:"
|
|
@echo ""
|
|
@echo " make start - Start the wedding phone system"
|
|
@echo " make test - Run audio tests"
|
|
@echo " make install - Install dependencies"
|
|
@echo " make clean - Clean temporary files"
|
|
@echo " make help - Show this help message"
|
|
@echo ""
|
|
@echo "Or use UV directly:"
|
|
@echo " uv run python rotary_phone_web.py"
|
|
@echo " uv run python test_complete.py"
|