pytype_test.py: Use importlib.metadata instead of pkg_resources (#10391)

This commit is contained in:
Alex Waygood
2023-06-30 21:37:06 +01:00
committed by GitHub
parent cd0388439a
commit 7fdd05003a
5 changed files with 20 additions and 16 deletions

View File

@@ -13,7 +13,7 @@ from utils import colored, print_error
ReturnCode: TypeAlias = int
SUPPORTED_PLATFORMS = ("linux", "darwin", "win32")
SUPPORTED_VERSIONS = ("3.12", "3.11", "3.10", "3.9")
SUPPORTED_VERSIONS = ("3.12", "3.11", "3.10")
LOWEST_SUPPORTED_VERSION = min(SUPPORTED_VERSIONS, key=lambda x: int(x.split(".")[1]))
DIRECTORIES_TO_TEST = ("scripts", "tests")
EMPTY: list[str] = []