Add a CLI interface (#102)

* Add a CLI interface and update packaging configuration

* Support multiple lines in stdin

---------

Co-authored-by: Eric Trotta <eric.oliveira@magva.com.br>
This commit is contained in:
etrotta
2025-02-18 02:07:21 -03:00
committed by GitHub
parent 5229a254b7
commit cd7afb5c12
5 changed files with 1990 additions and 35 deletions

View File

@@ -1,3 +1,39 @@
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "kokoro"
version = "0.7.16"
description = "TTS"
readme = "README.md"
authors = [
{ name="hexgrad", email="hello@hexgrad.com" }
]
license = { file = "LICENSE" }
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent"
]
requires-python = ">=3.10, <3.13"
dependencies = [
"huggingface_hub",
"loguru",
"misaki[en]>=0.7.16",
"numpy==1.26.4",
"scipy",
"torch",
"transformers"
]
[project.scripts]
kokoro = "kokoro.__main__:main"
[tool.hatch.build.targets.wheel]
only-include = ["kokoro"]
only-packages = true
[project.urls]
Homepage = "https://github.com/hexgrad/kokoros"
Repository = "https://github.com/hexgrad/kokoro"