Skip to content

Commit

Permalink
require types-setuptools>=75.2.0
Browse files Browse the repository at this point in the history
this is necessary to have python/typeshed#12791
  • Loading branch information
Yay295 committed Oct 28, 2024
1 parent 9642192 commit f7b5726
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .ci/requirements-mypy.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ sphinx
types-atheris
types-defusedxml
types-olefile
types-setuptools
types-setuptools>=75.2.0
7 changes: 5 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,14 @@
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"
Expand Down Expand Up @@ -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"]}),
]

Expand Down

0 comments on commit f7b5726

Please sign in to comment.