From c4d6a8cdb7011f3478348541bbf2df3464b68aef Mon Sep 17 00:00:00 2001 From: tsukumi Date: Tue, 12 Mar 2024 18:45:54 +0000 Subject: [PATCH] Fix: large number of unnecessary files in built sdist Include in sdist only the minimum required files for style-bert-vits2 as a library. --- pyproject.toml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index a5f53ec..3045f03 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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",