onnx-asr — pre-1.0 библиотека (текущая 0.11.x). Без верхней границы любой minor-апдейт (0.12.x) или major (1.0.0) подгрузится автоматически и может сломать совместимость API: для pre-1.0 SemVer не гарантирует обратную совместимость даже на minor-bumps. Уже наблюдали это в первой итерации: при smoke-тесте обнаружили расхождение API между ожидаемой и реальной сигнатурой (cpu_preprocessing был removed, start_ts/end_ts → start/end). Ограничиваем до compatible-release: >=0.11.0,<0.12.0. При появлении 0.12 обновим осознанно после проверки совместимости. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
35 lines
871 B
TOML
35 lines
871 B
TOML
[project]
|
|
name = "local-transcriber"
|
|
version = "0.1.0"
|
|
description = "Local CLI tool for audio/video transcription using faster-whisper"
|
|
license = "MIT"
|
|
requires-python = ">=3.10"
|
|
dependencies = [
|
|
"typer",
|
|
"rich",
|
|
"faster-whisper>=1.2.1",
|
|
"socksio>=1.0.0",
|
|
"nvidia-cublas-cu12>=12.4; sys_platform == 'linux' and platform_machine == 'x86_64'",
|
|
"openvino-genai>=2025.0; sys_platform != 'darwin' and (platform_machine == 'x86_64' or platform_machine == 'AMD64')",
|
|
"tomli>=2.0; python_version < '3.11'",
|
|
"onnx-asr[cpu,hub]>=0.11.0,<0.12.0",
|
|
]
|
|
|
|
[project.scripts]
|
|
transcribe = "local_transcriber.cli:app"
|
|
|
|
[dependency-groups]
|
|
dev = [
|
|
"pytest",
|
|
]
|
|
|
|
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["src/local_transcriber"]
|