Merge pull request #1412 from pypa/pre-commit-ci-update-config

[pre-commit.ci] pre-commit autoupdate
This commit is contained in:
Joe Rickerby
2023-02-10 11:41:32 +00:00
committed by GitHub
13 changed files with 7 additions and 31 deletions
-1
View File
@@ -134,7 +134,6 @@ def allowed_architectures_check(
platform: PlatformName,
architectures: set[Architecture],
) -> None:
allowed_architectures = Architecture.all_archs(platform)
msg = f"{PRETTY_NAMES[platform]} only supports {sorted(allowed_architectures)} at the moment."
-4
View File
@@ -48,7 +48,6 @@ def get_python_configurations(
build_selector: BuildSelector,
architectures: set[Architecture],
) -> list[PythonConfiguration]:
full_python_configs = read_python_configs("linux")
python_configurations = [PythonConfiguration(**item) for item in full_python_configs]
@@ -224,7 +223,6 @@ def build_in_container(
)
repaired_wheels = [compatible_wheel]
else:
if build_options.before_build:
log.step("Running before_build...")
before_build_prepared = prepare_command(
@@ -421,7 +419,6 @@ def build(options: Options, tmp_path: Path) -> None: # noqa: ARG001
cwd=container_project_path,
engine=options.globals.container_engine,
) as container:
build_in_container(
options=options,
platform_configs=build_step.platform_configs,
@@ -446,7 +443,6 @@ def _matches_prepared_command(error_cmd: list[str], command_template: str) -> bo
def troubleshoot(options: Options, error: Exception) -> None:
if isinstance(error, subprocess.CalledProcessError) and (
error.cmd[0:4] == ["python", "-m", "pip", "wheel"]
or error.cmd[0:3] == ["python", "-m", "build"]
+1 -2
View File
@@ -71,7 +71,6 @@ class PythonConfiguration:
def get_python_configurations(
build_selector: BuildSelector, architectures: set[Architecture]
) -> list[PythonConfiguration]:
full_python_configs = read_python_configs("macos")
python_configurations = [PythonConfiguration(**item) for item in full_python_configs]
@@ -460,7 +459,7 @@ def build(options: Options, tmp_path: Path) -> None:
env=env,
capture_stdout=True,
).strip()
testing_archs: list[Literal["x86_64", "arm64"]] # noqa: F821
testing_archs: list[Literal["x86_64", "arm64"]]
if config_is_arm64:
testing_archs = ["arm64"]
-3
View File
@@ -68,7 +68,6 @@ class OCIContainer:
self.engine = engine
def __enter__(self) -> OCIContainer:
self.name = f"cibuildwheel-{uuid.uuid4()}"
# work-around for Travis-CI PPC64le Docker runs since 2021:
@@ -130,7 +129,6 @@ class OCIContainer:
exc_val: BaseException | None,
exc_tb: TracebackType | None,
) -> None:
self.bash_stdin.write(b"exit 0\n")
self.bash_stdin.flush()
self.process.wait(timeout=30)
@@ -244,7 +242,6 @@ class OCIContainer:
capture_output: bool = False,
cwd: PathOrStr | None = None,
) -> str:
if cwd is None:
# Podman does not start the a container in a specific working dir
# so we always need to specify it when making calls.
+1 -1
View File
@@ -44,7 +44,7 @@ from .util import (
@dataclasses.dataclass
class CommandLineArguments:
platform: Literal["auto", "linux", "macos", "windows"] | None # noqa: F821
platform: Literal["auto", "linux", "macos", "windows"] | None
archs: str | None
output_dir: Path
only: str | None
-1
View File
@@ -73,7 +73,6 @@ def get_python_configurations(
build_selector: BuildSelector,
architectures: set[Architecture],
) -> list[PythonConfiguration]:
full_python_configs = read_python_configs("windows")
python_configurations = [PythonConfiguration(**item) for item in full_python_configs]