Fix UV configuration and add Makefile

**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>
This commit is contained in:
2025-10-24 16:54:37 +07:00
parent 81731ce4a4
commit bdeeb879cd
4 changed files with 52 additions and 13 deletions

View File

@@ -141,17 +141,27 @@ This will test:
### 7. Run the System
#### Option A: Run Directly with UV (Recommended)
#### Option A: Using Make (Recommended)
```bash
# Run the wedding phone system
uv run start
make start
# Or run the audio test
uv run test
make test
```
#### Option B: Run with Python
#### Option B: Using UV Directly
```bash
# Run the wedding phone system
uv run python rotary_phone_web.py
# Or run the audio test
uv run python test_complete.py
```
#### Option C: Run with Python
```bash
python3 rotary_phone_web.py
@@ -336,6 +346,7 @@ wedding-phone/
├── configure_hifiberry.sh # HiFiBerry setup script
├── install_service.sh # Systemd service installer
├── wedding-phone.service # Systemd service file
├── Makefile # Make commands for easy running
├── config.example.json # Example configuration (copy to config.json)
├── pyproject.toml # UV/pip package configuration
├── AUDIO_FIX.md # Audio configuration guide