Skip to content

Commit

Permalink
chore: remove cached_property from utils (#1884)
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut authored Jun 17, 2024
1 parent f49397f commit 70913f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions cibuildwheel/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
BuildSelector,
DependencyConstraints,
TestSelector,
cached_property,
format_safe,
resources_dir,
selector_matches,
Expand Down Expand Up @@ -502,7 +501,7 @@ def config_file_path(self) -> Path | None:

return None

@cached_property
@functools.cached_property
def package_requires_python_str(self) -> str | None:
args = self.command_line_arguments
return get_requires_python_str(Path(args.package_dir))
Expand Down Expand Up @@ -722,7 +721,7 @@ def check_for_deprecated_options(self) -> None:
deprecated_selectors("CIBW_SKIP", build_selector.skip_config)
deprecated_selectors("CIBW_TEST_SKIP", test_selector.skip_config)

@cached_property
@functools.cached_property
def defaults(self) -> Options:
return Options(
platform=self.platform,
Expand Down
3 changes: 1 addition & 2 deletions cibuildwheel/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from collections.abc import Generator, Iterable, Mapping, MutableMapping, Sequence
from dataclasses import dataclass
from enum import Enum
from functools import cached_property, lru_cache
from functools import lru_cache
from pathlib import Path, PurePath
from tempfile import TemporaryDirectory
from time import sleep
Expand All @@ -41,7 +41,6 @@

__all__ = [
"MANYLINUX_ARCHS",
"cached_property",
"call",
"chdir",
"combine_constraints",
Expand Down

0 comments on commit 70913f0

Please sign in to comment.