[build-system] requires = ["setuptools>=68", "wheel"] build-backend = "setuptools.build_meta" [project] name = "livesub" version = "0.2.0" description = "게임 소리를 실시간으로 번역해 화면 위 자막으로 보여주는 도구" readme = "README.md" requires-python = ">=3.10" license = { text = "MIT" } authors = [{ name = "tkrmagid" }] dependencies = [ "PySide6>=6.6", "numpy>=1.24", ] [project.optional-dependencies] # GPU 추론 (실사용에 필요). torch 는 CUDA 빌드를 따로 설치해야 한다 — README 참고. gpu = [ "faster-whisper>=1.0", "ctranslate2>=4.4", "transformers>=4.44", "huggingface-hub>=0.24", "sentencepiece>=0.2", ] # 4티어(Seed-X AWQ Int4) 전용 커널. 다른 티어에는 필요 없다. awq = ["autoawq>=0.2.6"] # Windows 오디오 캡처 windows = [ "PyAudioWPatch>=0.2.12.7", "pycaw>=20240210", "comtypes>=1.4", "psutil>=5.9", ] # 더 정확한 발화 구간 판정 (없어도 동작) vad = ["webrtcvad-wheels>=2.0.14"] # 추가학습 (LoRA) finetune = [ "peft>=0.12", "datasets>=2.20", "accelerate>=0.33", "bitsandbytes>=0.43; platform_system != 'Darwin'", ] dev = ["pytest>=8.0", "ruff>=0.6"] [project.scripts] livesub = "livesub.app:main" [tool.setuptools.packages.find] where = ["src"] [tool.setuptools.package-data] livesub = ["resources/bin/*", "resources/glossaries/*.json"] [tool.pytest.ini_options] testpaths = ["tests"] pythonpath = ["src"] [tool.ruff] line-length = 100 target-version = "py310" src = ["src", "tests"] [tool.ruff.lint] select = ["E", "F", "W", "I", "UP", "B", "SIM"] ignore = ["E501", "B008"]