@@ -91,46 +91,46 @@ urls.Source = "https://github.com/python-pillow/Pillow"
9191packages = [
9292 " PIL" ,
9393]
94- include-package-data = true
9594package-dir = { "" = " src" }
95+ include-package-data = true
9696dynamic.version = { attr = " PIL.__version__" }
9797
9898[tool .cibuildwheel ]
99- before-all = " .github/workflows/wheels-dependencies.sh"
10099build-verbosity = 1
101100config-settings = " raqm=enable raqm=vendor fribidi=vendor imagequant=disable"
101+ before-all = " .github/workflows/wheels-dependencies.sh"
102102test-command = " cd {project} && .github/workflows/wheels-test.sh"
103- test-extras = " tests"
104103test-requires = [
105104 " numpy" ,
106105]
107- xbuild-tools = []
106+ test-extras = " tests"
107+ # Disable platform guessing on macOS to avoid picking up Homebrew etc.
108+ macos.config-settings = " raqm=enable raqm=vendor fribidi=vendor imagequant=disable platform-guessing=disable"
109+ # Isolate macOS build environment from Homebrew etc.
110+ macos.environment.PATH = " $(pwd)/build/deps/darwin/bin:$(dirname $(which python3)):/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin"
108111# Disable platform guessing on iOS, and disable raqm (since there won't be a
109112# vendor version, and we can't distribute it due to licensing)
110113ios.config-settings = " raqm=disable imagequant=disable platform-guessing=disable"
111114# iOS needs to be given a specific pytest invocation and list of test sources.
112- ios.test-sources = [
113- " checks" ,
114- " Tests" ,
115- " selftest.py" ,
116- ]
117115ios.test-command = [
118116 " python -m selftest" ,
119117 " python -m pytest -vv -x -W always checks/check_wheel.py Tests" ,
120118]
121119# There's no numpy wheel for iOS (yet...)
122120ios.test-requires = []
123- # Disable platform guessing on macOS to avoid picking up Homebrew etc.
124- macos.config-settings = " raqm=enable raqm=vendor fribidi=vendor imagequant=disable platform-guessing=disable"
125- # Isolate macOS build environment from Homebrew etc.
126- macos.environment.PATH = " $(pwd)/build/deps/darwin/bin:$(dirname $(which python3)):/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin"
121+ ios.test-sources = [
122+ " checks" ,
123+ " Tests" ,
124+ " selftest.py" ,
125+ ]
127126overrides = [
128127 # iOS environment is isolated by cibuildwheel, but needs the dependencies
129128 { select = " *_iphoneos" , environment.PATH = " $(pwd)/build/deps/iphoneos/bin:$PATH" },
130129 # iOS simulator environment is isolated by cibuildwheel, but needs the dependencies
131130 { select = " *_iphonesimulator" , environment.PATH = " $(pwd)/build/deps/iphonesimulator/bin:$PATH" },
132131 { select = " *-win32" , test-requires = [] },
133132]
133+ xbuild-tools = []
134134
135135[tool .black ]
136136exclude = " wheels/multibuild"
@@ -187,16 +187,16 @@ lint.isort.required-imports = [
187187max_supported_python = " 3.14"
188188
189189[tool .mypy ]
190+ follow_imports = " silent"
190191python_version = " 3.10"
191- pretty = true
192192disallow_any_generics = true
193193disallow_untyped_defs = true
194- enable_error_code = " ignore-without-code"
195- extra_checks = true
196- follow_imports = " silent"
197194warn_redundant_casts = true
198- warn_unreachable = true
199195warn_unused_ignores = true
196+ warn_unreachable = true
197+ enable_error_code = " ignore-without-code"
198+ extra_checks = true
199+ pretty = true
200200
201201[tool .pytest ]
202202addopts = [ " -ra" , " --color=auto" ]
0 commit comments