pyobjc-framework-ScriptingBridge 12.2.2__tar.gz → 13.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. {pyobjc_framework_scriptingbridge-12.2.2 → pyobjc_framework_scriptingbridge-13.1}/Lib/ScriptingBridge/_metadata.py +3 -2
  2. {pyobjc_framework_scriptingbridge-12.2.2 → pyobjc_framework_scriptingbridge-13.1}/Lib/pyobjc_framework_ScriptingBridge.egg-info/PKG-INFO +5 -5
  3. {pyobjc_framework_scriptingbridge-12.2.2 → pyobjc_framework_scriptingbridge-13.1}/Lib/pyobjc_framework_ScriptingBridge.egg-info/SOURCES.txt +2 -2
  4. pyobjc_framework_scriptingbridge-13.1/Lib/pyobjc_framework_ScriptingBridge.egg-info/pyobjc-build-info.txt +3 -0
  5. pyobjc_framework_scriptingbridge-13.1/Lib/pyobjc_framework_ScriptingBridge.egg-info/requires.txt +2 -0
  6. {pyobjc_framework_scriptingbridge-12.2.2 → pyobjc_framework_scriptingbridge-13.1}/Modules/_ScriptingBridge.m +9 -2
  7. {pyobjc_framework_scriptingbridge-12.2.2 → pyobjc_framework_scriptingbridge-13.1}/Modules/_ScriptingBridge_protocols.m +7 -5
  8. {pyobjc_framework_scriptingbridge-12.2.2 → pyobjc_framework_scriptingbridge-13.1}/Modules/pyobjc-api.h +18 -4
  9. {pyobjc_framework_scriptingbridge-12.2.2 → pyobjc_framework_scriptingbridge-13.1}/Modules/pyobjc-compat.h +0 -18
  10. {pyobjc_framework_scriptingbridge-12.2.2 → pyobjc_framework_scriptingbridge-13.1}/PKG-INFO +5 -5
  11. {pyobjc_framework_scriptingbridge-12.2.2 → pyobjc_framework_scriptingbridge-13.1}/PyObjCTest/test_scriptingbridge.py +6 -5
  12. {pyobjc_framework_scriptingbridge-12.2.2 → pyobjc_framework_scriptingbridge-13.1}/metadata/ScriptingBridge.fwinfo +1 -39
  13. pyobjc_framework_scriptingbridge-12.2.2/metadata/raw/arm64-26.5.fwinfo → pyobjc_framework_scriptingbridge-13.1/metadata/raw/arm64-27.fwinfo +2 -3
  14. pyobjc_framework_scriptingbridge-12.2.2/metadata/raw/x86_64-26.5.fwinfo → pyobjc_framework_scriptingbridge-13.1/metadata/raw/x86_64-27.fwinfo +2 -3
  15. {pyobjc_framework_scriptingbridge-12.2.2 → pyobjc_framework_scriptingbridge-13.1}/pyobjc_setup.py +66 -8
  16. {pyobjc_framework_scriptingbridge-12.2.2 → pyobjc_framework_scriptingbridge-13.1}/setup.py +1 -1
  17. pyobjc_framework_scriptingbridge-12.2.2/Lib/pyobjc_framework_ScriptingBridge.egg-info/pyobjc-build-info.txt +0 -3
  18. pyobjc_framework_scriptingbridge-12.2.2/Lib/pyobjc_framework_ScriptingBridge.egg-info/requires.txt +0 -2
  19. {pyobjc_framework_scriptingbridge-12.2.2 → pyobjc_framework_scriptingbridge-13.1}/Examples/iTunesCurrentTrack.py +0 -0
  20. {pyobjc_framework_scriptingbridge-12.2.2 → pyobjc_framework_scriptingbridge-13.1}/LICENSE.txt +0 -0
  21. {pyobjc_framework_scriptingbridge-12.2.2 → pyobjc_framework_scriptingbridge-13.1}/Lib/ScriptingBridge/__init__.py +0 -0
  22. {pyobjc_framework_scriptingbridge-12.2.2 → pyobjc_framework_scriptingbridge-13.1}/Lib/pyobjc_framework_ScriptingBridge.egg-info/dependency_links.txt +0 -0
  23. {pyobjc_framework_scriptingbridge-12.2.2 → pyobjc_framework_scriptingbridge-13.1}/Lib/pyobjc_framework_ScriptingBridge.egg-info/not-zip-safe +0 -0
  24. {pyobjc_framework_scriptingbridge-12.2.2 → pyobjc_framework_scriptingbridge-13.1}/Lib/pyobjc_framework_ScriptingBridge.egg-info/top_level.txt +0 -0
  25. {pyobjc_framework_scriptingbridge-12.2.2 → pyobjc_framework_scriptingbridge-13.1}/MANIFEST.in +0 -0
  26. {pyobjc_framework_scriptingbridge-12.2.2 → pyobjc_framework_scriptingbridge-13.1}/PyObjCTest/__init__.py +0 -0
  27. {pyobjc_framework_scriptingbridge-12.2.2 → pyobjc_framework_scriptingbridge-13.1}/README.txt +0 -0
  28. {pyobjc_framework_scriptingbridge-12.2.2 → pyobjc_framework_scriptingbridge-13.1}/metadata/metadata.ini +0 -0
  29. {pyobjc_framework_scriptingbridge-12.2.2 → pyobjc_framework_scriptingbridge-13.1}/pyproject.toml +0 -0
  30. {pyobjc_framework_scriptingbridge-12.2.2 → pyobjc_framework_scriptingbridge-13.1}/setup.cfg +0 -0
