fix: restore Python 3.7 support

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
This commit is contained in:
Henry Schreiner
2023-04-18 22:02:47 -04:00
parent e42f243b52
commit d996af554a
18 changed files with 41 additions and 28 deletions
+2 -7
View File
@@ -36,7 +36,8 @@ from packaging.utils import parse_wheel_filename
from packaging.version import Version
from platformdirs import user_cache_path
from cibuildwheel.typing import Final, Literal, PathOrStr, PlatformName
from ._compat.functools import cached_property
from ._compat.typing import Final, Literal, PathOrStr, PlatformName
__all__ = [
"resources_dir",
@@ -661,12 +662,6 @@ def find_compatible_wheel(wheels: Sequence[T], identifier: str) -> T | None:
return None
if sys.version_info >= (3, 8):
from functools import cached_property
else:
from .functools_cached_property_38 import cached_property
# Can be replaced by contextlib.chdir in Python 3.11
@contextlib.contextmanager
def chdir(new_path: Path | str) -> Generator[None, None, None]: