pyobjc-framework-Virtualization 11.1__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 (67) hide show
  1. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/Lib/Virtualization/_metadata.py +5 -2
  2. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/Lib/pyobjc_framework_Virtualization.egg-info/PKG-INFO +5 -3
  3. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/Lib/pyobjc_framework_Virtualization.egg-info/SOURCES.txt +2 -9
  4. pyobjc_framework_virtualization-12.0/Lib/pyobjc_framework_Virtualization.egg-info/pyobjc-build-info.txt +3 -0
  5. pyobjc_framework_virtualization-12.0/Lib/pyobjc_framework_Virtualization.egg-info/requires.txt +2 -0
  6. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/Modules/_Virtualization.m +18 -21
  7. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/Modules/_Virtualization_protocols.m +2 -1
  8. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/Modules/pyobjc-api.h +6 -3
  9. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/Modules/pyobjc-compat.h +32 -48
  10. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/PKG-INFO +5 -3
  11. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/PyObjCTest/test_vzmacosrestoreimage.py +4 -0
  12. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/metadata/Virtualization.fwinfo +11 -0
  13. pyobjc_framework_virtualization-11.1/metadata/raw/arm64-15.0.fwinfo → pyobjc_framework_virtualization-12.0/metadata/raw/arm64-26.0.fwinfo +65 -2
  14. pyobjc_framework_virtualization-11.1/metadata/raw/x86_64-15.0.fwinfo → pyobjc_framework_virtualization-12.0/metadata/raw/x86_64-26.0.fwinfo +65 -2
  15. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/pyobjc_setup.py +2 -0
  16. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/setup.py +1 -1
  17. pyobjc_framework_virtualization-11.1/Lib/pyobjc_framework_Virtualization.egg-info/pyobjc-build-info.txt +0 -3
  18. pyobjc_framework_virtualization-11.1/Lib/pyobjc_framework_Virtualization.egg-info/requires.txt +0 -2
  19. pyobjc_framework_virtualization-11.1/metadata/raw/arm64-12.3.fwinfo +0 -5215
  20. pyobjc_framework_virtualization-11.1/metadata/raw/arm64-13.0.fwinfo +0 -6709
  21. pyobjc_framework_virtualization-11.1/metadata/raw/arm64-14.5.fwinfo +0 -7653
  22. pyobjc_framework_virtualization-11.1/metadata/raw/x86_64-11.0.fwinfo +0 -2578
  23. pyobjc_framework_virtualization-11.1/metadata/raw/x86_64-12.3.fwinfo +0 -4442
  24. pyobjc_framework_virtualization-11.1/metadata/raw/x86_64-13.0.fwinfo +0 -5756
  25. pyobjc_framework_virtualization-11.1/metadata/raw/x86_64-14.5.fwinfo +0 -6394
  26. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/Lib/Virtualization/__init__.py +0 -0
  27. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/Lib/pyobjc_framework_Virtualization.egg-info/dependency_links.txt +0 -0
  28. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/Lib/pyobjc_framework_Virtualization.egg-info/not-zip-safe +0 -0
  29. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/Lib/pyobjc_framework_Virtualization.egg-info/top_level.txt +0 -0
  30. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/License.txt +0 -0
  31. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/MANIFEST.in +0 -0
  32. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/PyObjCTest/__init__.py +0 -0
  33. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/PyObjCTest/test_virtualization.py +0 -0
  34. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/PyObjCTest/test_vzdiskblockdevicestoragedeviceattachment.py +0 -0
  35. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/PyObjCTest/test_vzdiskimagestoragedeviceattachment.py +0 -0
  36. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/PyObjCTest/test_vzdisksynchronizationmode.py +0 -0
  37. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/PyObjCTest/test_vzefivariablestore.py +0 -0
  38. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/PyObjCTest/test_vzerror.py +0 -0
  39. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/PyObjCTest/test_vzfileserialportattachment.py +0 -0
  40. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/PyObjCTest/test_vzgenericplatformconfiguration.py +0 -0
  41. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/PyObjCTest/test_vzgraphicsdisplay.py +0 -0
  42. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/PyObjCTest/test_vzlinuxrosettaabstractsocketcachingoptions.py +0 -0
  43. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/PyObjCTest/test_vzlinuxrosettadirectoryshare.py +0 -0
  44. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/PyObjCTest/test_vzmacaddress.py +0 -0
  45. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/PyObjCTest/test_vzmacauxiliarystorage.py +0 -0
  46. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/PyObjCTest/test_vzmachardwaremodel.py +0 -0
  47. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/PyObjCTest/test_vzmacosinstaller.py +0 -0
  48. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/PyObjCTest/test_vzmacosvirtualmachinestartoptions.py +0 -0
  49. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/PyObjCTest/test_vzmultipledirectoryshare.py +0 -0
  50. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/PyObjCTest/test_vznetworkblockdevicestoragedeviceattachment.py +0 -0
  51. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/PyObjCTest/test_vzshareddirectory.py +0 -0
  52. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/PyObjCTest/test_vzspiceagentportattachment.py +0 -0
  53. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/PyObjCTest/test_vzusbcontroller.py +0 -0
  54. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/PyObjCTest/test_vzusbdevice.py +0 -0
  55. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/PyObjCTest/test_vzusbdeviceconfiguration.py +0 -0
  56. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/PyObjCTest/test_vzvirtioblockdeviceconfiguration.py +0 -0
  57. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/PyObjCTest/test_vzvirtioconsoleportconfiguration.py +0 -0
  58. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/PyObjCTest/test_vzvirtiofilesystemdeviceconfiguration.py +0 -0
  59. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/PyObjCTest/test_vzvirtiosocketdevice.py +0 -0
  60. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/PyObjCTest/test_vzvirtiosocketlistener.py +0 -0
  61. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/PyObjCTest/test_vzvirtualmachine.py +0 -0
  62. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/PyObjCTest/test_vzvirtualmachineconfiguration.py +0 -0
  63. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/PyObjCTest/test_vzvirtualmachinedelegate.py +0 -0
  64. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/PyObjCTest/test_vzvirtualmachineview.py +0 -0
  65. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/metadata/metadata.ini +0 -0
  66. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-12.0}/pyproject.toml +0 -0
  67. {pyobjc_framework_virtualization-11.1 → pyobjc_framework_virtualization-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:21:52 2024
3
+ # Last update: Thu Jul 24 09:55:49 2025
4
4
  #
5
5
  # flake8: noqa
6
6
 
@@ -287,7 +287,7 @@ try:
287
287
  r(
288
288
  b"VZMacOSRestoreImage",
289
289
  b"operatingSystemVersion",
290
- {"retval": {"type": b"{_NSOperatingSystemVersion=qqq}"}},
290
+ {"retval": {"type": "{NSOperatingSystemVersion=qqq}"}},
291
291
  )
292
292
  r(
293
293
  b"VZMacOSVirtualMachineStartOptions",
@@ -632,6 +632,9 @@ objc.registerNewKeywordsFromSelector("VZVirtualMachine", b"initWithConfiguration
632
632
  objc.registerNewKeywordsFromSelector(
633
633
  "VZVirtualMachine", b"initWithConfiguration:queue:"
634
634
  )
635
+ objc.registerNewKeywordsFromSelector(
636
+ "VZVmnetNetworkDeviceAttachment", b"initWithNetwork:"
637
+ )
635
638
  expressions = {}
636
639
 
637
640
  # END OF FILE
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyobjc-framework-Virtualization
3
- Version: 11.1
3
+ Version: 12.0
4
4
  Summary: Wrappers for the framework Virtualization on macOS
5
5
  Home-page: https://github.com/ronaldoussoren/pyobjc
6
6
  Author: Ronald Oussoren
@@ -23,14 +23,16 @@ Classifier: Programming Language :: Python :: 3.11
23
23
  Classifier: Programming Language :: Python :: 3.12
24
24
  Classifier: Programming Language :: Python :: 3.13
25
25
  Classifier: Programming Language :: Python :: 3.14
26
+ Classifier: Programming Language :: Python :: 3.15
26
27
  Classifier: Programming Language :: Python :: Implementation :: CPython
28
+ Classifier: Programming Language :: Python :: Free Threading :: 2 - Beta
27
29
  Classifier: Programming Language :: Objective C
28
30
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
29
31
  Classifier: Topic :: Software Development :: User Interfaces
30
32
  Requires-Python: >=3.9
31
33
  Description-Content-Type: text/x-rst; charset=UTF-8
32
- Requires-Dist: pyobjc-core>=11.1
33
- Requires-Dist: pyobjc-framework-Cocoa>=11.1
34
+ Requires-Dist: pyobjc-core>=12.0
35
+ Requires-Dist: pyobjc-framework-Cocoa>=12.0
34
36
  Dynamic: author
35
37
  Dynamic: author-email
36
38
  Dynamic: classifier
@@ -53,12 +53,5 @@ PyObjCTest/test_vzvirtualmachinedelegate.py
53
53
  PyObjCTest/test_vzvirtualmachineview.py
54
54
  metadata/Virtualization.fwinfo
55
55
  metadata/metadata.ini
56
- metadata/raw/arm64-12.3.fwinfo
57
- metadata/raw/arm64-13.0.fwinfo
58
- metadata/raw/arm64-14.5.fwinfo
59
- metadata/raw/arm64-15.0.fwinfo
60
- metadata/raw/x86_64-11.0.fwinfo
61
- metadata/raw/x86_64-12.3.fwinfo
62
- metadata/raw/x86_64-13.0.fwinfo
63
- metadata/raw/x86_64-14.5.fwinfo
64
- metadata/raw/x86_64-15.0.fwinfo
56
+ metadata/raw/arm64-26.0.fwinfo
57
+ 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-Cocoa>=12.0
@@ -14,54 +14,51 @@ static PyMethodDef mod_methods[] = {
14
14
  {0, 0, 0, 0} /* sentinel */
15
15
  };
16
16
 
17
- static int mod_exec_module(PyObject* m)
17
+ static int
18
+ mod_exec_module(PyObject* m)
18
19
  {
19
20
  return 0;
20
21
  }
21
22
 
22
23
  static struct PyModuleDef_Slot mod_slots[] = {
23
- {
24
- .slot = Py_mod_exec,
25
- .value = (void*)mod_exec_module
26
- },
24
+ {.slot = Py_mod_exec, .value = (void*)mod_exec_module},
27
25
  #if PY_VERSION_HEX >= 0x030c0000
28
26
  {
29
27
  /* This extension does not use the CPython API other than initializing
30
28
  * the module, hence is safe with subinterpreters and per-interpreter
31
29
  * GILs
32
30
  */
33
- .slot = Py_mod_multiple_interpreters,
31
+ .slot = Py_mod_multiple_interpreters,
34
32
  .value = Py_MOD_PER_INTERPRETER_GIL_SUPPORTED,
35
33
  },
36
34
  #endif
37
35
  #if PY_VERSION_HEX >= 0x030d0000
38
36
  {
39
37
  /* The code in this extension should be safe to use without the GIL */
40
- .slot = Py_mod_gil,
38
+ .slot = Py_mod_gil,
41
39
  .value = Py_MOD_GIL_NOT_USED,
42
40
  },
43
41
  #endif
44
- { /* Sentinel */
45
- .slot = 0,
46
- .value = 0
47
- }
48
- };
42
+ {/* Sentinel */
43
+ .slot = 0,
44
+ .value = 0}};
49
45
 
50
46
  static struct PyModuleDef mod_module = {
51
- .m_base = PyModuleDef_HEAD_INIT,
52
- .m_name = "_Virtualization",
53
- .m_doc = NULL,
54
- .m_size = 0,
55
- .m_methods = mod_methods,
56
- .m_slots = mod_slots,
47
+ .m_base = PyModuleDef_HEAD_INIT,
48
+ .m_name = "_Virtualization",
49
+ .m_doc = NULL,
50
+ .m_size = 0,
51
+ .m_methods = mod_methods,
52
+ .m_slots = mod_slots,
57
53
  .m_traverse = NULL,
58
- .m_clear = NULL,
59
- .m_free = NULL,
54
+ .m_clear = NULL,
55
+ .m_free = NULL,
60
56
  };
61
57
 
62
58
  PyObject* PyInit__Virtualization(void);
63
59
 
64
- PyObject* __attribute__((__visibility__("default"))) PyInit__Virtualization(void)
60
+ PyObject* __attribute__((__visibility__("default")))
61
+ PyInit__Virtualization(void)
65
62
  {
66
63
  return PyModuleDef_Init(&mod_module);
67
64
  }
@@ -4,7 +4,8 @@
4
4
  * Last update: Wed Jan 16 13:10:52 2013
5
5
  */
6
6
 
7
- static void __attribute__((__used__)) use_protocols(void)
7
+ static void __attribute__((__used__))
8
+ use_protocols(void)
8
9
  {
9
10
  PyObject* p __attribute__((__unused__));
10
11
  #if PyObjC_BUILD_RELEASE >= 1016
@@ -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.
@@ -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); // LCOV_BR_EXCL_LINE
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);
@@ -319,12 +303,13 @@ static inline PyObject* PyType_GetDict(PyTypeObject* type)
319
303
  * These are available in 3.14 and above, the definitions below
320
304
  * mirror the private implementation in 3.13.
321
305
  */
322
- static inline int PyUnstable_Object_IsUniquelyReferenced(PyObject* ob)
306
+ static inline int
307
+ PyUnstable_Object_IsUniquelyReferenced(PyObject* ob)
323
308
  {
324
309
  #ifdef Py_GIL_DISABLED
325
- return (_Py_IsOwnedByCurrentThread(ob) &&
326
- _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local) == 1 &&
327
- _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared) == 0);
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);
328
313
  #else
