pyobjc-framework-SharedWithYou 11.0__tar.gz → 12.0__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 (41) hide show
  1. {pyobjc_framework_sharedwithyou-11.0 → pyobjc_framework_sharedwithyou-12.0}/Lib/SharedWithYou/_metadata.py +1 -1
  2. {pyobjc_framework_sharedwithyou-11.0 → pyobjc_framework_sharedwithyou-12.0}/Lib/pyobjc_framework_SharedWithYou.egg-info/PKG-INFO +19 -6
  3. {pyobjc_framework_sharedwithyou-11.0 → pyobjc_framework_sharedwithyou-12.0}/Lib/pyobjc_framework_SharedWithYou.egg-info/SOURCES.txt +2 -6
  4. pyobjc_framework_sharedwithyou-12.0/Lib/pyobjc_framework_SharedWithYou.egg-info/pyobjc-build-info.txt +3 -0
  5. pyobjc_framework_sharedwithyou-12.0/Lib/pyobjc_framework_SharedWithYou.egg-info/requires.txt +2 -0
  6. {pyobjc_framework_sharedwithyou-11.0 → pyobjc_framework_sharedwithyou-12.0}/License.txt +1 -1
  7. {pyobjc_framework_sharedwithyou-11.0 → pyobjc_framework_sharedwithyou-12.0}/Modules/_SharedWithYou.m +18 -22
  8. {pyobjc_framework_sharedwithyou-11.0 → pyobjc_framework_sharedwithyou-12.0}/Modules/_SharedWithYou_protocols.m +2 -1
  9. {pyobjc_framework_sharedwithyou-11.0 → pyobjc_framework_sharedwithyou-12.0}/Modules/pyobjc-api.h +6 -3
  10. {pyobjc_framework_sharedwithyou-11.0 → pyobjc_framework_sharedwithyou-12.0}/Modules/pyobjc-compat.h +113 -36
  11. {pyobjc_framework_sharedwithyou-11.0 → pyobjc_framework_sharedwithyou-12.0}/PKG-INFO +19 -6
  12. pyobjc_framework_sharedwithyou-12.0/PyObjCTest/__init__.py +1 -0
  13. pyobjc_framework_sharedwithyou-11.0/metadata/raw/arm64-15.0.fwinfo → pyobjc_framework_sharedwithyou-12.0/metadata/raw/arm64-26.0.fwinfo +2 -2
  14. pyobjc_framework_sharedwithyou-11.0/metadata/raw/x86_64-15.0.fwinfo → pyobjc_framework_sharedwithyou-12.0/metadata/raw/x86_64-26.0.fwinfo +2 -2
  15. {pyobjc_framework_sharedwithyou-11.0 → pyobjc_framework_sharedwithyou-12.0}/pyobjc_setup.py +9 -41
  16. {pyobjc_framework_sharedwithyou-11.0 → pyobjc_framework_sharedwithyou-12.0}/setup.py +1 -1
  17. pyobjc_framework_sharedwithyou-11.0/Lib/pyobjc_framework_SharedWithYou.egg-info/pyobjc-build-info.txt +0 -3
  18. pyobjc_framework_sharedwithyou-11.0/Lib/pyobjc_framework_SharedWithYou.egg-info/requires.txt +0 -2
  19. pyobjc_framework_sharedwithyou-11.0/PyObjCTest/__init__.py +0 -1
  20. pyobjc_framework_sharedwithyou-11.0/metadata/raw/arm64-13.0.fwinfo +0 -1720
  21. pyobjc_framework_sharedwithyou-11.0/metadata/raw/arm64-14.5.fwinfo +0 -1753
  22. pyobjc_framework_sharedwithyou-11.0/metadata/raw/x86_64-13.0.fwinfo +0 -1720
  23. pyobjc_framework_sharedwithyou-11.0/metadata/raw/x86_64-14.5.fwinfo +0 -1753
  24. {pyobjc_framework_sharedwithyou-11.0 → pyobjc_framework_sharedwithyou-12.0}/Lib/SharedWithYou/__init__.py +0 -0
  25. {pyobjc_framework_sharedwithyou-11.0 → pyobjc_framework_sharedwithyou-12.0}/Lib/pyobjc_framework_SharedWithYou.egg-info/dependency_links.txt +0 -0
  26. {pyobjc_framework_sharedwithyou-11.0 → pyobjc_framework_sharedwithyou-12.0}/Lib/pyobjc_framework_SharedWithYou.egg-info/not-zip-safe +0 -0
  27. {pyobjc_framework_sharedwithyou-11.0 → pyobjc_framework_sharedwithyou-12.0}/Lib/pyobjc_framework_SharedWithYou.egg-info/top_level.txt +0 -0
  28. {pyobjc_framework_sharedwithyou-11.0 → pyobjc_framework_sharedwithyou-12.0}/MANIFEST.in +0 -0
  29. {pyobjc_framework_sharedwithyou-11.0 → pyobjc_framework_sharedwithyou-12.0}/PyObjCTest/test_sharedwithyou.py +0 -0
  30. {pyobjc_framework_sharedwithyou-11.0 → pyobjc_framework_sharedwithyou-12.0}/PyObjCTest/test_swattributionview.py +0 -0
  31. {pyobjc_framework_sharedwithyou-11.0 → pyobjc_framework_sharedwithyou-12.0}/PyObjCTest/test_swcollaborationview.py +0 -0
  32. {pyobjc_framework_sharedwithyou-11.0 → pyobjc_framework_sharedwithyou-12.0}/PyObjCTest/test_swerrors.py +0 -0
  33. {pyobjc_framework_sharedwithyou-11.0 → pyobjc_framework_sharedwithyou-12.0}/PyObjCTest/test_swhighlightcenter.py +0 -0
  34. {pyobjc_framework_sharedwithyou-11.0 → pyobjc_framework_sharedwithyou-12.0}/PyObjCTest/test_swhighlightchangeevent.py +0 -0
  35. {pyobjc_framework_sharedwithyou-11.0 → pyobjc_framework_sharedwithyou-12.0}/PyObjCTest/test_swhighlightevent.py +0 -0
  36. {pyobjc_framework_sharedwithyou-11.0 → pyobjc_framework_sharedwithyou-12.0}/PyObjCTest/test_swhighlightmembershipevent.py +0 -0
  37. {pyobjc_framework_sharedwithyou-11.0 → pyobjc_framework_sharedwithyou-12.0}/PyObjCTest/test_swhighlightpersistenceevent.py +0 -0
  38. {pyobjc_framework_sharedwithyou-11.0 → pyobjc_framework_sharedwithyou-12.0}/metadata/SharedWithYou.fwinfo +0 -0
  39. {pyobjc_framework_sharedwithyou-11.0 → pyobjc_framework_sharedwithyou-12.0}/metadata/metadata.ini +0 -0
  40. {pyobjc_framework_sharedwithyou-11.0 → pyobjc_framework_sharedwithyou-12.0}/pyproject.toml +0 -0
  41. {pyobjc_framework_sharedwithyou-11.0 → pyobjc_framework_sharedwithyou-12.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  # This file is generated by objective.metadata
2
2
  #
3
- # Last update: Tue Jun 11 10:20:07 2024
3
+ # Last update: Thu Jul 24 14:25:30 2025
4
4
  #
5
5
  # flake8: noqa
6
6
 
@@ -1,18 +1,17 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: pyobjc-framework-SharedWithYou
3
- Version: 11.0
3
+ Version: 12.0
4
4
  Summary: Wrappers for the framework SharedWithYou on macOS
5
5
  Home-page: https://github.com/ronaldoussoren/pyobjc
6
6
  Author: Ronald Oussoren
7
7
  Author-email: pyobjc-dev@lists.sourceforge.net
8
- License: MIT License
8
+ License: MIT
9
9
  Keywords: PyObjC,SharedWithYou
10
10
  Platform: MacOS X (>=13.0)
11
11
  Classifier: Development Status :: 5 - Production/Stable
12
12
  Classifier: Environment :: Console
13
13
  Classifier: Environment :: MacOS X :: Cocoa
14
14
  Classifier: Intended Audience :: Developers
15
- Classifier: License :: OSI Approved :: MIT License
16
15
  Classifier: Natural Language :: English
17
16
  Classifier: Operating System :: MacOS :: MacOS X
18
17
  Classifier: Programming Language :: Python
@@ -24,14 +23,28 @@ Classifier: Programming Language :: Python :: 3.11
24
23
  Classifier: Programming Language :: Python :: 3.12
25
24
  Classifier: Programming Language :: Python :: 3.13
26
25
  Classifier: Programming Language :: Python :: 3.14
26
+ Classifier: Programming Language :: Python :: 3.15
27
27
  Classifier: Programming Language :: Python :: Implementation :: CPython
28
+ Classifier: Programming Language :: Python :: Free Threading :: 2 - Beta
28
29
  Classifier: Programming Language :: Objective C
29
30
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
30
31
  Classifier: Topic :: Software Development :: User Interfaces
31
32
  Requires-Python: >=3.9
32
33
  Description-Content-Type: text/x-rst; charset=UTF-8
33
- Requires-Dist: pyobjc-core>=11.0
34
- Requires-Dist: pyobjc-framework-SharedWithYouCore>=11.0
34
+ Requires-Dist: pyobjc-core>=12.0
35
+ Requires-Dist: pyobjc-framework-SharedWithYouCore>=12.0
36
+ Dynamic: author
37
+ Dynamic: author-email
38
+ Dynamic: classifier
39
+ Dynamic: description
40
+ Dynamic: description-content-type
41
+ Dynamic: home-page
42
+ Dynamic: keywords
43
+ Dynamic: license
44
+ Dynamic: platform
45
+ Dynamic: requires-dist
46
+ Dynamic: requires-python
47
+ Dynamic: summary
35
48
  Project-URL: Documentation, https://pyobjc.readthedocs.io/en/latest/
36
49
  Project-URL: Issue tracker, https://github.com/ronaldoussoren/pyobjc/issues
37
50
  Project-URL: Repository, https://github.com/ronaldoussoren/pyobjc
@@ -28,9 +28,5 @@ PyObjCTest/test_swhighlightmembershipevent.py
28
28
  PyObjCTest/test_swhighlightpersistenceevent.py
29
29
  metadata/SharedWithYou.fwinfo
30
30
  metadata/metadata.ini
31
- metadata/raw/arm64-13.0.fwinfo
32
- metadata/raw/arm64-14.5.fwinfo
33
- metadata/raw/arm64-15.0.fwinfo
34
- metadata/raw/x86_64-13.0.fwinfo
35
- metadata/raw/x86_64-14.5.fwinfo
36
- metadata/raw/x86_64-15.0.fwinfo
31
+ metadata/raw/arm64-26.0.fwinfo
32
+ metadata/raw/x86_64-26.0.fwinfo
@@ -0,0 +1,3 @@
1
+ macOS 26.0.1 (25A362)
2
+ Apple clang version 17.0.0 (clang-1700.3.19.1)
3
+ SDK: macOS 26.0
@@ -0,0 +1,2 @@
1
+ pyobjc-core>=12.0
2
+ pyobjc-framework-SharedWithYouCore>=12.0
@@ -1,7 +1,7 @@
1
1
  (This is the MIT license, note that libffi-src is a separate product with its own license)
2
2
 
3
3
  Copyright 2002, 2003 - Bill Bumgarner, Ronald Oussoren, Steve Majewski, Lele Gaifax, et.al.
4
- Copyright 2003-2024 - Ronald Oussoren
4
+ Copyright 2003-2025 - Ronald Oussoren
5
5
 
6
6
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
7
7
 
@@ -14,55 +14,51 @@ static PyMethodDef mod_methods[] = {
14
14
  {0, 0, 0, 0} /* sentinel */
15
15
  };
16
16
 
17
-
18
- static int mod_exec_module(PyObject* m)
17
+ static int
18
+ mod_exec_module(PyObject* m)
19
19
  {
20
20
  return 0;
21
21
  }
22
22
 
23
23
  static struct PyModuleDef_Slot mod_slots[] = {
24
- {
25
- .slot = Py_mod_exec,
26
- .value = (void*)mod_exec_module
27
- },
24
+ {.slot = Py_mod_exec, .value = (void*)mod_exec_module},
28
25
  #if PY_VERSION_HEX >= 0x030c0000
29
26
  {
30
27
  /* This extension does not use the CPython API other than initializing
31
28
  * the module, hence is safe with subinterpreters and per-interpreter
32
29
  * GILs
33
30
  */
34
- .slot = Py_mod_multiple_interpreters,
31
+ .slot = Py_mod_multiple_interpreters,
35
32
  .value = Py_MOD_PER_INTERPRETER_GIL_SUPPORTED,
36
33
  },
37
34
  #endif
38
35
  #if PY_VERSION_HEX >= 0x030d0000
39
36
  {
40
37
  /* The code in this extension should be safe to use without the GIL */
41
- .slot = Py_mod_gil,
38
+ .slot = Py_mod_gil,
42
39
  .value = Py_MOD_GIL_NOT_USED,
43
40
  },
44
41
  #endif
45
- { /* Sentinel */
46
- .slot = 0,
47
- .value = 0
48
- }
49
- };
42
+ {/* Sentinel */
43
+ .slot = 0,
44
+ .value = 0}};
50
45
 
