fix(vision): dichiara le dipendenze del worker, pin numerico HTTP vs runner
Ruling R9: separa l'extra vision (runner: 4 pacchetti VisionSuite + numpy) da vision-worker (fastapi, uvicorn, pillow, python-multipart, sopra vision). Prima il worker risolveva solo perche' vs-pm2d le lista per conto suo; un domani lo stub di stazione dovra' incorporare il runner senza trascinarsi dietro un server web che non gli serve. Aggiorna Dockerfile.vision e README.md al nuovo extra; il test del worker ora pinna anche il valore numerico del diametro (non solo la chiave), agganciato alla stessa tolleranza del test in-process del runner. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014BBnuACZSCJqXrMYC3LUMU
This commit is contained in:
+19
-2
@@ -53,13 +53,30 @@ dev = [
|
||||
"coverage>=7.0.0",
|
||||
]
|
||||
|
||||
# Vision runner (VisionSuite submodule). vs-task/vs-measure/vs-pm2d require
|
||||
# Python >=3.13 upstream; marker keeps the base 3.11 resolution untouched.
|
||||
# Vision runner (VisionSuite submodule): what src/vision/runner.py needs to
|
||||
# execute a graph. vs-task/vs-measure/vs-pm2d require Python >=3.13 upstream;
|
||||
# marker keeps the base 3.11 resolution untouched. numpy is declared
|
||||
# explicitly - runner.py imports it directly, and it must not depend on
|
||||
# being pulled in as a side effect of vs-pm2d's own dependencies.
|
||||
vision = [
|
||||
"visionsuite; python_version>='3.13'",
|
||||
"vs-task; python_version>='3.13'",
|
||||
"vs-measure; python_version>='3.13'",
|
||||
"vs-pm2d; python_version>='3.13'",
|
||||
"numpy; python_version>='3.13'",
|
||||
]
|
||||
|
||||
# Vision worker (src/vision_worker/): the FastAPI shell around the runner,
|
||||
# on top of `vision`. Kept separate on purpose (Ruling R9) - VisionSuite's
|
||||
# whole structure exists so a consumer installs only what it needs, and a
|
||||
# later station agent embeds the same runner without being a web service.
|
||||
# It must not drag fastapi/uvicorn onto shop-floor PCs.
|
||||
vision-worker = [
|
||||
"tiemeasureflow[vision]",
|
||||
"fastapi>=0.110.0; python_version>='3.13'",
|
||||
"uvicorn[standard]>=0.30.0; python_version>='3.13'",
|
||||
"pillow>=10.0.0; python_version>='3.13'",
|
||||
"python-multipart>=0.0.6; python_version>='3.13'",
|
||||
]
|
||||
|
||||
[project.scripts]
|
||||
|
||||
Reference in New Issue
Block a user