pyobjc-framework-FSEvents 10.2__tar.gz → 11.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pyobjc-framework-FSEvents-10.2 → pyobjc_framework_fsevents-11.0}/Lib/FSEvents/_metadata.py +2 -17
- {pyobjc-framework-FSEvents-10.2 → pyobjc_framework_fsevents-11.0}/Lib/pyobjc_framework_FSEvents.egg-info/PKG-INFO +5 -5
- {pyobjc-framework-FSEvents-10.2 → pyobjc_framework_fsevents-11.0}/Lib/pyobjc_framework_FSEvents.egg-info/SOURCES.txt +5 -4
- pyobjc_framework_fsevents-11.0/Lib/pyobjc_framework_FSEvents.egg-info/pyobjc-build-info.txt +3 -0
- pyobjc_framework_fsevents-11.0/Lib/pyobjc_framework_FSEvents.egg-info/requires.txt +2 -0
- {pyobjc-framework-FSEvents-10.2 → pyobjc_framework_fsevents-11.0}/Modules/_callbacks.m +48 -12
- {pyobjc-framework-FSEvents-10.2 → pyobjc_framework_fsevents-11.0}/Modules/pyobjc-api.h +1 -1
- {pyobjc-framework-FSEvents-10.2 → pyobjc_framework_fsevents-11.0}/Modules/pyobjc-compat.h +80 -5
- {pyobjc-framework-FSEvents-10.2 → pyobjc_framework_fsevents-11.0}/PKG-INFO +5 -5
- {pyobjc-framework-FSEvents-10.2 → pyobjc_framework_fsevents-11.0}/PyObjCTest/test_fsevents.py +11 -7
- pyobjc_framework_fsevents-11.0/metadata/raw/arm64-14.5.fwinfo +570 -0
- pyobjc-framework-FSEvents-10.2/metadata/raw/arm64-12.0.fwinfo → pyobjc_framework_fsevents-11.0/metadata/raw/arm64-15.0.fwinfo +19 -3
- pyobjc_framework_fsevents-11.0/metadata/raw/x86_64-14.5.fwinfo +570 -0
- pyobjc-framework-FSEvents-10.2/metadata/raw/x86_64-12.0.fwinfo → pyobjc_framework_fsevents-11.0/metadata/raw/x86_64-15.0.fwinfo +19 -3
- {pyobjc-framework-FSEvents-10.2 → pyobjc_framework_fsevents-11.0}/pyobjc_setup.py +121 -27
- {pyobjc-framework-FSEvents-10.2 → pyobjc_framework_fsevents-11.0}/setup.py +3 -5
- pyobjc-framework-FSEvents-10.2/Lib/pyobjc_framework_FSEvents.egg-info/requires.txt +0 -2
- pyobjc-framework-FSEvents-10.2/metadata/raw/arm64-14.0.fwinfo +0 -530
- pyobjc-framework-FSEvents-10.2/metadata/raw/x86_64-14.0.fwinfo +0 -530
- {pyobjc-framework-FSEvents-10.2 → pyobjc_framework_fsevents-11.0}/Examples/watcher.py +0 -0
- {pyobjc-framework-FSEvents-10.2 → pyobjc_framework_fsevents-11.0}/LICENSE.txt +0 -0
- {pyobjc-framework-FSEvents-10.2 → pyobjc_framework_fsevents-11.0}/Lib/FSEvents/__init__.py +0 -0
- {pyobjc-framework-FSEvents-10.2 → pyobjc_framework_fsevents-11.0}/Lib/pyobjc_framework_FSEvents.egg-info/dependency_links.txt +0 -0
- {pyobjc-framework-FSEvents-10.2 → pyobjc_framework_fsevents-11.0}/Lib/pyobjc_framework_FSEvents.egg-info/not-zip-safe +0 -0
- {pyobjc-framework-FSEvents-10.2 → pyobjc_framework_fsevents-11.0}/Lib/pyobjc_framework_FSEvents.egg-info/top_level.txt +0 -0
- {pyobjc-framework-FSEvents-10.2 → pyobjc_framework_fsevents-11.0}/MANIFEST.in +0 -0
- {pyobjc-framework-FSEvents-10.2 → pyobjc_framework_fsevents-11.0}/PyObjCTest/__init__.py +0 -0
- {pyobjc-framework-FSEvents-10.2 → pyobjc_framework_fsevents-11.0}/metadata/CoreServices.fwinfo +0 -0
- {pyobjc-framework-FSEvents-10.2 → pyobjc_framework_fsevents-11.0}/metadata/metadata.ini +0 -0
- {pyobjc-framework-FSEvents-10.2 → pyobjc_framework_fsevents-11.0}/metadata/raw/arm64-12.3.fwinfo +0 -0
- {pyobjc-framework-FSEvents-10.2 → pyobjc_framework_fsevents-11.0}/metadata/raw/x86_64-10.6.fwinfo +0 -0
- {pyobjc-framework-FSEvents-10.2 → pyobjc_framework_fsevents-11.0}/metadata/raw/x86_64-10.7.fwinfo +0 -0
- {pyobjc-framework-FSEvents-10.2 → pyobjc_framework_fsevents-11.0}/metadata/raw/x86_64-10.8.fwinfo +0 -0
- {pyobjc-framework-FSEvents-10.2 → pyobjc_framework_fsevents-11.0}/metadata/raw/x86_64-12.3.fwinfo +0 -0
- {pyobjc-framework-FSEvents-10.2 → pyobjc_framework_fsevents-11.0}/pyproject.toml +0 -0
- {pyobjc-framework-FSEvents-10.2 → pyobjc_framework_fsevents-11.0}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# This file is generated by objective.metadata
|
|
2
2
|
#
|
|
3
|
-
# Last update:
|
|
3
|
+
# Last update: Tue Jun 11 10:10:59 2024
|
|
4
4
|
#
|
|
5
5
|
# flake8: noqa
|
|
6
6
|
|
|
@@ -39,22 +39,7 @@ misc.update(
|
|
|
39
39
|
)
|
|
40
40
|
constants = """$$"""
|
|
41
41
|
enums = """$kFSEventStreamCreateFlagFileEvents@16$kFSEventStreamCreateFlagFullHistory@128$kFSEventStreamCreateFlagIgnoreSelf@8$kFSEventStreamCreateFlagMarkSelf@32$kFSEventStreamCreateFlagNoDefer@2$kFSEventStreamCreateFlagNone@0$kFSEventStreamCreateFlagUseCFTypes@1$kFSEventStreamCreateFlagUseExtendedData@64$kFSEventStreamCreateFlagWatchRoot@4$kFSEventStreamCreateWithDocID@256$kFSEventStreamEventFlagEventIdsWrapped@8$kFSEventStreamEventFlagHistoryDone@16$kFSEventStreamEventFlagItemChangeOwner@16384$kFSEventStreamEventFlagItemCloned@4194304$kFSEventStreamEventFlagItemCreated@256$kFSEventStreamEventFlagItemFinderInfoMod@8192$kFSEventStreamEventFlagItemInodeMetaMod@1024$kFSEventStreamEventFlagItemIsDir@131072$kFSEventStreamEventFlagItemIsFile@65536$kFSEventStreamEventFlagItemIsHardlink@1048576$kFSEventStreamEventFlagItemIsLastHardlink@2097152$kFSEventStreamEventFlagItemIsSymlink@262144$kFSEventStreamEventFlagItemModified@4096$kFSEventStreamEventFlagItemRemoved@512$kFSEventStreamEventFlagItemRenamed@2048$kFSEventStreamEventFlagItemXattrMod@32768$kFSEventStreamEventFlagKernelDropped@4$kFSEventStreamEventFlagMount@64$kFSEventStreamEventFlagMustScanSubDirs@1$kFSEventStreamEventFlagNone@0$kFSEventStreamEventFlagOwnEvent@524288$kFSEventStreamEventFlagRootChanged@32$kFSEventStreamEventFlagUnmount@128$kFSEventStreamEventFlagUserDropped@2$kFSEventStreamEventIdSinceNow@18446744073709551615$"""
|
|
42
|
-
misc.update(
|
|
43
|
-
{
|
|
44
|
-
"enum (unnamed at /Users/ronald/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/FSEvents.framework/Headers/FSEvents.h:205:1)": NewType(
|
|
45
|
-
"enum (unnamed at /Users/ronald/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/FSEvents.framework/Headers/FSEvents.h:205:1)",
|
|
46
|
-
int,
|
|
47
|
-
),
|
|
48
|
-
"enum (unnamed at /Users/ronald/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/FSEvents.framework/Headers/FSEvents.h:575:1)": NewType(
|
|
49
|
-
"enum (unnamed at /Users/ronald/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/FSEvents.framework/Headers/FSEvents.h:575:1)",
|
|
50
|
-
int,
|
|
51
|
-
),
|
|
52
|
-
"enum (unnamed at /Users/ronald/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/FSEvents.framework/Headers/FSEvents.h:371:1)": NewType(
|
|
53
|
-
"enum (unnamed at /Users/ronald/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/FSEvents.framework/Headers/FSEvents.h:371:1)",
|
|
54
|
-
int,
|
|
55
|
-
),
|
|
56
|
-
}
|
|
57
|
-
)
|
|
42
|
+
misc.update({})
|
|
58
43
|
misc.update({})
|
|
59
44
|
misc.update(
|
|
60
45
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pyobjc-framework-FSEvents
|
|
3
|
-
Version:
|
|
3
|
+
Version: 11.0
|
|
4
4
|
Summary: Wrappers for the framework FSEvents on macOS
|
|
5
5
|
Home-page: https://github.com/ronaldoussoren/pyobjc
|
|
6
6
|
Author: Ronald Oussoren
|
|
@@ -18,21 +18,21 @@ Classifier: Operating System :: MacOS :: MacOS X
|
|
|
18
18
|
Classifier: Programming Language :: Python
|
|
19
19
|
Classifier: Programming Language :: Python :: 3
|
|
20
20
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
21
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
22
21
|
Classifier: Programming Language :: Python :: 3.9
|
|
23
22
|
Classifier: Programming Language :: Python :: 3.10
|
|
24
23
|
Classifier: Programming Language :: Python :: 3.11
|
|
25
24
|
Classifier: Programming Language :: Python :: 3.12
|
|
26
25
|
Classifier: Programming Language :: Python :: 3.13
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
27
27
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
28
28
|
Classifier: Programming Language :: Objective C
|
|
29
29
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
30
30
|
Classifier: Topic :: Software Development :: User Interfaces
|
|
31
|
-
Requires-Python: >=3.
|
|
31
|
+
Requires-Python: >=3.9
|
|
32
32
|
Description-Content-Type: text/x-rst; charset=UTF-8
|
|
33
33
|
License-File: LICENSE.txt
|
|
34
|
-
Requires-Dist: pyobjc-core>=
|
|
35
|
-
Requires-Dist: pyobjc-framework-Cocoa>=
|
|
34
|
+
Requires-Dist: pyobjc-core>=11.0
|
|
35
|
+
Requires-Dist: pyobjc-framework-Cocoa>=11.0
|
|
36
36
|
Project-URL: Documentation, https://pyobjc.readthedocs.io/en/latest/
|
|
37
37
|
Project-URL: Issue tracker, https://github.com/ronaldoussoren/pyobjc/issues
|
|
38
38
|
Project-URL: Repository, https://github.com/ronaldoussoren/pyobjc
|
|
@@ -10,6 +10,7 @@ Lib/pyobjc_framework_FSEvents.egg-info/PKG-INFO
|
|
|
10
10
|
Lib/pyobjc_framework_FSEvents.egg-info/SOURCES.txt
|
|
11
11
|
Lib/pyobjc_framework_FSEvents.egg-info/dependency_links.txt
|
|
12
12
|
Lib/pyobjc_framework_FSEvents.egg-info/not-zip-safe
|
|
13
|
+
Lib/pyobjc_framework_FSEvents.egg-info/pyobjc-build-info.txt
|
|
13
14
|
Lib/pyobjc_framework_FSEvents.egg-info/requires.txt
|
|
14
15
|
Lib/pyobjc_framework_FSEvents.egg-info/top_level.txt
|
|
15
16
|
Modules/_callbacks.m
|
|
@@ -19,12 +20,12 @@ PyObjCTest/__init__.py
|
|
|
19
20
|
PyObjCTest/test_fsevents.py
|
|
20
21
|
metadata/CoreServices.fwinfo
|
|
21
22
|
metadata/metadata.ini
|
|
22
|
-
metadata/raw/arm64-12.0.fwinfo
|
|
23
23
|
metadata/raw/arm64-12.3.fwinfo
|
|
24
|
-
metadata/raw/arm64-14.
|
|
24
|
+
metadata/raw/arm64-14.5.fwinfo
|
|
25
|
+
metadata/raw/arm64-15.0.fwinfo
|
|
25
26
|
metadata/raw/x86_64-10.6.fwinfo
|
|
26
27
|
metadata/raw/x86_64-10.7.fwinfo
|
|
27
28
|
metadata/raw/x86_64-10.8.fwinfo
|
|
28
|
-
metadata/raw/x86_64-12.0.fwinfo
|
|
29
29
|
metadata/raw/x86_64-12.3.fwinfo
|
|
30
|
-
metadata/raw/x86_64-14.
|
|
30
|
+
metadata/raw/x86_64-14.5.fwinfo
|
|
31
|
+
metadata/raw/x86_64-15.0.fwinfo
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Support for callback functions/structs in the FSEvents frameework.
|
|
3
3
|
*/
|
|
4
|
-
#define Py_LIMITED_API 0x03060000
|
|
5
4
|
#define PY_SSIZE_T_CLEAN
|
|
6
5
|
#include "Python.h"
|
|
7
6
|
#include "pyobjc-api.h"
|
|
@@ -343,21 +342,58 @@ static PyMethodDef mod_methods[] = {
|
|
|
343
342
|
0,
|
|
344
343
|
}};
|
|
345
344
|
|
|
346
|
-
static struct PyModuleDef mod_module = {
|
|
347
|
-
PyModuleDef_HEAD_INIT, "_callbacks", NULL, 0, mod_methods, NULL, NULL, NULL, NULL};
|
|
348
|
-
|
|
349
|
-
PyObject* PyInit__callbacks(void);
|
|
350
345
|
|
|
351
|
-
PyObject*
|
|
346
|
+
static int mod_exec_module(PyObject* m)
|
|
352
347
|
{
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
return NULL;
|
|
348
|
+
if (PyObjC_ImportAPI(m) < 0) {
|
|
349
|
+
return -1;
|
|
356
350
|
}
|
|
351
|
+
return 0;
|
|
352
|
+
}
|
|
357
353
|
|
|
358
|
-
|
|
359
|
-
|
|
354
|
+
static struct PyModuleDef_Slot mod_slots[] = {
|
|
355
|
+
{
|
|
356
|
+
.slot = Py_mod_exec,
|
|
357
|
+
.value = (void*)mod_exec_module
|
|
358
|
+
},
|
|
359
|
+
#if PY_VERSION_HEX >= 0x030c0000
|
|
360
|
+
{
|
|
361
|
+
/* This extension does not use the CPython API other than initializing
|
|
362
|
+
* the module, hence is safe with subinterpreters and per-interpreter
|
|
363
|
+
* GILs
|
|
364
|
+
*/
|
|
365
|
+
.slot = Py_mod_multiple_interpreters,
|
|
366
|
+
.value = Py_MOD_MULTIPLE_INTERPRETERS_NOT_SUPPORTED,
|
|
367
|
+
},
|
|
368
|
+
#endif
|
|
369
|
+
#if PY_VERSION_HEX >= 0x030d0000
|
|
370
|
+
{
|
|
371
|
+
/* The code in this extension should be safe to use without the GIL */
|
|
372
|
+
.slot = Py_mod_gil,
|
|
373
|
+
.value = Py_MOD_GIL_NOT_USED,
|
|
374
|
+
},
|
|
375
|
+
#endif
|
|
376
|
+
{ /* Sentinel */
|
|
377
|
+
.slot = 0,
|
|
378
|
+
.value = 0
|
|
360
379
|
}
|
|
380
|
+
};
|
|
381
|
+
|
|
382
|
+
static struct PyModuleDef mod_module = {
|
|
383
|
+
.m_base = PyModuleDef_HEAD_INIT,
|
|
384
|
+
.m_name = "_callbacks",
|
|
385
|
+
.m_doc = NULL,
|
|
386
|
+
.m_size = 0,
|
|
387
|
+
.m_methods = mod_methods,
|
|
388
|
+
.m_slots = mod_slots,
|
|
389
|
+
.m_traverse = NULL,
|
|
390
|
+
.m_clear = NULL,
|
|
391
|
+
.m_free = NULL,
|
|
392
|
+
};
|
|
361
393
|
|
|
362
|
-
|
|
394
|
+
PyObject* PyInit__callbacks(void);
|
|
395
|
+
|
|
396
|
+
PyObject* __attribute__((__visibility__("default"))) PyInit__callbacks(void)
|
|
397
|
+
{
|
|
398
|
+
return PyModuleDef_Init(&mod_module);
|
|
363
399
|
}
|
|
@@ -83,7 +83,7 @@ struct pyobjc_api {
|
|
|
83
83
|
PyObject* _Nullable (*_Nonnull unsupported_method_caller)(
|
|
84
84
|
PyObject* _Nonnull, PyObject* _Nonnull, PyObject* _Nonnull const* _Nonnull,
|
|
85
85
|
size_t);
|
|
86
|
-
void (*_Nonnull err_python_to_objc_gil)(PyGILState_STATE* _Nonnull state);
|
|
86
|
+
void (*_Nonnull err_python_to_objc_gil)(PyGILState_STATE* _Nonnull state) __attribute__((__noreturn__));
|
|
87
87
|
int (*_Nonnull simplify_sig)(const char* signature, char* buf, size_t buflen);
|
|
88
88
|
void (*_Nonnull free_c_array)(int, Py_buffer*);
|
|
89
89
|
int (*_Nonnull py_to_c_array)(BOOL, BOOL, const char* _Nonnull, PyObject* _Nonnull,
|
|
@@ -11,6 +11,12 @@
|
|
|
11
11
|
|
|
12
12
|
NS_ASSUME_NONNULL_BEGIN
|
|
13
13
|
|
|
14
|
+
#ifdef USE_STATIC_ANALYZER
|
|
15
|
+
#define CLANG_SUPPRESS [[clang::suppress]]
|
|
16
|
+
#else
|
|
17
|
+
#define CLANG_SUPPRESS
|
|
18
|
+
#endif
|
|
19
|
+
|
|
14
20
|
/*
|
|
15
21
|
*
|
|
16
22
|
* Start of compiler definitions
|
|
@@ -153,10 +159,6 @@ extern PyObject* _Nullable PyObject_VectorcallMethod(
|
|
|
153
159
|
|
|
154
160
|
extern int PyObjC_Cmp(PyObject* o1, PyObject* o2, int* result);
|
|
155
161
|
|
|
156
|
-
extern PyObject* _Nullable PyObjCBytes_InternFromString(const char* v);
|
|
157
|
-
extern PyObject* _Nullable PyObjCBytes_InternFromStringAndSize(const char* v,
|
|
158
|
-
Py_ssize_t l);
|
|
159
|
-
|
|
160
162
|
/*
|
|
161
163
|
* A micro optimization: when using Python 3.3 or later it
|
|
162
164
|
* is possible to access a 'char*' with an ASCII representation
|
|
@@ -238,7 +240,80 @@ _PyObjCTuple_GetItem(PyObject* tuple, Py_ssize_t idx)
|
|
|
238
240
|
PyGILState_Release(_GILState); \
|
|
239
241
|
} while (0)
|
|
240
242
|
|
|
241
|
-
|
|
243
|
+
#if PY_VERSION_HEX < 0x030a0000
|
|
244
|
+
|
|
245
|
+
static inline PyObject* Py_NewRef(PyObject* o)
|
|
246
|
+
{
|
|
247
|
+
Py_INCREF(o);
|
|
248
|
+
return o;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
static inline PyObject* Py_XNewRef(PyObject* o)
|
|
252
|
+
{
|
|
253
|
+
Py_XINCREF(o);
|
|
254
|
+
return o;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
#endif /* PY_VERSION_HEX < 0x030a0000 */
|
|
258
|
+
|
|
259
|
+
#if PY_VERSION_HEX < 0x030d0000
|
|
260
|
+
#define Py_BEGIN_CRITICAL_SECTION(value) { (void)(value);
|
|
261
|
+
#define Py_END_CRITICAL_SECTION() }
|
|
262
|
+
#define Py_EXIT_CRITICAL_SECTION() ((void)0)
|
|
263
|
+
|
|
264
|
+
#define Py_BEGIN_CRITICAL_SECTION2(value1, value2) { (void)(value1); (void)(value2);
|
|
265
|
+
#define Py_END_CRITICAL_SECTION2() }
|
|
266
|
+
#define Py_EXIT_CRITICAL_SECTION2() ((void)0)
|
|
267
|
+
|
|
268
|
+
#define PyObjC_ATOMIC
|
|
269
|
+
|
|
270
|
+
#else
|
|
271
|
+
|
|
272
|
+
#ifdef Py_GIL_DISABLED
|
|
273
|
+
#define Py_EXIT_CRITICAL_SECTION() PyCriticalSection_End(&_py_cs)
|
|
274
|
+
#define Py_EXIT_CRITICAL_SECTION2() PyCriticalSection2_End(&_py_cs2)
|
|
275
|
+
#define PyObjC_ATOMIC _Atomic
|
|
276
|
+
#else
|
|
277
|
+
#define Py_EXIT_CRITICAL_SECTION() ((void)0)
|
|
278
|
+
#define Py_EXIT_CRITICAL_SECTION2() ((void)0)
|
|
279
|
+
#define PyObjC_ATOMIC
|
|
280
|
+
#endif
|
|
281
|
+
|
|
282
|
+
#endif
|
|
283
|
+
|
|
284
|
+
#if PY_VERSION_HEX < 0x030d0000
|
|
285
|
+
static inline int PyDict_GetItemRef(PyObject *p, PyObject *key, PyObject * _Nonnull* _Nullable result)
|
|
286
|
+
{
|
|
287
|
+
*result = PyDict_GetItemWithError(p, key);
|
|
288
|
+
if (*result == NULL) {
|
|
289
|
+
if (PyErr_Occurred()) {
|
|
290
|
+
return -1;
|
|
291
|
+
} else {
|
|
292
|
+
return 0;
|
|
293
|
+
}
|
|
294
|
+
} else {
|
|
295
|
+
Py_INCREF(*result);
|
|
296
|
+
return 1;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
static inline PyObject* _Nullable PyList_GetItemRef(PyObject* l, Py_ssize_t i)
|
|
301
|
+
{
|
|
302
|
+
PyObject* result = PyList_GetItem(l, i);
|
|
303
|
+
Py_XINCREF(result);
|
|
304
|
+
return result;
|
|
305
|
+
}
|
|
306
|
+
#endif
|
|
307
|
+
|
|
308
|
+
#if PY_VERSION_HEX < 0x030c0000
|
|
309
|
+
static inline PyObject* PyType_GetDict(PyTypeObject* type)
|
|
310
|
+
{
|
|
311
|
+
PyObject* result = type->tp_dict;
|
|
312
|
+
Py_INCREF(result);
|
|
313
|
+
return result;
|
|
314
|
+
}
|
|
315
|
+
#endif
|
|
316
|
+
|
|
242
317
|
|
|
243
318
|
NS_ASSUME_NONNULL_END
|
|
244
319
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pyobjc-framework-FSEvents
|
|
3
|
-
Version:
|
|
3
|
+
Version: 11.0
|
|
4
4
|
Summary: Wrappers for the framework FSEvents on macOS
|
|
5
5
|
Home-page: https://github.com/ronaldoussoren/pyobjc
|
|
6
6
|
Author: Ronald Oussoren
|
|
@@ -18,21 +18,21 @@ Classifier: Operating System :: MacOS :: MacOS X
|
|
|
18
18
|
Classifier: Programming Language :: Python
|
|
19
19
|
Classifier: Programming Language :: Python :: 3
|
|
20
20
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
21
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
22
21
|
Classifier: Programming Language :: Python :: 3.9
|
|
23
22
|
Classifier: Programming Language :: Python :: 3.10
|
|
24
23
|
Classifier: Programming Language :: Python :: 3.11
|
|
25
24
|
Classifier: Programming Language :: Python :: 3.12
|
|
26
25
|
Classifier: Programming Language :: Python :: 3.13
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
27
27
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
28
28
|
Classifier: Programming Language :: Objective C
|
|
29
29
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
30
30
|
Classifier: Topic :: Software Development :: User Interfaces
|
|
31
|
-
Requires-Python: >=3.
|
|
31
|
+
Requires-Python: >=3.9
|
|
32
32
|
Description-Content-Type: text/x-rst; charset=UTF-8
|
|
33
33
|
License-File: LICENSE.txt
|
|
34
|
-
Requires-Dist: pyobjc-core>=
|
|
35
|
-
Requires-Dist: pyobjc-framework-Cocoa>=
|
|
34
|
+
Requires-Dist: pyobjc-core>=11.0
|
|
35
|
+
Requires-Dist: pyobjc-framework-Cocoa>=11.0
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
Wrappers for the "FSEvents" API in macOS. The functions in this framework
|
{pyobjc-framework-FSEvents-10.2 → pyobjc_framework_fsevents-11.0}/PyObjCTest/test_fsevents.py
RENAMED
|
@@ -133,13 +133,17 @@ class TestFSEvents(TestCase):
|
|
|
133
133
|
# the tests as root), therefore test against /dev which is a virtual
|
|
134
134
|
# filesystem on OSX
|
|
135
135
|
self.assertResultIsBOOL(FSEvents.FSEventsPurgeEventsForDeviceUpToEventId)
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
136
|
+
|
|
137
|
+
if 0:
|
|
138
|
+
# Stop calling this API as this can affect system state and
|
|
139
|
+
# /dev is not always a virtual file system.
|
|
140
|
+
v = FSEvents.FSEventsPurgeEventsForDeviceUpToEventId(
|
|
141
|
+
os.stat("/dev").st_dev,
|
|
142
|
+
FSEvents.FSEventsGetLastEventIdForDeviceBeforeTime(
|
|
143
|
+
os.stat("/dev").st_dev, 0
|
|
144
|
+
),
|
|
145
|
+
)
|
|
146
|
+
self.assertIsInstance(v, bool)
|
|
143
147
|
|
|
144
148
|
FSEvents.FSEventStreamRetain(ref)
|
|
145
149
|
FSEvents.FSEventStreamRelease(ref)
|