neuapi / pyproject.toml
gavanduffy
Fix CPU build: remove neutts[all] extra to avoid pulling llama-cpp-python which needs gcc
be659dc
Raw
History Blame Contribute Delete
771 Bytes
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "neutts-fastapi-hf"
version = "0.1.0"
description = "NeuTTS TTS API for Hugging Face Spaces"
requires-python = ">=3.10,<3.14"
dependencies = [
"neutts>=1.1.0",
"fastapi>=0.115.0",
"uvicorn[standard]>=0.30.0",
"pydantic-settings>=2.0.0",
"av>=12.0.0",
"loguru>=0.7.0",
"psutil>=5.9.0",
"python-multipart>=0.0.7",
"soundfile>=0.13.0",
"websockets>=12.0",
"setuptools>=70.0.0",
]
[project.optional-dependencies]
gpu = ["neutts[all]", "onnxruntime-gpu", "torch>=2.6.0"]
cpu = ["neutts", "onnxruntime"]
dev = ["pytest>=8.0.0", "pytest-asyncio>=0.23.0", "httpx>=0.27.0", "ruff>=0.4.0"]
[tool.hatch.build.targets.wheel]
packages = ["api"]