pyobjc-framework-FSKit 12.0__tar.gz → 12.2__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_fskit-12.0 → pyobjc_framework_fskit-12.2}/Lib/FSKit/_metadata.py +47 -2
- {pyobjc_framework_fskit-12.0 → pyobjc_framework_fskit-12.2}/Lib/pyobjc_framework_FSKit.egg-info/PKG-INFO +5 -6
- {pyobjc_framework_fskit-12.0 → pyobjc_framework_fskit-12.2}/Lib/pyobjc_framework_FSKit.egg-info/SOURCES.txt +2 -2
- pyobjc_framework_fskit-12.2/Lib/pyobjc_framework_FSKit.egg-info/pyobjc-build-info.txt +3 -0
- pyobjc_framework_fskit-12.2/Lib/pyobjc_framework_FSKit.egg-info/requires.txt +2 -0
- {pyobjc_framework_fskit-12.0 → pyobjc_framework_fskit-12.2}/Modules/pyobjc-compat.h +24 -50
- {pyobjc_framework_fskit-12.0 → pyobjc_framework_fskit-12.2}/PKG-INFO +5 -6
- {pyobjc_framework_fskit-12.0 → pyobjc_framework_fskit-12.2}/PyObjCTest/test_fsvolume.py +16 -0
- pyobjc_framework_fskit-12.0/metadata/raw/arm64-26.0.fwinfo → pyobjc_framework_fskit-12.2/metadata/raw/arm64-26.5.fwinfo +2002 -163
- pyobjc_framework_fskit-12.0/metadata/raw/x86_64-26.0.fwinfo → pyobjc_framework_fskit-12.2/metadata/raw/x86_64-26.5.fwinfo +2002 -163
- {pyobjc_framework_fskit-12.0 → pyobjc_framework_fskit-12.2}/pyobjc_setup.py +4 -5
- {pyobjc_framework_fskit-12.0 → pyobjc_framework_fskit-12.2}/setup.py +1 -1
- pyobjc_framework_fskit-12.0/Lib/pyobjc_framework_FSKit.egg-info/pyobjc-build-info.txt +0 -3
- pyobjc_framework_fskit-12.0/Lib/pyobjc_framework_FSKit.egg-info/requires.txt +0 -2
- {pyobjc_framework_fskit-12.0 → pyobjc_framework_fskit-12.2}/Lib/FSKit/__init__.py +0 -0
- {pyobjc_framework_fskit-12.0 → pyobjc_framework_fskit-12.2}/Lib/pyobjc_framework_FSKit.egg-info/dependency_links.txt +0 -0
- {pyobjc_framework_fskit-12.0 → pyobjc_framework_fskit-12.2}/Lib/pyobjc_framework_FSKit.egg-info/not-zip-safe +0 -0
- {pyobjc_framework_fskit-12.0 → pyobjc_framework_fskit-12.2}/Lib/pyobjc_framework_FSKit.egg-info/top_level.txt +0 -0
- {pyobjc_framework_fskit-12.0 → pyobjc_framework_fskit-12.2}/License.txt +0 -0
- {pyobjc_framework_fskit-12.0 → pyobjc_framework_fskit-12.2}/MANIFEST.in +0 -0
- {pyobjc_framework_fskit-12.0 → pyobjc_framework_fskit-12.2}/Modules/_FSKit.m +0 -0
- {pyobjc_framework_fskit-12.0 → pyobjc_framework_fskit-12.2}/Modules/_FSKit_protocols.m +0 -0
- {pyobjc_framework_fskit-12.0 → pyobjc_framework_fskit-12.2}/Modules/pyobjc-api.h +0 -0
- {pyobjc_framework_fskit-12.0 → pyobjc_framework_fskit-12.2}/PyObjCTest/__init__.py +0 -0
- {pyobjc_framework_fskit-12.0 → pyobjc_framework_fskit-12.2}/PyObjCTest/test_fsclient.py +0 -0
- {pyobjc_framework_fskit-12.0 → pyobjc_framework_fskit-12.2}/PyObjCTest/test_fscontainer.py +0 -0
- {pyobjc_framework_fskit-12.0 → pyobjc_framework_fskit-12.2}/PyObjCTest/test_fsfilename.py +0 -0
- {pyobjc_framework_fskit-12.0 → pyobjc_framework_fskit-12.2}/PyObjCTest/test_fsfilesystembase.py +0 -0
- {pyobjc_framework_fskit-12.0 → pyobjc_framework_fskit-12.2}/PyObjCTest/test_fsitem.py +0 -0
- {pyobjc_framework_fskit-12.0 → pyobjc_framework_fskit-12.2}/PyObjCTest/test_fskit.py +0 -0
- {pyobjc_framework_fskit-12.0 → pyobjc_framework_fskit-12.2}/PyObjCTest/test_fskiterror.py +0 -0
- {pyobjc_framework_fskit-12.0 → pyobjc_framework_fskit-12.2}/PyObjCTest/test_fskitfunctions.py +0 -0
- {pyobjc_framework_fskit-12.0 → pyobjc_framework_fskit-12.2}/PyObjCTest/test_fsmoduleidentity.py +0 -0
- {pyobjc_framework_fskit-12.0 → pyobjc_framework_fskit-12.2}/PyObjCTest/test_fsmutablefiledatabuffer.py +0 -0
- {pyobjc_framework_fskit-12.0 → pyobjc_framework_fskit-12.2}/PyObjCTest/test_fsresources.py +0 -0
- {pyobjc_framework_fskit-12.0 → pyobjc_framework_fskit-12.2}/PyObjCTest/test_fstask.py +0 -0
- {pyobjc_framework_fskit-12.0 → pyobjc_framework_fskit-12.2}/PyObjCTest/test_fsunaryfilesystem.py +0 -0
- {pyobjc_framework_fskit-12.0 → pyobjc_framework_fskit-12.2}/PyObjCTest/test_fsvolumeextent.py +0 -0
- {pyobjc_framework_fskit-12.0 → pyobjc_framework_fskit-12.2}/metadata/FSKit.fwinfo +0 -0
- {pyobjc_framework_fskit-12.0 → pyobjc_framework_fskit-12.2}/metadata/FSKit.fwinfo.sv +0 -0
- {pyobjc_framework_fskit-12.0 → pyobjc_framework_fskit-12.2}/metadata/metadata.ini +0 -0
- {pyobjc_framework_fskit-12.0 → pyobjc_framework_fskit-12.2}/pyproject.toml +0 -0
- {pyobjc_framework_fskit-12.0 → pyobjc_framework_fskit-12.2}/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: Sun May 24 11:48:55 2026
|
|
4
4
|
#
|
|
5
5
|
# flake8: noqa
|
|
6
6
|
|
|
@@ -31,7 +31,7 @@ else:
|
|
|
31
31
|
|
|
32
32
|
misc = {}
|
|
33
33
|
constants = """$FSDirectoryCookieInitial@Q$FSDirectoryVerifierInitial@Q$FSKitErrorDomain$FSKitVersionNumber@d$FSOperationIDUnspecified@Q$"""
|
|
34
|
-
enums = """$FSAccessAddFile@4$FSAccessAddSubdirectory@32$FSAccessAppendData@32$FSAccessDelete@16$FSAccessDeleteChild@64$FSAccessExecute@8$FSAccessListDirectory@2$FSAccessReadAttributes@128$FSAccessReadData@2$FSAccessReadSecurity@2048$FSAccessReadXattr@512$FSAccessSearch@8$FSAccessTakeOwnership@8192$FSAccessWriteAttributes@256$FSAccessWriteData@4$FSAccessWriteSecurity@4096$FSAccessWriteXattr@1024$FSBlockmapFlagsRead@256$FSBlockmapFlagsWrite@512$FSCompleteIOFlagsAsync@1024$FSCompleteIOFlagsRead@256$FSCompleteIOFlagsWrite@512$FSContainerStateActive@3$FSContainerStateBlocked@1$FSContainerStateNotReady@0$FSContainerStateReady@2$FSDeactivateOptionsForce@1$FSErrorInvalidDirectoryCookie@4506$FSErrorModuleLoadFailed@4500$FSErrorResourceDamaged@4502$FSErrorResourceUnrecognized@4501$FSErrorResourceUnusable@4503$FSErrorStatusOperationInProgress@4504$FSErrorStatusOperationPaused@4505$FSExtentTypeData@0$FSExtentTypeZeroFill@1$FSItemAttributeAccessTime@1024$FSItemAttributeAddedTime@32768$FSItemAttributeAllocSize@128$FSItemAttributeBackupTime@16384$FSItemAttributeBirthTime@8192$FSItemAttributeChangeTime@4096$FSItemAttributeFileID@256$FSItemAttributeFlags@32$FSItemAttributeGID@16$FSItemAttributeInhibitKernelOffloadedIO@131072$FSItemAttributeLinkCount@4$FSItemAttributeMode@2$FSItemAttributeModifyTime@2048$FSItemAttributeParentID@512$FSItemAttributeSize@64$FSItemAttributeSupportsLimitedXAttrs@65536$FSItemAttributeType@1$FSItemAttributeUID@8$FSItemDeactivationAlways@18446744073709551615$FSItemDeactivationForPreallocatedItems@2$FSItemDeactivationForRemovedItems@1$FSItemDeactivationNever@0$FSItemIDInvalid@0$FSItemIDParentOfRoot@1$FSItemIDRootDirectory@2$FSItemTypeBlockDevice@6$FSItemTypeCharDevice@5$FSItemTypeDirectory@2$FSItemTypeFIFO@4$FSItemTypeFile@1$FSItemTypeSocket@7$FSItemTypeSymlink@3$FSItemTypeUnknown@0$FSMatchResultNotRecognized@0$FSMatchResultRecognized@1$FSMatchResultUsable@3$FSMatchResultUsableButLimited@2$FSPreallocateFlagsAll@4$FSPreallocateFlagsContiguous@2$FSPreallocateFlagsFromEOF@16$FSPreallocateFlagsPersist@8$FSSetXattrPolicyAlwaysSet@0$FSSetXattrPolicyDelete@3$FSSetXattrPolicyMustCreate@1$FSSetXattrPolicyMustReplace@2$FSSyncFlagsDWait@4$FSSyncFlagsNoWait@2$FSSyncFlagsWait@1$FSVolumeCaseFormatInsensitive@1$FSVolumeCaseFormatInsensitiveCasePreserving@2$FSVolumeCaseFormatSensitive@0$FSVolumeOpenModesRead@1$FSVolumeOpenModesWrite@2$"""
|
|
34
|
+
enums = """$FSAccessAddFile@4$FSAccessAddSubdirectory@32$FSAccessAppendData@32$FSAccessDelete@16$FSAccessDeleteChild@64$FSAccessExecute@8$FSAccessListDirectory@2$FSAccessReadAttributes@128$FSAccessReadData@2$FSAccessReadSecurity@2048$FSAccessReadXattr@512$FSAccessSearch@8$FSAccessTakeOwnership@8192$FSAccessWriteAttributes@256$FSAccessWriteData@4$FSAccessWriteSecurity@4096$FSAccessWriteXattr@1024$FSBlockmapFlagsRead@256$FSBlockmapFlagsWrite@512$FSCompleteIOFlagsAsync@1024$FSCompleteIOFlagsRead@256$FSCompleteIOFlagsWrite@512$FSContainerStateActive@3$FSContainerStateBlocked@1$FSContainerStateNotReady@0$FSContainerStateReady@2$FSDeactivateOptionsForce@1$FSErrorInvalidDirectoryCookie@4506$FSErrorModuleLoadFailed@4500$FSErrorResourceDamaged@4502$FSErrorResourceUnrecognized@4501$FSErrorResourceUnusable@4503$FSErrorStatusOperationInProgress@4504$FSErrorStatusOperationPaused@4505$FSExtentTypeData@0$FSExtentTypeZeroFill@1$FSItemAttributeAccessTime@1024$FSItemAttributeAddedTime@32768$FSItemAttributeAllocSize@128$FSItemAttributeBackupTime@16384$FSItemAttributeBirthTime@8192$FSItemAttributeChangeTime@4096$FSItemAttributeFileID@256$FSItemAttributeFlags@32$FSItemAttributeGID@16$FSItemAttributeInhibitKernelOffloadedIO@131072$FSItemAttributeLinkCount@4$FSItemAttributeMode@2$FSItemAttributeModifyTime@2048$FSItemAttributeParentID@512$FSItemAttributeSize@64$FSItemAttributeSupportsLimitedXAttrs@65536$FSItemAttributeType@1$FSItemAttributeUID@8$FSItemDeactivationAlways@18446744073709551615$FSItemDeactivationForPreallocatedItems@2$FSItemDeactivationForRemovedItems@1$FSItemDeactivationNever@0$FSItemIDInvalid@0$FSItemIDParentOfRoot@1$FSItemIDRootDirectory@2$FSItemTypeBlockDevice@6$FSItemTypeCharDevice@5$FSItemTypeDirectory@2$FSItemTypeFIFO@4$FSItemTypeFile@1$FSItemTypeSocket@7$FSItemTypeSymlink@3$FSItemTypeUnknown@0$FSMatchResultNotRecognized@0$FSMatchResultRecognized@1$FSMatchResultUsable@3$FSMatchResultUsableButLimited@2$FSMountOptionsReadOnly@1$FSPreallocateFlagsAll@4$FSPreallocateFlagsContiguous@2$FSPreallocateFlagsFromEOF@16$FSPreallocateFlagsPersist@8$FSSetXattrPolicyAlwaysSet@0$FSSetXattrPolicyDelete@3$FSSetXattrPolicyMustCreate@1$FSSetXattrPolicyMustReplace@2$FSSyncFlagsDWait@4$FSSyncFlagsNoWait@2$FSSyncFlagsWait@1$FSVolumeCaseFormatInsensitive@1$FSVolumeCaseFormatInsensitiveCasePreserving@2$FSVolumeCaseFormatSensitive@0$FSVolumeOpenModesRead@1$FSVolumeOpenModesWrite@2$"""
|
|
35
35
|
misc.update(
|
|
36
36
|
{
|
|
37
37
|
"FSItemDeactivationOptions": NewType("FSItemDeactivationOptions", int),
|
|
@@ -40,6 +40,7 @@ misc.update(
|
|
|
40
40
|
"FSItemID": NewType("FSItemID", int),
|
|
41
41
|
"FSCompleteIOFlags": NewType("FSCompleteIOFlags", int),
|
|
42
42
|
"FSSyncFlags": NewType("FSSyncFlags", int),
|
|
43
|
+
"FSMountOptions": NewType("FSMountOptions", int),
|
|
43
44
|
"FSVolumeOpenModes": NewType("FSVolumeOpenModes", int),
|
|
44
45
|
"FSSetXattrPolicy": NewType("FSSetXattrPolicy", int),
|
|
45
46
|
"FSVolumeCaseFormat": NewType("FSVolumeCaseFormat", int),
|
|
@@ -1406,6 +1407,11 @@ try:
|
|
|
1406
1407
|
},
|
|
1407
1408
|
},
|
|
1408
1409
|
)
|
|
1410
|
+
r(
|
|
1411
|
+
b"NSObject",
|
|
1412
|
+
b"requestedMountOptions",
|
|
1413
|
+
{"required": False, "retval": {"type": b"Q"}},
|
|
1414
|
+
)
|
|
1409
1415
|
r(
|
|
1410
1416
|
b"NSObject",
|
|
1411
1417
|
b"restrictsOwnershipChanges",
|
|
@@ -1459,6 +1465,11 @@ try:
|
|
|
1459
1465
|
b"setPreallocateInhibited:",
|
|
1460
1466
|
{"required": False, "retval": {"type": b"v"}, "arguments": {2: {"type": b"Z"}}},
|
|
1461
1467
|
)
|
|
1468
|
+
r(
|
|
1469
|
+
b"NSObject",
|
|
1470
|
+
b"setRequestedMountOptions:",
|
|
1471
|
+
{"required": False, "retval": {"type": b"v"}, "arguments": {2: {"type": b"Q"}}},
|
|
1472
|
+
)
|
|
1462
1473
|
r(
|
|
1463
1474
|
b"NSObject",
|
|
1464
1475
|
b"setVolumeName:replyHandler:",
|
|
@@ -1654,20 +1665,54 @@ try:
|
|
|
1654
1665
|
finally:
|
|
1655
1666
|
objc._updatingMetadata(False)
|
|
1656
1667
|
|
|
1668
|
+
objc.registerNewKeywordsFromSelector("FSBlockDeviceResource", b"init")
|
|
1669
|
+
objc.registerNewKeywordsFromSelector("FSClient", b"init")
|
|
1670
|
+
objc.registerNewKeywordsFromSelector("FSContainerStatus", b"init")
|
|
1671
|
+
objc.registerNewKeywordsFromSelector("FSDirectoryEntryPacker", b"init")
|
|
1672
|
+
objc.registerNewKeywordsFromSelector("FSEntityIdentifier", b"init")
|
|
1657
1673
|
objc.registerNewKeywordsFromSelector("FSEntityIdentifier", b"initWithUUID:")
|
|
1658
1674
|
objc.registerNewKeywordsFromSelector("FSEntityIdentifier", b"initWithUUID:data:")
|
|
1659
1675
|
objc.registerNewKeywordsFromSelector("FSEntityIdentifier", b"initWithUUID:qualifier:")
|
|
1676
|
+
objc.registerNewKeywordsFromSelector("FSExtentPacker", b"init")
|
|
1677
|
+
objc.registerNewKeywordsFromSelector("FSFileName", b"init")
|
|
1660
1678
|
objc.registerNewKeywordsFromSelector("FSFileName", b"initWithBytes:length:")
|
|
1661
1679
|
objc.registerNewKeywordsFromSelector("FSFileName", b"initWithCString:")
|
|
1662
1680
|
objc.registerNewKeywordsFromSelector("FSFileName", b"initWithData:")
|
|
1663
1681
|
objc.registerNewKeywordsFromSelector("FSFileName", b"initWithString:")
|
|
1682
|
+
objc.registerNewKeywordsFromSelector("FSGenericURLResource", b"init")
|
|
1664
1683
|
objc.registerNewKeywordsFromSelector("FSGenericURLResource", b"initWithURL:")
|
|
1684
|
+
objc.registerNewKeywordsFromSelector("FSMetadataRange", b"init")
|
|
1665
1685
|
objc.registerNewKeywordsFromSelector(
|
|
1666
1686
|
"FSMetadataRange", b"initWithOffset:segmentLength:segmentCount:"
|
|
1667
1687
|
)
|
|
1688
|
+
objc.registerNewKeywordsFromSelector("FSMutableFileDataBuffer", b"init")
|
|
1689
|
+
objc.registerNewKeywordsFromSelector("FSPathURLResource", b"init")
|
|
1668
1690
|
objc.registerNewKeywordsFromSelector("FSPathURLResource", b"initWithURL:writable:")
|
|
1691
|
+
objc.registerNewKeywordsFromSelector("FSProbeResult", b"init")
|
|
1692
|
+
objc.registerNewKeywordsFromSelector("FSResource", b"init")
|
|
1693
|
+
objc.registerNewKeywordsFromSelector("FSStatFSResult", b"init")
|
|
1669
1694
|
objc.registerNewKeywordsFromSelector("FSStatFSResult", b"initWithFileSystemTypeName:")
|
|
1695
|
+
objc.registerNewKeywordsFromSelector("FSTaskOptions", b"init")
|
|
1696
|
+
objc.registerNewKeywordsFromSelector("FSVolume", b"init")
|
|
1670
1697
|
objc.registerNewKeywordsFromSelector("FSVolume", b"initWithVolumeID:volumeName:")
|
|
1698
|
+
|
|
1699
|
+
objc.registerNewKeywords("FSContainerStatus", ("status",), "activeWithStatus_")
|
|
1700
|
+
objc.registerNewKeywords("FSContainerStatus", ("status",), "blockedWithStatus_")
|
|
1701
|
+
objc.registerNewKeywords("FSContainerStatus", ("status",), "notReadyWithStatus_")
|
|
1702
|
+
objc.registerNewKeywords("FSContainerStatus", ("status",), "readyWithStatus_")
|
|
1703
|
+
objc.registerNewKeywords(
|
|
1704
|
+
"FSProbeResult",
|
|
1705
|
+
("name", "containerID"),
|
|
1706
|
+
"recognizedProbeResultWithName_containerID_",
|
|
1707
|
+
)
|
|
1708
|
+
objc.registerNewKeywords(
|
|
1709
|
+
"FSProbeResult",
|
|
1710
|
+
("name", "containerID"),
|
|
1711
|
+
"usableButLimitedProbeResultWithName_containerID_",
|
|
1712
|
+
)
|
|
1713
|
+
objc.registerNewKeywords(
|
|
1714
|
+
"FSProbeResult", ("name", "containerID"), "usableProbeResultWithName_containerID_"
|
|
1715
|
+
)
|
|
1671
1716
|
expressions = {}
|
|
1672
1717
|
|
|
1673
1718
|
# END OF FILE
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyobjc-framework-FSKit
|
|
3
|
-
Version: 12.
|
|
3
|
+
Version: 12.2
|
|
4
4
|
Summary: Wrappers for the framework FSKit on macOS
|
|
5
5
|
Home-page: https://github.com/ronaldoussoren/pyobjc
|
|
6
6
|
Author: Ronald Oussoren
|
|
@@ -17,7 +17,6 @@ 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.9
|
|
21
20
|
Classifier: Programming Language :: Python :: 3.10
|
|
22
21
|
Classifier: Programming Language :: Python :: 3.11
|
|
23
22
|
Classifier: Programming Language :: Python :: 3.12
|
|
@@ -25,14 +24,14 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
25
24
|
Classifier: Programming Language :: Python :: 3.14
|
|
26
25
|
Classifier: Programming Language :: Python :: 3.15
|
|
27
26
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
28
|
-
Classifier: Programming Language :: Python :: Free Threading ::
|
|
27
|
+
Classifier: Programming Language :: Python :: Free Threading :: 3 - Stable
|
|
29
28
|
Classifier: Programming Language :: Objective C
|
|
30
29
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
31
30
|
Classifier: Topic :: Software Development :: User Interfaces
|
|
32
|
-
Requires-Python: >=3.
|
|
31
|
+
Requires-Python: >=3.10
|
|
33
32
|
Description-Content-Type: text/x-rst; charset=UTF-8
|
|
34
|
-
Requires-Dist: pyobjc-core>=12.
|
|
35
|
-
Requires-Dist: pyobjc-framework-Cocoa>=12.
|
|
33
|
+
Requires-Dist: pyobjc-core>=12.2
|
|
34
|
+
Requires-Dist: pyobjc-framework-Cocoa>=12.2
|
|
36
35
|
Dynamic: author
|
|
37
36
|
Dynamic: author-email
|
|
38
37
|
Dynamic: classifier
|
|
@@ -22,12 +22,14 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
22
22
|
* Start of compiler definitions
|
|
23
23
|
*
|
|
24
24
|
*/
|
|
25
|
+
#if 0
|
|
25
26
|
#ifndef __has_feature
|
|
26
27
|
#define __has_feature(x) 0
|
|
27
28
|
#endif
|
|
28
29
|
#ifndef __has_extension
|
|
29
30
|
#define __has_extension(x) __has_feature(x)
|
|
30
31
|
#endif
|
|
32
|
+
#endif
|
|
31
33
|
|
|
32
34
|
#if __has_extension(c_static_assert)
|
|
33
35
|
#define STATIC_ASSERT(test, message) _Static_assert(test, message)
|
|
@@ -55,46 +57,10 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
55
57
|
/*
|
|
56
58
|
*
|
|
57
59
|
* Start of compiler support helpers
|
|
58
|
-
*
|
|
59
|
-
* XXX: Are these needed?
|
|
60
60
|
*/
|
|
61
61
|
|
|
62
|
-
#ifdef __GNUC__
|
|
63
62
|
#define unlikely(x) __builtin_expect(!!(x), 0)
|
|
64
63
|
#define likely(x) __builtin_expect(!!(x), 1)
|
|
65
|
-
#else
|
|
66
|
-
#define likely(x) x
|
|
67
|
-
#define likely(x) x
|
|
68
|
-
#endif
|
|
69
|
-
|
|
70
|
-
/* On some versions of GCC <limits.h> defines LONG_LONG_MAX but not LLONG_MAX, compensate.
|
|
71
|
-
*/
|
|
72
|
-
#ifndef LLONG_MIN
|
|
73
|
-
#ifdef LONG_LONG_MIN
|
|
74
|
-
#define LLONG_MIN LONG_LONG_MIN
|
|
75
|
-
#define LLONG_MAX LONG_LONG_MAX
|
|
76
|
-
#define ULLONG_MAX ULONG_LONG_MAX
|
|
77
|
-
#endif
|
|
78
|
-
#endif
|
|
79
|
-
|
|
80
|
-
/*
|
|
81
|
-
*
|
|
82
|
-
* End of compiler support helpers
|
|
83
|
-
*
|
|
84
|
-
* XXX: These two are no longer needed, all supported platforms
|
|
85
|
-
* are 64-bit
|
|
86
|
-
*/
|
|
87
|
-
|
|
88
|
-
#if __LP64__
|
|
89
|
-
#define Py_ARG_NSInteger "l"
|
|
90
|
-
#define Py_ARG_NSUInteger "k"
|
|
91
|
-
#else
|
|
92
|
-
#define Py_ARG_NSInteger "i"
|
|
93
|
-
#define Py_ARG_NSUInteger "I"
|
|
94
|
-
#endif
|
|
95
|
-
|
|
96
|
-
#define PyObjC__STR(x) #x
|
|
97
|
-
#define PyObjC_STR(x) PyObjC__STR(x)
|
|
98
64
|
|
|
99
65
|
/*
|
|
100
66
|
*
|
|
@@ -131,20 +97,6 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
131
97
|
|
|
132
98
|
extern int PyObjC_Cmp(PyObject* o1, PyObject* o2, int* result);
|
|
133
99
|
|
|
134
|
-
/*
|
|
135
|
-
* A micro optimization: when using Python 3.3 or later it
|
|
136
|
-
* is possible to access a 'char*' with an ASCII representation
|
|
137
|
-
* of a unicode object without first converting it to a bytes
|
|
138
|
-
* string (if the string can be encoded as ASCII in the first
|
|
139
|
-
* place.
|
|
140
|
-
*
|
|
141
|
-
* This slightly reduces the object allocation rate during
|
|
142
|
-
* attribute access.
|
|
143
|
-
*
|
|
144
|
-
* XXX: Use PyUnicode_AsUTF8 instead.
|
|
145
|
-
*/
|
|
146
|
-
extern const char* _Nullable PyObjC_Unicode_Fast_Bytes(PyObject* object);
|
|
147
|
-
|
|
148
100
|
#ifdef __clang__
|
|
149
101
|
|
|
150
102
|
#ifndef Py_LIMITED_API
|
|
@@ -286,6 +238,23 @@ static inline PyObject* _Nullable PyList_GetItemRef(PyObject* l, Py_ssize_t i)
|
|
|
286
238
|
Py_XINCREF(result);
|
|
287
239
|
return result;
|
|
288
240
|
}
|
|
241
|
+
|
|
242
|
+
static inline int
|
|
243
|
+
PyDict_SetDefaultRef(PyObject* p, PyObject* key, PyObject* default_value,
|
|
244
|
+
PyObject* _Nonnull* _Nullable result)
|
|
245
|
+
{
|
|
246
|
+
*result = PyDict_SetDefault(p, key, default_value);
|
|
247
|
+
if (*result == NULL) {
|
|
248
|
+
return -1;
|
|
249
|
+
}
|
|
250
|
+
Py_INCREF(*result);
|
|
251
|
+
|
|
252
|
+
/* This does not follow the spec, should return 1 when the key was already
|
|
253
|
+
* in the dict. That part of the API is not used in PyObjC though.
|
|
254
|
+
*/
|
|
255
|
+
return 0;
|
|
256
|
+
}
|
|
257
|
+
|
|
289
258
|
#endif
|
|
290
259
|
|
|
291
260
|
#if PY_VERSION_HEX < 0x030c0000
|
|
@@ -392,6 +361,11 @@ PyUnstable_TryIncRef(PyObject* op __attribute__((__unused__)))
|
|
|
392
361
|
}
|
|
393
362
|
#endif
|
|
394
363
|
|
|
364
|
+
#if PY_VERSION_HEX < 0x030f00a7
|
|
365
|
+
#define PyAnyDict_CheckExact PyDict_CheckExact
|
|
366
|
+
#define PyAnyDict_Check PyDict_Check
|
|
367
|
+
#endif
|
|
368
|
+
|
|
395
369
|
NS_ASSUME_NONNULL_END
|
|
396
370
|
|
|
397
371
|
#endif /* PyObjC_COMPAT_H */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyobjc-framework-FSKit
|
|
3
|
-
Version: 12.
|
|
3
|
+
Version: 12.2
|
|
4
4
|
Summary: Wrappers for the framework FSKit on macOS
|
|
5
5
|
Home-page: https://github.com/ronaldoussoren/pyobjc
|
|
6
6
|
Author: Ronald Oussoren
|
|
@@ -17,7 +17,6 @@ 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.9
|
|
21
20
|
Classifier: Programming Language :: Python :: 3.10
|
|
22
21
|
Classifier: Programming Language :: Python :: 3.11
|
|
23
22
|
Classifier: Programming Language :: Python :: 3.12
|
|
@@ -25,14 +24,14 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
25
24
|
Classifier: Programming Language :: Python :: 3.14
|
|
26
25
|
Classifier: Programming Language :: Python :: 3.15
|
|
27
26
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
28
|
-
Classifier: Programming Language :: Python :: Free Threading ::
|
|
27
|
+
Classifier: Programming Language :: Python :: Free Threading :: 3 - Stable
|
|
29
28
|
Classifier: Programming Language :: Objective C
|
|
30
29
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
31
30
|
Classifier: Topic :: Software Development :: User Interfaces
|
|
32
|
-
Requires-Python: >=3.
|
|
31
|
+
Requires-Python: >=3.10
|
|
33
32
|
Description-Content-Type: text/x-rst; charset=UTF-8
|
|
34
|
-
Requires-Dist: pyobjc-core>=12.
|
|
35
|
-
Requires-Dist: pyobjc-framework-Cocoa>=12.
|
|
33
|
+
Requires-Dist: pyobjc-core>=12.2
|
|
34
|
+
Requires-Dist: pyobjc-framework-Cocoa>=12.2
|
|
36
35
|
Dynamic: author
|
|
37
36
|
Dynamic: author-email
|
|
38
37
|
Dynamic: classifier
|
|
@@ -128,6 +128,12 @@ class TestFSVolumeHelper(FSKit.NSObject):
|
|
|
128
128
|
def setEnableOpenUnlinkEmulation_(self, a):
|
|
129
129
|
pass
|
|
130
130
|
|
|
131
|
+
def requestedMountOptions(self):
|
|
132
|
+
return 1
|
|
133
|
+
|
|
134
|
+
def setRequestedMountOptions_(self, a):
|
|
135
|
+
pass
|
|
136
|
+
|
|
131
137
|
# FSVolumeReadWriteOperations
|
|
132
138
|
def readFromFile_offset_length_intoBuffer_replyHandler_(self, a, b, c, d, e):
|
|
133
139
|
pass
|
|
@@ -231,6 +237,9 @@ class TestFSVolume(TestCase):
|
|
|
231
237
|
self.assertEqual(FSKit.FSItemDeactivationForRemovedItems, 1 << 0)
|
|
232
238
|
self.assertEqual(FSKit.FSItemDeactivationForPreallocatedItems, 1 << 1)
|
|
233
239
|
|
|
240
|
+
self.assertIsEnumType(FSKit.FSMountOptions)
|
|
241
|
+
self.assertEqual(FSKit.FSMountOptionsReadOnly, 1 << 0)
|
|
242
|
+
|
|
234
243
|
def test_protocols(self):
|
|
235
244
|
self.assertProtocolExists("FSVolumePathConfOperations")
|
|
236
245
|
self.assertProtocolExists("FSVolumeOperations")
|
|
@@ -349,6 +358,13 @@ class TestFSVolume(TestCase):
|
|
|
349
358
|
self.assertResultIsBOOL(TestFSVolumeHelper.enableOpenUnlinkEmulation)
|
|
350
359
|
self.assertArgIsBOOL(TestFSVolumeHelper.setEnableOpenUnlinkEmulation_, 0)
|
|
351
360
|
|
|
361
|
+
self.assertResultHasType(
|
|
362
|
+
TestFSVolumeHelper.requestedMountOptions, objc._C_NSUInteger
|
|
363
|
+
)
|
|
364
|
+
self.assertArgHasType(
|
|
365
|
+
TestFSVolumeHelper.setRequestedMountOptions_, 0, objc._C_NSUInteger
|
|
366
|
+
)
|
|
367
|
+
|
|
352
368
|
# FSVolumeXattrOperations
|
|
353
369
|
self.assertResultIsBOOL(TestFSVolumeHelper.xattrOperationsInhibited)
|
|
354
370
|
self.assertArgIsBOOL(TestFSVolumeHelper.setXattrOperationsInhibited_, 0)
|