tp_voice/pyproject.toml

102 lines
2.2 KiB
TOML

[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "voice-pipeline"
version = "0.1.0"
requires-python = ">=3.11"
# Core runtime — always installed. Heavy ML extras are optional (see below).
dependencies = [
# transport
"paramiko>=3.4",
"httpx>=0.27",
# audio
"pydub>=0.25",
# config + validation
"pydantic>=2.7",
"pydantic-settings>=2.3",
# ORM / DB
"sqlmodel>=0.0.19",
"psycopg[binary]>=3.2",
# logging
"loguru>=0.7",
# templating (reporter)
"jinja2>=3.1",
# anthropic LLM (script checking)
"anthropic>=0.28",
"ollama>=0.5",
# read-only management dashboard
"fastapi>=0.115,<0.116",
"uvicorn>=0.30,<0.36",
"anyio>=4.4,<4.10",
"prometheus-client>=0.21,<1",
]
[project.optional-dependencies]
# Cloud transcription only (no local models)
cloud = [
"openai>=1.30",
"groq>=0.11",
]
# Local transcription on CPU/GPU
local-asr = [
"faster-whisper>=1.0",
]
# Bitrix24-source diarization fallback (needs HF token)
diarize = [
"pyannote.audio>=3.1",
]
# Local emotion classification
emotion = [
"transformers>=4.40",
"torch>=2.2",
]
# Everything local (CPU) — equivalent to all optional groups above
local = [
"voice-pipeline[cloud,local-asr,diarize,emotion]",
]
# Development tools
dev = [
"pytest>=8.2",
"pytest-asyncio>=0.23",
"pytest-mock>=3.14",
"ruff>=0.4",
"mypy>=1.10",
]
# Minimal install for dev/testing without ML models
dev-only = [
"voice-pipeline[dev]",
]
[project.scripts]
voice-pipeline = "voice_pipeline.__main__:main"
[tool.setuptools.packages.find]
where = ["src"]
include = ["voice_pipeline*", "collector*", "analyzer*", "reporter*", "importer*", "task_import*", "task_followup*", "voice_category*", "deal_conversion*", "web_dashboard*", "metrics_exporter*", "core*"]
[tool.setuptools.package-data]
web_dashboard = ["templates/*.j2", "static/*.css", "static/*.js"]
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "SIM"]
ignore = ["E402"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
pythonpath = ["src"]