|
|
@ -133,6 +133,15 @@ def copy_workbooks(destination, release_version): |
|
|
|
print(excel_file.name, "->", new_path) |
|
|
|
print(excel_file.name, "->", new_path) |
|
|
|
shutil.copyfile(excel_file, new_path) |
|
|
|
shutil.copyfile(excel_file, new_path) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def copy_frms(destination, release_version): |
|
|
|
|
|
|
|
all_folders = (f for f in PATH_WORKBOOKS.iterdir() if f.is_dir()) |
|
|
|
|
|
|
|
all_frms = (f for f in all_folders if "frm" in f.name.lower()) |
|
|
|
|
|
|
|
current_frms = (f for f in all_frms if f.name.endswith(release_version)) |
|
|
|
|
|
|
|
for folder in current_frms: |
|
|
|
|
|
|
|
new_path = destination / folder.name |
|
|
|
|
|
|
|
print(folder.name, "->", new_path) |
|
|
|
|
|
|
|
shutil.copytree(folder, new_path) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@click.command() |
|
|
|
@click.command() |
|
|
|
@click.option( |
|
|
|
@click.option( |
|
|
@ -188,3 +197,4 @@ def sg_mbp_release(dev_version): |
|
|
|
copy_workbooks(new_folder_path, release_version) |
|
|
|
copy_workbooks(new_folder_path, release_version) |
|
|
|
copy_workbook_changelogs(new_folder_path, latest, release_version) |
|
|
|
copy_workbook_changelogs(new_folder_path, latest, release_version) |
|
|
|
copy_changelog(new_folder_path, release_version) |
|
|
|
copy_changelog(new_folder_path, release_version) |
|
|
|
|
|
|
|
copy_frms(new_folder_path, release_version) |
|
|
|