pyobjc-framework-SecurityInterface 10.1__tar.gz → 11.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 (43) hide show
  1. {pyobjc-framework-SecurityInterface-10.1 → pyobjc_framework_securityinterface-11.0}/Lib/SecurityInterface/_metadata.py +11 -17
  2. {pyobjc-framework-SecurityInterface-10.1 → pyobjc_framework_securityinterface-11.0}/Lib/pyobjc_framework_SecurityInterface.egg-info/PKG-INFO +6 -6
  3. {pyobjc-framework-SecurityInterface-10.1 → pyobjc_framework_securityinterface-11.0}/Lib/pyobjc_framework_SecurityInterface.egg-info/SOURCES.txt +5 -4
  4. pyobjc_framework_securityinterface-11.0/Lib/pyobjc_framework_SecurityInterface.egg-info/pyobjc-build-info.txt +3 -0
  5. pyobjc_framework_securityinterface-11.0/Lib/pyobjc_framework_SecurityInterface.egg-info/requires.txt +3 -0
  6. {pyobjc-framework-SecurityInterface-10.1 → pyobjc_framework_securityinterface-11.0}/License.txt +1 -1
  7. {pyobjc-framework-SecurityInterface-10.1 → pyobjc_framework_securityinterface-11.0}/Modules/_SecurityInterface.m +62 -39
  8. {pyobjc-framework-SecurityInterface-10.1 → pyobjc_framework_securityinterface-11.0}/Modules/pyobjc-api.h +1 -1
  9. {pyobjc-framework-SecurityInterface-10.1 → pyobjc_framework_securityinterface-11.0}/Modules/pyobjc-compat.h +80 -5
  10. {pyobjc-framework-SecurityInterface-10.1 → pyobjc_framework_securityinterface-11.0}/PKG-INFO +6 -6
  11. pyobjc_framework_securityinterface-11.0/metadata/raw/arm64-14.5.fwinfo +1763 -0
  12. pyobjc-framework-SecurityInterface-10.1/metadata/raw/arm64-14.0.fwinfo → pyobjc_framework_securityinterface-11.0/metadata/raw/arm64-15.0.fwinfo +2 -2
  13. pyobjc_framework_securityinterface-11.0/metadata/raw/x86_64-14.5.fwinfo +1763 -0
  14. pyobjc-framework-SecurityInterface-10.1/metadata/raw/x86_64-14.0.fwinfo → pyobjc_framework_securityinterface-11.0/metadata/raw/x86_64-15.0.fwinfo +2 -2
  15. {pyobjc-framework-SecurityInterface-10.1 → pyobjc_framework_securityinterface-11.0}/pyobjc_setup.py +121 -27
  16. {pyobjc-framework-SecurityInterface-10.1 → pyobjc_framework_securityinterface-11.0}/setup.py +1 -3
  17. pyobjc-framework-SecurityInterface-10.1/Lib/pyobjc_framework_SecurityInterface.egg-info/requires.txt +0 -3
  18. pyobjc-framework-SecurityInterface-10.1/metadata/raw/arm64-12.0.fwinfo +0 -1747
  19. pyobjc-framework-SecurityInterface-10.1/metadata/raw/x86_64-12.0.fwinfo +0 -1747
  20. {pyobjc-framework-SecurityInterface-10.1 → pyobjc_framework_securityinterface-11.0}/Lib/SecurityInterface/__init__.py +0 -0
  21. {pyobjc-framework-SecurityInterface-10.1 → pyobjc_framework_securityinterface-11.0}/Lib/pyobjc_framework_SecurityInterface.egg-info/dependency_links.txt +0 -0
  22. {pyobjc-framework-SecurityInterface-10.1 → pyobjc_framework_securityinterface-11.0}/Lib/pyobjc_framework_SecurityInterface.egg-info/not-zip-safe +0 -0
  23. {pyobjc-framework-SecurityInterface-10.1 → pyobjc_framework_securityinterface-11.0}/Lib/pyobjc_framework_SecurityInterface.egg-info/top_level.txt +0 -0
  24. {pyobjc-framework-SecurityInterface-10.1 → pyobjc_framework_securityinterface-11.0}/MANIFEST.in +0 -0
  25. {pyobjc-framework-SecurityInterface-10.1 → pyobjc_framework_securityinterface-11.0}/PyObjCTest/__init__.py +0 -0
  26. {pyobjc-framework-SecurityInterface-10.1 → pyobjc_framework_securityinterface-11.0}/PyObjCTest/test_securityinterface.py +0 -0
  27. {pyobjc-framework-SecurityInterface-10.1 → pyobjc_framework_securityinterface-11.0}/PyObjCTest/test_sfauthorizationpluginview.py +0 -0
  28. {pyobjc-framework-SecurityInterface-10.1 → pyobjc_framework_securityinterface-11.0}/PyObjCTest/test_sfauthorizationview.py +0 -0
  29. {pyobjc-framework-SecurityInterface-10.1 → pyobjc_framework_securityinterface-11.0}/PyObjCTest/test_sfcertificatepanel.py +0 -0
  30. {pyobjc-framework-SecurityInterface-10.1 → pyobjc_framework_securityinterface-11.0}/PyObjCTest/test_sfcertificatetrustpanel.py +0 -0
  31. {pyobjc-framework-SecurityInterface-10.1 → pyobjc_framework_securityinterface-11.0}/PyObjCTest/test_sfcertificateview.py +0 -0
  32. {pyobjc-framework-SecurityInterface-10.1 → pyobjc_framework_securityinterface-11.0}/PyObjCTest/test_sfchooseidentitypanel.py +0 -0
  33. {pyobjc-framework-SecurityInterface-10.1 → pyobjc_framework_securityinterface-11.0}/PyObjCTest/test_sfchooseidentitytablecellview.py +0 -0
  34. {pyobjc-framework-SecurityInterface-10.1 → pyobjc_framework_securityinterface-11.0}/PyObjCTest/test_sfkeychainsavepanel.py +0 -0
  35. {pyobjc-framework-SecurityInterface-10.1 → pyobjc_framework_securityinterface-11.0}/PyObjCTest/test_sfkeychainsettingspanel.py +0 -0
  36. {pyobjc-framework-SecurityInterface-10.1 → pyobjc_framework_securityinterface-11.0}/metadata/SecurityInterface.fwinfo +0 -0
  37. {pyobjc-framework-SecurityInterface-10.1 → pyobjc_framework_securityinterface-11.0}/metadata/metadata.ini +0 -0
  38. {pyobjc-framework-SecurityInterface-10.1 → pyobjc_framework_securityinterface-11.0}/metadata/raw/arm64-12.3.fwinfo +0 -0
  39. {pyobjc-framework-SecurityInterface-10.1 → pyobjc_framework_securityinterface-11.0}/metadata/raw/x86_64-10.13.fwinfo +0 -0
  40. {pyobjc-framework-SecurityInterface-10.1 → pyobjc_framework_securityinterface-11.0}/metadata/raw/x86_64-10.16.fwinfo +0 -0
  41. {pyobjc-framework-SecurityInterface-10.1 → pyobjc_framework_securityinterface-11.0}/metadata/raw/x86_64-12.3.fwinfo +0 -0
  42. {pyobjc-framework-SecurityInterface-10.1 → pyobjc_framework_securityinterface-11.0}/pyproject.toml +0 -0
  43. {pyobjc-framework-SecurityInterface-10.1 → pyobjc_framework_securityinterface-11.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  # This file is generated by objective.metadata
2
2
  #
3
- # Last update: Sat Jul 1 14:02:14 2023
3
+ # Last update: Tue Jun 11 10:19:51 2024
4
4
  #
5
5
  # flake8: noqa
6
6
 
@@ -124,22 +124,12 @@ try:
124
124
  r(
125
125
  b"SFCertificatePanel",
126
126
  b"beginSheetForWindow:modalDelegate:didEndSelector:contextInfo:certificates:showGroup:",
127
- {
128
- "arguments": {
129
- 4: {"sel_of_type": sel32or64(b"v@:@i^v", b"v@:@q^v")},
130
- 7: {"type": b"Z"},
131
- }
132
- },
127
+ {"arguments": {4: {"sel_of_type": b"v@:@q^v"}, 7: {"type": b"Z"}}},
133
128
  )
134
129
  r(
135
130
  b"SFCertificatePanel",
136
131
  b"beginSheetForWindow:modalDelegate:didEndSelector:contextInfo:trust:showGroup:",
137
- {
138
- "arguments": {
139
- 4: {"sel_of_type": sel32or64(b"v@:@i^v", b"v@:@q^v")},
140
- 7: {"type": b"Z"},
141
- }
142
- },
132
+ {"arguments": {4: {"sel_of_type": b"v@:@q^v"}, 7: {"type": b"Z"}}},
143
133
  )
144
134
  r(
145
135
  b"SFCertificatePanel",
@@ -156,7 +146,7 @@ try:
156
146
  r(
157
147
  b"SFCertificateTrustPanel",
158
148
  b"beginSheetForWindow:modalDelegate:didEndSelector:contextInfo:trust:message:",
159
- {"arguments": {4: {"sel_of_type": sel32or64(b"v@:@i^v", b"v@:@q^v")}}},
149
+ {"arguments": {4: {"sel_of_type": b"v@:@q^v"}}},
160
150
  )
161
151
  r(b"SFCertificateView", b"detailsDisclosed", {"retval": {"type": b"Z"}})
162
152
  r(b"SFCertificateView", b"detailsDisplayed", {"retval": {"type": b"Z"}})
@@ -175,21 +165,21 @@ try:
175
165
  r(
176
166
  b"SFChooseIdentityPanel",
177
167
  b"beginSheetForWindow:modalDelegate:didEndSelector:contextInfo:identities:message:",
178
- {"arguments": {4: {"sel_of_type": sel32or64(b"v@:@i^v", b"v@:@q^v")}}},
168
+ {"arguments": {4: {"sel_of_type": b"v@:@q^v"}}},
179
169
  )
180
170
  r(b"SFChooseIdentityPanel", b"setShowsHelp:", {"arguments": {2: {"type": b"Z"}}})
181
171
  r(b"SFChooseIdentityPanel", b"showsHelp", {"retval": {"type": b"Z"}})
182
172
  r(
183
173
  b"SFKeychainSavePanel",
184
174
  b"beginSheetForDirectory:file:modalForWindow:modalDelegate:didEndSelector:contextInfo:",
185
- {"arguments": {6: {"sel_of_type": sel32or64(b"v@:@i^v", b"v@:@q^v")}}},
175
+ {"arguments": {6: {"sel_of_type": b"v@:@q^v"}}},
186
176
  )
187
177
  r(
188
178
  b"SFKeychainSettingsPanel",
189
179
  b"beginSheetForWindow:modalDelegate:didEndSelector:contextInfo:settings:keychain:",
190
180
  {
191
181
  "arguments": {
192
- 4: {"sel_of_type": sel32or64(b"v@:@i^v", b"v@:@q^v")},
182
+ 4: {"sel_of_type": b"v@:@q^v"},
193
183
  6: {"type": b"^{SecKeychainSettings=IZZI}"},
194
184
  }
195
185
  },
@@ -205,6 +195,10 @@ try:
205
195
  r(b"null", b"setButton:enabled:", {"arguments": {3: {"type": b"Z"}}})
206
196
  finally:
207
197
  objc._updatingMetadata(False)
198
+
199
+ objc.registerNewKeywordsFromSelector(
200
+ "SFAuthorizationPluginView", b"initWithCallbacks:andEngineRef:"
201
+ )
208
202
  protocols = {
209
203
  "SFChooseIdentityPanelDelegate": objc.informal_protocol(
210
204
  "SFChooseIdentityPanelDelegate",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyobjc-framework-SecurityInterface
3
- Version: 10.1
3
+ Version: 11.0
4
4
  Summary: Wrappers for the framework SecurityInterface on macOS
5
5
  Home-page: https://github.com/ronaldoussoren/pyobjc
6
6
  Author: Ronald Oussoren
@@ -18,21 +18,21 @@ Classifier: Operating System :: MacOS :: MacOS X
18
18
  Classifier: Programming Language :: Python
19
19
  Classifier: Programming Language :: Python :: 3
20
20
  Classifier: Programming Language :: Python :: 3 :: Only
21
- Classifier: Programming Language :: Python :: 3.8
22
21
  Classifier: Programming Language :: Python :: 3.9
23
22
  Classifier: Programming Language :: Python :: 3.10
24
23
  Classifier: Programming Language :: Python :: 3.11
25
24
  Classifier: Programming Language :: Python :: 3.12
26
25
  Classifier: Programming Language :: Python :: 3.13
26
+ Classifier: Programming Language :: Python :: 3.14
27
27
  Classifier: Programming Language :: Python :: Implementation :: CPython
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.8
31
+ Requires-Python: >=3.9
32
32
  Description-Content-Type: text/x-rst; charset=UTF-8
33
- Requires-Dist: pyobjc-core>=10.1
34
- Requires-Dist: pyobjc-framework-Cocoa>=10.1
35
- Requires-Dist: pyobjc-framework-Security>=10.1
33
+ Requires-Dist: pyobjc-core>=11.0
34
+ Requires-Dist: pyobjc-framework-Cocoa>=11.0
35
+ Requires-Dist: pyobjc-framework-Security>=11.0
36
36
  Project-URL: Documentation, https://pyobjc.readthedocs.io/en/latest/
37
37
  Project-URL: Issue tracker, https://github.com/ronaldoussoren/pyobjc/issues
38
38
  Project-URL: Repository, https://github.com/ronaldoussoren/pyobjc
@@ -9,6 +9,7 @@ Lib/pyobjc_framework_SecurityInterface.egg-info/PKG-INFO
9
9
  Lib/pyobjc_framework_SecurityInterface.egg-info/SOURCES.txt
10
10
  Lib/pyobjc_framework_SecurityInterface.egg-info/dependency_links.txt
11
11
  Lib/pyobjc_framework_SecurityInterface.egg-info/not-zip-safe
12
+ Lib/pyobjc_framework_SecurityInterface.egg-info/pyobjc-build-info.txt
12
13
  Lib/pyobjc_framework_SecurityInterface.egg-info/requires.txt
13
14
  Lib/pyobjc_framework_SecurityInterface.egg-info/top_level.txt
14
15
  Modules/_SecurityInterface.m
@@ -27,11 +28,11 @@ PyObjCTest/test_sfkeychainsavepanel.py
27
28
  PyObjCTest/test_sfkeychainsettingspanel.py
28
29
  metadata/SecurityInterface.fwinfo
29
30
  metadata/metadata.ini
30
- metadata/raw/arm64-12.0.fwinfo
31
31
  metadata/raw/arm64-12.3.fwinfo
32
- metadata/raw/arm64-14.0.fwinfo
32
+ metadata/raw/arm64-14.5.fwinfo
33
+ metadata/raw/arm64-15.0.fwinfo
33
34
  metadata/raw/x86_64-10.13.fwinfo
34
35
  metadata/raw/x86_64-10.16.fwinfo
35
- metadata/raw/x86_64-12.0.fwinfo
36
36
  metadata/raw/x86_64-12.3.fwinfo
37
- metadata/raw/x86_64-14.0.fwinfo
37
+ metadata/raw/x86_64-14.5.fwinfo
38
+ metadata/raw/x86_64-15.0.fwinfo
@@ -0,0 +1,3 @@
1
+ macOS 15.3 (24D5040f)
2
+ Apple clang version 16.0.0 (clang-1600.0.26.6)
3
+ SDK: macOS 15.2
@@ -0,0 +1,3 @@
1
+ pyobjc-core>=11.0
2
+ pyobjc-framework-Cocoa>=11.0
3
+ pyobjc-framework-Security>=11.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-2022 - Ronald Oussoren
4
+ Copyright 2003-2024 - 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
 
@@ -1,15 +1,7 @@
1
- #define Py_LIMITED_API 0x03060000
2
1
  #define PY_SSIZE_T_CLEAN
3
2
  #include "Python.h"
4
3
  #include "pyobjc-api.h"
5
4
 
6
- #undef PySequence_Fast_GET_ITEM
7
- #define PySequence_Fast_GET_ITEM(o, i) \
8
- (PyList_Check(o) ? PyList_GetItem(o, i) : PyTuple_GetItem(o, i))
9
-
10
- #undef PySequence_Fast_GET_SIZE
11
- #define PySequence_Fast_GET_SIZE(o) (PyList_Check(o) ? PyList_Size(o) : PyTuple_Size(o))
12
-
13
5
  #import <Foundation/Foundation.h>
14
6
  #import <SecurityInterface/SFAuthorizationView.h>
15
7
 
@@ -22,27 +14,30 @@ parse_itemset(PyObject* value, AuthorizationItemSet* itemset)
22
14
  return 1;
23
15
 
24
16
  } else {
25
- PyObject* seq = PySequence_Fast(value, "itemset must be a sequence or None");
17
+ PyObject* seq = PySequence_Tuple(value);
26
18
  Py_ssize_t i;
27
19
  if (seq == NULL) {
28
20
  return 0;
29
21
  }
30
- itemset->count = PySequence_Fast_GET_SIZE(seq);
22
+ itemset->count = PyTuple_GET_SIZE(seq);
31
23
  itemset->items =
32
- PyMem_Malloc(sizeof(AuthorizationItem) * PySequence_Fast_GET_SIZE(seq));
24
+ PyMem_Malloc(sizeof(AuthorizationItem) * PyTuple_GET_SIZE(seq));
33
25
  if (itemset->items == NULL) {
34
26
  PyErr_NoMemory();
27
+ Py_DECREF(seq);
35
28
  return 0;
36
29
  }
37
30
 
38
- for (i = 0; i < PySequence_Fast_GET_SIZE(seq); i++) {
31
+ for (i = 0; i < PyTuple_GET_SIZE(seq); i++) {
39
32
  if (PyObjC_PythonToObjC("{_AuthorizationItem=^cL^vI}",
40
- PySequence_Fast_GET_ITEM(seq, i), itemset->items + i)
33
+ PyTuple_GET_ITEM(seq, i), itemset->items + i)
41
34
  < 0) {
42
35
  PyMem_Free(itemset->items);
36
+ Py_DECREF(seq);
43
37
  return 0;
44
38
  }
45
39
  }
40
+ Py_DECREF(seq);
46
41
  }
47
42
  return 1;
48
43
  }
@@ -160,35 +155,16 @@ static PyMethodDef mod_methods[] = {
160
155
  {0, 0, 0, 0} /* sentinel */
161
156
  };
162
157
 
163
- /* Python glue */
164
- static struct PyModuleDef mod_module = {PyModuleDef_HEAD_INIT,
165
- "_SecurityInterface",
166
- NULL,
167
- 0,
168
- mod_methods,
169
- NULL,
170
- NULL,
171
- NULL,
172
- NULL};
173
-
174
- PyObject* PyInit__SecurityInterface(void);
175
-
176
- PyObject* __attribute__((__visibility__("default"))) PyInit__SecurityInterface(void)
158
+ static int mod_exec_module(PyObject* m)
177
159
  {
178
- PyObject* m;
179
160
  Class cls;
180
161
 
181
- m = PyModule_Create(&mod_module);
182
- if (!m) {
183
- return NULL;
184
- }
185
-
186
162
  if (PyObjC_ImportAPI(m) == -1)
187
- return NULL;
163
+ return -1;
188
164
 
189
165
  cls = objc_lookUpClass("SFAuthorizationView");
190
- if (cls == NULL) {
191
- return m;
166
+ if (cls == Nil) {
167
+ return 0;
192
168
  }
193
169
 
194
170
  if (PyObjC_RegisterMethodMapping(cls, @selector(authorizationRights),
@@ -196,7 +172,7 @@ PyObject* __attribute__((__visibility__("default"))) PyInit__SecurityInterface(v
196
172
  PyObjCUnsupportedMethod_IMP)
197
173
  < 0) {
198
174
 
199
- return NULL;
175
+ return -1;
200
176
  }
201
177
 
202
178
  if (PyObjC_RegisterMethodMapping(cls, @selector(setAuthorizationRights:),
@@ -204,8 +180,55 @@ PyObject* __attribute__((__visibility__("default"))) PyInit__SecurityInterface(v
204
180
  PyObjCUnsupportedMethod_IMP)
205
181
  < 0) {
206
182
 
207
- return NULL;
183
+ return -1;
208
184
  }
209
185
 
210
- return m;
186
+ return 0;
187
+ }
188
+
189
+ static struct PyModuleDef_Slot mod_slots[] = {
190
+ {
191
+ .slot = Py_mod_exec,
192
+ .value = (void*)mod_exec_module
193
+ },
194
+ #if PY_VERSION_HEX >= 0x030c0000
195
+ {
196
+ /* This extension does not use the CPython API other than initializing
197
+ * the module, hence is safe with subinterpreters and per-interpreter
198
+ * GILs
199
+ */
200
+ .slot = Py_mod_multiple_interpreters,
201
+ .value = Py_MOD_MULTIPLE_INTERPRETERS_NOT_SUPPORTED,
202
+ },
203
+ #endif
204
+ #if PY_VERSION_HEX >= 0x030d0000
205
+ {
206
+ /* The code in this extension should be safe to use without the GIL */
207
+ .slot = Py_mod_gil,
208
+ .value = Py_MOD_GIL_NOT_USED,
209
+ },
210
+ #endif
211
+ { /* Sentinel */
212
+ .slot = 0,
213
+ .value = 0
214
+ }
215
+ };
216
+
217
+ static struct PyModuleDef mod_module = {
218
+ .m_base = PyModuleDef_HEAD_INIT,
219
+ .m_name = "_SecurityInterface",
220
+ .m_doc = NULL,
221
+ .m_size = 0,
222
+ .m_methods = mod_methods,
223
+ .m_slots = mod_slots,
224
+ .m_traverse = NULL,
225
+ .m_clear = NULL,
226
+ .m_free = NULL,
227
+ };
228
+
229
+ PyObject* PyInit__SecurityInterface(void);
230
+
231
+ PyObject* __attribute__((__visibility__("default"))) PyInit__SecurityInterface(void)
232
+ {
233
+ return PyModuleDef_Init(&mod_module);
211
234
  }
@@ -83,7 +83,7 @@ struct pyobjc_api {
83
83
  PyObject* _Nullable (*_Nonnull unsupported_method_caller)(
84
84
  PyObject* _Nonnull, PyObject* _Nonnull, PyObject* _Nonnull const* _Nonnull,
85
85
  size_t);
86
- void (*_Nonnull err_python_to_objc_gil)(PyGILState_STATE* _Nonnull state);
86
+ void (*_Nonnull err_python_to_objc_gil)(PyGILState_STATE* _Nonnull state) __attribute__((__noreturn__));
87
87
  int (*_Nonnull simplify_sig)(const char* signature, char* buf, size_t buflen);
88
88
  void (*_Nonnull free_c_array)(int, Py_buffer*);
89
89
  int (*_Nonnull py_to_c_array)(BOOL, BOOL, const char* _Nonnull, PyObject* _Nonnull,
@@ -11,6 +11,12 @@
11
11
 
12
12
  NS_ASSUME_NONNULL_BEGIN
13
13
 
14
+ #ifdef USE_STATIC_ANALYZER
15
+ #define CLANG_SUPPRESS [[clang::suppress]]
16
+ #else
17
+ #define CLANG_SUPPRESS
18
+ #endif
19
+
14
20
  /*
15
21
  *
16
22
  * Start of compiler definitions
@@ -153,10 +159,6 @@ extern PyObject* _Nullable PyObject_VectorcallMethod(
153
159
 
154
160
  extern int PyObjC_Cmp(PyObject* o1, PyObject* o2, int* result);
155
161
 
156
- extern PyObject* _Nullable PyObjCBytes_InternFromString(const char* v);
157
- extern PyObject* _Nullable PyObjCBytes_InternFromStringAndSize(const char* v,
158
- Py_ssize_t l);
159
-
160
162
  /*
161
163
  * A micro optimization: when using Python 3.3 or later it
162
164
  * is possible to access a 'char*' with an ASCII representation
@@ -238,7 +240,80 @@ _PyObjCTuple_GetItem(PyObject* tuple, Py_ssize_t idx)
238
240
  PyGILState_Release(_GILState); \
239
241
  } while (0)
240
242
 
241
- extern PyObject* _Nullable PyObjC_get_tp_dict(PyTypeObject* _Nonnull tp);
243
+ #if PY_VERSION_HEX < 0x030a0000
244
+
245
+ static inline PyObject* Py_NewRef(PyObject* o)
246
+ {
247
+ Py_INCREF(o);
248
+ return o;
249
+ }
250
+
251
+ static inline PyObject* Py_XNewRef(PyObject* o)
252
+ {
253
+ Py_XINCREF(o);
254
+ return o;
255
+ }
256
+
257
+ #endif /* PY_VERSION_HEX < 0x030a0000 */
258
+
259
+ #if PY_VERSION_HEX < 0x030d0000
260
+ #define Py_BEGIN_CRITICAL_SECTION(value) { (void)(value);
261
+ #define Py_END_CRITICAL_SECTION() }
262
+ #define Py_EXIT_CRITICAL_SECTION() ((void)0)
263
+
264
+ #define Py_BEGIN_CRITICAL_SECTION2(value1, value2) { (void)(value1); (void)(value2);
265
+ #define Py_END_CRITICAL_SECTION2() }
266
+ #define Py_EXIT_CRITICAL_SECTION2() ((void)0)
267
+
268
+ #define PyObjC_ATOMIC
269
+
270
+ #else
271
+
272
+ #ifdef Py_GIL_DISABLED
273
+ #define Py_EXIT_CRITICAL_SECTION() PyCriticalSection_End(&_py_cs)
274
+ #define Py_EXIT_CRITICAL_SECTION2() PyCriticalSection2_End(&_py_cs2)
275
+ #define PyObjC_ATOMIC _Atomic
276
+ #else
277
+ #define Py_EXIT_CRITICAL_SECTION() ((void)0)
278
+ #define Py_EXIT_CRITICAL_SECTION2() ((void)0)
279
+ #define PyObjC_ATOMIC
280
+ #endif
281
+
282
+ #endif
283
+
284
+ #if PY_VERSION_HEX < 0x030d0000
285
+ static inline int PyDict_GetItemRef(PyObject *p, PyObject *key, PyObject * _Nonnull* _Nullable result)
286
+ {
287
+ *result = PyDict_GetItemWithError(p, key);
288
+ if (*result == NULL) {
289
+ if (PyErr_Occurred()) {
290
+ return -1;
291
+ } else {
292
+ return 0;
293
+ }
294
+ } else {
295
+ Py_INCREF(*result);
296
+ return 1;
297
+ }
298
+ }
299
+
300
+ static inline PyObject* _Nullable PyList_GetItemRef(PyObject* l, Py_ssize_t i)
301
+ {
302
+ PyObject* result = PyList_GetItem(l, i);
303
+ Py_XINCREF(result);
304
+ return result;
305
+ }
306
+ #endif
307
+
308
+ #if PY_VERSION_HEX < 0x030c0000
309
+ static inline PyObject* PyType_GetDict(PyTypeObject* type)
310
+ {
311
+ PyObject* result = type->tp_dict;
312
+ Py_INCREF(result);
313
+ return result;
314
+ }
315
+ #endif
316
+
242
317
 
243
318
  NS_ASSUME_NONNULL_END
244
319
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyobjc-framework-SecurityInterface
3
- Version: 10.1
3
+ Version: 11.0
4
4
  Summary: Wrappers for the framework SecurityInterface on macOS
5
5
  Home-page: https://github.com/ronaldoussoren/pyobjc
6
6
  Author: Ronald Oussoren
@@ -18,21 +18,21 @@ Classifier: Operating System :: MacOS :: MacOS X
18
18
  Classifier: Programming Language :: Python
19
19
  Classifier: Programming Language :: Python :: 3
20
20
  Classifier: Programming Language :: Python :: 3 :: Only
21
- Classifier: Programming Language :: Python :: 3.8
22
21
  Classifier: Programming Language :: Python :: 3.9
23
22
  Classifier: Programming Language :: Python :: 3.10
24
23
  Classifier: Programming Language :: Python :: 3.11
25
24
  Classifier: Programming Language :: Python :: 3.12
26
25
  Classifier: Programming Language :: Python :: 3.13
26
+ Classifier: Programming Language :: Python :: 3.14
27
27
  Classifier: Programming Language :: Python :: Implementation :: CPython
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.8
31
+ Requires-Python: >=3.9
32
32
  Description-Content-Type: text/x-rst; charset=UTF-8
33
- Requires-Dist: pyobjc-core>=10.1
34
- Requires-Dist: pyobjc-framework-Cocoa>=10.1
35
- Requires-Dist: pyobjc-framework-Security>=10.1
33
+ Requires-Dist: pyobjc-core>=11.0
34
+ Requires-Dist: pyobjc-framework-Cocoa>=11.0
35
+ Requires-Dist: pyobjc-framework-Security>=11.0
36
36
 
37
37
 
38
38
  Wrappers for the "SecurityInterface" framework on macOS.