chore: color and suggest_on_error are now default (3.14rc1+) (#2554)

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
This commit is contained in:
Henry Schreiner
2025-08-14 20:44:05 +02:00
committed by GitHub
parent ff9a284f21
commit 95e827ece1
4 changed files with 5 additions and 21 deletions
+2 -5
View File
@@ -1,7 +1,6 @@
import argparse
import contextlib
import dataclasses
import functools
import os
import shutil
import sys
@@ -80,16 +79,14 @@ def main_inner(global_options: GlobalOptions) -> None:
rather than exiting directly.
"""
make_parser = functools.partial(argparse.ArgumentParser, allow_abbrev=False)
if sys.version_info >= (3, 14):
make_parser = functools.partial(make_parser, color=True, suggest_on_error=True)
parser = make_parser(
parser = argparse.ArgumentParser(
description="Build wheels for all the platforms.",
epilog="""
Most options are supplied via environment variables or in
--config-file (pyproject.toml usually). See
https://github.com/pypa/cibuildwheel#options for info.
""",
allow_abbrev=False,
)
parser.add_argument(