require types-setuptools>=75.2.0

this is necessary to have https://github.com/python/typeshed/pull/12791
This commit is contained in:
Yay295 2024-10-28 08:24:57 -05:00
parent 96421923eb
commit f7b57265ad
2 changed files with 6 additions and 3 deletions

View File

@ -9,4 +9,4 @@ sphinx
types-atheris
types-defusedxml
types-olefile
types-setuptools
types-setuptools>=75.2.0

View File

@ -16,11 +16,14 @@ import subprocess
import sys
import warnings
from collections.abc import Iterator
from typing import Any
from typing import TYPE_CHECKING, Any
from setuptools import Extension, setup
from setuptools.command.build_ext import build_ext
if TYPE_CHECKING:
from setuptools import _BuildInfo
def get_version() -> str:
version_file = "src/PIL/_version.py"
@ -1001,7 +1004,7 @@ def debug_build() -> bool:
return hasattr(sys, "gettotalrefcount") or FUZZING_BUILD
libraries = [
libraries: list[tuple[str, _BuildInfo]] = [
("pil_imaging_mode", {"sources": ["src/libImaging/Mode.c"]}),
]