Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 18, 2024
1 parent 060d96c commit a6ae1c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cibuildwheel/oci_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,11 @@ def options_summary(self) -> str | dict[str, str]:

DEFAULT_ENGINE = OCIContainerEngineConfig("docker")


def _version_from_string(version: str) -> Version:
return Version(version.replace("-", "+"))


def _check_engine_version(engine: OCIContainerEngineConfig) -> None:
try:
version_string = call(engine.name, "version", "-f", "{{json .}}", capture_stdout=True)
Expand Down

0 comments on commit a6ae1c4

Please sign in to comment.