mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-12-01 08:46:31 +08:00
Two changes, verified with local builds: - Drop UV_COMPILE_BYTECODE=1: shipped .pyc files were 51MB. The venv is root-owned and the app runs long-lived as 'ab', so bytecode only saved a few seconds of import time once per container start. This also matches the boot_overlay uv-sync path, which never compiled bytecode. - mcp[cli] -> mcp: the app only imports mcp.server; the cli extra pulled typer/rich/pygments/markdown-it (~14MB) for an unused console script. python-dotenv, the extra's other member, is already a direct dep. Compressed pull size drops 64.2MB -> 48.8MB. Image verified: packages absent, no __pycache__, 'import main' succeeds; pytest and mypy green. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XEnmRvBJL93fAURbRf1koK
2.1 KiB
2.1 KiB