@@ -1,7 +1,5 @@
1
1
  # This file is generated by objective.metadata
2
2
  #
3
- # Last update: Sun May 24 11:57:53 2026
4
- #
5
3
  # flake8: noqa
6
4
 
7
5
  import objc, sys
@@ -75,5 +73,8 @@ objc.registerNewKeywordsFromSelector(
75
73
  )
76
74
  objc.registerNewKeywordsFromSelector("SBObject", b"initWithProperties:")
77
75
  expressions = {}
76
+ formal_protocols = {
77
+ "SBApplicationDelegate": "SBApplicationDelegate",
78
+ }
78
79
 
79
80
  # END OF FILE
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyobjc-framework-ScriptingBridge
3
- Version: 12.2.2
3
+ Version: 13.1
4
4
  Summary: Wrappers for the framework ScriptingBridge on macOS
5
5
  Home-page: https://github.com/ronaldoussoren/pyobjc
6
6
  Author: Ronald Oussoren
@@ -17,22 +17,22 @@ Classifier: Operating System :: MacOS :: MacOS X
17
17
  Classifier: Programming Language :: Python
18
18
  Classifier: Programming Language :: Python :: 3
19
19
  Classifier: Programming Language :: Python :: 3 :: Only
20
- Classifier: Programming Language :: Python :: 3.10
21
20
  Classifier: Programming Language :: Python :: 3.11
22
21
  Classifier: Programming Language :: Python :: 3.12
23
22
  Classifier: Programming Language :: Python :: 3.13
24
23
  Classifier: Programming Language :: Python :: 3.14
25
24
  Classifier: Programming Language :: Python :: 3.15
25
+ Classifier: Programming Language :: Python :: 3.16
26
26
  Classifier: Programming Language :: Python :: Implementation :: CPython
27
27
  Classifier: Programming Language :: Python :: Free Threading :: 3 - Stable
28
28
  Classifier: Programming Language :: Objective C
29
29
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
30
30
  Classifier: Topic :: Software Development :: User Interfaces
31
- Requires-Python: >=3.10
31
+ Requires-Python: >=3.11
32
32
  Description-Content-Type: text/x-rst; charset=UTF-8
33
33
  License-File: LICENSE.txt
34
- Requires-Dist: pyobjc-core>=12.2.2
35
- Requires-Dist: pyobjc-framework-Cocoa>=12.2.2
34
+ Requires-Dist: pyobjc-core>=13.1
35
+ Requires-Dist: pyobjc-framework-Cocoa>=13.1
36
36
  Dynamic: author
37
37
  Dynamic: author-email
38
38
  Dynamic: classifier
@@ -22,5 +22,5 @@ PyObjCTest/__init__.py
22
22
  PyObjCTest/test_scriptingbridge.py
23
23
  metadata/ScriptingBridge.fwinfo
24
24
  metadata/metadata.ini
