pyobjc-framework-SharedWithYou 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_sharedwithyou-12.2.2 → pyobjc_framework_sharedwithyou-13.1}/Lib/SharedWithYou/_metadata.py +46 -5
- {pyobjc_framework_sharedwithyou-12.2.2 → pyobjc_framework_sharedwithyou-13.1}/Lib/pyobjc_framework_SharedWithYou.egg-info/PKG-INFO +5 -5
- {pyobjc_framework_sharedwithyou-12.2.2 → pyobjc_framework_sharedwithyou-13.1}/Lib/pyobjc_framework_SharedWithYou.egg-info/SOURCES.txt +4 -2
- pyobjc_framework_sharedwithyou-13.1/Lib/pyobjc_framework_SharedWithYou.egg-info/pyobjc-build-info.txt +3 -0
- pyobjc_framework_sharedwithyou-13.1/Lib/pyobjc_framework_SharedWithYou.egg-info/requires.txt +2 -0
- {pyobjc_framework_sharedwithyou-12.2.2 → pyobjc_framework_sharedwithyou-13.1}/Modules/_SharedWithYou.m +9 -2
- {pyobjc_framework_sharedwithyou-12.2.2 → pyobjc_framework_sharedwithyou-13.1}/Modules/_SharedWithYou_protocols.m +8 -0
- {pyobjc_framework_sharedwithyou-12.2.2 → pyobjc_framework_sharedwithyou-13.1}/Modules/pyobjc-api.h +18 -4
- {pyobjc_framework_sharedwithyou-12.2.2 → pyobjc_framework_sharedwithyou-13.1}/Modules/pyobjc-compat.h +0 -18
- {pyobjc_framework_sharedwithyou-12.2.2 → pyobjc_framework_sharedwithyou-13.1}/PKG-INFO +5 -5
- pyobjc_framework_sharedwithyou-13.1/PyObjCTest/test_nsitemprovider+swcollaborationmetadata.py +12 -0
- pyobjc_framework_sharedwithyou-13.1/PyObjCTest/test_sharedwithyou.py +10 -0
- {pyobjc_framework_sharedwithyou-12.2.2 → pyobjc_framework_sharedwithyou-13.1}/PyObjCTest/test_swattributionview.py +1 -1
- pyobjc_framework_sharedwithyou-13.1/PyObjCTest/test_swcollaborationtoolbaritem.py +31 -0
- {pyobjc_framework_sharedwithyou-12.2.2 → pyobjc_framework_sharedwithyou-13.1}/PyObjCTest/test_swcollaborationview.py +9 -2
- {pyobjc_framework_sharedwithyou-12.2.2 → pyobjc_framework_sharedwithyou-13.1}/PyObjCTest/test_swerrors.py +1 -1
- {pyobjc_framework_sharedwithyou-12.2.2 → pyobjc_framework_sharedwithyou-13.1}/PyObjCTest/test_swhighlightcenter.py +1 -1
- {pyobjc_framework_sharedwithyou-12.2.2 → pyobjc_framework_sharedwithyou-13.1}/PyObjCTest/test_swhighlightchangeevent.py +1 -1
- {pyobjc_framework_sharedwithyou-12.2.2 → pyobjc_framework_sharedwithyou-13.1}/PyObjCTest/test_swhighlightevent.py +1 -1
- {pyobjc_framework_sharedwithyou-12.2.2 → pyobjc_framework_sharedwithyou-13.1}/PyObjCTest/test_swhighlightmembershipevent.py +1 -1
- {pyobjc_framework_sharedwithyou-12.2.2 → pyobjc_framework_sharedwithyou-13.1}/PyObjCTest/test_swhighlightpersistenceevent.py +1 -1
- {pyobjc_framework_sharedwithyou-12.2.2 → pyobjc_framework_sharedwithyou-13.1}/metadata/SharedWithYou.fwinfo +0 -4
- pyobjc_framework_sharedwithyou-12.2.2/metadata/raw/arm64-26.5.fwinfo → pyobjc_framework_sharedwithyou-13.1/metadata/raw/arm64-27.fwinfo +407 -3
- pyobjc_framework_sharedwithyou-12.2.2/metadata/raw/x86_64-26.5.fwinfo → pyobjc_framework_sharedwithyou-13.1/metadata/raw/x86_64-27.fwinfo +407 -3
- {pyobjc_framework_sharedwithyou-12.2.2 → pyobjc_framework_sharedwithyou-13.1}/pyobjc_setup.py +66 -8
- {pyobjc_framework_sharedwithyou-12.2.2 → pyobjc_framework_sharedwithyou-13.1}/setup.py +1 -1
- pyobjc_framework_sharedwithyou-12.2.2/Lib/pyobjc_framework_SharedWithYou.egg-info/pyobjc-build-info.txt +0 -3
- pyobjc_framework_sharedwithyou-12.2.2/Lib/pyobjc_framework_SharedWithYou.egg-info/requires.txt +0 -2
- pyobjc_framework_sharedwithyou-12.2.2/PyObjCTest/test_sharedwithyou.py +0 -8
- {pyobjc_framework_sharedwithyou-12.2.2 → pyobjc_framework_sharedwithyou-13.1}/Lib/SharedWithYou/__init__.py +0 -0
- {pyobjc_framework_sharedwithyou-12.2.2 → pyobjc_framework_sharedwithyou-13.1}/Lib/pyobjc_framework_SharedWithYou.egg-info/dependency_links.txt +0 -0
- {pyobjc_framework_sharedwithyou-12.2.2 → pyobjc_framework_sharedwithyou-13.1}/Lib/pyobjc_framework_SharedWithYou.egg-info/not-zip-safe +0 -0
- {pyobjc_framework_sharedwithyou-12.2.2 → pyobjc_framework_sharedwithyou-13.1}/Lib/pyobjc_framework_SharedWithYou.egg-info/top_level.txt +0 -0
- {pyobjc_framework_sharedwithyou-12.2.2 → pyobjc_framework_sharedwithyou-13.1}/License.txt +0 -0
- {pyobjc_framework_sharedwithyou-12.2.2 → pyobjc_framework_sharedwithyou-13.1}/MANIFEST.in +0 -0
- {pyobjc_framework_sharedwithyou-12.2.2 → pyobjc_framework_sharedwithyou-13.1}/PyObjCTest/__init__.py +0 -0
- {pyobjc_framework_sharedwithyou-12.2.2 → pyobjc_framework_sharedwithyou-13.1}/metadata/metadata.ini +0 -0
- {pyobjc_framework_sharedwithyou-12.2.2 → pyobjc_framework_sharedwithyou-13.1}/pyproject.toml +0 -0
- {pyobjc_framework_sharedwithyou-12.2.2 → pyobjc_framework_sharedwithyou-13.1}/setup.cfg +0 -0
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
# This file is generated by objective.metadata
|
|
2
2
|
#
|
|
3
|
-
# Last update: Sun May 24 11:58:36 2026
|
|
4
|
-
#
|
|
5
3
|
# flake8: noqa
|
|
6
4
|
|
|
7
5
|
import objc, sys
|
|
@@ -30,9 +28,7 @@ else:
|
|
|
30
28
|
|
|
31
29
|
|
|
32
30
|
misc = {}
|
|
33
|
-
constants =
|
|
34
|
-
"""$NSPasteboardTypeCollaborationMetadata$SWCollaborationMetadataTypeIdentifier$"""
|
|
35
|
-
)
|
|
31
|
+
constants = """$NSPasteboardTypeCollaborationMetadata$SWCollaborationMetadataTypeIdentifier$SWCopyRepresentationTypeIdentifier$"""
|
|
36
32
|
enums = """$SWAttributionViewBackgroundStyleColor@1$SWAttributionViewBackgroundStyleDefault@0$SWAttributionViewBackgroundStyleMaterial@2$SWAttributionViewDisplayContextDetail@1$SWAttributionViewDisplayContextSummary@0$SWAttributionViewHorizontalAlignmentCenter@2$SWAttributionViewHorizontalAlignmentDefault@0$SWAttributionViewHorizontalAlignmentLeading@1$SWAttributionViewHorizontalAlignmentTrailing@3$SWHighlightCenterErrorCodeAccessDenied@3$SWHighlightCenterErrorCodeInternalError@1$SWHighlightCenterErrorCodeInvalidURL@2$SWHighlightCenterErrorCodeNoError@0$SWHighlightChangeEventTriggerComment@2$SWHighlightChangeEventTriggerEdit@1$SWHighlightMembershipEventTriggerAddedCollaborator@1$SWHighlightMembershipEventTriggerRemovedCollaborator@2$SWHighlightPersistenceEventTriggerCreated@1$SWHighlightPersistenceEventTriggerDeleted@2$SWHighlightPersistenceEventTriggerMoved@4$SWHighlightPersistenceEventTriggerRenamed@3$"""
|
|
37
33
|
misc.update(
|
|
38
34
|
{
|
|
@@ -83,6 +79,37 @@ try:
|
|
|
83
79
|
r(b"NSObject", b"highlightURL", {"required": True, "retval": {"type": b"@"}})
|
|
84
80
|
r(b"SWAttributionView", b"enablesMarquee", {"retval": {"type": b"Z"}})
|
|
85
81
|
r(b"SWAttributionView", b"setEnablesMarquee:", {"arguments": {2: {"type": b"Z"}}})
|
|
82
|
+
r(
|
|
83
|
+
b"SWCollaborationToolbarItem",
|
|
84
|
+
b"dismissPopoverAnimated:completion:",
|
|
85
|
+
{
|
|
86
|
+
"arguments": {
|
|
87
|
+
2: {"type": b"Z"},
|
|
88
|
+
3: {
|
|
89
|
+
"callable": {
|
|
90
|
+
"retval": {"type": b"v"},
|
|
91
|
+
"arguments": {0: {"type": b"^v"}},
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
)
|
|
97
|
+
r(
|
|
98
|
+
b"SWCollaborationToolbarItem",
|
|
99
|
+
b"setShowManageButton:",
|
|
100
|
+
{"arguments": {2: {"type": b"Z"}}},
|
|
101
|
+
)
|
|
102
|
+
r(
|
|
103
|
+
b"SWCollaborationToolbarItem",
|
|
104
|
+
b"setShowsParticipantCount:",
|
|
105
|
+
{"arguments": {2: {"type": b"Z"}}},
|
|
106
|
+
)
|
|
107
|
+
r(b"SWCollaborationToolbarItem", b"showManageButton", {"retval": {"type": b"Z"}})
|
|
108
|
+
r(
|
|
109
|
+
b"SWCollaborationToolbarItem",
|
|
110
|
+
b"showsParticipantCount",
|
|
111
|
+
{"retval": {"type": b"Z"}},
|
|
112
|
+
)
|
|
86
113
|
r(
|
|
87
114
|
b"SWCollaborationView",
|
|
88
115
|
b"dismissPopover:",
|
|
@@ -102,6 +129,12 @@ try:
|
|
|
102
129
|
b"setShowManageButton:",
|
|
103
130
|
{"arguments": {2: {"type": b"Z"}}},
|
|
104
131
|
)
|
|
132
|
+
r(
|
|
133
|
+
b"SWCollaborationView",
|
|
134
|
+
b"setShowsParticipantCount:",
|
|
135
|
+
{"arguments": {2: {"type": b"Z"}}},
|
|
136
|
+
)
|
|
137
|
+
r(b"SWCollaborationView", b"showsParticipantCount", {"retval": {"type": b"Z"}})
|
|
105
138
|
r(
|
|
106
139
|
b"SWHighlightCenter",
|
|
107
140
|
b"collaborationHighlightForIdentifier:error:",
|
|
@@ -169,6 +202,9 @@ try:
|
|
|
169
202
|
finally:
|
|
170
203
|
objc._updatingMetadata(False)
|
|
171
204
|
|
|
205
|
+
objc.registerNewKeywordsFromSelector(
|
|
206
|
+
"SWCollaborationToolbarItem", b"initWithItemProvider:"
|
|
207
|
+
)
|
|
172
208
|
objc.registerNewKeywordsFromSelector("SWCollaborationView", b"initWithItemProvider:")
|
|
173
209
|
objc.registerNewKeywordsFromSelector("SWHighlight", b"init")
|
|
174
210
|
objc.registerNewKeywordsFromSelector("SWHighlightChangeEvent", b"init")
|
|
@@ -192,5 +228,10 @@ objc.registerNewKeywordsFromSelector(
|
|
|
192
228
|
)
|
|
193
229
|
objc.registerNewKeywordsFromSelector("SWRemoveParticipantAlert", b"init")
|
|
194
230
|
expressions = {}
|
|
231
|
+
formal_protocols = {
|
|
232
|
+
"SWCollaborationViewDelegate": "SWCollaborationViewDelegate",
|
|
233
|
+
"SWHighlightCenterDelegate": "SWHighlightCenterDelegate",
|
|
234
|
+
"SWHighlightEvent": "SWHighlightEvent",
|
|
235
|
+
}
|
|
195
236
|
|
|
196
237
|
# END OF FILE
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyobjc-framework-SharedWithYou
|
|
3
|
-
Version:
|
|
3
|
+
Version: 13.1
|
|
4
4
|
Summary: Wrappers for the framework SharedWithYou 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-SharedWithYouCore>=
|
|
33
|
+
Requires-Dist: pyobjc-core>=13.1
|
|
34
|
+
Requires-Dist: pyobjc-framework-SharedWithYouCore>=13.1
|
|
35
35
|
Dynamic: author
|
|
36
36
|
Dynamic: author-email
|
|
37
37
|
Dynamic: classifier
|
|
@@ -17,8 +17,10 @@ Modules/_SharedWithYou_protocols.m
|
|
|
17
17
|
Modules/pyobjc-api.h
|
|
18
18
|
Modules/pyobjc-compat.h
|
|
19
19
|
PyObjCTest/__init__.py
|
|
20
|
+
PyObjCTest/test_nsitemprovider+swcollaborationmetadata.py
|
|
20
21
|
PyObjCTest/test_sharedwithyou.py
|
|
21
22
|
PyObjCTest/test_swattributionview.py
|
|
23
|
+
PyObjCTest/test_swcollaborationtoolbaritem.py
|
|
22
24
|
PyObjCTest/test_swcollaborationview.py
|
|
23
25
|
PyObjCTest/test_swerrors.py
|
|
24
26
|
PyObjCTest/test_swhighlightcenter.py
|
|
@@ -28,5 +30,5 @@ PyObjCTest/test_swhighlightmembershipevent.py
|
|
|
28
30
|
PyObjCTest/test_swhighlightpersistenceevent.py
|
|
29
31
|
metadata/SharedWithYou.fwinfo
|
|
30
32
|
metadata/metadata.ini
|
|
31
|
-
metadata/raw/arm64-
|
|
32
|
-
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 <SharedWithYou/SharedWithYou.h>
|
|
7
11
|
|
|
@@ -10,6 +14,8 @@
|
|
|
10
14
|
*/
|
|
11
15
|
#include "_SharedWithYou_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__SharedWithYou(void);
|
|
64
|
+
PyObject* _Nullable PyInit__SharedWithYou(void);
|
|
59
65
|
|
|
60
|
-
PyObject* __attribute__((__visibility__("default")))
|
|
66
|
+
PyObject* _Nullable __attribute__((__visibility__("default")))
|
|
61
67
|
PyInit__SharedWithYou(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
|
{
|
|
@@ -5,3 +10,6 @@ use_protocols(void)
|
|
|
5
10
|
p = PyObjC_IdToPython(@protocol(SWHighlightCenterDelegate));
|
|
6
11
|
Py_XDECREF(p);
|
|
7
12
|
}
|
|
13
|
+
|
|
14
|
+
NS_ASSUME_NONNULL_END
|
|
15
|
+
// LCOV_EXCL_STOP
|
{pyobjc_framework_sharedwithyou-12.2.2 → pyobjc_framework_sharedwithyou-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-SharedWithYou
|
|
3
|
-
Version:
|
|
3
|
+
Version: 13.1
|
|
4
4
|
Summary: Wrappers for the framework SharedWithYou 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-SharedWithYouCore>=
|
|
33
|
+
Requires-Dist: pyobjc-core>=13.1
|
|
34
|
+
Requires-Dist: pyobjc-framework-SharedWithYouCore>=13.1
|
|
35
35
|
Dynamic: author
|
|
36
36
|
Dynamic: author-email
|
|
37
37
|
Dynamic: classifier
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
from PyObjCTools.TestSupport import TestCase, min_os_level
|
|
2
|
+
|
|
3
|
+
import SharedWithYou
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class TestNSItemProvider_SWCollaborationMetadata(TestCase):
|
|
7
|
+
def test_constants(self):
|
|
8
|
+
self.assertIsInstance(SharedWithYou.SWCollaborationMetadataTypeIdentifier, str)
|
|
9
|
+
|
|
10
|
+
@min_os_level("27.0")
|
|
11
|
+
def test_constants27_0(self):
|
|
12
|
+
self.assertIsInstance(SharedWithYou.SWCopyRepresentationTypeIdentifier, str)
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
from PyObjCTools.TestSupport import TestCase
|
|
2
|
+
|
|
3
|
+
import SharedWithYou
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class TestSharedWithYou(TestCase):
|
|
7
|
+
def test_callable_metadata_is_sane(self):
|
|
8
|
+
self.assertCallableMetadataIsSane(
|
|
9
|
+
SharedWithYou, exclude_attrs={"CoreDAVLogging", "CoreDAVXMLData"}
|
|
10
|
+
)
|
|
@@ -4,7 +4,7 @@ import SharedWithYou
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
class TestSWAttributionView(TestCase):
|
|
7
|
-
def
|
|
7
|
+
def test_enums(self):
|
|
8
8
|
self.assertIsEnumType(SharedWithYou.SWAttributionViewDisplayContext)
|
|
9
9
|
self.assertEqual(SharedWithYou.SWAttributionViewDisplayContextSummary, 0)
|
|
10
10
|
self.assertEqual(SharedWithYou.SWAttributionViewDisplayContextDetail, 1)
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
from PyObjCTools.TestSupport import TestCase, min_os_level
|
|
2
|
+
|
|
3
|
+
import SharedWithYou
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class TestSWCollaborationToolbarItem(TestCase):
|
|
7
|
+
@min_os_level("27.3")
|
|
8
|
+
def test_methods(self):
|
|
9
|
+
self.assertResultIsBOOL(
|
|
10
|
+
SharedWithYou.SWCollaborationToolbarItem.showsParticipantCount
|
|
11
|
+
)
|
|
12
|
+
self.assertArgIsBOOL(
|
|
13
|
+
SharedWithYou.SWCollaborationToolbarItem.setShowsParticipantCount_, 0
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
self.assertResultIsBOOL(
|
|
17
|
+
SharedWithYou.SWCollaborationToolbarItem.showManageButton
|
|
18
|
+
)
|
|
19
|
+
self.assertArgIsBOOL(
|
|
20
|
+
SharedWithYou.SWCollaborationToolbarItem.setShowManageButton_, 0
|
|
21
|
+
)
|
|
22
|
+
|
|
23
|
+
self.assertArgIsBOOL(
|
|
24
|
+
SharedWithYou.SWCollaborationToolbarItem.dismissPopoverAnimated_completion_,
|
|
25
|
+
0,
|
|
26
|
+
)
|
|
27
|
+
self.assertArgIsBlock(
|
|
28
|
+
SharedWithYou.SWCollaborationToolbarItem.dismissPopoverAnimated_completion_,
|
|
29
|
+
1,
|
|
30
|
+
b"v",
|
|
31
|
+
)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from PyObjCTools.TestSupport import TestCase
|
|
1
|
+
from PyObjCTools.TestSupport import TestCase, min_os_level
|
|
2
2
|
|
|
3
3
|
import SharedWithYou
|
|
4
4
|
|
|
@@ -10,7 +10,7 @@ class TestSWAttributionViewHelper(SharedWithYou.NSObject):
|
|
|
10
10
|
|
|
11
11
|
class TestSWAttributionView(TestCase):
|
|
12
12
|
def test_protocols(self):
|
|
13
|
-
self.assertProtocolExists("SWCollaborationViewDelegate")
|
|
13
|
+
self.assertProtocolExists("SWCollaborationViewDelegate", SharedWithYou)
|
|
14
14
|
|
|
15
15
|
def test_protocol_methods(self):
|
|
16
16
|
self.assertResultIsBOOL(
|
|
@@ -22,3 +22,10 @@ class TestSWAttributionView(TestCase):
|
|
|
22
22
|
SharedWithYou.SWCollaborationView.dismissPopover_, 0, b"v"
|
|
23
23
|
)
|
|
24
24
|
self.assertArgIsBOOL(SharedWithYou.SWCollaborationView.setShowManageButton_, 0)
|
|
25
|
+
|
|
26
|
+
@min_os_level("27.2")
|
|
27
|
+
def test_methods27_2(self):
|
|
28
|
+
self.assertResultIsBOOL(SharedWithYou.SWCollaborationView.showsParticipantCount)
|
|
29
|
+
self.assertArgIsBOOL(
|
|
30
|
+
SharedWithYou.SWCollaborationView.setShowsParticipantCount_, 0
|
|
31
|
+
)
|
|
@@ -4,7 +4,7 @@ import SharedWithYou
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
class TestSWErrors(TestCase):
|
|
7
|
-
def
|
|
7
|
+
def test_enums(self):
|
|
8
8
|
self.assertIsEnumType(SharedWithYou.SWHighlightCenterErrorCode)
|
|
9
9
|
self.assertEqual(SharedWithYou.SWHighlightCenterErrorCodeNoError, 0)
|
|
10
10
|
self.assertEqual(SharedWithYou.SWHighlightCenterErrorCodeInternalError, 1)
|
|
@@ -5,7 +5,7 @@ import SharedWithYou # noqa: F401
|
|
|
5
5
|
|
|
6
6
|
class TestSWHighlightCenter(TestCase):
|
|
7
7
|
def test_protocols(self):
|
|
8
|
-
self.assertProtocolExists("SWHighlightCenterDelegate")
|
|
8
|
+
self.assertProtocolExists("SWHighlightCenterDelegate", SharedWithYou)
|
|
9
9
|
|
|
10
10
|
def test_methods(self):
|
|
11
11
|
self.assertArgIsOut(
|
|
@@ -4,7 +4,7 @@ import SharedWithYou
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
class TestSWHighlightChangeEvent(TestCase):
|
|
7
|
-
def
|
|
7
|
+
def test_enums(self):
|
|
8
8
|
self.assertIsEnumType(SharedWithYou.SWHighlightChangeEventTrigger)
|
|
9
9
|
self.assertEqual(SharedWithYou.SWHighlightChangeEventTriggerEdit, 1)
|
|
10
10
|
self.assertEqual(SharedWithYou.SWHighlightChangeEventTriggerComment, 2)
|
|
@@ -4,7 +4,7 @@ import SharedWithYou
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
class TestSWHighlightMembershipEvent(TestCase):
|
|
7
|
-
def
|
|
7
|
+
def test_enums(self):
|
|
8
8
|
self.assertIsEnumType(SharedWithYou.SWHighlightMembershipEventTrigger)
|
|
9
9
|
self.assertEqual(
|
|
10
10
|
SharedWithYou.SWHighlightMembershipEventTriggerAddedCollaborator, 1
|
|
@@ -4,7 +4,7 @@ import SharedWithYou
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
class TestSWHighlightPersistenceEvent(TestCase):
|
|
7
|
-
def
|
|
7
|
+
def test_enums(self):
|
|
8
8
|
self.assertIsEnumType(SharedWithYou.SWHighlightPersistenceEventTrigger)
|
|
9
9
|
self.assertEqual(SharedWithYou.SWHighlightPersistenceEventTriggerCreated, 1)
|
|
10
10
|
self.assertEqual(SharedWithYou.SWHighlightPersistenceEventTriggerDeleted, 2)
|