71da162e1f
Container FastAPI separato (Dockerfile.vision, python:3.13-slim) che espone run_graph/engine_version del Task 2 via POST /run e GET /health, cosi' l'immagine del server principale non importa mai VisionSuite. engine_version() ora legge VISION_ENGINE_VERSION se impostata, altrimenti ricade su git rev-parse nel checkout di sviluppo, e non inventa mai un valore: senza nessuna delle due solleva un errore esplicito. Nel container il fallback a git non puo' funzionare (.git del submodule punta fuori dal build context), quindi Dockerfile.vision prende il commit come build arg e lo fissa in ambiente; i compose file lo passano da VISION_ENGINE_VERSION. Nessuna porta pubblicata e nessuna label Traefik sul servizio vision: e' raggiungibile solo dal server, su tmflow-net. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014BBnuACZSCJqXrMYC3LUMU
91 lines
2.5 KiB
TOML
91 lines
2.5 KiB
TOML
[project]
|
|
name = "tiemeasureflow"
|
|
version = "2.0.0"
|
|
description = "TieMeasureFlow by Tielogic — manual caliper measurement task management for industrial QA stations."
|
|
requires-python = ">=3.11"
|
|
authors = [
|
|
{ name = "Adriano Dal Pastro", email = "adrianodalpastro@tielogic.com" },
|
|
]
|
|
|
|
# Shared core deps used by both backend and the Flask frontend.
|
|
dependencies = [
|
|
"pydantic>=2.0.0",
|
|
"pydantic-settings>=2.0.0",
|
|
"python-dotenv>=1.0.0",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
|
|
# Backend (FastAPI + DB + reports).
|
|
server = [
|
|
"fastapi>=0.110.0",
|
|
"uvicorn[standard]>=0.30.0",
|
|
"sqlalchemy[asyncio]>=2.0.0",
|
|
"asyncmy>=0.2.0",
|
|
"alembic>=1.13.0",
|
|
"bcrypt>=4.0.0",
|
|
"pillow>=10.0.0",
|
|
"python-multipart>=0.0.6",
|
|
"jinja2>=3.1.0",
|
|
"plotly>=5.0.0",
|
|
"kaleido>=0.2.0",
|
|
"weasyprint>=62.0",
|
|
"pdfplumber>=0.10.0",
|
|
"httpx>=0.27.0",
|
|
]
|
|
|
|
# Frontend (Flask tablet UI).
|
|
client = [
|
|
"flask>=3.0.0",
|
|
"flask-babel>=4.0.0",
|
|
"flask-wtf>=1.2.0",
|
|
"requests>=2.31.0",
|
|
"urllib3>=2.0.0",
|
|
"gunicorn>=21.0.0",
|
|
]
|
|
|
|
# Dev / test (covers both server and client tests).
|
|
dev = [
|
|
"pytest>=8.0.0",
|
|
"pytest-asyncio>=0.23.0",
|
|
"httpx>=0.27.0",
|
|
"aiosqlite>=0.20.0",
|
|
"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 = [
|
|
"visionsuite; python_version>='3.13'",
|
|
"vs-task; python_version>='3.13'",
|
|
"vs-measure; python_version>='3.13'",
|
|
"vs-pm2d; python_version>='3.13'",
|
|
]
|
|
|
|
[project.scripts]
|
|
# Backend
|
|
server = "uvicorn:run" # placeholder, real CMD lives in Dockerfile
|
|
|
|
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
# Source layout will be src/backend/ and src/frontend/flask_app/ after the
|
|
# folder restructure (Phase 2 of the V2.0.0 plan).
|
|
packages = ["src/backend", "src/frontend"]
|
|
|
|
[tool.uv]
|
|
# Pin the resolver to the deps we declared; reproducible builds.
|
|
package = false
|
|
|
|
[tool.uv.sources]
|
|
visionsuite = { path = "vendor/visionsuite/packages/vs-core", editable = true }
|
|
vs-task = { path = "vendor/visionsuite/packages/vs-task", editable = true }
|
|
vs-measure = { path = "vendor/visionsuite/packages/vs-measure", editable = true }
|
|
vs-pm2d = { path = "vendor/visionsuite/packages/vs-pm2d", editable = true }
|
|
|
|
[tool.pytest.ini_options]
|
|
asyncio_mode = "auto"
|
|
testpaths = ["src/backend/tests", "src/frontend/flask_app/tests", "src/vision/tests", "src/vision_worker/tests"]
|