fix: replace remaining nested double-quote f-strings for Python <3.12 compatibility
This commit is contained in:
@@ -328,7 +328,7 @@ def build_configuration(
|
|||||||
cmd = [
|
cmd = [
|
||||||
str(msbuild_path),
|
str(msbuild_path),
|
||||||
str(project_file),
|
str(project_file),
|
||||||
f'/t:{"Rebuild" if rebuild else "Build"}',
|
f'/t:{'Rebuild' if rebuild else 'Build'}',
|
||||||
f'/p:Configuration={config.config}',
|
f'/p:Configuration={config.config}',
|
||||||
f'/p:Platform={config.platform}',
|
f'/p:Platform={config.platform}',
|
||||||
f'/p:OutDir=Build\\{config.name}\\',
|
f'/p:OutDir=Build\\{config.name}\\',
|
||||||
@@ -917,14 +917,14 @@ Examples:
|
|||||||
print(f" - {config.name}")
|
print(f" - {config.name}")
|
||||||
|
|
||||||
# Show timing summary
|
# Show timing summary
|
||||||
print(f"\n{Colors.BOLD}{Colors.BRIGHT_CYAN}{"-"*50}{Colors.RESET}")
|
print(f"\n{Colors.BOLD}{Colors.BRIGHT_CYAN}{'-'*50}{Colors.RESET}")
|
||||||
print(f"{Colors.BOLD}{Colors.BRIGHT_CYAN}Build Summary:{Colors.RESET}")
|
print(f"{Colors.BOLD}{Colors.BRIGHT_CYAN}Build Summary:{Colors.RESET}")
|
||||||
for config, success, build_time, file_size, dest_path in build_results:
|
for config, success, build_time, file_size, dest_path in build_results:
|
||||||
status = "OK" if success else "FAIL"
|
status = "OK" if success else "FAIL"
|
||||||
row_color = Colors.BRIGHT_GREEN if success else Colors.RED
|
row_color = Colors.BRIGHT_GREEN if success else Colors.RED
|
||||||
size_str = f"{file_size:,} bytes" if file_size > 0 else "N/A"
|
size_str = f"{file_size:,} bytes" if file_size > 0 else "N/A"
|
||||||
print(f" {row_color}{status}{Colors.RESET} {config.name:15s} - {format_time(build_time):8s} - {size_str}")
|
print(f" {row_color}{status}{Colors.RESET} {config.name:15s} - {format_time(build_time):8s} - {size_str}")
|
||||||
print(f"{Colors.BOLD}{Colors.BRIGHT_CYAN}{"-"*50}{Colors.RESET}")
|
print(f"{Colors.BOLD}{Colors.BRIGHT_CYAN}{'-'*50}{Colors.RESET}")
|
||||||
print(f"Total time: {Colors.BRIGHT_WHITE}{format_time(total_time)}{Colors.RESET}")
|
print(f"Total time: {Colors.BRIGHT_WHITE}{format_time(total_time)}{Colors.RESET}")
|
||||||
print()
|
print()
|
||||||
|
|
||||||
|
|||||||
@@ -344,7 +344,7 @@ def build_configuration(
|
|||||||
cmd = [
|
cmd = [
|
||||||
str(msbuild_path),
|
str(msbuild_path),
|
||||||
str(project_file),
|
str(project_file),
|
||||||
f'/t:{"Rebuild" if rebuild else "Build"}',
|
f'/t:{'Rebuild' if rebuild else 'Build'}',
|
||||||
f'/p:Configuration={config.config}',
|
f'/p:Configuration={config.config}',
|
||||||
f'/p:Platform={config.platform}',
|
f'/p:Platform={config.platform}',
|
||||||
f'/p:OutDir=Build\\{config.name}\\',
|
f'/p:OutDir=Build\\{config.name}\\',
|
||||||
@@ -944,14 +944,14 @@ Examples:
|
|||||||
print(f" - {config.name}")
|
print(f" - {config.name}")
|
||||||
|
|
||||||
# Show timing summary
|
# Show timing summary
|
||||||
print(f"\n{Colors.BOLD}{Colors.BRIGHT_CYAN}{"-"*50}{Colors.RESET}")
|
print(f"\n{Colors.BOLD}{Colors.BRIGHT_CYAN}{'-'*50}{Colors.RESET}")
|
||||||
print(f"{Colors.BOLD}{Colors.BRIGHT_CYAN}Build Summary:{Colors.RESET}")
|
print(f"{Colors.BOLD}{Colors.BRIGHT_CYAN}Build Summary:{Colors.RESET}")
|
||||||
for config, success, build_time, file_size, dest_path in build_results:
|
for config, success, build_time, file_size, dest_path in build_results:
|
||||||
status = "OK" if success else "FAIL"
|
status = "OK" if success else "FAIL"
|
||||||
row_color = Colors.BRIGHT_GREEN if success else Colors.RED
|
row_color = Colors.BRIGHT_GREEN if success else Colors.RED
|
||||||
size_str = f"{file_size:,} bytes" if file_size > 0 else "N/A"
|
size_str = f"{file_size:,} bytes" if file_size > 0 else "N/A"
|
||||||
print(f" {row_color}{status}{Colors.RESET} {config.name:15s} - {format_time(build_time):8s} - {size_str}")
|
print(f" {row_color}{status}{Colors.RESET} {config.name:15s} - {format_time(build_time):8s} - {size_str}")
|
||||||
print(f"{Colors.BOLD}{Colors.BRIGHT_CYAN}{"-"*50}{Colors.RESET}")
|
print(f"{Colors.BOLD}{Colors.BRIGHT_CYAN}{'-'*50}{Colors.RESET}")
|
||||||
print(f"Total time: {Colors.BRIGHT_WHITE}{format_time(total_time)}{Colors.RESET}")
|
print(f"Total time: {Colors.BRIGHT_WHITE}{format_time(total_time)}{Colors.RESET}")
|
||||||
print()
|
print()
|
||||||
|
|
||||||
|
|||||||
@@ -346,7 +346,7 @@ def build_configuration(
|
|||||||
cmd = [
|
cmd = [
|
||||||
str(msbuild_path),
|
str(msbuild_path),
|
||||||
str(project_file),
|
str(project_file),
|
||||||
f'/t:{"Rebuild" if rebuild else "Build"}',
|
f'/t:{'Rebuild' if rebuild else 'Build'}',
|
||||||
f'/p:Configuration={config.config}',
|
f'/p:Configuration={config.config}',
|
||||||
f'/p:Platform={config.platform}',
|
f'/p:Platform={config.platform}',
|
||||||
f'/p:OutDir=Build\\{config.name}\\',
|
f'/p:OutDir=Build\\{config.name}\\',
|
||||||
|
|||||||
@@ -332,7 +332,7 @@ def build_configuration(
|
|||||||
cmd = [
|
cmd = [
|
||||||
str(msbuild_path),
|
str(msbuild_path),
|
||||||
str(project_file),
|
str(project_file),
|
||||||
f'/t:{"Rebuild" if rebuild else "Build"}',
|
f'/t:{'Rebuild' if rebuild else 'Build'}',
|
||||||
f'/p:Configuration={config.config}',
|
f'/p:Configuration={config.config}',
|
||||||
f'/p:Platform={config.platform}',
|
f'/p:Platform={config.platform}',
|
||||||
f'/p:OutDir=Build\\{config.name}\\',
|
f'/p:OutDir=Build\\{config.name}\\',
|
||||||
@@ -743,14 +743,14 @@ Examples:
|
|||||||
if not success:
|
if not success:
|
||||||
print(f" - {config.name}")
|
print(f" - {config.name}")
|
||||||
|
|
||||||
print(f"\n{Colors.BOLD}{Colors.BRIGHT_CYAN}{"-"*50}{Colors.RESET}")
|
print(f"\n{Colors.BOLD}{Colors.BRIGHT_CYAN}{'-'*50}{Colors.RESET}")
|
||||||
print(f"{Colors.BOLD}{Colors.BRIGHT_CYAN}Build Summary:{Colors.RESET}")
|
print(f"{Colors.BOLD}{Colors.BRIGHT_CYAN}Build Summary:{Colors.RESET}")
|
||||||
for config, success, build_time, file_size, dest_path in build_results:
|
for config, success, build_time, file_size, dest_path in build_results:
|
||||||
status = "OK" if success else "FAIL"
|
status = "OK" if success else "FAIL"
|
||||||
row_color = Colors.BRIGHT_GREEN if success else Colors.RED
|
row_color = Colors.BRIGHT_GREEN if success else Colors.RED
|
||||||
size_str = f"{file_size:,} bytes" if file_size > 0 else "N/A"
|
size_str = f"{file_size:,} bytes" if file_size > 0 else "N/A"
|
||||||
print(f" {row_color}{status}{Colors.RESET} {config.name:15s} - {format_time(build_time):8s} - {size_str}")
|
print(f" {row_color}{status}{Colors.RESET} {config.name:15s} - {format_time(build_time):8s} - {size_str}")
|
||||||
print(f"{Colors.BOLD}{Colors.BRIGHT_CYAN}{"-"*50}{Colors.RESET}")
|
print(f"{Colors.BOLD}{Colors.BRIGHT_CYAN}{'-'*50}{Colors.RESET}")
|
||||||
print(f"Total time: {Colors.BRIGHT_WHITE}{format_time(total_time)}{Colors.RESET}")
|
print(f"Total time: {Colors.BRIGHT_WHITE}{format_time(total_time)}{Colors.RESET}")
|
||||||
print()
|
print()
|
||||||
|
|
||||||
|
|||||||
@@ -328,7 +328,7 @@ def build_configuration(
|
|||||||
cmd = [
|
cmd = [
|
||||||
str(msbuild_path),
|
str(msbuild_path),
|
||||||
str(project_file),
|
str(project_file),
|
||||||
f'/t:{"Rebuild" if rebuild else "Build"}',
|
f'/t:{'Rebuild' if rebuild else 'Build'}',
|
||||||
f'/p:Configuration={config.config}',
|
f'/p:Configuration={config.config}',
|
||||||
f'/p:Platform={config.platform}',
|
f'/p:Platform={config.platform}',
|
||||||
f'/p:OutDir=Build\\{config.name}\\',
|
f'/p:OutDir=Build\\{config.name}\\',
|
||||||
@@ -917,14 +917,14 @@ Examples:
|
|||||||
print(f" - {config.name}")
|
print(f" - {config.name}")
|
||||||
|
|
||||||
# Show timing summary
|
# Show timing summary
|
||||||
print(f"\n{Colors.BOLD}{Colors.BRIGHT_CYAN}{"-"*50}{Colors.RESET}")
|
print(f"\n{Colors.BOLD}{Colors.BRIGHT_CYAN}{'-'*50}{Colors.RESET}")
|
||||||
print(f"{Colors.BOLD}{Colors.BRIGHT_CYAN}Build Summary:{Colors.RESET}")
|
print(f"{Colors.BOLD}{Colors.BRIGHT_CYAN}Build Summary:{Colors.RESET}")
|
||||||
for config, success, build_time, file_size, dest_path in build_results:
|
for config, success, build_time, file_size, dest_path in build_results:
|
||||||
status = "OK" if success else "FAIL"
|
status = "OK" if success else "FAIL"
|
||||||
row_color = Colors.BRIGHT_GREEN if success else Colors.RED
|
row_color = Colors.BRIGHT_GREEN if success else Colors.RED
|
||||||
size_str = f"{file_size:,} bytes" if file_size > 0 else "N/A"
|
size_str = f"{file_size:,} bytes" if file_size > 0 else "N/A"
|
||||||
print(f" {row_color}{status}{Colors.RESET} {config.name:15s} - {format_time(build_time):8s} - {size_str}")
|
print(f" {row_color}{status}{Colors.RESET} {config.name:15s} - {format_time(build_time):8s} - {size_str}")
|
||||||
print(f"{Colors.BOLD}{Colors.BRIGHT_CYAN}{"-"*50}{Colors.RESET}")
|
print(f"{Colors.BOLD}{Colors.BRIGHT_CYAN}{'-'*50}{Colors.RESET}")
|
||||||
print(f"Total time: {Colors.BRIGHT_WHITE}{format_time(total_time)}{Colors.RESET}")
|
print(f"Total time: {Colors.BRIGHT_WHITE}{format_time(total_time)}{Colors.RESET}")
|
||||||
print()
|
print()
|
||||||
|
|
||||||
|
|||||||
@@ -344,7 +344,7 @@ def build_configuration(
|
|||||||
cmd = [
|
cmd = [
|
||||||
str(msbuild_path),
|
str(msbuild_path),
|
||||||
str(project_file),
|
str(project_file),
|
||||||
f'/t:{"Rebuild" if rebuild else "Build"}',
|
f'/t:{'Rebuild' if rebuild else 'Build'}',
|
||||||
f'/p:Configuration={config.config}',
|
f'/p:Configuration={config.config}',
|
||||||
f'/p:Platform={config.platform}',
|
f'/p:Platform={config.platform}',
|
||||||
f'/p:OutDir=Build\\{config.name}\\',
|
f'/p:OutDir=Build\\{config.name}\\',
|
||||||
@@ -944,14 +944,14 @@ Examples:
|
|||||||
print(f" - {config.name}")
|
print(f" - {config.name}")
|
||||||
|
|
||||||
# Show timing summary
|
# Show timing summary
|
||||||
print(f"\n{Colors.BOLD}{Colors.BRIGHT_CYAN}{"-"*50}{Colors.RESET}")
|
print(f"\n{Colors.BOLD}{Colors.BRIGHT_CYAN}{'-'*50}{Colors.RESET}")
|
||||||
print(f"{Colors.BOLD}{Colors.BRIGHT_CYAN}Build Summary:{Colors.RESET}")
|
print(f"{Colors.BOLD}{Colors.BRIGHT_CYAN}Build Summary:{Colors.RESET}")
|
||||||
for config, success, build_time, file_size, dest_path in build_results:
|
for config, success, build_time, file_size, dest_path in build_results:
|
||||||
status = "OK" if success else "FAIL"
|
status = "OK" if success else "FAIL"
|
||||||
row_color = Colors.BRIGHT_GREEN if success else Colors.RED
|
row_color = Colors.BRIGHT_GREEN if success else Colors.RED
|
||||||
size_str = f"{file_size:,} bytes" if file_size > 0 else "N/A"
|
size_str = f"{file_size:,} bytes" if file_size > 0 else "N/A"
|
||||||
print(f" {row_color}{status}{Colors.RESET} {config.name:15s} - {format_time(build_time):8s} - {size_str}")
|
print(f" {row_color}{status}{Colors.RESET} {config.name:15s} - {format_time(build_time):8s} - {size_str}")
|
||||||
print(f"{Colors.BOLD}{Colors.BRIGHT_CYAN}{"-"*50}{Colors.RESET}")
|
print(f"{Colors.BOLD}{Colors.BRIGHT_CYAN}{'-'*50}{Colors.RESET}")
|
||||||
print(f"Total time: {Colors.BRIGHT_WHITE}{format_time(total_time)}{Colors.RESET}")
|
print(f"Total time: {Colors.BRIGHT_WHITE}{format_time(total_time)}{Colors.RESET}")
|
||||||
print()
|
print()
|
||||||
|
|
||||||
|
|||||||
@@ -332,7 +332,7 @@ def build_configuration(
|
|||||||
cmd = [
|
cmd = [
|
||||||
str(msbuild_path),
|
str(msbuild_path),
|
||||||
str(project_file),
|
str(project_file),
|
||||||
f'/t:{"Rebuild" if rebuild else "Build"}',
|
f'/t:{'Rebuild' if rebuild else 'Build'}',
|
||||||
f'/p:Configuration={config.config}',
|
f'/p:Configuration={config.config}',
|
||||||
f'/p:Platform={config.platform}',
|
f'/p:Platform={config.platform}',
|
||||||
f'/p:OutDir=Build\\{config.name}\\',
|
f'/p:OutDir=Build\\{config.name}\\',
|
||||||
@@ -743,14 +743,14 @@ Examples:
|
|||||||
if not success:
|
if not success:
|
||||||
print(f" - {config.name}")
|
print(f" - {config.name}")
|
||||||
|
|
||||||
print(f"\n{Colors.BOLD}{Colors.BRIGHT_CYAN}{"-"*50}{Colors.RESET}")
|
print(f"\n{Colors.BOLD}{Colors.BRIGHT_CYAN}{'-'*50}{Colors.RESET}")
|
||||||
print(f"{Colors.BOLD}{Colors.BRIGHT_CYAN}Build Summary:{Colors.RESET}")
|
print(f"{Colors.BOLD}{Colors.BRIGHT_CYAN}Build Summary:{Colors.RESET}")
|
||||||
for config, success, build_time, file_size, dest_path in build_results:
|
for config, success, build_time, file_size, dest_path in build_results:
|
||||||
status = "OK" if success else "FAIL"
|
status = "OK" if success else "FAIL"
|
||||||
row_color = Colors.BRIGHT_GREEN if success else Colors.RED
|
row_color = Colors.BRIGHT_GREEN if success else Colors.RED
|
||||||
size_str = f"{file_size:,} bytes" if file_size > 0 else "N/A"
|
size_str = f"{file_size:,} bytes" if file_size > 0 else "N/A"
|
||||||
print(f" {row_color}{status}{Colors.RESET} {config.name:15s} - {format_time(build_time):8s} - {size_str}")
|
print(f" {row_color}{status}{Colors.RESET} {config.name:15s} - {format_time(build_time):8s} - {size_str}")
|
||||||
print(f"{Colors.BOLD}{Colors.BRIGHT_CYAN}{"-"*50}{Colors.RESET}")
|
print(f"{Colors.BOLD}{Colors.BRIGHT_CYAN}{'-'*50}{Colors.RESET}")
|
||||||
print(f"Total time: {Colors.BRIGHT_WHITE}{format_time(total_time)}{Colors.RESET}")
|
print(f"Total time: {Colors.BRIGHT_WHITE}{format_time(total_time)}{Colors.RESET}")
|
||||||
print()
|
print()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user