pyobjc-framework-UniformTypeIdentifiers 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_uniformtypeidentifiers-12.2.2 → pyobjc_framework_uniformtypeidentifiers-13.1}/Lib/UniformTypeIdentifiers/_metadata.py +9 -3
- {pyobjc_framework_uniformtypeidentifiers-12.2.2 → pyobjc_framework_uniformtypeidentifiers-13.1}/Lib/pyobjc_framework_UniformTypeIdentifiers.egg-info/PKG-INFO +5 -5
- {pyobjc_framework_uniformtypeidentifiers-12.2.2 → pyobjc_framework_uniformtypeidentifiers-13.1}/Lib/pyobjc_framework_UniformTypeIdentifiers.egg-info/SOURCES.txt +2 -2
- pyobjc_framework_uniformtypeidentifiers-13.1/Lib/pyobjc_framework_UniformTypeIdentifiers.egg-info/pyobjc-build-info.txt +3 -0
- pyobjc_framework_uniformtypeidentifiers-13.1/Lib/pyobjc_framework_UniformTypeIdentifiers.egg-info/requires.txt +2 -0
- {pyobjc_framework_uniformtypeidentifiers-12.2.2 → pyobjc_framework_uniformtypeidentifiers-13.1}/PKG-INFO +5 -5
- {pyobjc_framework_uniformtypeidentifiers-12.2.2 → pyobjc_framework_uniformtypeidentifiers-13.1}/PyObjCTest/test_utcoretypes.py +6 -0
- {pyobjc_framework_uniformtypeidentifiers-12.2.2 → pyobjc_framework_uniformtypeidentifiers-13.1}/PyObjCTest/test_uttype.py +7 -1
- {pyobjc_framework_uniformtypeidentifiers-12.2.2 → pyobjc_framework_uniformtypeidentifiers-13.1}/metadata/UniformTypeIdentifiers.fwinfo +0 -6
- pyobjc_framework_uniformtypeidentifiers-12.2.2/metadata/raw/arm64-26.5.fwinfo → pyobjc_framework_uniformtypeidentifiers-13.1/metadata/raw/arm64-27.fwinfo +34 -3
- pyobjc_framework_uniformtypeidentifiers-12.2.2/metadata/raw/x86_64-26.5.fwinfo → pyobjc_framework_uniformtypeidentifiers-13.1/metadata/raw/x86_64-27.fwinfo +34 -3
- {pyobjc_framework_uniformtypeidentifiers-12.2.2 → pyobjc_framework_uniformtypeidentifiers-13.1}/pyobjc_setup.py +66 -8
- {pyobjc_framework_uniformtypeidentifiers-12.2.2 → pyobjc_framework_uniformtypeidentifiers-13.1}/setup.py +1 -1
- pyobjc_framework_uniformtypeidentifiers-12.2.2/Lib/pyobjc_framework_UniformTypeIdentifiers.egg-info/pyobjc-build-info.txt +0 -3
- pyobjc_framework_uniformtypeidentifiers-12.2.2/Lib/pyobjc_framework_UniformTypeIdentifiers.egg-info/requires.txt +0 -2
- {pyobjc_framework_uniformtypeidentifiers-12.2.2 → pyobjc_framework_uniformtypeidentifiers-13.1}/Lib/UniformTypeIdentifiers/__init__.py +0 -0
- {pyobjc_framework_uniformtypeidentifiers-12.2.2 → pyobjc_framework_uniformtypeidentifiers-13.1}/Lib/pyobjc_framework_UniformTypeIdentifiers.egg-info/dependency_links.txt +0 -0
- {pyobjc_framework_uniformtypeidentifiers-12.2.2 → pyobjc_framework_uniformtypeidentifiers-13.1}/Lib/pyobjc_framework_UniformTypeIdentifiers.egg-info/not-zip-safe +0 -0
- {pyobjc_framework_uniformtypeidentifiers-12.2.2 → pyobjc_framework_uniformtypeidentifiers-13.1}/Lib/pyobjc_framework_UniformTypeIdentifiers.egg-info/top_level.txt +0 -0
- {pyobjc_framework_uniformtypeidentifiers-12.2.2 → pyobjc_framework_uniformtypeidentifiers-13.1}/License.txt +0 -0
- {pyobjc_framework_uniformtypeidentifiers-12.2.2 → pyobjc_framework_uniformtypeidentifiers-13.1}/MANIFEST.in +0 -0
- {pyobjc_framework_uniformtypeidentifiers-12.2.2 → pyobjc_framework_uniformtypeidentifiers-13.1}/PyObjCTest/__init__.py +0 -0
- {pyobjc_framework_uniformtypeidentifiers-12.2.2 → pyobjc_framework_uniformtypeidentifiers-13.1}/PyObjCTest/test_nsitemprovider_uttype.py +0 -0
- {pyobjc_framework_uniformtypeidentifiers-12.2.2 → pyobjc_framework_uniformtypeidentifiers-13.1}/PyObjCTest/test_uniformtypeidentifiers.py +0 -0
- {pyobjc_framework_uniformtypeidentifiers-12.2.2 → pyobjc_framework_uniformtypeidentifiers-13.1}/PyObjCTest/test_utadditions.py +0 -0
- {pyobjc_framework_uniformtypeidentifiers-12.2.2 → pyobjc_framework_uniformtypeidentifiers-13.1}/PyObjCTest/test_uttagclass.py +0 -0
- {pyobjc_framework_uniformtypeidentifiers-12.2.2 → pyobjc_framework_uniformtypeidentifiers-13.1}/metadata/metadata.ini +0 -0
- {pyobjc_framework_uniformtypeidentifiers-12.2.2 → pyobjc_framework_uniformtypeidentifiers-13.1}/pyproject.toml +0 -0
- {pyobjc_framework_uniformtypeidentifiers-12.2.2 → pyobjc_framework_uniformtypeidentifiers-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 12:00:01 2026
|
|
4
|
-
#
|
|
5
3
|
# flake8: noqa
|
|
6
4
|
|
|
7
5
|
import objc, sys
|
|
@@ -30,7 +28,7 @@ else:
|
|
|
30
28
|
|
|
31
29
|
|
|
32
30
|
misc = {}
|
|
33
|
-
constants = """$UTTagClassFilenameExtension$UTTagClassMIMEType$UTType3DContent$UTTypeAHAP$UTTypeAIFF$UTTypeARReferenceObject$UTTypeAVI$UTTypeAliasFile$UTTypeAppleArchive$UTTypeAppleProtectedMPEG4Audio$UTTypeAppleProtectedMPEG4Video$UTTypeAppleScript$UTTypeApplication$UTTypeApplicationBundle$UTTypeApplicationExtension$UTTypeArchive$UTTypeAssemblyLanguageSource$UTTypeAudio$UTTypeAudiovisualContent$UTTypeBMP$UTTypeBZ2$UTTypeBinaryPropertyList$UTTypeBookmark$UTTypeBundle$UTTypeCHeader$UTTypeCPlusPlusHeader$UTTypeCPlusPlusSource$UTTypeCSS$UTTypeCSource$UTTypeCalendarEvent$UTTypeCommaSeparatedText$UTTypeCompositeContent$UTTypeContact$UTTypeContent$UTTypeDNG$UTTypeData$UTTypeDatabase$UTTypeDelimitedText$UTTypeDirectory$UTTypeDiskImage$UTTypeEPUB$UTTypeEXE$UTTypeEXR$UTTypeEmailMessage$UTTypeExecutable$UTTypeFileURL$UTTypeFlatRTFD$UTTypeFolder$UTTypeFont$UTTypeFramework$UTTypeGIF$UTTypeGZIP$UTTypeGeoJSON$UTTypeHEIC$UTTypeHEICS$UTTypeHEIF$UTTypeHTML$UTTypeICNS$UTTypeICO$UTTypeImage$UTTypeInternetLocation$UTTypeInternetShortcut$UTTypeItem$UTTypeJPEG$UTTypeJPEGXL$UTTypeJSON$UTTypeJavaScript$UTTypeLinkPresentationMetadata$UTTypeLivePhoto$UTTypeLog$UTTypeM3UPlaylist$UTTypeMIDI$UTTypeMP3$UTTypeMPEG$UTTypeMPEG2TransportStream$UTTypeMPEG2Video$UTTypeMPEG4Audio$UTTypeMPEG4Movie$UTTypeMakefile$UTTypeMessage$UTTypeMountPoint$UTTypeMovie$UTTypeOSAScript$UTTypeOSAScriptBundle$UTTypeObjectiveCPlusPlusSource$UTTypeObjectiveCSource$UTTypePDF$UTTypePHPScript$UTTypePKCS12$UTTypePNG$UTTypePackage$UTTypePerlScript$UTTypePlainText$UTTypePlaylist$UTTypePluginBundle$UTTypePresentation$UTTypePropertyList$UTTypePythonScript$UTTypeQuickLookGenerator$UTTypeQuickTimeMovie$UTTypeRAWImage$UTTypeRTF$UTTypeRTFD$UTTypeRealityFile$UTTypeResolvable$UTTypeRubyScript$UTTypeSVG$UTTypeSceneKitScene$UTTypeScript$UTTypeShellScript$UTTypeSourceCode$UTTypeSpotlightImporter$UTTypeSpreadsheet$UTTypeSwiftSource$UTTypeSymbolicLink$UTTypeSystemPreferencesPane$UTTypeTIFF$UTTypeTabSeparatedText$UTTypeTarArchive$UTTypeText$UTTypeToDoItem$UTTypeURL$UTTypeURLBookmarkData$UTTypeUSD$UTTypeUSDZ$UTTypeUTF16ExternalPlainText$UTTypeUTF16PlainText$UTTypeUTF8PlainText$UTTypeUTF8TabSeparatedText$UTTypeUnixExecutable$UTTypeVCard$UTTypeVideo$UTTypeVolume$UTTypeWAV$UTTypeWebArchive$UTTypeWebP$UTTypeX509Certificate$UTTypeXML$UTTypeXMLPropertyList$UTTypeXPCService$UTTypeYAML$UTTypeZIP$"""
|
|
31
|
+
constants = """$UTTagClassFilenameExtension$UTTagClassMIMEType$UTType3DContent$UTTypeAHAP$UTTypeAIFF$UTTypeARReferenceObject$UTTypeAVI$UTTypeAliasFile$UTTypeAppleArchive$UTTypeAppleProtectedMPEG4Audio$UTTypeAppleProtectedMPEG4Video$UTTypeAppleScript$UTTypeApplication$UTTypeApplicationBundle$UTTypeApplicationExtension$UTTypeArchive$UTTypeAssemblyLanguageSource$UTTypeAudio$UTTypeAudiovisualContent$UTTypeBMP$UTTypeBZ2$UTTypeBinaryPropertyList$UTTypeBookmark$UTTypeBundle$UTTypeCHeader$UTTypeCPlusPlusHeader$UTTypeCPlusPlusSource$UTTypeCSS$UTTypeCSource$UTTypeCalendarEvent$UTTypeCommaSeparatedText$UTTypeCompositeContent$UTTypeContact$UTTypeContent$UTTypeDNG$UTTypeData$UTTypeDatabase$UTTypeDelimitedText$UTTypeDirectory$UTTypeDiskImage$UTTypeEPUB$UTTypeEXE$UTTypeEXR$UTTypeEmailMessage$UTTypeExecutable$UTTypeFileURL$UTTypeFlatRTFD$UTTypeFolder$UTTypeFont$UTTypeFramework$UTTypeGIF$UTTypeGZIP$UTTypeGeoJSON$UTTypeHEIC$UTTypeHEICS$UTTypeHEIF$UTTypeHTML$UTTypeICNS$UTTypeICO$UTTypeImage$UTTypeInternetLocation$UTTypeInternetShortcut$UTTypeItem$UTTypeJPEG$UTTypeJPEGXL$UTTypeJSON$UTTypeJavaScript$UTTypeLinkPresentationMetadata$UTTypeLivePhoto$UTTypeLog$UTTypeM3UPlaylist$UTTypeMIDI$UTTypeMP3$UTTypeMPEG$UTTypeMPEG2TransportStream$UTTypeMPEG2Video$UTTypeMPEG4Audio$UTTypeMPEG4Movie$UTTypeMakefile$UTTypeMarkdown$UTTypeMessage$UTTypeMountPoint$UTTypeMovie$UTTypeOSAScript$UTTypeOSAScriptBundle$UTTypeObjectiveCPlusPlusSource$UTTypeObjectiveCSource$UTTypePDF$UTTypePHPScript$UTTypePKCS12$UTTypePNG$UTTypePackage$UTTypePerlScript$UTTypePlainText$UTTypePlaylist$UTTypePluginBundle$UTTypePresentation$UTTypePropertyList$UTTypePythonScript$UTTypeQuickLookGenerator$UTTypeQuickTimeMovie$UTTypeRAWImage$UTTypeRTF$UTTypeRTFD$UTTypeRealityFile$UTTypeResolvable$UTTypeRubyScript$UTTypeSVG$UTTypeSceneKitScene$UTTypeScript$UTTypeShellScript$UTTypeSourceCode$UTTypeSpotlightImporter$UTTypeSpreadsheet$UTTypeSwiftSource$UTTypeSymbolicLink$UTTypeSystemPreferencesPane$UTTypeTIFF$UTTypeTabSeparatedText$UTTypeTarArchive$UTTypeText$UTTypeToDoItem$UTTypeURL$UTTypeURLBookmarkData$UTTypeUSD$UTTypeUSDZ$UTTypeUTF16ExternalPlainText$UTTypeUTF16PlainText$UTTypeUTF8PlainText$UTTypeUTF8TabSeparatedText$UTTypeUnixExecutable$UTTypeVCard$UTTypeVideo$UTTypeVolume$UTTypeWAV$UTTypeWebArchive$UTTypeWebP$UTTypeX509Certificate$UTTypeXML$UTTypeXMLPropertyList$UTTypeXPCService$UTTypeYAML$UTTypeZIP$"""
|
|
34
32
|
enums = """$$"""
|
|
35
33
|
misc.update({})
|
|
36
34
|
misc.update({})
|
|
@@ -144,6 +142,11 @@ try:
|
|
|
144
142
|
r(b"UTType", b"isPublicType", {"retval": {"type": b"Z"}})
|
|
145
143
|
r(b"UTType", b"isSubtypeOfType:", {"retval": {"type": b"Z"}})
|
|
146
144
|
r(b"UTType", b"isSupertypeOfType:", {"retval": {"type": b"Z"}})
|
|
145
|
+
r(
|
|
146
|
+
b"UTType",
|
|
147
|
+
b"typeWithIdentifier:allowUndeclared:",
|
|
148
|
+
{"arguments": {3: {"type": b"Z"}}},
|
|
149
|
+
)
|
|
147
150
|
finally:
|
|
148
151
|
objc._updatingMetadata(False)
|
|
149
152
|
|
|
@@ -160,6 +163,9 @@ objc.registerNewKeywords(
|
|
|
160
163
|
"typeWithFilenameExtension_conformingToType_",
|
|
161
164
|
)
|
|
162
165
|
objc.registerNewKeywords("UTType", ("identifier",), "typeWithIdentifier_")
|
|
166
|
+
objc.registerNewKeywords(
|
|
167
|
+
"UTType", ("identifier", "allowUndeclared"), "typeWithIdentifier_allowUndeclared_"
|
|
168
|
+
)
|
|
163
169
|
objc.registerNewKeywords("UTType", ("MIMEType",), "typeWithMIMEType_")
|
|
164
170
|
objc.registerNewKeywords(
|
|
165
171
|
"UTType", ("MIMEType", "conformingToType"), "typeWithMIMEType_conformingToType_"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyobjc-framework-UniformTypeIdentifiers
|
|
3
|
-
Version:
|
|
3
|
+
Version: 13.1
|
|
4
4
|
Summary: Wrappers for the framework UniformTypeIdentifiers on macOS
|
|
5
5
|
Home-page: https://github.com/ronaldoussoren/pyobjc
|
|
6
6
|
Author: Ronald Oussoren
|
|
@@ -17,21 +17,21 @@ Classifier: Operating System :: MacOS :: MacOS X
|
|
|
17
17
|
Classifier: Programming Language :: Python
|
|
18
18
|
Classifier: Programming Language :: Python :: 3
|
|
19
19
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
20
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
21
20
|
Classifier: Programming Language :: Python :: 3.11
|
|
22
21
|
Classifier: Programming Language :: Python :: 3.12
|
|
23
22
|
Classifier: Programming Language :: Python :: 3.13
|
|
24
23
|
Classifier: Programming Language :: Python :: 3.14
|
|
25
24
|
Classifier: Programming Language :: Python :: 3.15
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.16
|
|
26
26
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
27
27
|
Classifier: Programming Language :: Python :: Free Threading :: 3 - Stable
|
|
28
28
|
Classifier: Programming Language :: Objective C
|
|
29
29
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
30
30
|
Classifier: Topic :: Software Development :: User Interfaces
|
|
31
|
-
Requires-Python: >=3.
|
|
31
|
+
Requires-Python: >=3.11
|
|
32
32
|
Description-Content-Type: text/x-rst; charset=UTF-8
|
|
33
|
-
Requires-Dist: pyobjc-core>=
|
|
34
|
-
Requires-Dist: pyobjc-framework-Cocoa>=
|
|
33
|
+
Requires-Dist: pyobjc-core>=13.1
|
|
34
|
+
Requires-Dist: pyobjc-framework-Cocoa>=13.1
|
|
35
35
|
Dynamic: author
|
|
36
36
|
Dynamic: author-email
|
|
37
37
|
Dynamic: classifier
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyobjc-framework-UniformTypeIdentifiers
|
|
3
|
-
Version:
|
|
3
|
+
Version: 13.1
|
|
4
4
|
Summary: Wrappers for the framework UniformTypeIdentifiers on macOS
|
|
5
5
|
Home-page: https://github.com/ronaldoussoren/pyobjc
|
|
6
6
|
Author: Ronald Oussoren
|
|
@@ -17,21 +17,21 @@ Classifier: Operating System :: MacOS :: MacOS X
|
|
|
17
17
|
Classifier: Programming Language :: Python
|
|
18
18
|
Classifier: Programming Language :: Python :: 3
|
|
19
19
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
20
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
21
20
|
Classifier: Programming Language :: Python :: 3.11
|
|
22
21
|
Classifier: Programming Language :: Python :: 3.12
|
|
23
22
|
Classifier: Programming Language :: Python :: 3.13
|
|
24
23
|
Classifier: Programming Language :: Python :: 3.14
|
|
25
24
|
Classifier: Programming Language :: Python :: 3.15
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.16
|
|
26
26
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
27
27
|
Classifier: Programming Language :: Python :: Free Threading :: 3 - Stable
|
|
28
28
|
Classifier: Programming Language :: Objective C
|
|
29
29
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
30
30
|
Classifier: Topic :: Software Development :: User Interfaces
|
|
31
|
-
Requires-Python: >=3.
|
|
31
|
+
Requires-Python: >=3.11
|
|
32
32
|
Description-Content-Type: text/x-rst; charset=UTF-8
|
|
33
|
-
Requires-Dist: pyobjc-core>=
|
|
34
|
-
Requires-Dist: pyobjc-framework-Cocoa>=
|
|
33
|
+
Requires-Dist: pyobjc-core>=13.1
|
|
34
|
+
Requires-Dist: pyobjc-framework-Cocoa>=13.1
|
|
35
35
|
Dynamic: author
|
|
36
36
|
Dynamic: author-email
|
|
37
37
|
Dynamic: classifier
|
|
@@ -448,3 +448,9 @@ class TestUTCoreTypes(TestCase):
|
|
|
448
448
|
self.assertIsInstance(
|
|
449
449
|
UniformTypeIdentifiers.UTTypeJPEGXL, UniformTypeIdentifiers.UTType
|
|
450
450
|
)
|
|
451
|
+
|
|
452
|
+
@min_os_level("27.0")
|
|
453
|
+
def test_constants27_0(self):
|
|
454
|
+
self.assertIsInstance(
|
|
455
|
+
UniformTypeIdentifiers.UTTypeMarkdown, UniformTypeIdentifiers.UTType
|
|
456
|
+
)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from PyObjCTools.TestSupport import TestCase
|
|
1
|
+
from PyObjCTools.TestSupport import TestCase, min_os_level
|
|
2
2
|
|
|
3
3
|
import UniformTypeIdentifiers
|
|
4
4
|
|
|
@@ -12,3 +12,9 @@ class TestUTType(TestCase):
|
|
|
12
12
|
self.assertResultIsBOOL(UniformTypeIdentifiers.UTType.conformsToType_)
|
|
13
13
|
self.assertResultIsBOOL(UniformTypeIdentifiers.UTType.isSupertypeOfType_)
|
|
14
14
|
self.assertResultIsBOOL(UniformTypeIdentifiers.UTType.isSubtypeOfType_)
|
|
15
|
+
|
|
16
|
+
@min_os_level("27.0")
|
|
17
|
+
def test_methods27_0(self):
|
|
18
|
+
self.assertArgIsBOOL(
|
|
19
|
+
UniformTypeIdentifiers.UTType.typeWithIdentifier_allowUndeclared_, 1
|
|
20
|
+
)
|
|
@@ -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:01 2026
|
|
5
4
|
{
|
|
6
5
|
"arch": "arm64",
|
|
7
6
|
"definitions": {
|
|
@@ -532,6 +531,33 @@
|
|
|
532
531
|
"selector": "typeWithIdentifier:",
|
|
533
532
|
"visibility": "public"
|
|
534
533
|
},
|
|
534
|
+
{
|
|
535
|
+
"args": [
|
|
536
|
+
{
|
|
537
|
+
"name": "identifier",
|
|
538
|
+
"null_accepted": true,
|
|
539
|
+
"type_name": "NSString *",
|
|
540
|
+
"typestr": "@",
|
|
541
|
+
"typestr_special": false
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
"name": "allowUndeclared",
|
|
545
|
+
"type_name": "BOOL",
|
|
546
|
+
"typestr": "Z",
|
|
547
|
+
"typestr_special": true
|
|
548
|
+
}
|
|
549
|
+
],
|
|
550
|
+
"class_method": true,
|
|
551
|
+
"introduced": "27.0",
|
|
552
|
+
"retval": {
|
|
553
|
+
"instancetype": true,
|
|
554
|
+
"type_name": "instancetype",
|
|
555
|
+
"typestr": "@",
|
|
556
|
+
"typestr_special": false
|
|
557
|
+
},
|
|
558
|
+
"selector": "typeWithIdentifier:allowUndeclared:",
|
|
559
|
+
"visibility": "public"
|
|
560
|
+
},
|
|
535
561
|
{
|
|
536
562
|
"args": [
|
|
537
563
|
{
|
|
@@ -1506,6 +1532,11 @@
|
|
|
1506
1532
|
"type_name": "UTType *const",
|
|
1507
1533
|
"typestr": "@"
|
|
1508
1534
|
},
|
|
1535
|
+
"UTTypeMarkdown": {
|
|
1536
|
+
"introduced": "27.0",
|
|
1537
|
+
"type_name": "UTType *const",
|
|
1538
|
+
"typestr": "@"
|
|
1539
|
+
},
|
|
1509
1540
|
"UTTypeMessage": {
|
|
1510
1541
|
"introduced": "11.0",
|
|
1511
1542
|
"type_name": "UTType *const",
|
|
@@ -1839,6 +1870,6 @@
|
|
|
1839
1870
|
"UTTagClass.h",
|
|
1840
1871
|
"UTType.h"
|
|
1841
1872
|
],
|
|
1842
|
-
"release": "
|
|
1843
|
-
"sdk": "
|
|
1873
|
+
"release": "macOS 27.3",
|
|
1874
|
+
"sdk": "Xcode 27.3 (27C5035f)/MacOSX27.sdk"
|
|
1844
1875
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// GENERATED FILE DO NOT EDIT
|
|
2
2
|
//
|
|
3
3
|
// This file was generated by objective.metadata
|
|
4
|
-
// Last update: Sun May 24 11:59:59 2026
|
|
5
4
|
{
|
|
6
5
|
"arch": "x86_64",
|
|
7
6
|
"definitions": {
|
|
@@ -532,6 +531,33 @@
|
|
|
532
531
|
"selector": "typeWithIdentifier:",
|
|
533
532
|
"visibility": "public"
|
|
534
533
|
},
|
|
534
|
+
{
|
|
535
|
+
"args": [
|
|
536
|
+
{
|
|
537
|
+
"name": "identifier",
|
|
538
|
+
"null_accepted": true,
|
|
539
|
+
"type_name": "NSString *",
|
|
540
|
+
"typestr": "@",
|
|
541
|
+
"typestr_special": false
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
"name": "allowUndeclared",
|
|
545
|
+
"type_name": "BOOL",
|
|
546
|
+
"typestr": "Z",
|
|
547
|
+
"typestr_special": true
|
|
548
|
+
}
|
|
549
|
+
],
|
|
550
|
+
"class_method": true,
|
|
551
|
+
"introduced": "27.0",
|
|
552
|
+
"retval": {
|
|
553
|
+
"instancetype": true,
|
|
554
|
+
"type_name": "instancetype",
|
|
555
|
+
"typestr": "@",
|
|
556
|
+
"typestr_special": false
|
|
557
|
+
},
|
|
558
|
+
"selector": "typeWithIdentifier:allowUndeclared:",
|
|
559
|
+
"visibility": "public"
|
|
560
|
+
},
|
|
535
561
|
{
|
|
536
562
|
"args": [
|
|
537
563
|
{
|
|
@@ -1506,6 +1532,11 @@
|
|
|
1506
1532
|
"type_name": "UTType *const",
|
|
1507
1533
|
"typestr": "@"
|
|
1508
1534
|
},
|
|
1535
|
+
"UTTypeMarkdown": {
|
|
1536
|
+
"introduced": "27.0",
|
|
1537
|
+
"type_name": "UTType *const",
|
|
1538
|
+
"typestr": "@"
|
|
1539
|
+
},
|
|
1509
1540
|
"UTTypeMessage": {
|
|
1510
1541
|
"introduced": "11.0",
|
|
1511
1542
|
"type_name": "UTType *const",
|
|
@@ -1839,6 +1870,6 @@
|
|
|
1839
1870
|
"UTTagClass.h",
|
|
1840
1871
|
"UTType.h"
|
|
1841
1872
|
],
|
|
1842
|
-
"release": "
|
|
1843
|
-
"sdk": "
|
|
1873
|
+
"release": "macOS 27.3",
|
|
1874
|
+
"sdk": "Xcode 27.3 (27C5035f)/MacOSX27.sdk"
|
|
1844
1875
|
}
|
|
@@ -22,12 +22,20 @@ import tempfile
|
|
|
22
22
|
import textwrap
|
|
23
23
|
import time
|
|
24
24
|
import unittest
|
|
25
|
+
import zipfile
|
|
25
26
|
from fnmatch import fnmatch
|
|
26
27
|
from sysconfig import get_config_var, get_config_vars
|
|
27
28
|
from setuptools import Command
|
|
28
29
|
from setuptools import Extension as _Extension
|
|
29
30
|
from setuptools import setup as _setup
|
|
30
|
-
from setuptools.command import
|
|
31
|
+
from setuptools.command import (
|
|
32
|
+
build_ext,
|
|
33
|
+
build_py,
|
|
34
|
+
develop,
|
|
35
|
+
egg_info,
|
|
36
|
+
install_lib,
|
|
37
|
+
bdist_wheel,
|
|
38
|
+
)
|
|
31
39
|
|
|
32
40
|
from distutils import log
|
|
33
41
|
from distutils.errors import DistutilsError, DistutilsPlatformError
|
|
@@ -43,6 +51,29 @@ except ImportError:
|
|
|
43
51
|
from distutils.command import build
|
|
44
52
|
|
|
45
53
|
|
|
54
|
+
class oc_bdist_wheel(bdist_wheel.bdist_wheel):
|
|
55
|
+
def run(self):
|
|
56
|
+
super().run()
|
|
57
|
+
if (
|
|
58
|
+
self.distribution.dist_files
|
|
59
|
+
and self.distribution.dist_files[-1][0] == "bdist_wheel"
|
|
60
|
+
):
|
|
61
|
+
ok = True
|
|
62
|
+
zf = zipfile.ZipFile(self.distribution.dist_files[-1][-1], "r")
|
|
63
|
+
for nm in zf.namelist():
|
|
64
|
+
if ".dist-info/" in nm:
|
|
65
|
+
continue
|
|
66
|
+
|
|
67
|
+
if nm.startswith("PyObjCTest/"):
|
|
68
|
+
print("test file included in wheel:", nm)
|
|
69
|
+
if not any(nm.endswith(sfx) for sfx in (".pyi", ".py", ".so")):
|
|
70
|
+
print("unexpected name in wheel:", nm)
|
|
71
|
+
ok = False
|
|
72
|
+
|
|
73
|
+
if not ok:
|
|
74
|
+
raise DistutilsError("Wheel validation failed")
|
|
75
|
+
|
|
76
|
+
|
|
46
77
|
class oc_build_py(build_py.build_py):
|
|
47
78
|
def build_packages(self):
|
|
48
79
|
log.info("overriding build_packages to copy PyObjCTest")
|
|
@@ -110,13 +141,11 @@ class oc_egg_info(egg_info.egg_info):
|
|
|
110
141
|
else:
|
|
111
142
|
sdk_version = os.path.basename(sdk_root)
|
|
112
143
|
|
|
113
|
-
build_info = textwrap.dedent(
|
|
114
|
-
f"""\
|
|
144
|
+
build_info = textwrap.dedent(f"""\
|
|
115
145
|
macOS {macos_version} ({macos_build})
|
|
116
146
|
{clang_version}
|
|
117
147
|
SDK: {sdk_version}
|
|
118
|
-
"""
|
|
119
|
-
)
|
|
148
|
+
""")
|
|
120
149
|
|
|
121
150
|
self.write_file(
|
|
122
151
|
"pyobjc-build-info.txt",
|
|
@@ -204,7 +233,7 @@ class oc_test(Command):
|
|
|
204
233
|
"errors": len(result.errors),
|
|
205
234
|
"xfails": len(getattr(result, "expectedFailures", [])),
|
|
206
235
|
"xpass": len(getattr(result, "unexpectedSuccesses", [])),
|
|
207
|
-
"skip
|
|
236
|
+
"skip": len(getattr(result, "skipped", [])),
|
|
208
237
|
"testSeconds": (time_after - time_before),
|
|
209
238
|
}
|
|
210
239
|
print(f"SUMMARY: {summary}")
|
|
@@ -228,12 +257,12 @@ Operating System :: MacOS :: MacOS X
|
|
|
228
257
|
Programming Language :: Python
|
|
229
258
|
Programming Language :: Python :: 3
|
|
230
259
|
Programming Language :: Python :: 3 :: Only
|
|
231
|
-
Programming Language :: Python :: 3.10
|
|
232
260
|
Programming Language :: Python :: 3.11
|
|
233
261
|
Programming Language :: Python :: 3.12
|
|
234
262
|
Programming Language :: Python :: 3.13
|
|
235
263
|
Programming Language :: Python :: 3.14
|
|
236
264
|
Programming Language :: Python :: 3.15
|
|
265
|
+
Programming Language :: Python :: 3.16
|
|
237
266
|
Programming Language :: Python :: Implementation :: CPython
|
|
238
267
|
Programming Language :: Python :: Free Threading :: 3 - Stable
|
|
239
268
|
Programming Language :: Objective C
|
|
@@ -311,6 +340,10 @@ class pyobjc_install_lib(install_lib.install_lib):
|
|
|
311
340
|
else:
|
|
312
341
|
outputs = install_lib.orig.install_lib.get_outputs(self)
|
|
313
342
|
|
|
343
|
+
import pprint
|
|
344
|
+
|
|
345
|
+
pprint.pprint(outputs)
|
|
346
|
+
|
|
314
347
|
exclusions = {}
|
|
315
348
|
for fn in outputs:
|
|
316
349
|
if "PyObjCTest" in fn:
|
|
@@ -440,9 +473,30 @@ class pyobjc_build_ext(build_ext.build_ext):
|
|
|
440
473
|
if os.path.exists("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
|
|
441
474
|
raise DistutilsError("pyobjc-api.h not included")
|
|
442
475
|
|
|
476
|
+
# Save mtimes for C extensions
|
|
477
|
+
prebuild_mtimes = {}
|
|
478
|
+
for ext in self.extensions:
|
|
479
|
+
fullname = self.get_ext_fullname(ext.name)
|
|
480
|
+
filename = self.get_ext_filename(fullname)
|
|
481
|
+
full_path = os.path.join(self.build_lib, filename)
|
|
482
|
+
if os.path.exists(full_path):
|
|
483
|
+
prebuild_mtimes[full_path] = os.stat(full_path).st_mtime
|
|
484
|
+
|
|
443
485
|
# Run the actual build
|
|
444
486
|
build_ext.build_ext.run(self)
|
|
445
487
|
|
|
488
|
+
# Ensure debug symbols are available:
|
|
489
|
+
for ext in self.extensions:
|
|
490
|
+
fullname = self.get_ext_fullname(ext.name)
|
|
491
|
+
filename = self.get_ext_filename(fullname)
|
|
492
|
+
full_path = os.path.join(self.build_lib, filename)
|
|
493
|
+
|
|
494
|
+
if self.inplace:
|
|
495
|
+
if full_path not in prebuild_mtimes or (
|
|
496
|
+
prebuild_mtimes[full_path] != os.stat(full_path).st_mtime
|
|
497
|
+
):
|
|
498
|
+
subprocess.check_call(["/usr/bin/dsymutil", full_path])
|
|
499
|
+
|
|
446
500
|
# Then tweak the copy_extensions bit to ensure PyObjCTest gets
|
|
447
501
|
# copied to the right place.
|
|
448
502
|
extensions = self.extensions
|
|
@@ -499,6 +553,8 @@ def Extension(*args, **kwds):
|
|
|
499
553
|
"-DPyObjC_BUILD_RELEASE=%02d%02d"
|
|
500
554
|
% (tuple(map(int, version.split(".")[:2])))
|
|
501
555
|
)
|
|
556
|
+
ldflags.append("-isysroot")
|
|
557
|
+
ldflags.append(data)
|
|
502
558
|
else:
|
|
503
559
|
cflags.append(
|
|
504
560
|
"-DPyObjC_BUILD_RELEASE=%02d%02d"
|
|
@@ -567,6 +623,8 @@ def setup(
|
|
|
567
623
|
else:
|
|
568
624
|
cmdclass = cmdclass.copy()
|
|
569
625
|
|
|
626
|
+
cmdclass["bdist_wheel"] = oc_bdist_wheel
|
|
627
|
+
|
|
570
628
|
if os_compatible or ("bdist_wheel" in sys.argv and "ext_modules" not in k):
|
|
571
629
|
cmdclass["build_ext"] = pyobjc_build_ext
|
|
572
630
|
cmdclass["egg_info"] = oc_egg_info
|
|
@@ -677,7 +735,7 @@ def setup(
|
|
|
677
735
|
zip_safe=False,
|
|
678
736
|
license="MIT",
|
|
679
737
|
classifiers=CLASSIFIERS,
|
|
680
|
-
python_requires=">=3.
|
|
738
|
+
python_requires=">=3.11",
|
|
681
739
|
keywords=["PyObjC"] + [p for p in k["packages"] if p not in ("PyObjCTools",)],
|
|
682
740
|
options=options,
|
|
683
741
|
**k,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|