Add: use hatch to build style-bert-vits2 as a library
This commit is contained in:
92
pyproject.toml
Normal file
92
pyproject.toml
Normal file
@@ -0,0 +1,92 @@
|
||||
[build-system]
|
||||
requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
|
||||
[project]
|
||||
name = "style-bert-vits2"
|
||||
dynamic = ["version"]
|
||||
description = 'Style-Bert-VITS2: Bert-VITS2 with more controllable voice styles.'
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.9"
|
||||
license = "AGPL-3.0"
|
||||
keywords = []
|
||||
authors = [
|
||||
{ name = "litagin02", email = "139731664+litagin02@users.noreply.github.com" },
|
||||
]
|
||||
classifiers = [
|
||||
"Development Status :: 4 - Beta",
|
||||
"Programming Language :: Python",
|
||||
"Programming Language :: Python :: 3.9",
|
||||
"Programming Language :: Python :: 3.10",
|
||||
"Programming Language :: Python :: 3.11",
|
||||
"Programming Language :: Python :: 3.12",
|
||||
"Programming Language :: Python :: Implementation :: CPython",
|
||||
]
|
||||
dependencies = [
|
||||
'cmudict',
|
||||
'cn2an',
|
||||
'g2p_en',
|
||||
'gradio',
|
||||
'jieba',
|
||||
'librosa==0.9.2',
|
||||
'loguru',
|
||||
'num2words',
|
||||
'numba',
|
||||
'numpy',
|
||||
'pyannote.audio>=3.1.0',
|
||||
'pydantic',
|
||||
'pyopenjtalk-dict',
|
||||
'pypinyin',
|
||||
'pyworld',
|
||||
'safetensors',
|
||||
'scipy',
|
||||
'torch>=2.1,<2.2',
|
||||
'transformers',
|
||||
]
|
||||
|
||||
[project.urls]
|
||||
Documentation = "https://github.com/litagin02/Style-Bert-VITS2#readme"
|
||||
Issues = "https://github.com/litagin02/Style-Bert-VITS2/issues"
|
||||
Source = "https://github.com/litagin02/Style-Bert-VITS2"
|
||||
|
||||
[tool.hatch.version]
|
||||
path = "style_bert_vits2/constants.py"
|
||||
|
||||
[tool.hatch.envs.default]
|
||||
dependencies = [
|
||||
"coverage[toml]>=6.5",
|
||||
"pytest",
|
||||
]
|
||||
[tool.hatch.envs.default.scripts]
|
||||
test = "pytest {args:tests}"
|
||||
test-cov = "coverage run -m pytest {args:tests}"
|
||||
cov-report = [
|
||||
"- coverage combine",
|
||||
"coverage report",
|
||||
]
|
||||
cov = [
|
||||
"test-cov",
|
||||
"cov-report",
|
||||
]
|
||||
|
||||
[[tool.hatch.envs.all.matrix]]
|
||||
python = ["3.9", "3.10", "3.11", "3.12"]
|
||||
|
||||
[tool.coverage.run]
|
||||
source_pkgs = ["style_bert_vits2", "tests"]
|
||||
branch = true
|
||||
parallel = true
|
||||
omit = [
|
||||
"style_bert_vits2/constants.py",
|
||||
]
|
||||
|
||||
[tool.coverage.paths]
|
||||
style_bert_vits2 = ["style_bert_vits2", "*/style-bert-vits2/style_bert_vits2"]
|
||||
tests = ["tests", "*/style-bert-vits2/tests"]
|
||||
|
||||
[tool.coverage.report]
|
||||
exclude_lines = [
|
||||
"no cov",
|
||||
"if __name__ == .__main__.:",
|
||||
"if TYPE_CHECKING:",
|
||||
]
|
||||
Reference in New Issue
Block a user