From abea4632034e2e1bd1f5120972b455464de244d0 Mon Sep 17 00:00:00 2001 From: mansy Date: Tue, 19 Jul 2022 12:14:41 +0200 Subject: [PATCH 1/2] Include app templates to the package --- src/lightning_app/__setup__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lightning_app/__setup__.py b/src/lightning_app/__setup__.py index 0e892fa047ab7..9fe01a0ebe0e5 100644 --- a/src/lightning_app/__setup__.py +++ b/src/lightning_app/__setup__.py @@ -50,6 +50,7 @@ def _adjust_manifest(**__: Any) -> None: "recursive-exclude requirements *.txt" + os.linesep, "recursive-include src/lightning_app *.md" + os.linesep, "recursive-include requirements/app *.txt" + os.linesep, + "recursive-include src/lightning_app/cli/*-template *" + os.linesep, # Add templates ] # TODO: remove this once lightning-ui package is ready as a dependency From bf40e7c6dc5bcfe1ea517b92b1fb2a29093a90da Mon Sep 17 00:00:00 2001 From: mansy Date: Tue, 19 Jul 2022 13:08:43 +0200 Subject: [PATCH 2/2] Include app templates to the full package --- src/lightning/__setup__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lightning/__setup__.py b/src/lightning/__setup__.py index 22c3fd2b847cd..83f060b9b2e23 100644 --- a/src/lightning/__setup__.py +++ b/src/lightning/__setup__.py @@ -39,6 +39,7 @@ def _adjust_manifest(**kwargs: Any) -> None: lines += [ "recursive-include src *.md" + os.linesep, "recursive-include requirements *.txt" + os.linesep, + "recursive-include src/lightning_app/cli/*-template *" + os.linesep, # Add templates ] with open(manifest_path, "w") as fp: fp.writelines(lines)