chore: remove cached_property from utils (#1884)

This commit is contained in:
Matthieu Darbois
2024-06-17 23:01:08 +02:00
committed by GitHub
parent f49397f151
commit 70913f0a49
2 changed files with 3 additions and 5 deletions
+2 -3
View File
@@ -31,7 +31,6 @@ from .util import (
BuildSelector,
DependencyConstraints,
TestSelector,
cached_property,
format_safe,
resources_dir,
selector_matches,
@@ -502,7 +501,7 @@ class Options:
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 @@ class Options:
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,
+1 -2
View File
@@ -19,7 +19,7 @@ from collections import defaultdict
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 @@ from .typing import PathOrStr, PlatformName
__all__ = [
"MANYLINUX_ARCHS",
"cached_property",
"call",
"chdir",
"combine_constraints",