Upgrade configuration and Docker stack to v2.0.0

This commit is contained in:
2026-06-22 14:49:56 -04:00
parent 2f2a5e9b4a
commit 0d2ecbd218
19 changed files with 779 additions and 495 deletions
+59 -1
View File
@@ -4,6 +4,64 @@ version = "2.0.0"
description = "Backend FastAPI pour la gestion d'images et fonctionnalités AI — Imago"
requires-python = ">=3.12"
license = "MIT"
license-files = ["LICENSE"]
dependencies = [
# Web Framework
"fastapi==0.115.0",
"uvicorn[standard]==0.30.6",
"python-multipart==0.0.9",
# Database
"sqlalchemy==2.0.35",
"alembic==1.13.3",
"aiosqlite==0.20.0",
"asyncpg==0.29.0",
# Validation
"pydantic==2.9.2; python_version < '3.14'",
"pydantic>=2.12.0; python_version >= '3.14'",
"pydantic-settings==2.5.2",
# Image Processing
"Pillow==10.4.0; python_version < '3.14'",
"Pillow>=11.0.0; python_version >= '3.14'",
"piexif==1.1.3",
# OCR
"pytesseract==0.3.13",
# AI
"google-genai==1.0.0",
"httpx==0.27.2",
# Web scraping
"beautifulsoup4==4.12.3",
# Task scheduling
"apscheduler==3.10.4",
# Task queue
"arq==0.25.0",
"redis==5.0.8",
# Storage abstraction
"aioboto3==13.0.0",
"itsdangerous==2.2.0",
# Observability
"structlog==24.4.0",
"prometheus-fastapi-instrumentator==7.0.2",
# Utilities
"python-dotenv==1.0.1",
"python-jose[cryptography]==3.3.0",
"passlib[bcrypt]==1.7.4",
"aiofiles==24.1.0",
# Rate Limiting
"slowapi==0.1.9",
# WebSockets
"websockets>=13.0",
]
[project.optional-dependencies]
dev = [
"pytest==8.3.3",
"pytest-asyncio==0.24.0",
"pytest-cov==5.0.0",
"ruff==0.8.6",
"mypy==1.13.0",
"pre-commit==4.0.1",
"types-aiofiles==24.1.0.20240626",
]
[tool.ruff]
target-version = "py312"
@@ -20,7 +78,7 @@ select = [
"UP", # pyupgrade
"B", # bugbear
"S", # bandit (security)
"T20", # flake8-print (catch stray print())
"T20", # flake8-print
"SIM", # flake8-simplify
"RUF", # ruff-specific
]