pyobjc-framework-SafariServices 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.
- {pyobjc_framework_safariservices-12.2.2 → pyobjc_framework_safariservices-13.1}/Lib/SafariServices/__init__.py +2 -0
- {pyobjc_framework_safariservices-12.2.2 → pyobjc_framework_safariservices-13.1}/Lib/SafariServices/_metadata.py +25 -4
- {pyobjc_framework_safariservices-12.2.2 → pyobjc_framework_safariservices-13.1}/Lib/pyobjc_framework_SafariServices.egg-info/PKG-INFO +5 -5
- {pyobjc_framework_safariservices-12.2.2 → pyobjc_framework_safariservices-13.1}/Lib/pyobjc_framework_SafariServices.egg-info/SOURCES.txt +3 -3
- pyobjc_framework_safariservices-13.1/Lib/pyobjc_framework_SafariServices.egg-info/pyobjc-build-info.txt +3 -0
- pyobjc_framework_safariservices-13.1/Lib/pyobjc_framework_SafariServices.egg-info/requires.txt +2 -0
- {pyobjc_framework_safariservices-12.2.2 → pyobjc_framework_safariservices-13.1}/Modules/_SafariServices.m +9 -2
- pyobjc_framework_safariservices-13.1/Modules/_SafariServices_protocols.m +12 -0
- {pyobjc_framework_safariservices-12.2.2 → pyobjc_framework_safariservices-13.1}/Modules/pyobjc-api.h +18 -4
- {pyobjc_framework_safariservices-12.2.2 → pyobjc_framework_safariservices-13.1}/Modules/pyobjc-compat.h +0 -18
- {pyobjc_framework_safariservices-12.2.2 → pyobjc_framework_safariservices-13.1}/PKG-INFO +5 -5
- {pyobjc_framework_safariservices-12.2.2 → pyobjc_framework_safariservices-13.1}/PyObjCTest/test_sfcontentblockermanager.py +1 -1
- {pyobjc_framework_safariservices-12.2.2 → pyobjc_framework_safariservices-13.1}/PyObjCTest/test_sfcontentblockerstate.py +1 -1
- {pyobjc_framework_safariservices-12.2.2 → pyobjc_framework_safariservices-13.1}/PyObjCTest/test_sferror.py +2 -5
- {pyobjc_framework_safariservices-12.2.2 → pyobjc_framework_safariservices-13.1}/PyObjCTest/test_sfsafariapplication.py +5 -5
- {pyobjc_framework_safariservices-12.2.2 → pyobjc_framework_safariservices-13.1}/PyObjCTest/test_sfsafariextension.py +1 -1
- {pyobjc_framework_safariservices-12.2.2 → pyobjc_framework_safariservices-13.1}/PyObjCTest/test_sfsafariextensionhandling.py +3 -4
- {pyobjc_framework_safariservices-12.2.2 → pyobjc_framework_safariservices-13.1}/PyObjCTest/test_sfsafariextensionmanager.py +1 -1
- {pyobjc_framework_safariservices-12.2.2 → pyobjc_framework_safariservices-13.1}/PyObjCTest/test_sfsafaripage.py +2 -2
- {pyobjc_framework_safariservices-12.2.2 → pyobjc_framework_safariservices-13.1}/PyObjCTest/test_sfsafaripageproperties.py +1 -1
- pyobjc_framework_safariservices-13.1/PyObjCTest/test_sfsafarisettings.py +18 -0
- {pyobjc_framework_safariservices-12.2.2 → pyobjc_framework_safariservices-13.1}/PyObjCTest/test_sfsafaritab.py +2 -2
- {pyobjc_framework_safariservices-12.2.2 → pyobjc_framework_safariservices-13.1}/PyObjCTest/test_sfsafaritoolbaritem.py +1 -1
- {pyobjc_framework_safariservices-12.2.2 → pyobjc_framework_safariservices-13.1}/PyObjCTest/test_sfsafariwindow.py +2 -2
- {pyobjc_framework_safariservices-12.2.2 → pyobjc_framework_safariservices-13.1}/PyObjCTest/test_sfuniversallink.py +1 -1
- {pyobjc_framework_safariservices-12.2.2 → pyobjc_framework_safariservices-13.1}/metadata/SafariServices.fwinfo +0 -11
- pyobjc_framework_safariservices-12.2.2/metadata/raw/arm64-26.5.fwinfo → pyobjc_framework_safariservices-13.1/metadata/raw/arm64-27.fwinfo +94 -4
- pyobjc_framework_safariservices-12.2.2/metadata/raw/x86_64-26.5.fwinfo → pyobjc_framework_safariservices-13.1/metadata/raw/x86_64-27.fwinfo +94 -4
- {pyobjc_framework_safariservices-12.2.2 → pyobjc_framework_safariservices-13.1}/pyobjc_setup.py +66 -8
- {pyobjc_framework_safariservices-12.2.2 → pyobjc_framework_safariservices-13.1}/setup.py +1 -1
- pyobjc_framework_safariservices-12.2.2/Lib/pyobjc_framework_SafariServices.egg-info/pyobjc-build-info.txt +0 -3
- pyobjc_framework_safariservices-12.2.2/Lib/pyobjc_framework_SafariServices.egg-info/requires.txt +0 -2
- pyobjc_framework_safariservices-12.2.2/Modules/_SafariServices_protocols.m +0 -10
- pyobjc_framework_safariservices-12.2.2/PyObjCTest/test_sfswiftoverlaysupport.py +0 -17
- {pyobjc_framework_safariservices-12.2.2 → pyobjc_framework_safariservices-13.1}/Lib/pyobjc_framework_SafariServices.egg-info/dependency_links.txt +0 -0
- {pyobjc_framework_safariservices-12.2.2 → pyobjc_framework_safariservices-13.1}/Lib/pyobjc_framework_SafariServices.egg-info/not-zip-safe +0 -0
- {pyobjc_framework_safariservices-12.2.2 → pyobjc_framework_safariservices-13.1}/Lib/pyobjc_framework_SafariServices.egg-info/top_level.txt +0 -0
- {pyobjc_framework_safariservices-12.2.2 → pyobjc_framework_safariservices-13.1}/License.txt +0 -0
- {pyobjc_framework_safariservices-12.2.2 → pyobjc_framework_safariservices-13.1}/MANIFEST.in +0 -0
- {pyobjc_framework_safariservices-12.2.2 → pyobjc_framework_safariservices-13.1}/PyObjCTest/__init__.py +0 -0
- {pyobjc_framework_safariservices-12.2.2 → pyobjc_framework_safariservices-13.1}/PyObjCTest/test_safariservices.py +0 -0
- {pyobjc_framework_safariservices-12.2.2 → pyobjc_framework_safariservices-13.1}/metadata/metadata.ini +0 -0
- {pyobjc_framework_safariservices-12.2.2 → pyobjc_framework_safariservices-13.1}/pyproject.toml +0 -0
- {pyobjc_framework_safariservices-12.2.2 → pyobjc_framework_safariservices-13.1}/setup.cfg +0 -0
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
# This file is generated by objective.metadata
|
|
2
2
|
#
|
|
3
|
-
# Last update: Thu May 28 23:12:13 2026
|
|
4
|
-
#
|
|
5
3
|
# flake8: noqa
|
|
6
4
|
|
|
7
5
|
import objc, sys
|
|
@@ -30,11 +28,12 @@ else:
|
|
|
30
28
|
|
|
31
29
|
|
|
32
30
|
misc = {}
|
|
33
|
-
constants = """$SFErrorDomain$SFExtensionMessageKey$SFExtensionProfileKey$"""
|
|
34
|
-
enums = """$SFErrorLoadingInterrupted@3$SFErrorNoAttachmentFound@2$SFErrorNoExtensionFound@1$
|
|
31
|
+
constants = """$SFErrorDomain$SFExtensionMessageKey$SFExtensionProfileKey$SFSafariSettingsErrorDomain$"""
|
|
32
|
+
enums = """$SFErrorLoadingInterrupted@3$SFErrorNoAttachmentFound@2$SFErrorNoExtensionFound@1$SFSafariSettingsErrorFailed@1$SFSafariSettingsErrorNotAllowed@0$"""
|
|
35
33
|
misc.update(
|
|
36
34
|
{
|
|
37
35
|
"SFErrorCode": NewType("SFErrorCode", int),
|
|
36
|
+
"SFSafariSettingsError": NewType("SFSafariSettingsError", int),
|
|
38
37
|
"SFSafariServicesVersion": NewType("SFSafariServicesVersion", int),
|
|
39
38
|
}
|
|
40
39
|
)
|
|
@@ -367,6 +366,24 @@ try:
|
|
|
367
366
|
)
|
|
368
367
|
r(b"SFSafariPageProperties", b"isActive", {"retval": {"type": "Z"}})
|
|
369
368
|
r(b"SFSafariPageProperties", b"usesPrivateBrowsing", {"retval": {"type": "Z"}})
|
|
369
|
+
r(
|
|
370
|
+
b"SFSafariSettings",
|
|
371
|
+
b"checkAutoFillUserNamesAndPasswordsEnabledWithCompletionHandler:",
|
|
372
|
+
{
|
|
373
|
+
"arguments": {
|
|
374
|
+
2: {
|
|
375
|
+
"callable": {
|
|
376
|
+
"retval": {"type": b"v"},
|
|
377
|
+
"arguments": {
|
|
378
|
+
0: {"type": b"^v"},
|
|
379
|
+
1: {"type": b"Z"},
|
|
380
|
+
2: {"type": b"@"},
|
|
381
|
+
},
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
},
|
|
386
|
+
)
|
|
370
387
|
r(
|
|
371
388
|
b"SFSafariTab",
|
|
372
389
|
b"activateWithCompletionHandler:",
|
|
@@ -494,11 +511,15 @@ finally:
|
|
|
494
511
|
objc.registerNewKeywordsFromSelector("SFSafariApplication", b"init")
|
|
495
512
|
objc.registerNewKeywordsFromSelector("SFSafariExtension", b"init")
|
|
496
513
|
objc.registerNewKeywordsFromSelector("SFSafariPage", b"init")
|
|
514
|
+
objc.registerNewKeywordsFromSelector("SFSafariSettings", b"init")
|
|
497
515
|
objc.registerNewKeywordsFromSelector("SFSafariTab", b"init")
|
|
498
516
|
objc.registerNewKeywordsFromSelector("SFSafariToolbarItem", b"init")
|
|
499
517
|
objc.registerNewKeywordsFromSelector("SFSafariWindow", b"init")
|
|
500
518
|
objc.registerNewKeywordsFromSelector("SFUniversalLink", b"init")
|
|
501
519
|
objc.registerNewKeywordsFromSelector("SFUniversalLink", b"initWithWebpageURL:")
|
|
502
520
|
expressions = {}
|
|
521
|
+
formal_protocols = {
|
|
522
|
+
"SFSafariExtensionHandling": "SFSafariExtensionHandling",
|
|
523
|
+
}
|
|
503
524
|
|
|
504
525
|
# END OF FILE
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyobjc-framework-SafariServices
|
|
3
|
-
Version:
|
|
3
|
+
Version: 13.1
|
|
4
4
|
Summary: Wrappers for the framework SafariServices on macOS
|
|
5
5
|
Home-page: https://github.com/ronaldoussoren/pyobjc
|
|
6
6
|
Author: Ronald Oussoren
|
|
@@ -17,21 +17,21 @@ 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.
|
|
31
|
+
Requires-Python: >=3.11
|
|
32
32
|
Description-Content-Type: text/x-rst; charset=UTF-8
|
|
33
|
-
Requires-Dist: pyobjc-core>=
|
|
34
|
-
Requires-Dist: pyobjc-framework-Cocoa>=
|
|
33
|
+
Requires-Dist: pyobjc-core>=13.1
|
|
34
|
+
Requires-Dist: pyobjc-framework-Cocoa>=13.1
|
|
35
35
|
Dynamic: author
|
|
36
36
|
Dynamic: author-email
|
|
37
37
|
Dynamic: classifier
|
|
@@ -27,12 +27,12 @@ PyObjCTest/test_sfsafariextensionhandling.py
|
|
|
27
27
|
PyObjCTest/test_sfsafariextensionmanager.py
|
|
28
28
|
PyObjCTest/test_sfsafaripage.py
|
|
29
29
|
PyObjCTest/test_sfsafaripageproperties.py
|
|
30
|
+
PyObjCTest/test_sfsafarisettings.py
|
|
30
31
|
PyObjCTest/test_sfsafaritab.py
|
|
31
32
|
PyObjCTest/test_sfsafaritoolbaritem.py
|
|
32
33
|
PyObjCTest/test_sfsafariwindow.py
|
|
33
|
-
PyObjCTest/test_sfswiftoverlaysupport.py
|
|
34
34
|
PyObjCTest/test_sfuniversallink.py
|
|
35
35
|
metadata/SafariServices.fwinfo
|
|
36
36
|
metadata/metadata.ini
|
|
37
|
-
metadata/raw/arm64-
|
|
38
|
-
metadata/raw/x86_64-
|
|
37
|
+
metadata/raw/arm64-27.fwinfo
|
|
38
|
+
metadata/raw/x86_64-27.fwinfo
|
|
@@ -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 <Foundation/Foundation.h>
|
|
6
10
|
#import <SafariServices/SafariServices.h>
|
|
7
11
|
|
|
@@ -10,6 +14,8 @@
|
|
|
10
14
|
*/
|
|
11
15
|
#include "_SafariServices_protocols.m"
|
|
12
16
|
|
|
17
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
18
|
+
|
|
13
19
|
static PyMethodDef mod_methods[] = {
|
|
14
20
|
{0, 0, 0, 0} /* sentinel */
|
|
15
21
|
};
|
|
@@ -55,10 +61,11 @@ static struct PyModuleDef mod_module = {
|
|
|
55
61
|
.m_free = NULL,
|
|
56
62
|
};
|
|
57
63
|
|
|
58
|
-
PyObject* PyInit__SafariServices(void);
|
|
64
|
+
PyObject* _Nullable PyInit__SafariServices(void);
|
|
59
65
|
|
|
60
|
-
PyObject* __attribute__((__visibility__("default")))
|
|
66
|
+
PyObject* _Nullable __attribute__((__visibility__("default")))
|
|
61
67
|
PyInit__SafariServices(void)
|
|
62
68
|
{
|
|
63
69
|
return PyModuleDef_Init(&mod_module);
|
|
64
70
|
}
|
|
71
|
+
NS_ASSUME_NONNULL_END
|
{pyobjc_framework_safariservices-12.2.2 → pyobjc_framework_safariservices-13.1}/Modules/pyobjc-api.h
RENAMED
|
@@ -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-SafariServices
|
|
3
|
-
Version:
|
|
3
|
+
Version: 13.1
|
|
4
4
|
Summary: Wrappers for the framework SafariServices on macOS
|
|
5
5
|
Home-page: https://github.com/ronaldoussoren/pyobjc
|
|
6
6
|
Author: Ronald Oussoren
|
|
@@ -17,21 +17,21 @@ 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.
|
|
31
|
+
Requires-Python: >=3.11
|
|
32
32
|
Description-Content-Type: text/x-rst; charset=UTF-8
|
|
33
|
-
Requires-Dist: pyobjc-core>=
|
|
34
|
-
Requires-Dist: pyobjc-framework-Cocoa>=
|
|
33
|
+
Requires-Dist: pyobjc-core>=13.1
|
|
34
|
+
Requires-Dist: pyobjc-framework-Cocoa>=13.1
|
|
35
35
|
Dynamic: author
|
|
36
36
|
Dynamic: author-email
|
|
37
37
|
Dynamic: classifier
|
|
@@ -5,7 +5,7 @@ import SafariServices
|
|
|
5
5
|
|
|
6
6
|
class TestSFContentBlockerManager(TestCase):
|
|
7
7
|
@min_os_level("10.12")
|
|
8
|
-
def
|
|
8
|
+
def test_methods(self):
|
|
9
9
|
self.assertArgIsBlock(
|
|
10
10
|
SafariServices.SFContentBlockerManager.reloadContentBlockerWithIdentifier_completionHandler_,
|
|
11
11
|
1,
|
|
@@ -4,6 +4,6 @@ import SafariServices
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
class TestSFContentBlockerState(TestCase):
|
|
7
|
-
def
|
|
7
|
+
def test_methods(self):
|
|
8
8
|
self.assertResultIsBOOL(SafariServices.SFContentBlockerState.isEnabled)
|
|
9
9
|
self.assertArgIsBOOL(SafariServices.SFContentBlockerState.setEnabled_, 0)
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
from PyObjCTools.TestSupport import TestCase
|
|
1
|
+
from PyObjCTools.TestSupport import TestCase
|
|
2
2
|
|
|
3
3
|
import SafariServices
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
class TestSFError(TestCase):
|
|
7
|
-
def
|
|
7
|
+
def test_enums(self):
|
|
8
8
|
self.assertIsEnumType(SafariServices.SFErrorCode)
|
|
9
|
-
|
|
10
|
-
@min_os_level("10.12")
|
|
11
|
-
def testConstants(self):
|
|
12
9
|
self.assertEqual(SafariServices.SFErrorNoExtensionFound, 1)
|
|
13
10
|
self.assertEqual(SafariServices.SFErrorNoAttachmentFound, 2)
|
|
14
11
|
self.assertEqual(SafariServices.SFErrorLoadingInterrupted, 3)
|
|
@@ -5,7 +5,7 @@ import SafariServices
|
|
|
5
5
|
|
|
6
6
|
class TestSFContentBlockerManager(TestCase):
|
|
7
7
|
@min_os_level("10.12")
|
|
8
|
-
def
|
|
8
|
+
def test_methods(self):
|
|
9
9
|
self.assertArgIsBlock(
|
|
10
10
|
SafariServices.SFSafariApplication.getActiveWindowWithCompletionHandler_,
|
|
11
11
|
0,
|
|
@@ -29,7 +29,7 @@ class TestSFContentBlockerManager(TestCase):
|
|
|
29
29
|
)
|
|
30
30
|
|
|
31
31
|
@min_os_level("10.13")
|
|
32
|
-
def
|
|
32
|
+
def test_methods10_13(self):
|
|
33
33
|
self.assertArgIsBlock(
|
|
34
34
|
SafariServices.SFSafariApplication.getHostApplicationWithCompletionHandler_,
|
|
35
35
|
0,
|
|
@@ -37,7 +37,7 @@ class TestSFContentBlockerManager(TestCase):
|
|
|
37
37
|
)
|
|
38
38
|
|
|
39
39
|
@min_os_level("10.14.4")
|
|
40
|
-
def
|
|
40
|
+
def test_methods10_14(self):
|
|
41
41
|
self.assertArgIsBlock(
|
|
42
42
|
SafariServices.SFSafariApplication.getAllWindowsWithCompletionHandler_,
|
|
43
43
|
0,
|
|
@@ -45,9 +45,9 @@ class TestSFContentBlockerManager(TestCase):
|
|
|
45
45
|
)
|
|
46
46
|
|
|
47
47
|
@min_os_level("11.0")
|
|
48
|
-
def
|
|
48
|
+
def test_constants11_0(self):
|
|
49
49
|
self.assertIsInstance(SafariServices.SFExtensionMessageKey, str)
|
|
50
50
|
|
|
51
51
|
@min_os_level("14.0")
|
|
52
|
-
def
|
|
52
|
+
def test_constants14_0(self):
|
|
53
53
|
self.assertIsInstance(SafariServices.SFExtensionProfileKey, str)
|
|
@@ -18,11 +18,10 @@ class TestSFSafariExtensionHandlingHelper(SafariServices.NSObject):
|
|
|
18
18
|
|
|
19
19
|
class TestSFSafariExtensionHandling(TestCase):
|
|
20
20
|
@min_os_level("10.12")
|
|
21
|
-
def
|
|
22
|
-
self.assertProtocolExists("SFSafariExtensionHandling")
|
|
21
|
+
def test_protocols(self):
|
|
22
|
+
self.assertProtocolExists("SFSafariExtensionHandling", SafariServices)
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
def testMethods(self):
|
|
24
|
+
def test_protocol_methods(self):
|
|
26
25
|
self.assertArgIsBlock(
|
|
27
26
|
TestSFSafariExtensionHandlingHelper.validateToolbarItemInWindow_validationHandler_,
|
|
28
27
|
1,
|
|
@@ -5,7 +5,7 @@ import SafariServices
|
|
|
5
5
|
|
|
6
6
|
class TestSFSafariExtensionManager(TestCase):
|
|
7
7
|
@min_os_level("10.12")
|
|
8
|
-
def
|
|
8
|
+
def test_methods(self):
|
|
9
9
|
self.assertArgIsBlock(
|
|
10
10
|
SafariServices.SFSafariExtensionManager.getStateOfSafariExtensionWithIdentifier_completionHandler_,
|
|
11
11
|
1,
|
|
@@ -5,7 +5,7 @@ import SafariServices
|
|
|
5
5
|
|
|
6
6
|
class TestSFSafariPage(TestCase):
|
|
7
7
|
@min_os_level("10.12")
|
|
8
|
-
def
|
|
8
|
+
def test_methods(self):
|
|
9
9
|
self.assertArgIsBlock(
|
|
10
10
|
SafariServices.SFSafariPage.getPagePropertiesWithCompletionHandler_,
|
|
11
11
|
0,
|
|
@@ -13,7 +13,7 @@ class TestSFSafariPage(TestCase):
|
|
|
13
13
|
)
|
|
14
14
|
|
|
15
15
|
@min_os_level("10.14.4")
|
|
16
|
-
def
|
|
16
|
+
def test_methods10_14(self):
|
|
17
17
|
self.assertArgIsBlock(
|
|
18
18
|
SafariServices.SFSafariPage.getContainingTabWithCompletionHandler_, 0, b"v@"
|
|
19
19
|
)
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
from PyObjCTools.TestSupport import TestCase, min_os_level
|
|
2
|
+
|
|
3
|
+
import SafariServices
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class SFSafariSettings(TestCase):
|
|
7
|
+
def test_constants(self):
|
|
8
|
+
self.assertIsEnumType(SafariServices.SFSafariSettingsError)
|
|
9
|
+
self.assertEqual(SafariServices.SFSafariSettingsErrorNotAllowed, 0)
|
|
10
|
+
self.assertEqual(SafariServices.SFSafariSettingsErrorFailed, 1)
|
|
11
|
+
|
|
12
|
+
@min_os_level("27.0")
|
|
13
|
+
def test_methods(self):
|
|
14
|
+
self.assertArgIsBlock(
|
|
15
|
+
SafariServices.SFSafariSettings.checkAutoFillUserNamesAndPasswordsEnabledWithCompletionHandler_,
|
|
16
|
+
0,
|
|
17
|
+
b"vZ@",
|
|
18
|
+
)
|
|
@@ -5,7 +5,7 @@ import SafariServices
|
|
|
5
5
|
|
|
6
6
|
class TestSFSafariTab(TestCase):
|
|
7
7
|
@min_os_level("10.12")
|
|
8
|
-
def
|
|
8
|
+
def test_methods(self):
|
|
9
9
|
self.assertArgIsBlock(
|
|
10
10
|
SafariServices.SFSafariTab.getActivePageWithCompletionHandler_, 0, b"v@"
|
|
11
11
|
)
|
|
@@ -17,7 +17,7 @@ class TestSFSafariTab(TestCase):
|
|
|
17
17
|
)
|
|
18
18
|
|
|
19
19
|
@min_os_level("10.14.4")
|
|
20
|
-
def
|
|
20
|
+
def test_methods10_14(self):
|
|
21
21
|
self.assertArgIsBlock(
|
|
22
22
|
SafariServices.SFSafariTab.getContainingWindowWithCompletionHandler_,
|
|
23
23
|
0,
|
|
@@ -5,7 +5,7 @@ import SafariServices
|
|
|
5
5
|
|
|
6
6
|
class TestSFSafariWindow(TestCase):
|
|
7
7
|
@min_os_level("10.12")
|
|
8
|
-
def
|
|
8
|
+
def test_methods(self):
|
|
9
9
|
self.assertArgIsBlock(
|
|
10
10
|
SafariServices.SFSafariWindow.getActiveTabWithCompletionHandler_, 0, b"v@"
|
|
11
11
|
)
|
|
@@ -25,7 +25,7 @@ class TestSFSafariWindow(TestCase):
|
|
|
25
25
|
)
|
|
26
26
|
|
|
27
27
|
@min_os_level("10.14.4")
|
|
28
|
-
def
|
|
28
|
+
def test_methods10_14(self):
|
|
29
29
|
self.assertArgIsBlock(
|
|
30
30
|
SafariServices.SFSafariWindow.getAllTabsWithCompletionHandler_, 0, b"v@"
|
|
31
31
|
)
|
|
@@ -5,6 +5,6 @@ import SafariServices
|
|
|
5
5
|
|
|
6
6
|
class TestSFUniversalLink(TestCase):
|
|
7
7
|
@min_os_level("10.15")
|
|
8
|
-
def
|
|
8
|
+
def test_methods(self):
|
|
9
9
|
self.assertResultIsBOOL(SafariServices.SFUniversalLink.isEnabled)
|
|
10
10
|
self.assertArgIsBOOL(SafariServices.SFUniversalLink.setEnabled_, 0)
|
|
@@ -3,17 +3,6 @@
|
|
|
3
3
|
"enum_type": {
|
|
4
4
|
"SFSafariServicesVersion": { "type": "q" }
|
|
5
5
|
},
|
|
6
|
-
"enum": {
|
|
7
|
-
"SFErrorNoExtensionFound": { "value": 1 },
|
|
8
|
-
"SFErrorNoAttachmentFound": { "value": 2 },
|
|
9
|
-
"SFErrorLoadingInterrupted": { "value": 3 },
|
|
10
|
-
"SFSafariServicesVersion10_0": { "value": 0 },
|
|
11
|
-
"SFSafariServicesVersion10_1": { "value": 1 },
|
|
12
|
-
"SFSafariServicesVersion11_0": { "value": 2 },
|
|
13
|
-
"SFSafariServicesVersion12_0": { "value": 3 },
|
|
14
|
-
"SFSafariServicesVersion12_1": { "value": 4 },
|
|
15
|
-
"SFSafariServicesVersion13_0": { "value": 5 }
|
|
16
|
-
},
|
|
17
6
|
"classes": {
|
|
18
7
|
"NSObject": {
|
|
19
8
|
"methods": [
|
|
@@ -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:07 2026
|
|
5
4
|
{
|
|
6
5
|
"arch": "arm64",
|
|
7
6
|
"definitions": {
|
|
@@ -899,6 +898,79 @@
|
|
|
899
898
|
"protocols": [],
|
|
900
899
|
"super": "NSObject"
|
|
901
900
|
},
|
|
901
|
+
"SFSafariSettings": {
|
|
902
|
+
"categories": [],
|
|
903
|
+
"methods": [
|
|
904
|
+
{
|
|
905
|
+
"args": [],
|
|
906
|
+
"class_method": true,
|
|
907
|
+
"introduced": "27.0",
|
|
908
|
+
"retval": {
|
|
909
|
+
"instancetype": true,
|
|
910
|
+
"type_name": "instancetype",
|
|
911
|
+
"typestr": "@",
|
|
912
|
+
"typestr_special": false
|
|
913
|
+
},
|
|
914
|
+
"selector": "new",
|
|
915
|
+
"visibility": "public"
|
|
916
|
+
},
|
|
917
|
+
{
|
|
918
|
+
"args": [],
|
|
919
|
+
"class_method": false,
|
|
920
|
+
"introduced": "27.0",
|
|
921
|
+
"retval": {
|
|
922
|
+
"instancetype": true,
|
|
923
|
+
"type_name": "instancetype",
|
|
924
|
+
"typestr": "@",
|
|
925
|
+
"typestr_special": false
|
|
926
|
+
},
|
|
927
|
+
"selector": "init",
|
|
928
|
+
"visibility": "public"
|
|
929
|
+
},
|
|
930
|
+
{
|
|
931
|
+
"args": [
|
|
932
|
+
{
|
|
933
|
+
"callable": {
|
|
934
|
+
"arguments": {
|
|
935
|
+
"0": {
|
|
936
|
+
"type": "^v"
|
|
937
|
+
},
|
|
938
|
+
"1": {
|
|
939
|
+
"type": "Z",
|
|
940
|
+
"type_name": "BOOL"
|
|
941
|
+
},
|
|
942
|
+
"2": {
|
|
943
|
+
"type": "@",
|
|
944
|
+
"type_name": "NSError *"
|
|
945
|
+
}
|
|
946
|
+
},
|
|
947
|
+
"retval": {
|
|
948
|
+
"type": "v"
|
|
949
|
+
}
|
|
950
|
+
},
|
|
951
|
+
"name": "completionHandler",
|
|
952
|
+
"null_accepted": true,
|
|
953
|
+
"type_name": "void (^)(BOOL, NSError * _Nullable)",
|
|
954
|
+
"typestr": "@?",
|
|
955
|
+
"typestr_special": false
|
|
956
|
+
}
|
|
957
|
+
],
|
|
958
|
+
"class_method": true,
|
|
959
|
+
"introduced": "27.0",
|
|
960
|
+
"retval": {
|
|
961
|
+
"type_name": "void",
|
|
962
|
+
"typestr": "v",
|
|
963
|
+
"typestr_special": false
|
|
964
|
+
},
|
|
965
|
+
"selector": "checkAutoFillUserNamesAndPasswordsEnabledWithCompletionHandler:",
|
|
966
|
+
"visibility": "public"
|
|
967
|
+
}
|
|
968
|
+
],
|
|
969
|
+
"name": "SFSafariSettings",
|
|
970
|
+
"properties": [],
|
|
971
|
+
"protocols": [],
|
|
972
|
+
"super": "NSObject"
|
|
973
|
+
},
|
|
902
974
|
"SFSafariTab": {
|
|
903
975
|
"categories": [],
|
|
904
976
|
"methods": [
|
|
@@ -1612,11 +1684,22 @@
|
|
|
1612
1684
|
"SFErrorNoExtensionFound": {
|
|
1613
1685
|
"enum": "SFErrorCode",
|
|
1614
1686
|
"value": 1
|
|
1687
|
+
},
|
|
1688
|
+
"SFSafariSettingsErrorFailed": {
|
|
1689
|
+
"enum": "SFSafariSettingsError",
|
|
1690
|
+
"value": 1
|
|
1691
|
+
},
|
|
1692
|
+
"SFSafariSettingsErrorNotAllowed": {
|
|
1693
|
+
"enum": "SFSafariSettingsError",
|
|
1694
|
+
"value": 0
|
|
1615
1695
|
}
|
|
1616
1696
|
},
|
|
1617
1697
|
"enum_type": {
|
|
1618
1698
|
"SFErrorCode": {
|
|
1619
1699
|
"type": "q"
|
|
1700
|
+
},
|
|
1701
|
+
"SFSafariSettingsError": {
|
|
1702
|
+
"type": "q"
|
|
1620
1703
|
}
|
|
1621
1704
|
},
|
|
1622
1705
|
"expressions": {},
|
|
@@ -1635,6 +1718,11 @@
|
|
|
1635
1718
|
"introduced": "14.0",
|
|
1636
1719
|
"type_name": "NSString *const",
|
|
1637
1720
|
"typestr": "@"
|
|
1721
|
+
},
|
|
1722
|
+
"SFSafariSettingsErrorDomain": {
|
|
1723
|
+
"introduced": "27.0",
|
|
1724
|
+
"type_name": "NSString *const",
|
|
1725
|
+
"typestr": "@"
|
|
1638
1726
|
}
|
|
1639
1727
|
},
|
|
1640
1728
|
"formal_protocols": {
|
|
@@ -2035,7 +2123,8 @@
|
|
|
2035
2123
|
"literals": {},
|
|
2036
2124
|
"structs": {},
|
|
2037
2125
|
"typedefs": {
|
|
2038
|
-
"SFErrorCode": "enum SFErrorCode"
|
|
2126
|
+
"SFErrorCode": "enum SFErrorCode",
|
|
2127
|
+
"SFSafariSettingsError": "enum SFSafariSettingsError"
|
|
2039
2128
|
}
|
|
2040
2129
|
},
|
|
2041
2130
|
"framework": "SafariServices",
|
|
@@ -2053,11 +2142,12 @@
|
|
|
2053
2142
|
"SFSafariExtensionViewController.h",
|
|
2054
2143
|
"SFSafariPage.h",
|
|
2055
2144
|
"SFSafariPageProperties.h",
|
|
2145
|
+
"SFSafariSettings.h",
|
|
2056
2146
|
"SFSafariTab.h",
|
|
2057
2147
|
"SFSafariToolbarItem.h",
|
|
2058
2148
|
"SFSafariWindow.h",
|
|
2059
2149
|
"SFUniversalLink.h"
|
|
2060
2150
|
],
|
|
2061
|
-
"release": "
|
|
2062
|
-
"sdk": "
|
|
2151
|
+
"release": "macOS 27.3",
|
|
2152
|
+
"sdk": "Xcode 27.3 (27C5035f)/MacOSX27.sdk"
|
|
2063
2153
|
}
|
|
@@ -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:05 2026
|
|
5
4
|
{
|
|
6
5
|
"arch": "x86_64",
|
|
7
6
|
"definitions": {
|
|
@@ -899,6 +898,79 @@
|
|
|
899
898
|
"protocols": [],
|
|
900
899
|
"super": "NSObject"
|
|
901
900
|
},
|
|
901
|
+
"SFSafariSettings": {
|
|
902
|
+
"categories": [],
|
|
903
|
+
"methods": [
|
|
904
|
+
{
|
|
905
|
+
"args": [],
|
|
906
|
+
"class_method": true,
|
|
907
|
+
"introduced": "27.0",
|
|
908
|
+
"retval": {
|
|
909
|
+
"instancetype": true,
|
|
910
|
+
"type_name": "instancetype",
|
|
911
|
+
"typestr": "@",
|
|
912
|
+
"typestr_special": false
|
|
913
|
+
},
|
|
914
|
+
"selector": "new",
|
|
915
|
+
"visibility": "public"
|
|
916
|
+
},
|
|
917
|
+
{
|
|
918
|
+
"args": [],
|
|
919
|
+
"class_method": false,
|
|
920
|
+
"introduced": "27.0",
|
|
921
|
+
"retval": {
|
|
922
|
+
"instancetype": true,
|
|
923
|
+
"type_name": "instancetype",
|
|
924
|
+
"typestr": "@",
|
|
925
|
+
"typestr_special": false
|
|
926
|
+
},
|
|
927
|
+
"selector": "init",
|
|
928
|
+
"visibility": "public"
|
|
929
|
+
},
|
|
930
|
+
{
|
|
931
|
+
"args": [
|
|
932
|
+
{
|
|
933
|
+
"callable": {
|
|
934
|
+
"arguments": {
|
|
935
|
+
"0": {
|
|
936
|
+
"type": "^v"
|
|
937
|
+
},
|
|
938
|
+
"1": {
|
|
939
|
+
"type": "Z",
|
|
940
|
+
"type_name": "BOOL"
|
|
941
|
+
},
|
|
942
|
+
"2": {
|
|
943
|
+
"type": "@",
|
|
944
|
+
"type_name": "NSError *"
|
|
945
|
+
}
|
|
946
|
+
},
|
|
947
|
+
"retval": {
|
|
948
|
+
"type": "v"
|
|
949
|
+
}
|
|
950
|
+
},
|
|
951
|
+
"name": "completionHandler",
|
|
952
|
+
"null_accepted": true,
|
|
953
|
+
"type_name": "void (^)(BOOL, NSError * _Nullable)",
|
|
954
|
+
"typestr": "@?",
|
|
955
|
+
"typestr_special": false
|
|
956
|
+
}
|
|
957
|
+
],
|
|
958
|
+
"class_method": true,
|
|
959
|
+
"introduced": "27.0",
|
|
960
|
+
"retval": {
|
|
961
|
+
"type_name": "void",
|
|
962
|
+
"typestr": "v",
|
|
963
|
+
"typestr_special": false
|
|
964
|
+
},
|
|
965
|
+
"selector": "checkAutoFillUserNamesAndPasswordsEnabledWithCompletionHandler:",
|
|
966
|
+
"visibility": "public"
|
|
967
|
+
}
|
|
968
|
+
],
|
|
969
|
+
"name": "SFSafariSettings",
|
|
970
|
+
"properties": [],
|
|
971
|
+
"protocols": [],
|
|
972
|
+
"super": "NSObject"
|
|
973
|
+
},
|
|
902
974
|
"SFSafariTab": {
|
|
903
975
|
"categories": [],
|
|
904
976
|
"methods": [
|
|
@@ -1612,11 +1684,22 @@
|
|
|
1612
1684
|
"SFErrorNoExtensionFound": {
|
|
1613
1685
|
"enum": "SFErrorCode",
|
|
1614
1686
|
"value": 1
|
|
1687
|
+
},
|
|
1688
|
+
"SFSafariSettingsErrorFailed": {
|
|
1689
|
+
"enum": "SFSafariSettingsError",
|
|
1690
|
+
"value": 1
|
|
1691
|
+
},
|
|
1692
|
+
"SFSafariSettingsErrorNotAllowed": {
|
|
1693
|
+
"enum": "SFSafariSettingsError",
|
|
1694
|
+
"value": 0
|
|
1615
1695
|
}
|
|
1616
1696
|
},
|
|
1617
1697
|
"enum_type": {
|
|
1618
1698
|
"SFErrorCode": {
|
|
1619
1699
|
"type": "q"
|
|
1700
|
+
},
|
|
1701
|
+
"SFSafariSettingsError": {
|
|
1702
|
+
"type": "q"
|
|
1620
1703
|
}
|
|
1621
1704
|
},
|
|
1622
1705
|
"expressions": {},
|
|
@@ -1635,6 +1718,11 @@
|
|
|
1635
1718
|
"introduced": "14.0",
|
|
1636
1719
|
"type_name": "NSString *const",
|
|
1637
1720
|
"typestr": "@"
|
|
1721
|
+
},
|
|
1722
|
+
"SFSafariSettingsErrorDomain": {
|
|
1723
|
+
"introduced": "27.0",
|
|
1724
|
+
"type_name": "NSString *const",
|
|
1725
|
+
"typestr": "@"
|
|
1638
1726
|
}
|
|
1639
1727
|
},
|
|
1640
1728
|
"formal_protocols": {
|
|
@@ -2035,7 +2123,8 @@
|
|
|
2035
2123
|
"literals": {},
|
|
2036
2124
|
"structs": {},
|
|
2037
2125
|
"typedefs": {
|
|
2038
|
-
"SFErrorCode": "enum SFErrorCode"
|
|
2126
|
+
"SFErrorCode": "enum SFErrorCode",
|
|
2127
|
+
"SFSafariSettingsError": "enum SFSafariSettingsError"
|
|
2039
2128
|
}
|
|
2040
2129
|
},
|
|
2041
2130
|
"framework": "SafariServices",
|
|
@@ -2053,11 +2142,12 @@
|
|
|
2053
2142
|
"SFSafariExtensionViewController.h",
|
|
2054
2143
|
"SFSafariPage.h",
|
|
2055
2144
|
"SFSafariPageProperties.h",
|
|
2145
|
+
"SFSafariSettings.h",
|
|
2056
2146
|
"SFSafariTab.h",
|
|
2057
2147
|
"SFSafariToolbarItem.h",
|
|
2058
2148
|
"SFSafariWindow.h",
|
|
2059
2149
|
"SFUniversalLink.h"
|
|
2060
2150
|
],
|
|
2061
|
-
"release": "
|
|
2062
|
-
"sdk": "
|
|
2151
|
+
"release": "macOS 27.3",
|
|
2152
|
+
"sdk": "Xcode 27.3 (27C5035f)/MacOSX27.sdk"
|
|
2063
2153
|
}
|
{pyobjc_framework_safariservices-12.2.2 → pyobjc_framework_safariservices-13.1}/pyobjc_setup.py
RENAMED
|
@@ -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
|
|
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
|
|
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.
|
|
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,
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
from PyObjCTools.TestSupport import TestCase, min_os_level
|
|
2
|
-
|
|
3
|
-
import SafariServices
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
class TestSFContentBlockerManager(TestCase):
|
|
7
|
-
def test_enum_types(self):
|
|
8
|
-
self.assertIsEnumType(SafariServices.SFSafariServicesVersion)
|
|
9
|
-
|
|
10
|
-
@min_os_level("10.12")
|
|
11
|
-
def testConstants(self):
|
|
12
|
-
self.assertEqual(SafariServices.SFSafariServicesVersion10_0, 0)
|
|
13
|
-
self.assertEqual(SafariServices.SFSafariServicesVersion10_1, 1)
|
|
14
|
-
self.assertEqual(SafariServices.SFSafariServicesVersion11_0, 2)
|
|
15
|
-
self.assertEqual(SafariServices.SFSafariServicesVersion12_0, 3)
|
|
16
|
-
self.assertEqual(SafariServices.SFSafariServicesVersion12_1, 4)
|
|
17
|
-
self.assertEqual(SafariServices.SFSafariServicesVersion13_0, 5)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyobjc_framework_safariservices-12.2.2 → pyobjc_framework_safariservices-13.1}/pyproject.toml
RENAMED
|
File without changes
|
|
File without changes
|