51
46
  static struct PyModuleDef mod_module = {
52
- .m_base = PyModuleDef_HEAD_INIT,
53
- .m_name = "_SharedWithYou",
54
- .m_doc = NULL,
55
- .m_size = 0,
56
- .m_methods = mod_methods,
57
- .m_slots = mod_slots,
47
+ .m_base = PyModuleDef_HEAD_INIT,
48
+ .m_name = "_SharedWithYou",
49
+ .m_doc = NULL,
50
+ .m_size = 0,
51
+ .m_methods = mod_methods,
52
+ .m_slots = mod_slots,
58
53
  .m_traverse = NULL,
59
- .m_clear = NULL,
60
- .m_free = NULL,
54
+ .m_clear = NULL,
55
+ .m_free = NULL,
61
56
  };
62
57
 
63
58
  PyObject* PyInit__SharedWithYou(void);
64
59
 
65
- PyObject* __attribute__((__visibility__("default"))) PyInit__SharedWithYou(void)
60
+ PyObject* __attribute__((__visibility__("default")))
61
+ PyInit__SharedWithYou(void)
66
62
  {
67
63
  return PyModuleDef_Init(&mod_module);
68
64
  }
@@ -1,4 +1,5 @@
1
- static void __attribute__((__used__)) use_protocols(void)
1
+ static void __attribute__((__used__))
2
+ use_protocols(void)
2
3
  {
3
4
  PyObject* p __attribute__((__unused__));
4
5
  p = PyObjC_IdToPython(@protocol(SWHighlightCenterDelegate));
@@ -53,8 +53,9 @@ NS_ASSUME_NONNULL_BEGIN
53
53
  /*
54
54
  * Only add items to the end of this list!
55
55
  */
56
+
56
57
  typedef int(RegisterMethodMappingFunctionType)(
57
- Class, SEL,
58
+ Class _Nullable, SEL,
58
59
  PyObject* _Nullable (*_Nonnull)(PyObject* _Nonnull, PyObject* _Nonnull,
59
60
  PyObject* _Nonnull const* _Nonnull, size_t),
60
61
  IMP _Nullable (*_Nonnull)(PyObject* _Nonnull, PyObject* _Nonnull));
@@ -83,7 +84,8 @@ struct pyobjc_api {
83
84
  PyObject* _Nullable (*_Nonnull unsupported_method_caller)(
84
85
  PyObject* _Nonnull, PyObject* _Nonnull, PyObject* _Nonnull const* _Nonnull,
85
86
  size_t);
86
- void (*_Nonnull err_python_to_objc_gil)(PyGILState_STATE* _Nonnull state) __attribute__((__noreturn__));
87
+ void (*_Nonnull err_python_to_objc_gil)(PyGILState_STATE* _Nonnull state)
88
+ __attribute__((__noreturn__));
87
89
  int (*_Nonnull simplify_sig)(const char* signature, char* buf, size_t buflen);
88
90
  void (*_Nonnull free_c_array)(int, Py_buffer*);
89
91
  int (*_Nonnull py_to_c_array)(BOOL, BOOL, const char* _Nonnull, PyObject* _Nonnull,
@@ -113,7 +115,8 @@ struct pyobjc_api {
113
115
  int (*_Nonnull checknokwnames)(PyObject* _Nonnull callable,
114
116
  PyObject* _Nullable kwnames);
115
117
 
116
- PyObject* _Nullable (*_Nonnull createopaquepointertype)(const char*, const char*, const char*);
118
+ PyObject* _Nullable (*_Nonnull createopaquepointertype)(const char*, const char*,
119
+ const char*);
117
120
  };
118
121
 
119
122
  #ifndef PYOBJC_BUILD
@@ -123,34 +123,6 @@ NS_ASSUME_NONNULL_BEGIN
123
123
  } while (0)
124
124
  #endif
125
125
 
126
- #if PY_VERSION_HEX < 0x03090000
127
-
128
- /* For use on Python 3.8 and earlier. PyObjC doesn't use the
129
- * "flag" bit internally.
130
- */
131
-
132
- #ifndef PY_VECTORCALL_ARGUMENTS_OFFSET
133
- #define PY_VECTORCALL_ARGUMENTS_OFFSET ((size_t)1 << (8 * sizeof(size_t) - 1))
134
- #endif
135
-
136
- #define PyVectorcall_NARGS(nargsf) ((nargsf) & ~PY_VECTORCALL_ARGUMENTS_OFFSET)
137
-
138
- #ifdef OBJC_VERSION
139
- /* Don't use PyObject prefixed symbols in our binaries */
140
- #define PyObject_Vectorcall PyObjC_Vectorcall
141
- #define PyObject_VectorcallMethod PyObjC_VectorcallMethod
142
-
143
- extern PyObject* _Nullable PyObject_Vectorcall(PyObject* callable,
144
- PyObject* _Nonnull const* _Nonnull args,
145
- size_t nargsf,
146
- PyObject* _Nullable kwnames);
147
- extern PyObject* _Nullable PyObject_VectorcallMethod(
148
- PyObject* name, PyObject* _Nonnull const* _Nonnull args, size_t nargsf,
149
- PyObject* _Nullable kwnames);
150
- #endif
151
-
152
- #endif /* Python < 3.9 */
153
-
154
126
  /* Use CLINIC_SEP between the prototype and
155
127
  * description in doc strings, to get clean
156
128
  * docstrings.
@@ -179,7 +151,7 @@ extern const char* _Nullable PyObjC_Unicode_Fast_Bytes(PyObject* object);
179
151
 
180
152
  static inline PyObject* _Nullable* _Nonnull PyTuple_ITEMS(PyObject* tuple)
181
153
  {
182
- return &PyTuple_GET_ITEM(tuple, 0);
154
+ return &PyTuple_GET_ITEM(tuple, 0); // LCOV_BR_EXCL_LINE
183
155
  }
184
156
 
185
157
  /* This is a crude hack to disable a otherwise useful warning in the context of
@@ -198,7 +170,10 @@ _PyObjCTuple_SetItem(PyObject* tuple, Py_ssize_t idx, PyObject* _Nullable value)
198
170
  static inline PyObject*
199
171
  _PyObjCTuple_GetItem(PyObject* tuple, Py_ssize_t idx)
200
172
  {
201
- return PyTuple_GET_ITEM(tuple, idx);
173
+ /* The protocol for tuples is that they are full initialized
174
+ * before handing them over to other code.
175
+ */
176
+ return (PyObject* _Nonnull)PyTuple_GET_ITEM(tuple, idx); // LCOV_BR_EXCL_LINE
202
177
  }
203
178
  #undef PyTuple_GET_ITEM
204
179
  #define PyTuple_GET_ITEM(a, b) _PyObjCTuple_GetItem(a, b)
@@ -242,13 +217,15 @@ _PyObjCTuple_GetItem(PyObject* tuple, Py_ssize_t idx)
242
217
 
243
218
  #if PY_VERSION_HEX < 0x030a0000
244
219
 
245
- static inline PyObject* Py_NewRef(PyObject* o)
220
+ static inline PyObject*
221
+ Py_NewRef(PyObject* o)
246
222
  {
247
223
  Py_INCREF(o);
248
224
  return o;
249
225
  }
250
226
 
251
- static inline PyObject* Py_XNewRef(PyObject* o)
227
+ static inline PyObject*
228
+ Py_XNewRef(PyObject* o)
252
229
  {
253
230
  Py_XINCREF(o);
254
231
  return o;
@@ -257,11 +234,16 @@ static inline PyObject* Py_XNewRef(PyObject* o)
257
234
  #endif /* PY_VERSION_HEX < 0x030a0000 */
258
235
 
259
236
  #if PY_VERSION_HEX < 0x030d0000
260
- #define Py_BEGIN_CRITICAL_SECTION(value) { (void)(value);
237
+ #define Py_BEGIN_CRITICAL_SECTION(value) \
238
+ { \
239
+ (void)(value);
261
240
  #define Py_END_CRITICAL_SECTION() }
262
241
  #define Py_EXIT_CRITICAL_SECTION() ((void)0)
263
242
 
264
- #define Py_BEGIN_CRITICAL_SECTION2(value1, value2) { (void)(value1); (void)(value2);
243
+ #define Py_BEGIN_CRITICAL_SECTION2(value1, value2) \
244
+ { \
245
+ (void)(value1); \
246
+ (void)(value2);
265
247
  #define Py_END_CRITICAL_SECTION2() }
266
248
  #define Py_EXIT_CRITICAL_SECTION2() ((void)0)
267
249
 
@@ -282,7 +264,8 @@ static inline PyObject* Py_XNewRef(PyObject* o)
282
264
  #endif
283
265
 
284
266
  #if PY_VERSION_HEX < 0x030d0000
285
- static inline int PyDict_GetItemRef(PyObject *p, PyObject *key, PyObject * _Nonnull* _Nullable result)
267
+ static inline int
268
+ PyDict_GetItemRef(PyObject* p, PyObject* key, PyObject* _Nonnull* _Nullable result)
286
269
  {
287
270
  *result = PyDict_GetItemWithError(p, key);
288
271
  if (*result == NULL) {
@@ -306,7 +289,8 @@ static inline PyObject* _Nullable PyList_GetItemRef(PyObject* l, Py_ssize_t i)
306
289
  #endif
307
290
 
308
291
  #if PY_VERSION_HEX < 0x030c0000
309
- static inline PyObject* PyType_GetDict(PyTypeObject* type)
292
+ static inline PyObject*
293
+ PyType_GetDict(PyTypeObject* type)
310
294
  {
311
295
  PyObject* result = type->tp_dict;
312
296
  Py_INCREF(result);
@@ -314,6 +298,99 @@ static inline PyObject* PyType_GetDict(PyTypeObject* type)
314
298
  }
315
299
  #endif
316
300
 
301
+ #if PY_VERSION_HEX >= 0x030c0000 && PY_VERSION_HEX < 0x030e0000
302
+ /*
303
+ * These are available in 3.14 and above, the definitions below
304
+ * mirror the private implementation in 3.13.
305
+ */
306
+ static inline int
307
+ PyUnstable_Object_IsUniquelyReferenced(PyObject* ob)
308
+ {
309
+ #ifdef Py_GIL_DISABLED
310
+ return (_Py_IsOwnedByCurrentThread(ob)
311
+ && _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local) == 1
312
+ && _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared) == 0);
313
+ #else
314
+ return Py_REFCNT(ob) == 1;
315
+ #endif
316
+ }
317
+
318
+ static inline void
319
+ PyUnstable_EnableTryIncRef(PyObject* op __attribute__((__unused__)))
320
+ {
321
+ #ifdef Py_GIL_DISABLED
322
+ for (;;) {
323
+ Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&op->ob_ref_shared);
324
+ if ((shared & _Py_REF_SHARED_FLAG_MASK) != 0) {
325
+ // Nothing to do if it's in WEAKREFS, QUEUED, or MERGED states.
326
+ return;
327
+ }
328
+ if (_Py_atomic_compare_exchange_ssize(&op->ob_ref_shared, &shared,
329
+ shared | _Py_REF_MAYBE_WEAKREF)) {
330
+ return;
331
+ }
332
+ }
333
+ #endif
334
+ }
335
+
336
+ #ifdef Py_GIL_DISABLED
337
+ static inline int
338
+ _Py_TryIncrefFast(PyObject* op)
339
+ {
340
+ uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local);
341
+ local += 1;
342
+ if (local == 0) {
343
+ // immortal
344
+ return 1;
345
+ }
346
+ if (_Py_IsOwnedByCurrentThread(op)) {
347
+ _Py_INCREF_STAT_INC();
348
+ _Py_atomic_store_uint32_relaxed(&op->ob_ref_local, local);
349
+ #ifdef Py_REF_DEBUG
350
+ _Py_IncRefTotal(_PyThreadState_GET());
351
+ #endif
352
+ return 1;
353
+ }
354
+ return 0;
355
+ }
356
+
357
+ static inline int
358
+ _Py_TryIncRefShared(PyObject* op)
359
+ {
360
+ Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&op->ob_ref_shared);
361
+ for (;;) {
362
+ // If the shared refcount is zero and the object is either merged
363
+ // or may not have weak references, then we cannot incref it.
364
+ if (shared == 0 || shared == _Py_REF_MERGED) {
365
+ return 0;
366
+ }
367
+
368
+ if (_Py_atomic_compare_exchange_ssize(&op->ob_ref_shared, &shared,
369
+ shared + (1 << _Py_REF_SHARED_SHIFT))) {
370
+ #ifdef Py_REF_DEBUG
371
+ _Py_IncRefTotal(_PyThreadState_GET());
372
+ #endif
373
+ _Py_INCREF_STAT_INC();
374
+ return 1;
375
+ }
376
+ }
377
+ }
378
+ #endif
379
+
380
+ static inline int
381
+ PyUnstable_TryIncRef(PyObject* op __attribute__((__unused__)))
382
+ {
383
+ #ifdef Py_GIL_DISABLED
384
+ return _Py_TryIncrefFast(op) || _Py_TryIncRefShared(op);
385
+ #else
386
+ if (Py_REFCNT(op) > 0) {
387
+ Py_INCREF(op);
388
+ return 1;
389
+ }
390
+ return 0;
391
+ #endif
392
+ }
393
+ #endif
317
394
 
318
395
  NS_ASSUME_NONNULL_END
319
396
 
@@ -1,18 +1,17 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: pyobjc-framework-SharedWithYou
3
- Version: 11.0
3
+ Version: 12.0
4
4
  Summary: Wrappers for the framework SharedWithYou on macOS
5
5
  Home-page: https://github.com/ronaldoussoren/pyobjc
6
6
  Author: Ronald Oussoren
7
7
  Author-email: pyobjc-dev@lists.sourceforge.net
8
- License: MIT License
8
+ License: MIT
9
9
  Keywords: PyObjC,SharedWithYou
10
10
  Platform: MacOS X (>=13.0)
11
11
  Classifier: Development Status :: 5 - Production/Stable
12
12
  Classifier: Environment :: Console
13
13
  Classifier: Environment :: MacOS X :: Cocoa
14
14
  Classifier: Intended Audience :: Developers
15
- Classifier: License :: OSI Approved :: MIT License
16
15
  Classifier: Natural Language :: English
17
16
  Classifier: Operating System :: MacOS :: MacOS X
18
17
  Classifier: Programming Language :: Python
@@ -24,14 +23,28 @@ Classifier: Programming Language :: Python :: 3.11
24
23
  Classifier: Programming Language :: Python :: 3.12
25
24
  Classifier: Programming Language :: Python :: 3.13
26
25
  Classifier: Programming Language :: Python :: 3.14
26
+ Classifier: Programming Language :: Python :: 3.15
27
27
  Classifier: Programming Language :: Python :: Implementation :: CPython
28
+ Classifier: Programming Language :: Python :: Free Threading :: 2 - Beta
28
29
  Classifier: Programming Language :: Objective C
29
30
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
30
31
  Classifier: Topic :: Software Development :: User Interfaces
31
32
  Requires-Python: >=3.9
32
33
  Description-Content-Type: text/x-rst; charset=UTF-8
33
- Requires-Dist: pyobjc-core>=11.0
34
- Requires-Dist: pyobjc-framework-SharedWithYouCore>=11.0
34
+ Requires-Dist: pyobjc-core>=12.0
35
+ Requires-Dist: pyobjc-framework-SharedWithYouCore>=12.0
36
+ Dynamic: author
37
+ Dynamic: author-email
38
+ Dynamic: classifier
39
+ Dynamic: description
40
+ Dynamic: description-content-type
41
+ Dynamic: home-page
42
+ Dynamic: keywords
43
+ Dynamic: license
44
+ Dynamic: platform
45
+ Dynamic: requires-dist
46
+ Dynamic: requires-python
47
+ Dynamic: summary
35
48
 
36
49
 
37
50
  Wrappers for the "SharedWithYou" framework on macOS.
@@ -0,0 +1 @@
1
+ """test suite"""
@@ -1,7 +1,7 @@
1
1
  // GENERATED FILE DO NOT EDIT
2
2
  //
3
3
  // This file was generated by objective.metadata
4
- // Last update: Tue Jun 11 10:20:07 2024
4
+ // Last update: Thu Jul 24 14:25:23 2025
5
5
  {
6
6
  "arch": "arm64",
7
7
  "definitions": {
@@ -1749,5 +1749,5 @@
1749
1749
  "SWRemoveParticipantAlert.h"
1750
1750
  ],
1751
1751
  "release": "10.16",
1752
- "sdk": "/Users/ronald/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk"
1752
+ "sdk": "/Users/ronald/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk"
1753
1753
  }
@@ -1,7 +1,7 @@
1
1
  // GENERATED FILE DO NOT EDIT
2
2
  //
3
3
  // This file was generated by objective.metadata
4
- // Last update: Tue Jun 11 10:20:04 2024
4
+ // Last update: Thu Jul 24 14:25:20 2025
5
5
  {
6
6
  "arch": "x86_64",
7
7
  "definitions": {
@@ -1749,5 +1749,5 @@
1749
1749
  "SWRemoveParticipantAlert.h"
1750
1750
  ],
1751
1751
  "release": "10.16",
1752
- "sdk": "/Users/ronald/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk"
1752
+ "sdk": "/Users/ronald/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk"
1753
1753
  }
@@ -11,12 +11,11 @@ To change this file:
11
11
 
12
12
  __all__ = ("setup", "Extension", "Command")
13
13
 
14
+ import importlib
14
15
  import os
15
- import pkg_resources
16
16
  import plistlib
17
17
  import re
18
18
  import shlex
19
- import shutil
20
19
  import subprocess
21
20
  import sys
22
21
  import tempfile
@@ -138,10 +137,6 @@ class oc_test(Command):
138
137
  self.verbosity = int(self.verbosity)
139
138
 
140
139
  def cleanup_environment(self):
141
- from pkg_resources import add_activation_listener
142
-
143
- add_activation_listener(lambda dist: dist.activate())
144
-
145
140
  ei_cmd = self.get_finalized_command("egg_info")
146
141
  egg_name = ei_cmd.egg_name.replace("-", "_")
147
142
 
@@ -155,12 +150,9 @@ class oc_test(Command):
155
150
  log.info(f"removing installed {dirname!r} from sys.path before testing")
156
151
  sys.path.remove(dirname)
157
152
 
158
- pkg_resources.working_set.__init__()
153
+ importlib.invalidate_caches()
159
154
 
160
155
  def add_project_to_sys_path(self):
161
- from pkg_resources import normalize_path, add_activation_listener
162
- from pkg_resources import working_set, require
163
-
164
156
  self.reinitialize_command("egg_info")
165
157
  self.run_command("egg_info")
166
158
  self.reinitialize_command("build_ext", inplace=1)
@@ -173,20 +165,16 @@ class oc_test(Command):
173
165
  del sys.modules["PyObjCTools"]
174
166
 
175
167
  ei_cmd = self.get_finalized_command("egg_info")
176
- sys.path.insert(0, normalize_path(ei_cmd.egg_base))
168
+ sys.path.insert(0, os.path.abspath(ei_cmd.egg_base))
177
169
  sys.path.insert(1, os.path.dirname(__file__))
178
170
 
179
- add_activation_listener(lambda dist: dist.activate())
180
- working_set.__init__()
181
- require(f"{ei_cmd.egg_name}=={ei_cmd.egg_version}")
171
+ importlib.invalidate_caches()
182
172
 
183
173
  def remove_from_sys_path(self):
184
- from pkg_resources import working_set
185
-
186
174
  sys.path[:] = self.__old_path
187
175
  sys.modules.clear()
188
176
  sys.modules.update(self.__old_modules)
189
- working_set.__init__()
177
+ importlib.invalidate_caches()
190
178
 
191
179
  def run(self):
192
180
  self.cleanup_environment()
@@ -235,7 +223,6 @@ Development Status :: 5 - Production/Stable
235
223
  Environment :: Console
236
224
  Environment :: MacOS X :: Cocoa
237
225
  Intended Audience :: Developers
238
- License :: OSI Approved :: MIT License
239
226
  Natural Language :: English
240
227
  Operating System :: MacOS :: MacOS X
241
228
  Programming Language :: Python
@@ -247,7 +234,9 @@ Programming Language :: Python :: 3.11
247
234
  Programming Language :: Python :: 3.12
248
235
  Programming Language :: Python :: 3.13
249
236
  Programming Language :: Python :: 3.14
237
+ Programming Language :: Python :: 3.15
250
238
  Programming Language :: Python :: Implementation :: CPython
239
+ Programming Language :: Python :: Free Threading :: 2 - Beta
251
240
  Programming Language :: Objective C
252
241
  Topic :: Software Development :: Libraries :: Python Modules
253
242
  Topic :: Software Development :: User Interfaces
@@ -450,28 +439,7 @@ class pyobjc_build_ext(build_ext.build_ext):
450
439
  # in 2.3 and later the headers are in the egg,
451
440
  # before that we ship a copy.
452
441
  if os.path.exists("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
453
- (dist,) = pkg_resources.require("pyobjc-core")
454
-
455
- include_root = os.path.join(self.build_temp, "pyobjc-include")
456
- if os.path.exists(include_root):
457
- shutil.rmtree(include_root)
458
-
459
- os.makedirs(include_root)
460
- if dist.has_metadata("include"):
461
- for fn in dist.metadata_listdir("include"):
462
- data = dist.get_metadata(f"include/{fn}")
463
- fp = open(os.path.join(include_root, fn), "w")
464
- try:
465
- fp.write(data)
466
- finally:
467
- fp.close()
468
-
469
- else:
470
- raise SystemExit("pyobjc-core egg-info does not include header files")
471
-
472
- for e in self.extensions:
473
- if include_root not in e.include_dirs:
474
- e.include_dirs.append(include_root)
442
+ raise DistutilsError("pyobjc-api.h not included")
475
443
 
476
444
  # Run the actual build
477
445
  build_ext.build_ext.run(self)
@@ -708,7 +676,7 @@ def setup(
708
676
  dependency_links=[],
709
677
  package_data={"": ["*.bridgesupport"]},
710
678
  zip_safe=False,
711
- license="MIT License",
679
+ license="MIT",
712
680
  classifiers=CLASSIFIERS,
713
681
  python_requires=">=3.9",
714
682
  keywords=["PyObjC"] + [p for p in k["packages"] if p not in ("PyObjCTools",)],
@@ -15,7 +15,7 @@ sys.path.insert(0, os.path.dirname(__file__))
15
15
 
16
16
  from pyobjc_setup import Extension, setup # noqa: E402
17
17
 
18
- VERSION = "11.0"
18
+ VERSION = "12.0"
19
19
 
20
20
  setup(
21
21
  name="pyobjc-framework-SharedWithYou",
@@ -1,3 +0,0 @@
1
- macOS 15.3 (24D5040f)
2
- Apple clang version 16.0.0 (clang-1600.0.26.6)
3
- SDK: macOS 15.2
@@ -1,2 +0,0 @@
1
- pyobjc-core>=11.0
2
- pyobjc-framework-SharedWithYouCore>=11.0
@@ -1 +0,0 @@
1
- """ test suite """