zulip_bots/MANIFEST: Include zulip_bots/bots/<bot>/assets/*.

This commit is contained in:
Eeshan Garg 2017-09-20 00:45:35 -02:30 committed by Tim Abbott
parent 8987ec23e2
commit a887692ae4

9
zulip_bots/generate_manifest.py Normal file → Executable file
View file

@ -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')