zulip_bots/MANIFEST: Include zulip_bots/bots/<bot>/assets/*.
This commit is contained in:
parent
8987ec23e2
commit
a887692ae4
9
zulip_bots/generate_manifest.py
Normal file → Executable file
9
zulip_bots/generate_manifest.py
Normal file → Executable 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')
|
||||
|
|
Loading…
Reference in a new issue