feat: downgrade Python baseline to 3.13 for PaddleOCR compatibility
Tests / Test passed: 789

paddlepaddle has no Python 3.14 (cp314) wheel on PyPI, so host-agent
deployments on 3.14 can never install it, causing OCR to fail at
runtime with RuntimeError. Pin the workspace to Python 3.13 across
all pyproject.toml files, the Docker base image, and the Jenkins CI
image; regenerate uv.lock against 3.13.

Also fixes a pre-existing Python-2-style `except X, Y:` syntax error
(invalid in all Python 3.x) in runtime/task.py and
packages/cloud-platform/cloud/{sql_repository,internal_api/api}.py,
introduced in 22d37ca9 and unrelated to this change's scope, which
blocked the full test suite from collecting on any interpreter
version.

openspec change: downgrade-python-3-13-paddleocr
This commit is contained in:
2026-07-14 18:05:49 +08:00
parent ecb1dba9ff
commit 25ebc10a8a
16 changed files with 645 additions and 792 deletions
+1 -1
View File
@@ -286,7 +286,7 @@ class TaskRunner:
def _planner_accepts(self, name: str) -> bool:
try:
parameters = signature(self.planner.plan).parameters
except TypeError, ValueError:
except (TypeError, ValueError):
return True
return name in parameters or any(
parameter.kind is Parameter.VAR_KEYWORD for parameter in parameters.values()