Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split file utils into dedicated submodule #1873

Closed
Prev Previous commit
Next Next commit
require explicit imports from new utils modules
MusicalNinjaDad committed Jul 4, 2024
commit ae7297a2c8c5d48c133ff8357fea8cd66de9e3cf
2 changes: 1 addition & 1 deletion cibuildwheel/macos.py
Original file line number Diff line number Diff line change
@@ -40,7 +40,6 @@
get_build_verbosity_extra_flags,
get_pip_version,
install_certifi_script,
move_file,
prepare_command,
read_python_configs,
shell,
@@ -49,6 +48,7 @@
unwrap,
virtualenv,
)
from .util.files import move_file


@functools.lru_cache(maxsize=None)
2 changes: 1 addition & 1 deletion cibuildwheel/pyodide.py
Original file line number Diff line number Diff line change
@@ -27,14 +27,14 @@
extract_zip,
find_compatible_wheel,
get_pip_version,
move_file,
prepare_command,
read_python_configs,
shell,
split_config_settings,
test_fail_cwd_file,
virtualenv,
)
from .util.files import move_file


@dataclass(frozen=True)
3 changes: 1 addition & 2 deletions cibuildwheel/util/__init__.py
Original file line number Diff line number Diff line change
@@ -2,8 +2,7 @@

from functools import cached_property # re-exported as part of __all__

# Using import * to avoid making a breaking change by splitting util into submodules
from .files import *
from .files import chdir
from .misc import *

__all__ = [
2 changes: 1 addition & 1 deletion cibuildwheel/windows.py
Original file line number Diff line number Diff line change
@@ -35,7 +35,6 @@
find_uv,
get_build_verbosity_extra_flags,
get_pip_version,
move_file,
prepare_command,
read_python_configs,
shell,
@@ -44,6 +43,7 @@
unwrap,
virtualenv,
)
from .util.files import move_file


def get_nuget_args(