329
314
  return Py_REFCNT(ob) == 1;
330
315
  #endif
@@ -340,8 +325,8 @@ PyUnstable_EnableTryIncRef(PyObject* op __attribute__((__unused__)))
340
325
  // Nothing to do if it's in WEAKREFS, QUEUED, or MERGED states.
341
326
  return;
342
327
  }
343
- if (_Py_atomic_compare_exchange_ssize(
344
- &op->ob_ref_shared, &shared, shared | _Py_REF_MAYBE_WEAKREF)) {
328
+ if (_Py_atomic_compare_exchange_ssize(&op->ob_ref_shared, &shared,
329
+ shared | _Py_REF_MAYBE_WEAKREF)) {
345
330
  return;
346
331
  }
347
332
  }
@@ -350,7 +335,8 @@ PyUnstable_EnableTryIncRef(PyObject* op __attribute__((__unused__)))
350
335
 
351
336
  #ifdef Py_GIL_DISABLED
352
337
  static inline int
353
- _Py_TryIncrefFast(PyObject *op) {
338
+ _Py_TryIncrefFast(PyObject* op)
339
+ {
354
340
  uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local);
355
341
  local += 1;
356
342
  if (local == 0) {
@@ -369,7 +355,7 @@ _Py_TryIncrefFast(PyObject *op) {
369
355
  }
370
356
 
371
357
  static inline int
372
- _Py_TryIncRefShared(PyObject *op)
358
+ _Py_TryIncRefShared(PyObject* op)
373
359
  {
374
360
  Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&op->ob_ref_shared);
375
361
  for (;;) {
@@ -379,10 +365,8 @@ _Py_TryIncRefShared(PyObject *op)
379
365
  return 0;
380
366
  }
381
367
 
382
- if (_Py_atomic_compare_exchange_ssize(
383
- &op->ob_ref_shared,
384
- &shared,
385
- shared + (1 << _Py_REF_SHARED_SHIFT))) {
368
+ if (_Py_atomic_compare_exchange_ssize(&op->ob_ref_shared, &shared,
369
+ shared + (1 << _Py_REF_SHARED_SHIFT))) {
386
370
  #ifdef Py_REF_DEBUG
387
371
  _Py_IncRefTotal(_PyThreadState_GET());
388
372
  #endif
@@ -394,7 +378,7 @@ _Py_TryIncRefShared(PyObject *op)
394
378
  #endif
395
379
 
396
380
  static inline int
397
- PyUnstable_TryIncRef(PyObject *op __attribute__((__unused__)))
381
+ PyUnstable_TryIncRef(PyObject* op __attribute__((__unused__)))
398
382
  {
399
383
  #ifdef Py_GIL_DISABLED
400
384
  return _Py_TryIncrefFast(op) || _Py_TryIncRefShared(op);
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyobjc-framework-Virtualization
3
- Version: 11.1
3
+ Version: 12.0
4
4
  Summary: Wrappers for the framework Virtualization on macOS
5
5
  Home-page: https://github.com/ronaldoussoren/pyobjc
6
6
  Author: Ronald Oussoren
@@ -23,14 +23,16 @@ Classifier: Programming Language :: Python :: 3.11
23
23
  Classifier: Programming Language :: Python :: 3.12
24
24
  Classifier: Programming Language :: Python :: 3.13
25
25
  Classifier: Programming Language :: Python :: 3.14
26
+ Classifier: Programming Language :: Python :: 3.15
26
27
  Classifier: Programming Language :: Python :: Implementation :: CPython
28
+ Classifier: Programming Language :: Python :: Free Threading :: 2 - Beta
27
29
  Classifier: Programming Language :: Objective C
28
30
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
29
31
  Classifier: Topic :: Software Development :: User Interfaces
30
32
  Requires-Python: >=3.9
31
33
  Description-Content-Type: text/x-rst; charset=UTF-8
32
- Requires-Dist: pyobjc-core>=11.1
33
- Requires-Dist: pyobjc-framework-Cocoa>=11.1
34
+ Requires-Dist: pyobjc-core>=12.0
35
+ Requires-Dist: pyobjc-framework-Cocoa>=12.0
34
36
  Dynamic: author
35
37
  Dynamic: author-email
36
38
  Dynamic: classifier
@@ -7,6 +7,10 @@ class TestVZMacOSRestoreImage(TestCase):
7
7
  @min_os_level("12.0")
8
8
  @arch_only("arm64")
9
9
  def test_methods(self):
10
+ self.assertResultHasType(
11
+ Virtualization.VZMacOSRestoreImage.operatingSystemVersion,
12
+ Virtualization.NSOperatingSystemVersion.__typestr__,
13
+ )
10
14
  self.assertArgIsBlock(
11
15
  Virtualization.VZMacOSRestoreImage.loadFileURL_completionHandler_,
12
16
  1,
@@ -7,6 +7,17 @@
7
7
  "VZMacAuxiliaryStorageInitializationOptionAllowOverwrite": { "value": 1 }
8
8
  },
9
9
  "classes": {
10
+ "VZMacOSRestoreImage": {
11
+ "methods": [
12
+ {
13
+ "selector": "operatingSystemVersion",
14
+ "class_method": false,
15
+ "retval": {
16
+ "type_override": "{NSOperatingSystemVersion=qqq}"
17
+ }
18
+ }
19
+ ]
20
+ },
10
21
  "VZMacAuxiliaryStorage": {
11
22
  "methods": [
12
23
  {
@@ -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:21:52 2024
4
+ // Last update: Thu Jul 24 09:55:31 2025
5
5
  {
6
6
  "arch": "arm64",
7
7
  "definitions": {
@@ -6454,6 +6454,16 @@
6454
6454
  "selector": "requestStopWithError:",
6455
6455
  "visibility": "public"
6456
6456
  },
6457
+ {
6458
+ "args": [],
6459
+ "class_method": false,
6460
+ "retval": {
6461
+ "typestr": "@",
6462
+ "typestr_special": false
6463
+ },
6464
+ "selector": "queue",
6465
+ "visibility": "public"
6466
+ },
6457
6467
  {
6458
6468
  "args": [],
6459
6469
  "class_method": true,
@@ -6622,6 +6632,15 @@
6622
6632
  ],
6623
6633
  "name": "VZVirtualMachine",
6624
6634
  "properties": [
6635
+ {
6636
+ "attributes": [
6637
+ "nonatomic",
6638
+ "readonly"
6639
+ ],
6640
+ "name": "queue",
6641
+ "typestr": "@",
6642
+ "typestr_special": false
6643
+ },
6625
6644
  {
6626
6645
  "attributes": [
6627
6646
  "readonly",
@@ -7557,6 +7576,49 @@
7557
7576
  "protocols": [],
7558
7577
  "super": "NSView"
7559
7578
  },
7579
+ "VZVmnetNetworkDeviceAttachment": {
7580
+ "categories": [],
7581
+ "methods": [
7582
+ {
7583
+ "args": [
7584
+ {
7585
+ "typestr": "^{vmnet_network=}",
7586
+ "typestr_special": false
7587
+ }
7588
+ ],
7589
+ "class_method": false,
7590
+ "retval": {
7591
+ "typestr": "@",
7592
+ "typestr_special": false
7593
+ },
7594
+ "selector": "initWithNetwork:",
7595
+ "visibility": "public"
7596
+ },
7597
+ {
7598
+ "args": [],
7599
+ "class_method": false,
7600
+ "retval": {
7601
+ "typestr": "^{vmnet_network=}",
7602
+ "typestr_special": false
7603
+ },
7604
+ "selector": "network",
7605
+ "visibility": "public"
7606
+ }
7607
+ ],
7608
+ "name": "VZVmnetNetworkDeviceAttachment",
7609
+ "properties": [
7610
+ {
7611
+ "attributes": [
7612
+ "readonly"
7613
+ ],
7614
+ "name": "network",
7615
+ "typestr": "^{vmnet_network=}",
7616
+ "typestr_special": false
7617
+ }
7618
+ ],
7619
+ "protocols": [],
7620
+ "super": "VZNetworkDeviceAttachment"
7621
+ },
7560
7622
  "VZXHCIController": {
7561
7623
  "categories": [],
7562
7624
  "methods": [],
@@ -8126,9 +8188,10 @@
8126
8188
  "VZVirtualMachineDelegate.h",
8127
8189
  "VZVirtualMachineStartOptions.h",
8128
8190
  "VZVirtualMachineView.h",
8191
+ "VZVmnetNetworkDeviceAttachment.h",
8129
8192
  "VZXHCIController.h",
8130
8193
  "VZXHCIControllerConfiguration.h"
8131
8194
  ],
8132
8195
  "release": "10.16",
8133
- "sdk": "/Users/ronald/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk"
8196
+ "sdk": "/Users/ronald/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk"
8134
8197
  }
@@ -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:21:49 2024
4
+ // Last update: Thu Jul 24 09:55:28 2025
5
5
  {
6
6
  "arch": "x86_64",
7
7
  "definitions": {
@@ -5235,6 +5235,16 @@
5235
5235
  "selector": "requestStopWithError:",
5236
5236
  "visibility": "public"
5237
5237
  },
5238
+ {
5239
+ "args": [],
5240
+ "class_method": false,
5241
+ "retval": {
5242
+ "typestr": "@",
5243
+ "typestr_special": false
5244
+ },
5245
+ "selector": "queue",
5246
+ "visibility": "public"
5247
+ },
5238
5248
  {
5239
5249
  "args": [],
5240
5250
  "class_method": true,
@@ -5403,6 +5413,15 @@
5403
5413
  ],
5404
5414
  "name": "VZVirtualMachine",
5405
5415
  "properties": [
5416
+ {
5417
+ "attributes": [
5418
+ "nonatomic",
5419
+ "readonly"
5420
+ ],
5421
+ "name": "queue",
5422
+ "typestr": "@",
5423
+ "typestr_special": false
5424
+ },
5406
5425
  {
5407
5426
  "attributes": [
5408
5427
  "readonly",
@@ -6322,6 +6341,49 @@
6322
6341
  "protocols": [],
6323
6342
  "super": "NSView"
6324
6343
  },
6344
+ "VZVmnetNetworkDeviceAttachment": {
6345
+ "categories": [],
6346
+ "methods": [
6347
+ {
6348
+ "args": [
6349
+ {
6350
+ "typestr": "^{vmnet_network=}",
6351
+ "typestr_special": false
6352
+ }
6353
+ ],
6354
+ "class_method": false,
6355
+ "retval": {
6356
+ "typestr": "@",
6357
+ "typestr_special": false
6358
+ },
6359
+ "selector": "initWithNetwork:",
6360
+ "visibility": "public"
6361
+ },
6362
+ {
6363
+ "args": [],
6364
+ "class_method": false,
6365
+ "retval": {
6366
+ "typestr": "^{vmnet_network=}",
6367
+ "typestr_special": false
6368
+ },
6369
+ "selector": "network",
6370
+ "visibility": "public"
6371
+ }
6372
+ ],
6373
+ "name": "VZVmnetNetworkDeviceAttachment",
6374
+ "properties": [
6375
+ {
6376
+ "attributes": [
6377
+ "readonly"
6378
+ ],
6379
+ "name": "network",
6380
+ "typestr": "^{vmnet_network=}",
6381
+ "typestr_special": false
6382
+ }
6383
+ ],
6384
+ "protocols": [],
6385
+ "super": "VZNetworkDeviceAttachment"
6386
+ },
6325
6387
  "VZXHCIController": {
6326
6388
  "categories": [],
6327
6389
  "methods": [],
@@ -6867,9 +6929,10 @@
6867
6929
  "VZVirtualMachineDelegate.h",
6868
6930
  "VZVirtualMachineStartOptions.h",
6869
6931
  "VZVirtualMachineView.h",
6932
+ "VZVmnetNetworkDeviceAttachment.h",
6870
6933
  "VZXHCIController.h",
6871
6934
  "VZXHCIControllerConfiguration.h"
6872
6935
  ],
6873
6936
  "release": "10.16",
6874
- "sdk": "/Users/ronald/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk"
6937
+ "sdk": "/Users/ronald/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk"
6875
6938
  }
@@ -234,7 +234,9 @@ Programming Language :: Python :: 3.11
234
234
  Programming Language :: Python :: 3.12
235
235
  Programming Language :: Python :: 3.13
236
236
  Programming Language :: Python :: 3.14
237
+ Programming Language :: Python :: 3.15
237
238
  Programming Language :: Python :: Implementation :: CPython
239
+ Programming Language :: Python :: Free Threading :: 2 - Beta
238
240
  Programming Language :: Objective C
239
241
  Topic :: Software Development :: Libraries :: Python Modules
240
242
  Topic :: Software Development :: User Interfaces
@@ -15,7 +15,7 @@ sys.path.insert(0, os.path.dirname(__file__))
15
15
 
16
16
  from pyobjc_setup import setup, Extension # noqa: E402
17
17
 
18
- VERSION = "11.1"
18
+ VERSION = "12.0"
19
19
 
20
20
  setup(
21
21
  name="pyobjc-framework-Virtualization",
@@ -1,3 +0,0 @@
1
- macOS 15.5 (24F74)
2
- Apple clang version 17.0.0 (clang-1700.0.13.5)
3
- SDK: macOS 15.5
@@ -1,2 +0,0 @@
1
- pyobjc-core>=11.1
2
- pyobjc-framework-Cocoa>=11.1