浏览代码

Update MANIFEST.in once and for all (#770)

Co-authored-by: Fabien Lelaquais <fabien@lelaquais.fr>
Fabien Lelaquais 1 年之前
父节点
当前提交
0724b4c516
共有 2 个文件被更改,包括 12 次插入16 次删除
  1. 12 6
      MANIFEST.in
  2. 0 10
      setup.py

+ 12 - 6
MANIFEST.in

@@ -1,14 +1,20 @@
 recursive-include tools *
-include taipy/core/*.json
-include taipy/core/config/*.json
+# Package taipy
 include taipy/*.json
 include taipy/gui_core/*.json
 include taipy/gui_core/lib/*.js
-recursive-include taipy/gui/webapp *
+# Package taipy-config
+include taipy/config/*.pyi
+include taipy/config/*.json
+# Package taipy-core
+include taipy/core/*.json
+include taipy/core/config/*.json
+# Package taipy-gui
+recursive-include webapp *
 include taipy/gui/version.json
 include taipy/gui/viselements.json
 include taipy/gui/*.pyi
-include taipy/config/*.pyi
-include taipy/config/*.json
-recursive-include taipy/templates *
+# Package taipy-rest
 include taipy/rest/*.json
+# Package taipy-templates
+recursive-include taipy/templates *

+ 0 - 10
setup.py

@@ -31,16 +31,6 @@ with open(os.path.join("taipy", "version.json")) as version_file:
     if vext := version.get("ext"):
         version_string = f"{version_string}.{vext}"
 
-# build MANIFEST.in from tools/packages/taipy*/MANIFEST.in
-with open(os.path.join(root_folder, "MANIFEST.in"), "a") as man:
-    for pman in [
-        dir / "MANIFEST.in"
-        for dir in (root_folder / "tools" / "packages").iterdir()
-        if dir.is_dir() and dir.stem.startswith("taipy")
-    ]:
-        man.write(pman.read_text("UTF-8"))
-
-
 def get_requirements():
     # get requirements from the different setups in tools/packages (removing taipy packages)
     reqs = set()