From a887692ae408dfa5060e8375bfa2efcd3d0df33d Mon Sep 17 00:00:00 2001 From: Eeshan Garg Date: Wed, 20 Sep 2017 00:45:35 -0230 Subject: [PATCH] zulip_bots/MANIFEST: Include zulip_bots/bots//assets/*. --- zulip_bots/generate_manifest.py | 9 +++++++++ 1 file changed, 9 insertions(+) mode change 100644 => 100755 zulip_bots/generate_manifest.py diff --git a/zulip_bots/generate_manifest.py b/zulip_bots/generate_manifest.py old mode 100644 new mode 100755 index 2116954..0c7950b --- a/zulip_bots/generate_manifest.py +++ b/zulip_bots/generate_manifest.py @@ -33,6 +33,15 @@ def get_docs(): ) return doc_paths +def get_assets(): + # type: () -> List[str] + glob_pattern = os.path.join(BOTS_DIR, '*', 'assets', '*') + assets_files = map( + lambda fp: os.path.join(*fp.split(os.path.sep)[-5:]).replace(os.path.sep, '/'), + glob.glob(glob_pattern) + ) + return assets_files + def main(): # type: () -> None manifest_path = os.path.join(CURRENT_DIR, 'MANIFEST.in')