chore: remove cached_property from utils (#1884)
This commit is contained in:
@@ -31,7 +31,6 @@ from .util import (
|
|||||||
BuildSelector,
|
BuildSelector,
|
||||||
DependencyConstraints,
|
DependencyConstraints,
|
||||||
TestSelector,
|
TestSelector,
|
||||||
cached_property,
|
|
||||||
format_safe,
|
format_safe,
|
||||||
resources_dir,
|
resources_dir,
|
||||||
selector_matches,
|
selector_matches,
|
||||||
@@ -502,7 +501,7 @@ class Options:
|
|||||||
|
|
||||||
return None
|
return None
|
||||||
|
|
||||||
@cached_property
|
@functools.cached_property
|
||||||
def package_requires_python_str(self) -> str | None:
|
def package_requires_python_str(self) -> str | None:
|
||||||
args = self.command_line_arguments
|
args = self.command_line_arguments
|
||||||
return get_requires_python_str(Path(args.package_dir))
|
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_SKIP", build_selector.skip_config)
|
||||||
deprecated_selectors("CIBW_TEST_SKIP", test_selector.skip_config)
|
deprecated_selectors("CIBW_TEST_SKIP", test_selector.skip_config)
|
||||||
|
|
||||||
@cached_property
|
@functools.cached_property
|
||||||
def defaults(self) -> Options:
|
def defaults(self) -> Options:
|
||||||
return Options(
|
return Options(
|
||||||
platform=self.platform,
|
platform=self.platform,
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ from collections import defaultdict
|
|||||||
from collections.abc import Generator, Iterable, Mapping, MutableMapping, Sequence
|
from collections.abc import Generator, Iterable, Mapping, MutableMapping, Sequence
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from enum import Enum
|
from enum import Enum
|
||||||
from functools import cached_property, lru_cache
|
from functools import lru_cache
|
||||||
from pathlib import Path, PurePath
|
from pathlib import Path, PurePath
|
||||||
from tempfile import TemporaryDirectory
|
from tempfile import TemporaryDirectory
|
||||||
from time import sleep
|
from time import sleep
|
||||||
@@ -41,7 +41,6 @@ from .typing import PathOrStr, PlatformName
|
|||||||
|
|
||||||
__all__ = [
|
__all__ = [
|
||||||
"MANYLINUX_ARCHS",
|
"MANYLINUX_ARCHS",
|
||||||
"cached_property",
|
|
||||||
"call",
|
"call",
|
||||||
"chdir",
|
"chdir",
|
||||||
"combine_constraints",
|
"combine_constraints",
|
||||||
|
|||||||
Reference in New Issue
Block a user