25
- metadata/raw/arm64-26.5.fwinfo
26
- metadata/raw/x86_64-26.5.fwinfo
25
+ metadata/raw/arm64-27.fwinfo
26
+ metadata/raw/x86_64-27.fwinfo
@@ -0,0 +1,3 @@
1
+ macOS 27.2.1 (26B131)
2
+ Apple clang version 21.0.0 (clang-2100.4.1.1)
3
+ SDK: macOS 27.2
@@ -0,0 +1,2 @@
1
+ pyobjc-core>=13.1
2
+ pyobjc-framework-Cocoa>=13.1
@@ -2,6 +2,10 @@
2
2
  #include "Python.h"
3
3
  #include "pyobjc-api.h"
4
4
 
5
+ #ifdef USE_STATIC_ANALYZER
6
+ #include "../../pyobjc-core/Modules/objc/python-api-used.h"
7
+ #endif
8
+
5
9
  #import <ScriptingBridge/ScriptingBridge.h>
6
10
 
7
11
  /* We include the source code here instead of
@@ -9,6 +13,8 @@
9
13
  */
10
14
  #include "_ScriptingBridge_protocols.m"
11
15
 
16
+ NS_ASSUME_NONNULL_BEGIN
17
+
12
18
  static PyMethodDef mod_methods[] = {
13
19
  {0, 0, 0, 0} /* sentinel */
14
20
  };
@@ -54,10 +60,11 @@ static struct PyModuleDef mod_module = {
54
60
  .m_free = NULL,
55
61
  };
56
62
 
57
- PyObject* PyInit__ScriptingBridge(void);
63
+ PyObject* _Nullable PyInit__ScriptingBridge(void);
58
64
 
59
- PyObject* __attribute__((__visibility__("default")))
65
+ PyObject* _Nullable __attribute__((__visibility__("default")))
60
66
  PyInit__ScriptingBridge(void)
61
67
  {
62
68
  return PyModuleDef_Init(&mod_module);
63
69
  }
70
+ NS_ASSUME_NONNULL_END
@@ -1,8 +1,7 @@
1
- /*
2
- * This file is generated by objective.metadata
3
- *
4
- * Last update: Wed Jan 16 13:11:47 2013
5
- */
1
+ // LCOV_EXCL_START
2
+ // This function is only present to ensure protocols are
3
+ // available at runtime.
4
+ NS_ASSUME_NONNULL_BEGIN
6
5
 
7
6
  static void __attribute__((__used__))
8
7
  use_protocols(void)
@@ -11,3 +10,6 @@ use_protocols(void)
11
10
  p = PyObjC_IdToPython(@protocol(SBApplicationDelegate));
12
11
  Py_XDECREF(p);
13
12
  }
13
+
14
+ NS_ASSUME_NONNULL_END
15
+ // LCOV_EXCL_STOP
@@ -60,6 +60,11 @@ typedef int(RegisterMethodMappingFunctionType)(
60
60
  PyObject* _Nonnull const* _Nonnull, size_t),
61
61
  IMP _Nullable (*_Nonnull)(PyObject* _Nonnull, PyObject* _Nonnull));
62
62
 
