pyobjc-framework-UserNotifications 12.2.1__tar.gz → 13.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.
- {pyobjc_framework_usernotifications-12.2.1 → pyobjc_framework_usernotifications-13.0}/Lib/UserNotifications/_metadata.py +5 -3
- {pyobjc_framework_usernotifications-12.2.1 → pyobjc_framework_usernotifications-13.0}/Lib/pyobjc_framework_UserNotifications.egg-info/PKG-INFO +5 -5
- {pyobjc_framework_usernotifications-12.2.1 → pyobjc_framework_usernotifications-13.0}/Lib/pyobjc_framework_UserNotifications.egg-info/SOURCES.txt +2 -2
- pyobjc_framework_usernotifications-13.0/Lib/pyobjc_framework_UserNotifications.egg-info/pyobjc-build-info.txt +3 -0
- pyobjc_framework_usernotifications-13.0/Lib/pyobjc_framework_UserNotifications.egg-info/requires.txt +2 -0
- {pyobjc_framework_usernotifications-12.2.1 → pyobjc_framework_usernotifications-13.0}/Modules/_UserNotifications.m +9 -2
- {pyobjc_framework_usernotifications-12.2.1 → pyobjc_framework_usernotifications-13.0}/Modules/_UserNotifications_protocols.m +8 -0
- {pyobjc_framework_usernotifications-12.2.1 → pyobjc_framework_usernotifications-13.0}/Modules/pyobjc-api.h +18 -4
- {pyobjc_framework_usernotifications-12.2.1 → pyobjc_framework_usernotifications-13.0}/Modules/pyobjc-compat.h +0 -18
- {pyobjc_framework_usernotifications-12.2.1 → pyobjc_framework_usernotifications-13.0}/PKG-INFO +5 -5
- {pyobjc_framework_usernotifications-12.2.1 → pyobjc_framework_usernotifications-13.0}/PyObjCTest/test_unerror.py +1 -3
- {pyobjc_framework_usernotifications-12.2.1 → pyobjc_framework_usernotifications-13.0}/PyObjCTest/test_unnotificationaction.py +1 -6
- {pyobjc_framework_usernotifications-12.2.1 → pyobjc_framework_usernotifications-13.0}/PyObjCTest/test_unnotificationcategory.py +1 -3
- {pyobjc_framework_usernotifications-12.2.1 → pyobjc_framework_usernotifications-13.0}/PyObjCTest/test_unnotificationcontent.py +2 -4
- {pyobjc_framework_usernotifications-12.2.1 → pyobjc_framework_usernotifications-13.0}/PyObjCTest/test_unnotificationsettings.py +10 -12
- {pyobjc_framework_usernotifications-12.2.1 → pyobjc_framework_usernotifications-13.0}/PyObjCTest/test_unusernotificationcenter.py +3 -5
- {pyobjc_framework_usernotifications-12.2.1 → pyobjc_framework_usernotifications-13.0}/metadata/UserNotifications.fwinfo +0 -50
- pyobjc_framework_usernotifications-12.2.1/metadata/raw/arm64-26.5.fwinfo → pyobjc_framework_usernotifications-13.0/metadata/raw/arm64-27.fwinfo +2 -3
- pyobjc_framework_usernotifications-12.2.1/metadata/raw/x86_64-26.5.fwinfo → pyobjc_framework_usernotifications-13.0/metadata/raw/x86_64-27.fwinfo +2 -3
- {pyobjc_framework_usernotifications-12.2.1 → pyobjc_framework_usernotifications-13.0}/pyobjc_setup.py +7 -7
- {pyobjc_framework_usernotifications-12.2.1 → pyobjc_framework_usernotifications-13.0}/setup.py +1 -1
- pyobjc_framework_usernotifications-12.2.1/Lib/pyobjc_framework_UserNotifications.egg-info/pyobjc-build-info.txt +0 -3
- pyobjc_framework_usernotifications-12.2.1/Lib/pyobjc_framework_UserNotifications.egg-info/requires.txt +0 -2
- {pyobjc_framework_usernotifications-12.2.1 → pyobjc_framework_usernotifications-13.0}/Lib/UserNotifications/__init__.py +0 -0
- {pyobjc_framework_usernotifications-12.2.1 → pyobjc_framework_usernotifications-13.0}/Lib/pyobjc_framework_UserNotifications.egg-info/dependency_links.txt +0 -0
- {pyobjc_framework_usernotifications-12.2.1 → pyobjc_framework_usernotifications-13.0}/Lib/pyobjc_framework_UserNotifications.egg-info/not-zip-safe +0 -0
- {pyobjc_framework_usernotifications-12.2.1 → pyobjc_framework_usernotifications-13.0}/Lib/pyobjc_framework_UserNotifications.egg-info/top_level.txt +0 -0
- {pyobjc_framework_usernotifications-12.2.1 → pyobjc_framework_usernotifications-13.0}/License.txt +0 -0
- {pyobjc_framework_usernotifications-12.2.1 → pyobjc_framework_usernotifications-13.0}/MANIFEST.in +0 -0
- {pyobjc_framework_usernotifications-12.2.1 → pyobjc_framework_usernotifications-13.0}/PyObjCTest/__init__.py +0 -0
- {pyobjc_framework_usernotifications-12.2.1 → pyobjc_framework_usernotifications-13.0}/PyObjCTest/test_unnotificationattachment.py +0 -0
- {pyobjc_framework_usernotifications-12.2.1 → pyobjc_framework_usernotifications-13.0}/PyObjCTest/test_unnotificationresponse.py +0 -0
- {pyobjc_framework_usernotifications-12.2.1 → pyobjc_framework_usernotifications-13.0}/PyObjCTest/test_unnotificationserviceextension.py +0 -0
- {pyobjc_framework_usernotifications-12.2.1 → pyobjc_framework_usernotifications-13.0}/PyObjCTest/test_unnotificationtrigger.py +0 -0
- {pyobjc_framework_usernotifications-12.2.1 → pyobjc_framework_usernotifications-13.0}/PyObjCTest/test_usernotifications.py +0 -0
- {pyobjc_framework_usernotifications-12.2.1 → pyobjc_framework_usernotifications-13.0}/metadata/metadata.ini +0 -0
- {pyobjc_framework_usernotifications-12.2.1 → pyobjc_framework_usernotifications-13.0}/pyproject.toml +0 -0
- {pyobjc_framework_usernotifications-12.2.1 → pyobjc_framework_usernotifications-13.0}/setup.cfg +0 -0
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
# This file is generated by objective.metadata
|
|
2
2
|
#
|
|
3
|
-
# Last update: Fri May 29 08:45:08 2026
|
|
4
|
-
#
|
|
5
3
|
# flake8: noqa
|
|
6
4
|
|
|
7
5
|
import objc, sys
|
|
@@ -31,7 +29,7 @@ else:
|
|
|
31
29
|
|
|
32
30
|
misc = {}
|
|
33
31
|
constants = """$UNErrorDomain$UNNotificationAttachmentOptionsThumbnailClippingRectKey$UNNotificationAttachmentOptionsThumbnailHiddenKey$UNNotificationAttachmentOptionsThumbnailTimeKey$UNNotificationAttachmentOptionsTypeHintKey$UNNotificationDefaultActionIdentifier$UNNotificationDismissActionIdentifier$"""
|
|
34
|
-
enums = """$UNAlertStyleAlert@2$UNAlertStyleBanner@1$UNAlertStyleNone@0$UNAuthorizationOptionAlert@4$UNAuthorizationOptionAnnouncement@128$UNAuthorizationOptionBadge@1$UNAuthorizationOptionCarPlay@8$UNAuthorizationOptionCriticalAlert@16$UNAuthorizationOptionNone@0$UNAuthorizationOptionProvidesAppNotificationSettings@32$UNAuthorizationOptionProvisional@64$UNAuthorizationOptionSound@2$UNAuthorizationOptionTimeSensitive@256$UNAuthorizationStatusAuthorized@2$UNAuthorizationStatusDenied@1$UNAuthorizationStatusEphemeral@4$UNAuthorizationStatusNotDetermined@0$UNAuthorizationStatusProvisional@3$UNErrorCodeAttachmentCorrupt@105$UNErrorCodeAttachmentInvalidFileSize@102$UNErrorCodeAttachmentInvalidURL@100$UNErrorCodeAttachmentMoveIntoDataStoreFailed@104$UNErrorCodeAttachmentNotInDataStore@103$UNErrorCodeAttachmentUnrecognizedType@101$UNErrorCodeBadgeInputInvalid@1600$UNErrorCodeContentProvidingInvalid@1501$UNErrorCodeContentProvidingObjectNotAllowed@1500$UNErrorCodeNotificationInvalidNoContent@1401$UNErrorCodeNotificationInvalidNoDate@1400$UNErrorCodeNotificationsNotAllowed@1$UNNotificationActionOptionAuthenticationRequired@1$UNNotificationActionOptionDestructive@2$UNNotificationActionOptionForeground@4$UNNotificationActionOptionNone@0$UNNotificationCategoryOptionAllowAnnouncement@16$UNNotificationCategoryOptionAllowInCarPlay@2$UNNotificationCategoryOptionCustomDismissAction@1$UNNotificationCategoryOptionHiddenPreviewsShowSubtitle@8$UNNotificationCategoryOptionHiddenPreviewsShowTitle@4$UNNotificationCategoryOptionNone@0$
|
|
32
|
+
enums = """$UNAlertStyleAlert@2$UNAlertStyleBanner@1$UNAlertStyleNone@0$UNAuthorizationOptionAlert@4$UNAuthorizationOptionAnnouncement@128$UNAuthorizationOptionBadge@1$UNAuthorizationOptionCarPlay@8$UNAuthorizationOptionCriticalAlert@16$UNAuthorizationOptionNone@0$UNAuthorizationOptionProvidesAppNotificationSettings@32$UNAuthorizationOptionProvisional@64$UNAuthorizationOptionSound@2$UNAuthorizationOptionTimeSensitive@256$UNAuthorizationStatusAuthorized@2$UNAuthorizationStatusDenied@1$UNAuthorizationStatusEphemeral@4$UNAuthorizationStatusNotDetermined@0$UNAuthorizationStatusProvisional@3$UNErrorCodeAttachmentCorrupt@105$UNErrorCodeAttachmentInvalidFileSize@102$UNErrorCodeAttachmentInvalidURL@100$UNErrorCodeAttachmentMoveIntoDataStoreFailed@104$UNErrorCodeAttachmentNotInDataStore@103$UNErrorCodeAttachmentUnrecognizedType@101$UNErrorCodeBadgeInputInvalid@1600$UNErrorCodeContentProvidingInvalid@1501$UNErrorCodeContentProvidingObjectNotAllowed@1500$UNErrorCodeNotificationInvalidNoContent@1401$UNErrorCodeNotificationInvalidNoDate@1400$UNErrorCodeNotificationsNotAllowed@1$UNNotificationActionOptionAuthenticationRequired@1$UNNotificationActionOptionDestructive@2$UNNotificationActionOptionForeground@4$UNNotificationActionOptionNone@0$UNNotificationCategoryOptionAllowAnnouncement@16$UNNotificationCategoryOptionAllowInCarPlay@2$UNNotificationCategoryOptionCustomDismissAction@1$UNNotificationCategoryOptionHiddenPreviewsShowSubtitle@8$UNNotificationCategoryOptionHiddenPreviewsShowTitle@4$UNNotificationCategoryOptionNone@0$UNNotificationInterruptionLevelActive@1$UNNotificationInterruptionLevelCritical@3$UNNotificationInterruptionLevelPassive@0$UNNotificationInterruptionLevelTimeSensitive@2$UNNotificationPresentationOptionAlert@4$UNNotificationPresentationOptionBadge@1$UNNotificationPresentationOptionBanner@16$UNNotificationPresentationOptionList@8$UNNotificationPresentationOptionNone@0$UNNotificationPresentationOptionSound@2$UNNotificationSettingDisabled@1$UNNotificationSettingEnabled@2$UNNotificationSettingNotSupported@0$UNShowPreviewsSettingAlways@0$UNShowPreviewsSettingNever@2$UNShowPreviewsSettingWhenAuthenticated@1$"""
|
|
35
33
|
misc.update(
|
|
36
34
|
{
|
|
37
35
|
"UNNotificationCategoryOptions": NewType("UNNotificationCategoryOptions", int),
|
|
@@ -358,5 +356,9 @@ objc.registerNewKeywords(
|
|
|
358
356
|
"triggerWithTimeInterval_repeats_",
|
|
359
357
|
)
|
|
360
358
|
expressions = {}
|
|
359
|
+
formal_protocols = {
|
|
360
|
+
"UNNotificationContentProviding": "UNNotificationContentProviding",
|
|
361
|
+
"UNUserNotificationCenterDelegate": "UNUserNotificationCenterDelegate",
|
|
362
|
+
}
|
|
361
363
|
|
|
362
364
|
# END OF FILE
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyobjc-framework-UserNotifications
|
|
3
|
-
Version:
|
|
3
|
+
Version: 13.0
|
|
4
4
|
Summary: Wrappers for the framework UserNotifications 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.0
|
|
34
|
+
Requires-Dist: pyobjc-framework-Cocoa>=13.0
|
|
35
35
|
Dynamic: author
|
|
36
36
|
Dynamic: author-email
|
|
37
37
|
Dynamic: classifier
|
|
@@ -30,5 +30,5 @@ PyObjCTest/test_unusernotificationcenter.py
|
|
|
30
30
|
PyObjCTest/test_usernotifications.py
|
|
31
31
|
metadata/UserNotifications.fwinfo
|
|
32
32
|
metadata/metadata.ini
|
|
33
|
-
metadata/raw/arm64-
|
|
34
|
-
metadata/raw/x86_64-
|
|
33
|
+
metadata/raw/arm64-27.fwinfo
|
|
34
|
+
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 <UserNotifications/UserNotifications.h>
|
|
7
11
|
|
|
@@ -10,6 +14,8 @@
|
|
|
10
14
|
*/
|
|
11
15
|
#include "_UserNotifications_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__UserNotifications(void);
|
|
64
|
+
PyObject* _Nullable PyInit__UserNotifications(void);
|
|
59
65
|
|
|
60
|
-
PyObject* __attribute__((__visibility__("default")))
|
|
66
|
+
PyObject* _Nullable __attribute__((__visibility__("default")))
|
|
61
67
|
PyInit__UserNotifications(void)
|
|
62
68
|
{
|
|
63
69
|
return PyModuleDef_Init(&mod_module);
|
|
64
70
|
}
|
|
71
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
// LCOV_EXCL_START
|
|
2
|
+
// This function is only present to ensure protocols are
|
|
3
|
+
// available at runtime.
|
|
4
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
5
|
+
|
|
1
6
|
static void __attribute__((__used__))
|
|
2
7
|
use_protocols(void)
|
|
3
8
|
{
|
|
@@ -11,3 +16,6 @@ use_protocols(void)
|
|
|
11
16
|
Py_XDECREF(p);
|
|
12
17
|
#endif
|
|
13
18
|
}
|
|
19
|
+
|
|
20
|
+
NS_ASSUME_NONNULL_END
|
|
21
|
+
// LCOV_EXCL_STOP
|
|
@@ -60,6 +60,11 @@ typedef int(RegisterMethodMappingFunctionType)(
|
|
|
60
60
|
PyObject* _Nonnull const* _Nonnull, size_t),
|
|
61
61
|
IMP _Nullable (*_Nonnull)(PyObject* _Nonnull, PyObject* _Nonnull));
|
|
62
62
|
|
|
63
|
+
#ifndef PyObjC_FUNCTION_CALL_H
|
|
64
|
+
typedef PyObject* _Nullable (*PyObjC_FunctionCallFunc)(
|
|
65
|
+
PyObject* meth, PyObject* _Nonnull const* _Nonnull args, size_t nargs);
|
|
66
|
+
#endif
|
|
67
|
+
|
|
63
68
|
struct pyobjc_api {
|
|
64
69
|
int api_version; /* API version */
|
|
65
70
|
size_t struct_len; /* Length of this struct */
|
|
@@ -117,6 +122,9 @@ struct pyobjc_api {
|
|
|
117
122
|
|
|
118
123
|
PyObject* _Nullable (*_Nonnull createopaquepointertype)(const char*, const char*,
|
|
119
124
|
const char*);
|
|
125
|
+
int (*_Nonnull register_functioncaller)(void*, PyObjC_FunctionCallFunc);
|
|
126
|
+
PyObject* _Nullable (*_Nonnull create_registered_struct)(
|
|
127
|
+
const char*, Py_ssize_t, const char* _Nonnull* _Nullable, Py_ssize_t*);
|
|
120
128
|
};
|
|
121
129
|
|
|
122
130
|
#ifndef PYOBJC_BUILD
|
|
@@ -159,6 +167,8 @@ static struct pyobjc_api* PyObjC_API;
|
|
|
159
167
|
#define PyObjC_CheckArgCount (PyObjC_API->checkargcount)
|
|
160
168
|
#define PyObjC_CheckNoKwnames (PyObjC_API->checknokwnames)
|
|
161
169
|
#define PyObjCCreateOpaquePointerType (PyObjC_API->createopaquepointertype)
|
|
170
|
+
#define PyObjCRegister_FunctionCaller (PyObjC_API->register_functioncaller)
|
|
171
|
+
#define PyObjC_CreateRegisteredStruct (PyObjC_API->create_registered_struct)
|
|
162
172
|
|
|
163
173
|
typedef void (*PyObjC_Function_Pointer)(void);
|
|
164
174
|
typedef struct PyObjC_function_map {
|
|
@@ -178,21 +188,25 @@ static inline int
|
|
|
178
188
|
PyObjC_ImportAPI(PyObject* calling_module)
|
|
179
189
|
{
|
|
180
190
|
PyObjC_API = (struct pyobjc_api*)PyCapsule_Import("objc." PYOBJC_API_NAME, 0);
|
|
181
|
-
if (PyObjC_API == NULL) {
|
|
182
|
-
return -1;
|
|
191
|
+
if (PyObjC_API == NULL) { // LCOV_BR_EXCL_LINE
|
|
192
|
+
return -1; // LCOV_EXCL_LINE
|
|
183
193
|
}
|
|
184
|
-
if (PyObjC_API->api_version != PYOBJC_API_VERSION) {
|
|
194
|
+
if (PyObjC_API->api_version != PYOBJC_API_VERSION) { // LCOV_BR_EXCL_LINE
|
|
195
|
+
// LCOV_EXCL_START
|
|
185
196
|
PyErr_Format(PyExc_RuntimeError,
|
|
186
197
|
"Wrong version of PyObjC C API (got %d, expected %d)",
|
|
187
198
|
(int)PyObjC_API->api_version, (int)PYOBJC_API_VERSION);
|
|
188
199
|
return -1;
|
|
200
|
+
// LCOV_EXCL_STOP
|
|
189
201
|
}
|
|
190
202
|
|
|
191
|
-
if (PyObjC_API->struct_len < PyObjC_EXPECTED_STRUCT_SIZE) {
|
|
203
|
+
if (PyObjC_API->struct_len < PyObjC_EXPECTED_STRUCT_SIZE) { // LCOV_EXCL_LINE
|
|
204
|
+
// LCOV_EXCL_START
|
|
192
205
|
PyErr_Format(PyExc_RuntimeError,
|
|
193
206
|
"Wrong struct-size of PyObjC C API (got %d, expected %d)",
|
|
194
207
|
(int)PyObjC_API->struct_len, (int)sizeof(struct pyobjc_api));
|
|
195
208
|
return -1;
|
|
209
|
+
// LCOV_EXCL_STOP
|
|
196
210
|
}
|
|
197
211
|
|
|
198
212
|
/* Current pyobjc implementation doesn't allow deregistering
|
|
@@ -167,24 +167,6 @@ _PyObjCTuple_GetItem(PyObject* tuple, Py_ssize_t idx)
|
|
|
167
167
|
PyGILState_Release(_GILState); \
|
|
168
168
|
} while (0)
|
|
169
169
|
|
|
170
|
-
#if PY_VERSION_HEX < 0x030a0000
|
|
171
|
-
|
|
172
|
-
static inline PyObject*
|
|
173
|
-
Py_NewRef(PyObject* o)
|
|
174
|
-
{
|
|
175
|
-
Py_INCREF(o);
|
|
176
|
-
return o;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
static inline PyObject*
|
|
180
|
-
Py_XNewRef(PyObject* o)
|
|
181
|
-
{
|
|
182
|
-
Py_XINCREF(o);
|
|
183
|
-
return o;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
#endif /* PY_VERSION_HEX < 0x030a0000 */
|
|
187
|
-
|
|
188
170
|
#if PY_VERSION_HEX < 0x030d0000
|
|
189
171
|
#define Py_BEGIN_CRITICAL_SECTION(value) \
|
|
190
172
|
{ \
|
{pyobjc_framework_usernotifications-12.2.1 → pyobjc_framework_usernotifications-13.0}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyobjc-framework-UserNotifications
|
|
3
|
-
Version:
|
|
3
|
+
Version: 13.0
|
|
4
4
|
Summary: Wrappers for the framework UserNotifications 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.0
|
|
34
|
+
Requires-Dist: pyobjc-framework-Cocoa>=13.0
|
|
35
35
|
Dynamic: author
|
|
36
36
|
Dynamic: author-email
|
|
37
37
|
Dynamic: classifier
|
|
@@ -3,10 +3,8 @@ import UserNotifications
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
class TestUNError(TestCase):
|
|
6
|
-
def
|
|
6
|
+
def test_enums(self):
|
|
7
7
|
self.assertIsEnumType(UserNotifications.UNErrorCode)
|
|
8
|
-
|
|
9
|
-
def test_constants(self):
|
|
10
8
|
self.assertEqual(UserNotifications.UNErrorCodeNotificationsNotAllowed, 1)
|
|
11
9
|
self.assertEqual(UserNotifications.UNErrorCodeAttachmentInvalidURL, 100)
|
|
12
10
|
self.assertEqual(UserNotifications.UNErrorCodeAttachmentUnrecognizedType, 101)
|
|
@@ -3,10 +3,8 @@ import UserNotifications
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
class TestUNNotificationAction(TestCase):
|
|
6
|
-
def
|
|
6
|
+
def test_enums(self):
|
|
7
7
|
self.assertIsEnumType(UserNotifications.UNNotificationActionOptions)
|
|
8
|
-
|
|
9
|
-
def test_constants(self):
|
|
10
8
|
self.assertEqual(UserNotifications.UNNotificationActionOptionNone, 0)
|
|
11
9
|
self.assertEqual(
|
|
12
10
|
UserNotifications.UNNotificationActionOptionAuthenticationRequired, 1 << 0
|
|
@@ -15,6 +13,3 @@ class TestUNNotificationAction(TestCase):
|
|
|
15
13
|
UserNotifications.UNNotificationActionOptionDestructive, 1 << 1
|
|
16
14
|
)
|
|
17
15
|
self.assertEqual(UserNotifications.UNNotificationActionOptionForeground, 1 << 2)
|
|
18
|
-
|
|
19
|
-
def test_classes(self):
|
|
20
|
-
UserNotifications.UNNotificationAction
|
|
@@ -3,10 +3,8 @@ import UserNotifications
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
class TestUNNotificationCategory(TestCase):
|
|
6
|
-
def
|
|
6
|
+
def test_enums(self):
|
|
7
7
|
self.assertIsEnumType(UserNotifications.UNNotificationCategoryOptions)
|
|
8
|
-
|
|
9
|
-
def test_constants(self):
|
|
10
8
|
self.assertEqual(
|
|
11
9
|
UserNotifications.UNNotificationCategoryOptionCustomDismissAction, 1 << 0
|
|
12
10
|
)
|
|
@@ -3,10 +3,8 @@ import UserNotifications
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
class TestUNNotificationContent(TestCase):
|
|
6
|
-
def
|
|
6
|
+
def test_enums(self):
|
|
7
7
|
self.assertIsEnumType(UserNotifications.UNNotificationInterruptionLevel)
|
|
8
|
-
|
|
9
|
-
def test_constants(self):
|
|
10
8
|
self.assertEqual(UserNotifications.UNNotificationInterruptionLevelPassive, 0)
|
|
11
9
|
self.assertEqual(UserNotifications.UNNotificationInterruptionLevelActive, 1)
|
|
12
10
|
self.assertEqual(
|
|
@@ -16,7 +14,7 @@ class TestUNNotificationContent(TestCase):
|
|
|
16
14
|
|
|
17
15
|
@min_sdk_level("12.0")
|
|
18
16
|
def test_protocols12_0(self):
|
|
19
|
-
self.assertProtocolExists("UNNotificationContentProviding")
|
|
17
|
+
self.assertProtocolExists("UNNotificationContentProviding", UserNotifications)
|
|
20
18
|
|
|
21
19
|
@min_os_level("12.0")
|
|
22
20
|
def test_methods12_0(self):
|
|
@@ -3,29 +3,27 @@ import UserNotifications
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
class TestUNNotificationSettings(TestCase):
|
|
6
|
-
def
|
|
6
|
+
def test_enums(self):
|
|
7
7
|
self.assertIsEnumType(UserNotifications.UNAlertStyle)
|
|
8
|
-
self.
|
|
9
|
-
self.
|
|
10
|
-
self.
|
|
8
|
+
self.assertEqual(UserNotifications.UNAlertStyleNone, 0)
|
|
9
|
+
self.assertEqual(UserNotifications.UNAlertStyleBanner, 1)
|
|
10
|
+
self.assertEqual(UserNotifications.UNAlertStyleAlert, 2)
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
self.assertIsEnumType(UserNotifications.UNAuthorizationStatus)
|
|
13
13
|
self.assertEqual(UserNotifications.UNAuthorizationStatusNotDetermined, 0)
|
|
14
14
|
self.assertEqual(UserNotifications.UNAuthorizationStatusDenied, 1)
|
|
15
15
|
self.assertEqual(UserNotifications.UNAuthorizationStatusAuthorized, 2)
|
|
16
16
|
self.assertEqual(UserNotifications.UNAuthorizationStatusProvisional, 3)
|
|
17
17
|
|
|
18
|
-
self.
|
|
19
|
-
self.assertEqual(UserNotifications.UNShowPreviewsSettingWhenAuthenticated, 1)
|
|
20
|
-
self.assertEqual(UserNotifications.UNShowPreviewsSettingNever, 2)
|
|
21
|
-
|
|
18
|
+
self.assertIsEnumType(UserNotifications.UNNotificationSetting)
|
|
22
19
|
self.assertEqual(UserNotifications.UNNotificationSettingNotSupported, 0)
|
|
23
20
|
self.assertEqual(UserNotifications.UNNotificationSettingDisabled, 1)
|
|
24
21
|
self.assertEqual(UserNotifications.UNNotificationSettingEnabled, 2)
|
|
25
22
|
|
|
26
|
-
self.
|
|
27
|
-
self.assertEqual(UserNotifications.
|
|
28
|
-
self.assertEqual(UserNotifications.
|
|
23
|
+
self.assertIsEnumType(UserNotifications.UNShowPreviewsSetting)
|
|
24
|
+
self.assertEqual(UserNotifications.UNShowPreviewsSettingAlways, 0)
|
|
25
|
+
self.assertEqual(UserNotifications.UNShowPreviewsSettingWhenAuthenticated, 1)
|
|
26
|
+
self.assertEqual(UserNotifications.UNShowPreviewsSettingNever, 2)
|
|
29
27
|
|
|
30
28
|
def test_methods(self):
|
|
31
29
|
self.assertResultIsBOOL(
|
|
@@ -19,11 +19,8 @@ class TestUNUserNotificationCenterHelper(UserNotifications.NSObject):
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
class TestUNUserNotificationCenter(TestCase):
|
|
22
|
-
def
|
|
22
|
+
def test_enums(self):
|
|
23
23
|
self.assertIsEnumType(UserNotifications.UNAuthorizationOptions)
|
|
24
|
-
self.assertIsEnumType(UserNotifications.UNNotificationPresentationOptions)
|
|
25
|
-
|
|
26
|
-
def test_constants(self):
|
|
27
24
|
self.assertEqual(UserNotifications.UNAuthorizationOptionBadge, 1 << 0)
|
|
28
25
|
self.assertEqual(UserNotifications.UNAuthorizationOptionSound, 1 << 1)
|
|
29
26
|
self.assertEqual(UserNotifications.UNAuthorizationOptionAlert, 1 << 2)
|
|
@@ -36,6 +33,7 @@ class TestUNUserNotificationCenter(TestCase):
|
|
|
36
33
|
self.assertEqual(UserNotifications.UNAuthorizationOptionProvisional, 1 << 6)
|
|
37
34
|
self.assertEqual(UserNotifications.UNAuthorizationOptionNone, 0)
|
|
38
35
|
|
|
36
|
+
self.assertIsEnumType(UserNotifications.UNNotificationPresentationOptions)
|
|
39
37
|
self.assertEqual(
|
|
40
38
|
UserNotifications.UNNotificationPresentationOptionBadge, 1 << 0
|
|
41
39
|
)
|
|
@@ -95,7 +93,7 @@ class TestUNUserNotificationCenter(TestCase):
|
|
|
95
93
|
)
|
|
96
94
|
|
|
97
95
|
def test_protocols(self):
|
|
98
|
-
self.assertProtocolExists("UNUserNotificationCenterDelegate")
|
|
96
|
+
self.assertProtocolExists("UNUserNotificationCenterDelegate", UserNotifications)
|
|
99
97
|
|
|
100
98
|
def test_protocol_methods(self):
|
|
101
99
|
self.assertArgIsBlock(
|
|
@@ -1,61 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"definitions": {
|
|
3
3
|
"enum": {
|
|
4
|
-
"UNNotificationGroupingSettingDefault": { "value": 0 },
|
|
5
|
-
"UNNotificationGroupingSettingSource": { "value": 1 },
|
|
6
|
-
"UNNotificationGroupingSettingOff": { "value": 2 },
|
|
7
|
-
"UNNotificationPresentationOptionBadge": { "value": 1 },
|
|
8
|
-
"UNNotificationPresentationOptionSound": { "value": 2 },
|
|
9
|
-
"UNNotificationPresentationOptionAlert": { "value": 4 },
|
|
10
4
|
"UNNotificationPresentationOptionNone": { "value": 0 },
|
|
11
|
-
"UNAuthorizationOptionBadge": { "value": 1 },
|
|
12
|
-
"UNAuthorizationOptionSound": { "value": 2 },
|
|
13
|
-
"UNAuthorizationOptionAlert": { "value": 4 },
|
|
14
|
-
"UNAuthorizationOptionCarPlay": { "value": 8 },
|
|
15
|
-
"UNAuthorizationOptionCriticalAlert": { "value": 16 },
|
|
16
|
-
"UNAuthorizationOptionProvidesAppNotificationSettings": { "value": 32 },
|
|
17
|
-
"UNAuthorizationOptionProvisional": { "value": 64 },
|
|
18
5
|
"UNAuthorizationOptionNone": { "value": 0 },
|
|
19
|
-
"UNAlertStyleNone": { "value": 0 },
|
|
20
|
-
"UNAlertStyleBanner": { "value": 1 },
|
|
21
|
-
"UNAlertStyleAlert": { "value": 2 },
|
|
22
|
-
"UNNotificationSettingNotSupported": { "value": 0 },
|
|
23
|
-
"UNNotificationSettingDisabled": { "value": 1 },
|
|
24
|
-
"UNNotificationSettingEnabled": { "value": 2 },
|
|
25
|
-
"UNShowPreviewsSettingAlways": { "value": 0 },
|
|
26
|
-
"UNShowPreviewsSettingWhenAuthenticated": { "value": 1 },
|
|
27
|
-
"UNShowPreviewsSettingNever": { "value": 2 },
|
|
28
|
-
"UNAuthorizationStatusNotDetermined": { "value": 0 },
|
|
29
|
-
"UNAuthorizationStatusDenied": { "value": 1 },
|
|
30
|
-
"UNAuthorizationStatusAuthorized": { "value": 2 },
|
|
31
|
-
"UNAuthorizationStatusProvisional": { "value": 3},
|
|
32
|
-
"UNNotificationCategoryOptionCustomDismissAction": { "value": 1 },
|
|
33
|
-
"UNNotificationCategoryOptionAllowInCarPlay": { "value": 2 },
|
|
34
|
-
"UNNotificationCategoryOptionHiddenPreviewsShowTitle": { "value": 4 },
|
|
35
|
-
"UNNotificationCategoryOptionHiddenPreviewsShowSubtitle": { "value": 8 },
|
|
36
6
|
"UNNotificationCategoryOptionNone": { "value": 0 },
|
|
37
|
-
"UNErrorCodeNotificationsNotAllowed": { "value": 1 },
|
|
38
|
-
"UNErrorCodeAttachmentInvalidURL": { "value": 100 },
|
|
39
|
-
"UNErrorCodeAttachmentUnrecognizedType": { "value": 101 },
|
|
40
|
-
"UNErrorCodeAttachmentInvalidFileSize": { "value": 102 },
|
|
41
|
-
"UNErrorCodeAttachmentNotInDataStore": { "value": 103 },
|
|
42
|
-
"UNErrorCodeAttachmentMoveIntoDataStoreFailed": { "value": 104 },
|
|
43
|
-
"UNErrorCodeAttachmentCorrupt": { "value": 105 },
|
|
44
|
-
"UNErrorCodeNotificationInvalidNoDate": { "value": 1400 },
|
|
45
|
-
"UNErrorCodeNotificationInvalidNoContent": { "value": 1401 },
|
|
46
|
-
"UNNotificationActionOptionAuthenticationRequired": { "value": 1 },
|
|
47
|
-
"UNNotificationActionOptionDestructive": { "value": 2 },
|
|
48
|
-
"UNNotificationActionOptionForeground": { "value": 4 },
|
|
49
7
|
"UNNotificationActionOptionNone": { "value": 0 }
|
|
50
8
|
},
|
|
51
|
-
"externs": {
|
|
52
|
-
"UNNotificationDefaultActionIdentifier": { "typestr": "@" },
|
|
53
|
-
"UNNotificationDismissActionIdentifier": { "typestr": "@" },
|
|
54
|
-
"UNNotificationAttachmentOptionsTypeHintKey": { "typestr": "@" },
|
|
55
|
-
"UNNotificationAttachmentOptionsThumbnailHiddenKey": { "typestr": "@" },
|
|
56
|
-
"UNNotificationAttachmentOptionsThumbnailClippingRectKey": { "typestr": "@" },
|
|
57
|
-
"UNNotificationAttachmentOptionsThumbnailTimeKey": { "typestr": "@" }
|
|
58
|
-
},
|
|
59
9
|
"classes": {
|
|
60
10
|
"UNLocationNotificationTrigger": {
|
|
61
11
|
"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 12:00:06 2026
|
|
5
4
|
{
|
|
6
5
|
"arch": "arm64",
|
|
7
6
|
"definitions": {
|
|
@@ -4094,6 +4093,6 @@
|
|
|
4094
4093
|
"UNNotificationTrigger.h",
|
|
4095
4094
|
"UNUserNotificationCenter.h"
|
|
4096
4095
|
],
|
|
4097
|
-
"release": "
|
|
4098
|
-
"sdk": "
|
|
4096
|
+
"release": "macOS 27.2",
|
|
4097
|
+
"sdk": "Xcode 27.2 (27B5038i)/MacOSX27.sdk"
|
|
4099
4098
|
}
|
|
@@ -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 12:00:04 2026
|
|
5
4
|
{
|
|
6
5
|
"arch": "x86_64",
|
|
7
6
|
"definitions": {
|
|
@@ -4094,6 +4093,6 @@
|
|
|
4094
4093
|
"UNNotificationTrigger.h",
|
|
4095
4094
|
"UNUserNotificationCenter.h"
|
|
4096
4095
|
],
|
|
4097
|
-
"release": "
|
|
4098
|
-
"sdk": "
|
|
4096
|
+
"release": "macOS 27.2",
|
|
4097
|
+
"sdk": "Xcode 27.2 (27B5038i)/MacOSX27.sdk"
|
|
4099
4098
|
}
|
|
@@ -110,13 +110,11 @@ class oc_egg_info(egg_info.egg_info):
|
|
|
110
110
|
else:
|
|
111
111
|
sdk_version = os.path.basename(sdk_root)
|
|
112
112
|
|
|
113
|
-
build_info = textwrap.dedent(
|
|
114
|
-
f"""\
|
|
113
|
+
build_info = textwrap.dedent(f"""\
|
|
115
114
|
macOS {macos_version} ({macos_build})
|
|
116
115
|
{clang_version}
|
|
117
116
|
SDK: {sdk_version}
|
|
118
|
-
"""
|
|
119
|
-
)
|
|
117
|
+
""")
|
|
120
118
|
|
|
121
119
|
self.write_file(
|
|
122
120
|
"pyobjc-build-info.txt",
|
|
@@ -204,7 +202,7 @@ class oc_test(Command):
|
|
|
204
202
|
"errors": len(result.errors),
|
|
205
203
|
"xfails": len(getattr(result, "expectedFailures", [])),
|
|
206
204
|
"xpass": len(getattr(result, "unexpectedSuccesses", [])),
|
|
207
|
-
"skip
|
|
205
|
+
"skip": len(getattr(result, "skipped", [])),
|
|
208
206
|
"testSeconds": (time_after - time_before),
|
|
209
207
|
}
|
|
210
208
|
print(f"SUMMARY: {summary}")
|
|
@@ -228,12 +226,12 @@ Operating System :: MacOS :: MacOS X
|
|
|
228
226
|
Programming Language :: Python
|
|
229
227
|
Programming Language :: Python :: 3
|
|
230
228
|
Programming Language :: Python :: 3 :: Only
|
|
231
|
-
Programming Language :: Python :: 3.10
|
|
232
229
|
Programming Language :: Python :: 3.11
|
|
233
230
|
Programming Language :: Python :: 3.12
|
|
234
231
|
Programming Language :: Python :: 3.13
|
|
235
232
|
Programming Language :: Python :: 3.14
|
|
236
233
|
Programming Language :: Python :: 3.15
|
|
234
|
+
Programming Language :: Python :: 3.16
|
|
237
235
|
Programming Language :: Python :: Implementation :: CPython
|
|
238
236
|
Programming Language :: Python :: Free Threading :: 3 - Stable
|
|
239
237
|
Programming Language :: Objective C
|
|
@@ -499,6 +497,8 @@ def Extension(*args, **kwds):
|
|
|
499
497
|
"-DPyObjC_BUILD_RELEASE=%02d%02d"
|
|
500
498
|
% (tuple(map(int, version.split(".")[:2])))
|
|
501
499
|
)
|
|
500
|
+
ldflags.append("-isysroot")
|
|
501
|
+
ldflags.append(data)
|
|
502
502
|
else:
|
|
503
503
|
cflags.append(
|
|
504
504
|
"-DPyObjC_BUILD_RELEASE=%02d%02d"
|
|
@@ -677,7 +677,7 @@ def setup(
|
|
|
677
677
|
zip_safe=False,
|
|
678
678
|
license="MIT",
|
|
679
679
|
classifiers=CLASSIFIERS,
|
|
680
|
-
python_requires=">=3.
|
|
680
|
+
python_requires=">=3.11",
|
|
681
681
|
keywords=["PyObjC"] + [p for p in k["packages"] if p not in ("PyObjCTools",)],
|
|
682
682
|
options=options,
|
|
683
683
|
**k,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyobjc_framework_usernotifications-12.2.1 → pyobjc_framework_usernotifications-13.0}/License.txt
RENAMED
|
File without changes
|
{pyobjc_framework_usernotifications-12.2.1 → pyobjc_framework_usernotifications-13.0}/MANIFEST.in
RENAMED
|
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_usernotifications-12.2.1 → pyobjc_framework_usernotifications-13.0}/pyproject.toml
RENAMED
|
File without changes
|
{pyobjc_framework_usernotifications-12.2.1 → pyobjc_framework_usernotifications-13.0}/setup.cfg
RENAMED
|
File without changes
|