Fix: large number of unnecessary files in built sdist

Include in sdist only the minimum required files for style-bert-vits2 as a library.
This commit is contained in:
tsukumi
2024-03-12 18:45:54 +00:00
parent 07d246b98b
commit c4d6a8cdb7

View File

@@ -51,6 +51,27 @@ Source = "https://github.com/litagin02/Style-Bert-VITS2"
[tool.hatch.version] [tool.hatch.version]
path = "style_bert_vits2/constants.py" path = "style_bert_vits2/constants.py"
[tool.hatch.build.targets.sdist]
only-include = [
".vscode",
"dict_data/default.csv",
"docs",
"style_bert_vits2",
"tests",
"LGPL_LICENSE",
"LICENSE",
"pyproject.toml",
"README.md",
]
exclude = [
".git",
".gitignore",
".gitattributes",
]
[tool.hatch.build.targets.wheel]
packages = ["style_bert_vits2"]
[tool.hatch.envs.test] [tool.hatch.envs.test]
dependencies = [ dependencies = [
"coverage[toml]>=6.5", "coverage[toml]>=6.5",