63
+ #ifndef PyObjC_FUNCTION_CALL_H
64
+ typedef PyObject* _Nullable (*PyObjC_FunctionCallFunc)(
65
+ PyObject* meth, PyObject* _Nonnull const* _Nonnull args, size_t nargs);
66
+ #endif
67
+
63
68
  struct pyobjc_api {
64
69
  int api_version; /* API version */
65
70
  size_t struct_len; /* Length of this struct */
@@ -117,6 +122,9 @@ struct pyobjc_api {
117
122
 
118
123
  PyObject* _Nullable (*_Nonnull createopaquepointertype)(const char*, const char*,
119
124
  const char*);
125
+ int (*_Nonnull register_functioncaller)(void*, PyObjC_FunctionCallFunc);
126
+ PyObject* _Nullable (*_Nonnull create_registered_struct)(
127
+ const char*, Py_ssize_t, const char* _Nonnull* _Nullable, Py_ssize_t*);
120
128
  };
121
129
 
122
130
  #ifndef PYOBJC_BUILD
@@ -159,6 +167,8 @@ static struct pyobjc_api* PyObjC_API;
159
167
  #define PyObjC_CheckArgCount (PyObjC_API->checkargcount)
160
168
  #define PyObjC_CheckNoKwnames (PyObjC_API->checknokwnames)
161
169
  #define PyObjCCreateOpaquePointerType (PyObjC_API->createopaquepointertype)
170
+ #define PyObjCRegister_FunctionCaller (PyObjC_API->register_functioncaller)
171
+ #define PyObjC_CreateRegisteredStruct (PyObjC_API->create_registered_struct)
162
172
 
163
173
  typedef void (*PyObjC_Function_Pointer)(void);
164
174
  typedef struct PyObjC_function_map {
@@ -178,21 +188,25 @@ static inline int
178
188
  PyObjC_ImportAPI(PyObject* calling_module)
179
189
  {
180
190
  PyObjC_API = (struct pyobjc_api*)PyCapsule_Import("objc." PYOBJC_API_NAME, 0);
181
- if (PyObjC_API == NULL) {
182
- return -1;
191
+ if (PyObjC_API == NULL) { // LCOV_BR_EXCL_LINE
192
+ return -1; // LCOV_EXCL_LINE
183
193
  }
184
- if (PyObjC_API->api_version != PYOBJC_API_VERSION) {
194
+ if (PyObjC_API->api_version != PYOBJC_API_VERSION) { // LCOV_BR_EXCL_LINE
195
+ // LCOV_EXCL_START
185
196
  PyErr_Format(PyExc_RuntimeError,
186
197
  "Wrong version of PyObjC C API (got %d, expected %d)",
187
198
  (int)PyObjC_API->api_version, (int)PYOBJC_API_VERSION);
188
199
  return -1;
200
+ // LCOV_EXCL_STOP
189
201
  }
190
202
 
191
- if (PyObjC_API->struct_len < PyObjC_EXPECTED_STRUCT_SIZE) {
203
+ if (PyObjC_API->struct_len < PyObjC_EXPECTED_STRUCT_SIZE) { // LCOV_EXCL_LINE
204
+ // LCOV_EXCL_START
192
205
  PyErr_Format(PyExc_RuntimeError,
193
206
  "Wrong struct-size of PyObjC C API (got %d, expected %d)",
194
207
  (int)PyObjC_API->struct_len, (int)sizeof(struct pyobjc_api));
195
208
  return -1;
209
+ // LCOV_EXCL_STOP
196
210
  }
197
211
 
198
212
  /* Current pyobjc implementation doesn't allow deregistering
@@ -167,24 +167,6 @@ _PyObjCTuple_GetItem(PyObject* tuple, Py_ssize_t idx)
167
167
  PyGILState_Release(_GILState); \
168
168
  } while (0)
169
169
 
170
- #if PY_VERSION_HEX < 0x030a0000
171
-
172
- static inline PyObject*
173
- Py_NewRef(PyObject* o)
174
- {
175
- Py_INCREF(o);
176
- return o;
177
- }
178
-
179
- static inline PyObject*
180
- Py_XNewRef(PyObject* o)
181
- {
182
- Py_XINCREF(o);
183
- return o;
184
- }
185
-
186
- #endif /* PY_VERSION_HEX < 0x030a0000 */
187
-
188
170
  #if PY_VERSION_HEX < 0x030d0000
189
171
  #define Py_BEGIN_CRITICAL_SECTION(value) \
190
172
  { \
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyobjc-framework-ScriptingBridge
3
- Version: 12.2.2
3
+ Version: 13.1
4
4
  Summary: Wrappers for the framework ScriptingBridge on macOS
5
5
  Home-page: https://github.com/ronaldoussoren/pyobjc
6
6
  Author: Ronald Oussoren
@@ -17,22 +17,22 @@ Classifier: Operating System :: MacOS :: MacOS X
17
17
  Classifier: Programming Language :: Python
18
18
  Classifier: Programming Language :: Python :: 3
19
19
  Classifier: Programming Language :: Python :: 3 :: Only
20
- Classifier: Programming Language :: Python :: 3.10
21
20
  Classifier: Programming Language :: Python :: 3.11
22
21
  Classifier: Programming Language :: Python :: 3.12
23
22
  Classifier: Programming Language :: Python :: 3.13
24
23
  Classifier: Programming Language :: Python :: 3.14
25
24
  Classifier: Programming Language :: Python :: 3.15
25
+ Classifier: Programming Language :: Python :: 3.16
26
26
  Classifier: Programming Language :: Python :: Implementation :: CPython
27
27
  Classifier: Programming Language :: Python :: Free Threading :: 3 - Stable
28
28
  Classifier: Programming Language :: Objective C
29
29
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
30
30
  Classifier: Topic :: Software Development :: User Interfaces
31
- Requires-Python: >=3.10
31
+ Requires-Python: >=3.11
32
32
  Description-Content-Type: text/x-rst; charset=UTF-8
33
33
  License-File: LICENSE.txt
34
- Requires-Dist: pyobjc-core>=12.2.2
35
- Requires-Dist: pyobjc-framework-Cocoa>=12.2.2
34
+ Requires-Dist: pyobjc-core>=13.1
35
+ Requires-Dist: pyobjc-framework-Cocoa>=13.1
36
36
  Dynamic: author
37
37
  Dynamic: author-email
38
38
  Dynamic: classifier
@@ -1,4 +1,4 @@
1
- from PyObjCTools.TestSupport import TestCase, min_os_level
1
+ from PyObjCTools.TestSupport import TestCase
2
2
  import ScriptingBridge
3
3
 
4
4
 
@@ -8,12 +8,13 @@ class TestSBApplicationHelper(ScriptingBridge.NSObject):
8
8
 
9
9
 
10
10
  class TestSBApplication(TestCase):
11
- def testMethods(self):
11
+ def test_methods(self):
12
12
  self.assertResultIsBOOL(ScriptingBridge.SBApplication.isRunning)
13
13
 
14
- @min_os_level("10.6")
15
- def testProtocols(self):
16
- self.assertProtocolExists("SBApplicationDelegate")
14
+ def test_protocols(self):
15
+ self.assertProtocolExists("SBApplicationDelegate", ScriptingBridge)
16
+
17
+ def test_protocol_methods(self):
17
18
  self.assertArgHasType(
18
19
  TestSBApplicationHelper.eventDidFail_withError_,
19
20
  0,
@@ -18,11 +18,6 @@
18
18
  },
19
19
  "SBApplication": {
20
20
  "methods": [
21
- {
22
- "class_method": false,
23
- "retval": {},
24
- "selector": "classForScriptingClass:"
25
- },
26
21
  {
27
22
  "class_method": false,
28
23
  "retval": {
@@ -53,40 +48,7 @@
53
48
  "selector": "arrayByApplyingSelector:withObject:"
54
49
  }
55
50
  ]
56
- },
57
- "SBObject": {
58
- "methods": [
59
- {
60
- "args": {
61
- "0": {}
62
- },
63
- "class_method": false,
64
- "selector": "propertyWithClass:code:"
65
- },
66
- {
67
- "class_method": false,
68
- "selector": "sendEvent:id:parameters:",
69
- "variadic": true
70
- }
71
- ]
72
- }
73
- },
74
- "formal_protocols": {
75
- "SBApplicationDelegate": {
76
- "methods": [
77
- {
78
- "args": {
79
- "0": {
80
- "type_override": "r^{AEDesc=I^^{OpaqueAEDataStorageType}}"
81
- }
82
- },
83
- "class_method": false,
84
- "selector": "eventDidFail:withError:"
85
- }
86
- ]
87
51
  }
88
- },
89
- "functions": {},
90
- "informal_protocols": {}
52
+ }
91
53
  }
92
54
  }
@@ -1,7 +1,6 @@
1
1
  // GENERATED FILE DO NOT EDIT
2
2
  //
3
3
  // This file was generated by objective.metadata
4
- // Last update: Sun May 24 11:57:53 2026
5
4
  {
6
5
  "arch": "arm64",
7
6
  "definitions": {
@@ -773,6 +772,6 @@
773
772
  "SBElementArray.h",
774
773
  "SBObject.h"
775
774
  ],
776
- "release": "26.5",
777
- "sdk": "/Users/ronald/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk"
775
+ "release": "macOS 27.3",
776
+ "sdk": "Xcode 27.3 (27C5035f)/MacOSX27.sdk"
778
777
  }
@@ -1,7 +1,6 @@
1
1
  // GENERATED FILE DO NOT EDIT
2
2
  //
3
3
  // This file was generated by objective.metadata
4
- // Last update: Sun May 24 11:57:50 2026
5
4
  {
6
5
  "arch": "x86_64",
7
6
  "definitions": {
@@ -773,6 +772,6 @@
773
772
  "SBElementArray.h",
774
773
  "SBObject.h"
775
774
  ],
776
- "release": "26.5",
777
- "sdk": "/Users/ronald/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk"
775
+ "release": "macOS 27.3",
776
+ "sdk": "Xcode 27.3 (27C5035f)/MacOSX27.sdk"
778
777
  }
@@ -22,12 +22,20 @@ import tempfile
22
22
  import textwrap
23
23
  import time
24
24
  import unittest
25
+ import zipfile
25
26
  from fnmatch import fnmatch
26
27
  from sysconfig import get_config_var, get_config_vars
27
28
  from setuptools import Command
28
29
  from setuptools import Extension as _Extension
29
30
  from setuptools import setup as _setup
30
- from setuptools.command import build_ext, build_py, develop, egg_info, install_lib
31
+ from setuptools.command import (
32
+ build_ext,
33
+ build_py,
34
+ develop,
35
+ egg_info,
36
+ install_lib,
37
+ bdist_wheel,
38
+ )
31
39
 
32
40
  from distutils import log
33
41
  from distutils.errors import DistutilsError, DistutilsPlatformError
@@ -43,6 +51,29 @@ except ImportError:
43
51
  from distutils.command import build
44
52
 
45
53
 
54
+ class oc_bdist_wheel(bdist_wheel.bdist_wheel):
55
+ def run(self):
56
+ super().run()
57
+ if (
58
+ self.distribution.dist_files
59
+ and self.distribution.dist_files[-1][0] == "bdist_wheel"
60
+ ):
61
+ ok = True
62
+ zf = zipfile.ZipFile(self.distribution.dist_files[-1][-1], "r")
63
+ for nm in zf.namelist():
64
+ if ".dist-info/" in nm:
65
+ continue
66
+
67
+ if nm.startswith("PyObjCTest/"):
68
+ print("test file included in wheel:", nm)
69
+ if not any(nm.endswith(sfx) for sfx in (".pyi", ".py", ".so")):
70
+ print("unexpected name in wheel:", nm)
71
+ ok = False
72
+
73
+ if not ok:
74
+ raise DistutilsError("Wheel validation failed")
75
+
76
+
46
77
  class oc_build_py(build_py.build_py):
47
78
  def build_packages(self):
48
79
  log.info("overriding build_packages to copy PyObjCTest")
@@ -110,13 +141,11 @@ class oc_egg_info(egg_info.egg_info):
110
141
  else:
111
142
  sdk_version = os.path.basename(sdk_root)
112
143
 
113
- build_info = textwrap.dedent(
114
- f"""\
144
+ build_info = textwrap.dedent(f"""\
115
145
  macOS {macos_version} ({macos_build})
116
146
  {clang_version}
117
147
  SDK: {sdk_version}
118
- """
119
- )
148
+ """)
120
149
 
121
150
  self.write_file(
122
151
  "pyobjc-build-info.txt",
@@ -204,7 +233,7 @@ class oc_test(Command):
204
233
  "errors": len(result.errors),
205
234
  "xfails": len(getattr(result, "expectedFailures", [])),
206
235
  "xpass": len(getattr(result, "unexpectedSuccesses", [])),
207
- "skip=": len(getattr(result, "skipped", [])),
236
+ "skip": len(getattr(result, "skipped", [])),
208
237
  "testSeconds": (time_after - time_before),
209
238
  }
210
239
  print(f"SUMMARY: {summary}")
@@ -228,12 +257,12 @@ Operating System :: MacOS :: MacOS X
228
257
  Programming Language :: Python
229
258
  Programming Language :: Python :: 3
230
259
  Programming Language :: Python :: 3 :: Only
231
- Programming Language :: Python :: 3.10
232
260
  Programming Language :: Python :: 3.11
233
261
  Programming Language :: Python :: 3.12
234
262
  Programming Language :: Python :: 3.13
235
263
  Programming Language :: Python :: 3.14
236
264
  Programming Language :: Python :: 3.15
265
+ Programming Language :: Python :: 3.16
237
266
  Programming Language :: Python :: Implementation :: CPython
238
267
  Programming Language :: Python :: Free Threading :: 3 - Stable
239
268
  Programming Language :: Objective C
@@ -311,6 +340,10 @@ class pyobjc_install_lib(install_lib.install_lib):
311
340
  else:
312
341
  outputs = install_lib.orig.install_lib.get_outputs(self)
313
342
 
343
+ import pprint
344
+
345
+ pprint.pprint(outputs)
346
+
314
347
  exclusions = {}
315
348
  for fn in outputs:
316
349
  if "PyObjCTest" in fn:
@@ -440,9 +473,30 @@ class pyobjc_build_ext(build_ext.build_ext):
440
473
  if os.path.exists("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
441
474
  raise DistutilsError("pyobjc-api.h not included")
442
475
 
476
+ # Save mtimes for C extensions
477
+ prebuild_mtimes = {}
478
+ for ext in self.extensions:
479
+ fullname = self.get_ext_fullname(ext.name)
480
+ filename = self.get_ext_filename(fullname)
481
+ full_path = os.path.join(self.build_lib, filename)
482
+ if os.path.exists(full_path):
483
+ prebuild_mtimes[full_path] = os.stat(full_path).st_mtime
484
+
443
485
  # Run the actual build
444
486
  build_ext.build_ext.run(self)
445
487
 
488
+ # Ensure debug symbols are available:
489
+ for ext in self.extensions:
490
+ fullname = self.get_ext_fullname(ext.name)
491
+ filename = self.get_ext_filename(fullname)
492
+ full_path = os.path.join(self.build_lib, filename)
493
+
494
+ if self.inplace:
495
+ if full_path not in prebuild_mtimes or (
496
+ prebuild_mtimes[full_path] != os.stat(full_path).st_mtime
497
+ ):
498
+ subprocess.check_call(["/usr/bin/dsymutil", full_path])
499
+
446
500
  # Then tweak the copy_extensions bit to ensure PyObjCTest gets
447
501
  # copied to the right place.
448
502
  extensions = self.extensions
@@ -499,6 +553,8 @@ def Extension(*args, **kwds):
499
553
  "-DPyObjC_BUILD_RELEASE=%02d%02d"
500
554
  % (tuple(map(int, version.split(".")[:2])))
501
555
  )
556
+ ldflags.append("-isysroot")
557
+ ldflags.append(data)
502
558
  else:
503
559
  cflags.append(
504
560
  "-DPyObjC_BUILD_RELEASE=%02d%02d"
@@ -567,6 +623,8 @@ def setup(
567
623
  else:
568
624
  cmdclass = cmdclass.copy()
569
625
 
626
+ cmdclass["bdist_wheel"] = oc_bdist_wheel
627
+
570
628
  if os_compatible or ("bdist_wheel" in sys.argv and "ext_modules" not in k):
571
629
  cmdclass["build_ext"] = pyobjc_build_ext
572
630
  cmdclass["egg_info"] = oc_egg_info
@@ -677,7 +735,7 @@ def setup(
677
735
  zip_safe=False,
678
736
  license="MIT",
679
737
  classifiers=CLASSIFIERS,
680
- python_requires=">=3.10",
738
+ python_requires=">=3.11",
681
739
  keywords=["PyObjC"] + [p for p in k["packages"] if p not in ("PyObjCTools",)],
682
740
  options=options,
683
741
  **k,
@@ -21,7 +21,7 @@ sys.path.insert(0, os.path.dirname(__file__))
21
21
 
22
22
  from pyobjc_setup import Extension, setup # noqa: E402
23
23
 
24
- VERSION = "12.2.2"
24
+ VERSION = "13.1"
25
25
 
26
26
  setup(
27
27
  name="pyobjc-framework-ScriptingBridge",
@@ -1,3 +0,0 @@
1
- macOS 26.6 (25G70)
2
- Apple clang version 21.0.0 (clang-2100.1.1.101)
3
- SDK: macOS 26.5
@@ -1,2 +0,0 @@
1
- pyobjc-core>=12.2.2
2
- pyobjc-framework-Cocoa>=12.2.2