mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-08-06 11:18:06 +00:00
Removed from requirements.txt: python-socketio, python-engineio, websockets, websocket-client — zero imports anywhere in this repo, and the one store plugin that needs Socket.IO (ledmatrix-music) declares it in its own requirements.txt, which the plugin store installs. Removed the same quartet plus timezonefinder, geopy, google-auth-oauthlib, google-auth-httplib2, google-api-python-client, unidecode, icalevents, python-dateutil, flask-wtf and the werkzeug pin from web_interface/requirements.txt — all leftovers from the deleted built-in weather/calendar/music displays (flask-wtf was doubly dead: app.py explicitly disables CSRF and sets csrf=None). scripts/ install_dependencies_apt.py, which mirrors these lists for the first-time installer, drops the same packages. Added: urllib3 (imported directly in four core modules), jinja2 and markupsafe (imported directly in pages_v3.py) — previously reachable only as transitives. mypy moves from runtime requirements to requirements-test.txt. Verified in a fresh venv: all four requirements files co-install, pip check is clean, the full CI-enrolled suite (907 tests) and a Flask boot smoke pass with the trimmed dependency set. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SXb4mKcAkVaxkeTb3YnAdr
43 lines
1.4 KiB
Plaintext
43 lines
1.4 KiB
Plaintext
# LEDMatrix Web Interface Dependencies
|
|
# Compatible with Python 3.10, 3.11, 3.12, and 3.13
|
|
# Tested on Raspbian OS 12 (Bookworm) and 13 (Trixie)
|
|
|
|
# Web framework
|
|
flask>=3.1.3,<4.0.0
|
|
flask-limiter>=3.5.0,<4.0.0 # Rate limiting (prevent accidental abuse)
|
|
flask-compress>=1.14 # gzip/brotli response compression (big win for the large JS/HTML over WiFi)
|
|
jinja2>=3.1.0,<4.0.0 # Flask transitive, but imported directly (TemplateNotFound)
|
|
markupsafe>=2.1.0,<4.0.0 # Flask transitive, but imported directly (escape)
|
|
|
|
# WebSocket support: intentionally NOT declared here. The web interface
|
|
# uses Server-Sent Events, and plugins that need Socket.IO (e.g.
|
|
# ledmatrix-music) declare it in their own requirements.txt, which the
|
|
# plugin store installs.
|
|
|
|
# Image processing
|
|
Pillow>=12.2.0,<13.0.0
|
|
|
|
# System monitoring
|
|
psutil>=6.0.0,<7.0.0
|
|
|
|
# Font rendering
|
|
freetype-py>=2.5.1,<3.0.0
|
|
|
|
# Numerical operations
|
|
# NumPy 1.24+ required for Python 3.12+ compatibility (compatible with 2.x)
|
|
numpy>=1.24.0
|
|
|
|
# HTTP requests
|
|
requests>=2.33.0,<3.0.0
|
|
|
|
# Timezone handling (must match main requirements)
|
|
pytz>=2024.2,<2025.0
|
|
|
|
# Spotify integration (must match main requirements)
|
|
spotipy>=2.25.2,<3.0.0
|
|
|
|
# Plugin-era note: timezonefinder, geopy, the google-api client stack,
|
|
# unidecode, icalevents and python-dateutil used to live here for the
|
|
# built-in weather/calendar/music displays. Those are store plugins now
|
|
# and declare their own dependencies, which the plugin store installs.
|