File size: 2,451 Bytes
851e5ba
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
[project]
name = "supoclip-backend"
version = "0.1.0"
description = "Python-based backend for SupoClip"
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
    "apify-client>=1.8.1",
    "fastapi>=0.121.0",
    "uvicorn>=0.27.0",
    "openai-whisper>=20250625",
    "pydantic-ai>=1.107.7,<2",
    "setuptools-rust>=1.11.1",
    "asyncpg>=0.29.0",
    "sqlalchemy>=2.0.25",
    "alembic>=1.13.0",
    "python-dotenv>=1.0.0",
    "yt-dlp[default]>=2026.10.21",
    "bgutil-ytdlp-pot-provider==2.0.2",
    "whisper>=1.1.10",
    "greenlet>=2.0.0",
    "opencv-python>=4.8.0",
    "srt-equalizer>=0.1.10",
    "assemblyai>=0.35.0",
    "srt>=3.5.3",
    "numpy>=1.24.0",
    "aiofiles>=23.2.0",
    "sse-starlette>=1.6.5",
    "arq>=0.26.0",
    "redis>=5.0.0",
    "boto3>=1.34.0",
    "requests>=2.32.0",
    "cryptography>=50.0.0",
    "posthog>=7.73.2",
]

[project.optional-dependencies]
cpu = ["torch==2.13.0"]
cuda = ["torch==2.13.0"]

[dependency-groups]
dev = [
    "httpx>=0.28.1",
    "pytest>=8.4.2",
    "pytest-asyncio>=1.2.0",
    "pytest-cov>=7.0.0",
]

[tool.uv]
constraint-dependencies = [
    "PyJWT>=2.15.0",
    "anyio>=4.14.2,<5",
    "brotli>=1.2.1",
    "brotlicffi>=1.2.1.0",
    "dnspython>=2.9.0",
    "aiohttp>=3.14.4,<4",
    "filelock>=4.2.1",
    "fsspec>=2026.6.0",
    "jaraco.context>=6.1.0",
    "joserfc>=1.7.6",
    "mcp>=1.30.0,<2",
    "multidict>=6.9.1",
    "opentelemetry-api>=1.45.1",
    "pyasn1>=0.6.5",
    "pydantic-settings>=2.14.2",
    "python-multipart>=0.0.31",
    "setuptools>=84.1.0",
    "starlette>=1.3.1,<2",
    # temporalio 1.27–1.34 ship Rust zip < 9.0.5 (CVE-2026-115905). 1.35.0 vendors zip 9.1.2.
    "temporalio>=1.35.0",
    "wheel>=0.46.2",
    "urllib3>=2.8.0,<3",
]
package = true
conflicts = [[{ extra = "cpu" }, { extra = "cuda" }]]

[tool.uv.sources]
torch = [
    { index = "pytorch-cpu", extra = "cpu", marker = "sys_platform == 'linux'" },
    { index = "pypi", extra = "cuda" },
]

[[tool.uv.index]]
name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"
explicit = true

[[tool.uv.index]]
name = "pypi"
url = "https://pypi.org/simple"
default = true

[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "session"
asyncio_default_test_loop_scope = "session"
testpaths = ["tests"]
addopts = """
--cov=src.auth_headers
--cov=src.services.billing_service
--cov-report=term-missing
--cov-report=html
--cov-fail-under=65
"""