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:
@@ -51,6 +51,27 @@ Source = "https://github.com/litagin02/Style-Bert-VITS2"
|
||||
[tool.hatch.version]
|
||||
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]
|
||||
dependencies = [
|
||||
"coverage[toml]>=6.5",
|
||||
|
||||
Reference in New Issue
Block a user