(
base_entry: dict[str, Any],
python_version: str,
build_option: str,
config: dict[str, Any],
)
| 369 | |
| 370 | |
| 371 | def create_python_build_entry( |
| 372 | base_entry: dict[str, Any], |
| 373 | python_version: str, |
| 374 | build_option: str, |
| 375 | config: dict[str, Any], |
| 376 | ) -> dict[str, Any]: |
| 377 | entry = base_entry.copy() |
| 378 | entry.update( |
| 379 | { |
| 380 | "python": python_version, |
| 381 | "build_options": build_option, |
| 382 | } |
| 383 | ) |
| 384 | if "vs_version_override_conditional" in config: |
| 385 | conditional = config["vs_version_override_conditional"] |
| 386 | min_version = conditional["minimum-python-version"] |
| 387 | if meets_conditional_version(python_version, min_version): |
| 388 | entry["vs_version"] = conditional["vs_version"] |
| 389 | # TODO remove once VS 2026 is available in 'standard' runnners |
| 390 | if entry.get("vs_version") == "2026": |
| 391 | entry["runner"] = "windows-2025-vs2026" |
| 392 | return entry |
| 393 | |
| 394 | |
| 395 | def add_python_build_entries_for_config( |
no test coverage detected