**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>
25 lines
493 B
Desktop File
25 lines
493 B
Desktop File
[Unit]
|
|
Description=Wedding Phone - Vintage Rotary Phone Audio System
|
|
After=network.target sound.target
|
|
Wants=network.target sound.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=pi
|
|
Group=pi
|
|
WorkingDirectory=/home/pi/wedding-phone
|
|
Environment="PATH=/home/pi/.local/bin:/usr/local/bin:/usr/bin:/bin"
|
|
ExecStart=/usr/bin/make start
|
|
Restart=always
|
|
RestartSec=10
|
|
|
|
# Security hardening
|
|
NoNewPrivileges=true
|
|
PrivateTmp=true
|
|
|
|
# Allow GPIO access
|
|
SupplementaryGroups=gpio audio
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|