From 70913f0a49c9f26a3c14563b866603fe9165812c Mon Sep 17 00:00:00 2001 From: Matthieu Darbois Date: Mon, 17 Jun 2024 23:01:08 +0200 Subject: [PATCH] chore: remove cached_property from utils (#1884) --- cibuildwheel/options.py | 5 ++--- cibuildwheel/util.py | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/cibuildwheel/options.py b/cibuildwheel/options.py index a2b1b7a8b..62094e94d 100644 --- a/cibuildwheel/options.py +++ b/cibuildwheel/options.py @@ -31,7 +31,6 @@ BuildSelector, DependencyConstraints, TestSelector, - cached_property, format_safe, resources_dir, selector_matches, @@ -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)) @@ -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, diff --git a/cibuildwheel/util.py b/cibuildwheel/util.py index efc0d0a78..b70d56767 100644 --- a/cibuildwheel/util.py +++ b/cibuildwheel/util.py @@ -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 @@ -41,7 +41,6 @@ __all__ = [ "MANYLINUX_ARCHS", - "cached_property", "call", "chdir", "combine_constraints",