|
|
@ -17,12 +17,13 @@ TODAY = datetime.now().strftime("%y%m%d") |
|
|
|
CRLF = "\r\n" |
|
|
|
CRLF = "\r\n" |
|
|
|
|
|
|
|
|
|
|
|
EXCEL_CHANGELOGS = { |
|
|
|
EXCEL_CHANGELOGS = { |
|
|
|
"changes mbp {version} hyb.txt": "J1", |
|
|
|
"changes mbp {version} asqc.txt": "L1", |
|
|
|
"changes mbp {version} hqc.txt": "J1", |
|
|
|
|
|
|
|
"changes mbp {version} dry-1.txt": "L1", |
|
|
|
"changes mbp {version} dry-1.txt": "L1", |
|
|
|
"changes mbp {version} dry-2.txt": "L1", |
|
|
|
"changes mbp {version} dry-2.txt": "L1", |
|
|
|
|
|
|
|
"changes mbp {version} hqc.txt": "J1", |
|
|
|
|
|
|
|
"changes mbp {version} hyb.txt": "J1", |
|
|
|
|
|
|
|
"changes mbp {version} mqc.txt": "J1", |
|
|
|
"changes mbp {version} reg.txt": "J1", |
|
|
|
"changes mbp {version} reg.txt": "J1", |
|
|
|
"changes mbp {version} asqc.txt": "L1", |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
EXCEL_CHANGELOG_HEADERS = [ |
|
|
|
EXCEL_CHANGELOG_HEADERS = [ |
|
|
@ -32,12 +33,13 @@ EXCEL_CHANGELOG_HEADERS = [ |
|
|
|
] |
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
WORKBOOKS_MAP = { |
|
|
|
WORKBOOKS_MAP = { |
|
|
|
"MBP Hyb.xlsx": "MBP {version} Hyb.xlsx", |
|
|
|
"MBP ASQC.xlsx": "MBP {version} ASQC.xlsx", |
|
|
|
"MBP Reg.xlsx": "MBP {version} Reg.xlsx", |
|
|
|
|
|
|
|
"MBP HQC.xlsx": "MBP {version} HQC.xlsx", |
|
|
|
|
|
|
|
"MBP Dry-1.xlsx": "MBP {version} Dry-1.xlsx", |
|
|
|
"MBP Dry-1.xlsx": "MBP {version} Dry-1.xlsx", |
|
|
|
"MBP Dry-2.xlsx": "MBP {version} Dry-2.xlsx", |
|
|
|
"MBP Dry-2.xlsx": "MBP {version} Dry-2.xlsx", |
|
|
|
"MBP ASQC.xlsx": "MBP {version} ASQC.xlsx", |
|
|
|
"MBP HQC.xlsx": "MBP {version} HQC.xlsx", |
|
|
|
|
|
|
|
"MBP Hyb.xlsx": "MBP {version} Hyb.xlsx", |
|
|
|
|
|
|
|
"MBP MQC.xlsx": "MBP {version} MQC.xlsx", |
|
|
|
|
|
|
|
"MBP Reg.xlsx": "MBP {version} Reg.xlsx", |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -101,7 +103,7 @@ def create_changelog_entry(new_version, parent=PATH_ISSUES): |
|
|
|
if line.startswith("----"): |
|
|
|
if line.startswith("----"): |
|
|
|
content.append("") |
|
|
|
content.append("") |
|
|
|
content.append(f"{new_version}, work in progress:") |
|
|
|
content.append(f"{new_version}, work in progress:") |
|
|
|
content.append(" - The following Workbooks did not have any changes: ASQC, Dry-1, Dry-2, Hyb, HQC, Reg") |
|
|
|
content.append(" - The following Workbooks did not have any changes: ASQC, Dry-1, Dry-2, Hyb, HQC, MQC, Reg") |
|
|
|
with changelog.open("w") as fh: |
|
|
|
with changelog.open("w") as fh: |
|
|
|
fh.write(CRLF.join(content)) |
|
|
|
fh.write(CRLF.join(content)) |
|
|
|
|
|
|
|
|
|
|
|