pyobjc-framework-CoreML 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.
Files changed (74) hide show
  1. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/Lib/CoreML/_metadata.py +124 -1
  2. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/Lib/pyobjc_framework_CoreML.egg-info/PKG-INFO +5 -6
  3. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/Lib/pyobjc_framework_CoreML.egg-info/SOURCES.txt +2 -2
  4. pyobjc_framework_coreml-12.2/Lib/pyobjc_framework_CoreML.egg-info/pyobjc-build-info.txt +3 -0
  5. pyobjc_framework_coreml-12.2/Lib/pyobjc_framework_CoreML.egg-info/requires.txt +2 -0
  6. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/Modules/pyobjc-compat.h +24 -50
  7. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/PKG-INFO +5 -6
  8. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/metadata/CoreML.fwinfo +33 -33
  9. pyobjc_framework_coreml-12.0/metadata/raw/arm64-26.0.fwinfo → pyobjc_framework_coreml-12.2/metadata/raw/arm64-26.5.fwinfo +1815 -96
  10. pyobjc_framework_coreml-12.0/metadata/raw/x86_64-26.0.fwinfo → pyobjc_framework_coreml-12.2/metadata/raw/x86_64-26.5.fwinfo +1815 -96
  11. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/pyobjc_setup.py +4 -5
  12. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/setup.py +1 -1
  13. pyobjc_framework_coreml-12.0/Lib/pyobjc_framework_CoreML.egg-info/pyobjc-build-info.txt +0 -3
  14. pyobjc_framework_coreml-12.0/Lib/pyobjc_framework_CoreML.egg-info/requires.txt +0 -2
  15. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/Lib/CoreML/__init__.py +0 -0
  16. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/Lib/pyobjc_framework_CoreML.egg-info/dependency_links.txt +0 -0
  17. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/Lib/pyobjc_framework_CoreML.egg-info/not-zip-safe +0 -0
  18. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/Lib/pyobjc_framework_CoreML.egg-info/top_level.txt +0 -0
  19. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/License.txt +0 -0
  20. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/MANIFEST.in +0 -0
  21. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/Modules/_CoreML.m +0 -0
  22. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/Modules/_CoreML_protocols.m +0 -0
  23. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/Modules/pyobjc-api.h +0 -0
  24. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/PyObjCTest/__init__.py +0 -0
  25. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/PyObjCTest/test_coreml.py +0 -0
  26. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/PyObjCTest/test_mlallcomputedevices.py +0 -0
  27. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/PyObjCTest/test_mlbatchprovider.py +0 -0
  28. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/PyObjCTest/test_mlcomputedeviceprotocol.py +0 -0
  29. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/PyObjCTest/test_mlcomputeplan.py +0 -0
  30. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/PyObjCTest/test_mlcomputeplancost.py +0 -0
  31. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/PyObjCTest/test_mlcomputeplandeviceusage.py +0 -0
  32. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/PyObjCTest/test_mlcustomlayer.py +0 -0
  33. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/PyObjCTest/test_mlcustommodel.py +0 -0
  34. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/PyObjCTest/test_mldictionaryfeatureprovider.py +0 -0
  35. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/PyObjCTest/test_mlfeaturedescription.py +0 -0
  36. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/PyObjCTest/test_mlfeatureprovider.py +0 -0
  37. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/PyObjCTest/test_mlfeaturetype.py +0 -0
  38. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/PyObjCTest/test_mlfeaturevalue.py +0 -0
  39. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/PyObjCTest/test_mlfeaturevalue_mlimageconversion.py +0 -0
  40. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/PyObjCTest/test_mlimagesizeconstrainttype.py +0 -0
  41. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/PyObjCTest/test_mlmodel.py +0 -0
  42. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/PyObjCTest/test_mlmodel_mlmodelcompilation.py +0 -0
  43. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/PyObjCTest/test_mlmodel_mlstate.py +0 -0
  44. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/PyObjCTest/test_mlmodelasset.py +0 -0
  45. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/PyObjCTest/test_mlmodelcollection.py +0 -0
  46. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/PyObjCTest/test_mlmodelconfiguration.py +0 -0
  47. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/PyObjCTest/test_mlmodelerror.py +0 -0
  48. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/PyObjCTest/test_mlmodelmetadatakeys.py +0 -0
  49. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/PyObjCTest/test_mlmodelstructure.py +0 -0
  50. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/PyObjCTest/test_mlmodelstructureneuralnetwork.py +0 -0
  51. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/PyObjCTest/test_mlmodelstructureneuralnetworklayer.py +0 -0
  52. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/PyObjCTest/test_mlmodelstructurepipeline.py +0 -0
  53. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/PyObjCTest/test_mlmodelstructureprogram.py +0 -0
  54. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/PyObjCTest/test_mlmodelstructureprogramargument.py +0 -0
  55. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/PyObjCTest/test_mlmodelstructureprogrambinding.py +0 -0
  56. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/PyObjCTest/test_mlmodelstructureprogramblock.py +0 -0
  57. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/PyObjCTest/test_mlmodelstructureprogramfunction.py +0 -0
  58. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/PyObjCTest/test_mlmodelstructureprogramnamedvaluetype.py +0 -0
  59. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/PyObjCTest/test_mlmodelstructureprogramoperation.py +0 -0
  60. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/PyObjCTest/test_mlmodelstructureprogramvalue.py +0 -0
  61. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/PyObjCTest/test_mlmodelstructureprogramvaluetype.py +0 -0
  62. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/PyObjCTest/test_mlmultiarray.py +0 -0
  63. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/PyObjCTest/test_mlmultiarrayshapeconstrainttype.py +0 -0
  64. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/PyObjCTest/test_mlpredictionoptions.py +0 -0
  65. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/PyObjCTest/test_mlreshapefrequencyhint.py +0 -0
  66. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/PyObjCTest/test_mlstate.py +0 -0
  67. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/PyObjCTest/test_mltask.py +0 -0
  68. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/PyObjCTest/test_mlupdateprogressevent.py +0 -0
  69. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/PyObjCTest/test_mlupdateprogresshandlers.py +0 -0
  70. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/PyObjCTest/test_mlupdatetask.py +0 -0
  71. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/PyObjCTest/test_mlwritable.py +0 -0
  72. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/metadata/metadata.ini +0 -0
  73. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/pyproject.toml +0 -0
  74. {pyobjc_framework_coreml-12.0 → pyobjc_framework_coreml-12.2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  # This file is generated by objective.metadata
2
2
  #
3
- # Last update: Thu Jul 24 14:08:04 2025
3
+ # Last update: Thu May 28 21:26:32 2026
4
4
  #
5
5
  # flake8: noqa
6
6
 
@@ -745,18 +745,141 @@ objc.registerNewKeywordsFromSelector(
745
745
  objc.registerNewKeywordsFromSelector(
746
746
  "MLArrayBatchProvider", b"initWithFeatureProviderArray:"
747
747
  )
748
+ objc.registerNewKeywordsFromSelector("MLCPUComputeDevice", b"init")
749
+ objc.registerNewKeywordsFromSelector("MLComputePlan", b"init")
750
+ objc.registerNewKeywordsFromSelector("MLComputePlanCost", b"init")
751
+ objc.registerNewKeywordsFromSelector("MLComputePlanDeviceUsage", b"init")
748
752
  objc.registerNewKeywordsFromSelector(
749
753
  "MLDictionaryFeatureProvider", b"initWithDictionary:error:"
750
754
  )
755
+ objc.registerNewKeywordsFromSelector("MLGPUComputeDevice", b"init")
756
+ objc.registerNewKeywordsFromSelector("MLImageConstraint", b"init")
757
+ objc.registerNewKeywordsFromSelector("MLKey", b"init")
758
+ objc.registerNewKeywordsFromSelector("MLMetricKey", b"init")
759
+ objc.registerNewKeywordsFromSelector("MLModelAsset", b"init")
760
+ objc.registerNewKeywordsFromSelector("MLModelCollection", b"init")
761
+ objc.registerNewKeywordsFromSelector("MLModelCollectionEntry", b"init")
762
+ objc.registerNewKeywordsFromSelector("MLModelStructure", b"init")
763
+ objc.registerNewKeywordsFromSelector("MLModelStructureNeuralNetwork", b"init")
764
+ objc.registerNewKeywordsFromSelector("MLModelStructureNeuralNetworkLayer", b"init")
765
+ objc.registerNewKeywordsFromSelector("MLModelStructurePipeline", b"init")
766
+ objc.registerNewKeywordsFromSelector("MLModelStructureProgram", b"init")
767
+ objc.registerNewKeywordsFromSelector("MLModelStructureProgramArgument", b"init")
768
+ objc.registerNewKeywordsFromSelector("MLModelStructureProgramBinding", b"init")
769
+ objc.registerNewKeywordsFromSelector("MLModelStructureProgramBlock", b"init")
770
+ objc.registerNewKeywordsFromSelector("MLModelStructureProgramFunction", b"init")
771
+ objc.registerNewKeywordsFromSelector("MLModelStructureProgramNamedValueType", b"init")
772
+ objc.registerNewKeywordsFromSelector("MLModelStructureProgramOperation", b"init")
773
+ objc.registerNewKeywordsFromSelector("MLModelStructureProgramValue", b"init")
774
+ objc.registerNewKeywordsFromSelector("MLModelStructureProgramValueType", b"init")
751
775
  objc.registerNewKeywordsFromSelector(
752
776
  "MLMultiArray", b"initWithDataPointer:shape:dataType:strides:deallocator:error:"
753
777
  )
754
778
  objc.registerNewKeywordsFromSelector("MLMultiArray", b"initWithPixelBuffer:shape:")
755
779
  objc.registerNewKeywordsFromSelector("MLMultiArray", b"initWithShape:dataType:error:")
756
780
  objc.registerNewKeywordsFromSelector("MLMultiArray", b"initWithShape:dataType:strides:")
781
+ objc.registerNewKeywordsFromSelector("MLNeuralEngineComputeDevice", b"init")
782
+ objc.registerNewKeywordsFromSelector("MLParameterKey", b"init")
783
+ objc.registerNewKeywordsFromSelector("MLState", b"init")
784
+ objc.registerNewKeywordsFromSelector("MLTask", b"init")
785
+ objc.registerNewKeywordsFromSelector("MLUpdateProgressHandlers", b"init")
757
786
  objc.registerNewKeywordsFromSelector(
758
787
  "MLUpdateProgressHandlers", b"initForEvents:progressHandler:completionHandler:"
759
788
  )
789
+ objc.registerNewKeywordsFromSelector("MLUpdateTask", b"init")
790
+
791
+ objc.registerNewKeywords(
792
+ "MLFeatureValue",
793
+ ("CGImage", "constraint", "options", "error"),
794
+ "featureValueWithCGImage_constraint_options_error_",
795
+ )
796
+ objc.registerNewKeywords(
797
+ "MLFeatureValue",
798
+ ("CGImage", "orientation", "constraint", "options", "error"),
799
+ "featureValueWithCGImage_orientation_constraint_options_error_",
800
+ )
801
+ objc.registerNewKeywords(
802
+ "MLFeatureValue",
803
+ (
804
+ "CGImage",
805
+ "orientation",
806
+ "pixelsWide",
807
+ "pixelsHigh",
808
+ "pixelFormatType",
809
+ "options",
810
+ "error",
811
+ ),
812
+ "featureValueWithCGImage_orientation_pixelsWide_pixelsHigh_pixelFormatType_options_error_",
813
+ )
814
+ objc.registerNewKeywords(
815
+ "MLFeatureValue",
816
+ ("CGImage", "pixelsWide", "pixelsHigh", "pixelFormatType", "options", "error"),
817
+ "featureValueWithCGImage_pixelsWide_pixelsHigh_pixelFormatType_options_error_",
818
+ )
819
+ objc.registerNewKeywords(
820
+ "MLFeatureValue", ("dictionary", "error"), "featureValueWithDictionary_error_"
821
+ )
822
+ objc.registerNewKeywords("MLFeatureValue", ("double",), "featureValueWithDouble_")
823
+ objc.registerNewKeywords(
824
+ "MLFeatureValue",
825
+ ("imageAtURL", "constraint", "options", "error"),
826
+ "featureValueWithImageAtURL_constraint_options_error_",
827
+ )
828
+ objc.registerNewKeywords(
829
+ "MLFeatureValue",
830
+ ("imageAtURL", "orientation", "constraint", "options", "error"),
831
+ "featureValueWithImageAtURL_orientation_constraint_options_error_",
832
+ )
833
+ objc.registerNewKeywords(
834
+ "MLFeatureValue",
835
+ (
836
+ "imageAtURL",
837
+ "orientation",
838
+ "pixelsWide",
839
+ "pixelsHigh",
840
+ "pixelFormatType",
841
+ "options",
842
+ "error",
843
+ ),
844
+ "featureValueWithImageAtURL_orientation_pixelsWide_pixelsHigh_pixelFormatType_options_error_",
845
+ )
846
+ objc.registerNewKeywords(
847
+ "MLFeatureValue",
848
+ ("imageAtURL", "pixelsWide", "pixelsHigh", "pixelFormatType", "options", "error"),
849
+ "featureValueWithImageAtURL_pixelsWide_pixelsHigh_pixelFormatType_options_error_",
850
+ )
851
+ objc.registerNewKeywords("MLFeatureValue", ("int64",), "featureValueWithInt64_")
852
+ objc.registerNewKeywords(
853
+ "MLFeatureValue", ("multiArray",), "featureValueWithMultiArray_"
854
+ )
855
+ objc.registerNewKeywords(
856
+ "MLFeatureValue", ("pixelBuffer",), "featureValueWithPixelBuffer_"
857
+ )
858
+ objc.registerNewKeywords("MLFeatureValue", ("sequence",), "featureValueWithSequence_")
859
+ objc.registerNewKeywords("MLFeatureValue", ("string",), "featureValueWithString_")
860
+ objc.registerNewKeywords("MLFeatureValue", ("type",), "undefinedFeatureValueWithType_")
861
+ objc.registerNewKeywords(
862
+ "MLModel",
863
+ ("contentsOfURL", "configuration", "error"),
864
+ "modelWithContentsOfURL_configuration_error_",
865
+ )
866
+ objc.registerNewKeywords(
867
+ "MLModel", ("contentsOfURL", "error"), "modelWithContentsOfURL_error_"
868
+ )
869
+ objc.registerNewKeywords(
870
+ "MLModelAsset",
871
+ ("specificationData", "blobMapping", "error"),
872
+ "modelAssetWithSpecificationData_blobMapping_error_",
873
+ )
874
+ objc.registerNewKeywords(
875
+ "MLModelAsset",
876
+ ("specificationData", "error"),
877
+ "modelAssetWithSpecificationData_error_",
878
+ )
879
+ objc.registerNewKeywords("MLModelAsset", ("URL", "error"), "modelAssetWithURL_error_")
880
+ objc.registerNewKeywords("MLSequence", ("type",), "emptySequenceWithType_")
881
+ objc.registerNewKeywords("MLSequence", ("int64Array",), "sequenceWithInt64Array_")
882
+ objc.registerNewKeywords("MLSequence", ("stringArray",), "sequenceWithStringArray_")
760
883
  expressions = {}
761
884
 
762
885
  # END OF FILE
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyobjc-framework-CoreML
3
- Version: 12.0
3
+ Version: 12.2
4
4
  Summary: Wrappers for the framework CoreML 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 :: 2 - Beta
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.9
31
+ Requires-Python: >=3.10
33
32
  Description-Content-Type: text/x-rst; charset=UTF-8
34
- Requires-Dist: pyobjc-core>=12.0
35
- Requires-Dist: pyobjc-framework-Cocoa>=12.0
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
@@ -66,5 +66,5 @@ PyObjCTest/test_mlupdatetask.py
66
66
  PyObjCTest/test_mlwritable.py
67
67
  metadata/CoreML.fwinfo
68
68
  metadata/metadata.ini
69
- metadata/raw/arm64-26.0.fwinfo
70
- metadata/raw/x86_64-26.0.fwinfo
69
+ metadata/raw/arm64-26.5.fwinfo
70
+ metadata/raw/x86_64-26.5.fwinfo
@@ -0,0 +1,3 @@
1
+ macOS 26.5 (25F71)
2
+ Apple clang version 21.0.0 (clang-2100.1.1.101)
3
+ SDK: macOS 26.5
@@ -0,0 +1,2 @@
1
+ pyobjc-core>=12.2
2
+ pyobjc-framework-Cocoa>=12.2
@@ -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-CoreML
3
- Version: 12.0
3
+ Version: 12.2
4
4
  Summary: Wrappers for the framework CoreML 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 :: 2 - Beta
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.9
31
+ Requires-Python: >=3.10
33
32
  Description-Content-Type: text/x-rst; charset=UTF-8
34
- Requires-Dist: pyobjc-core>=12.0
35
- Requires-Dist: pyobjc-framework-Cocoa>=12.0
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
@@ -219,19 +219,19 @@
219
219
  "1": {
220
220
  "callable": {
221
221
  "arguments": {
222
- "0": { "typestr": "^v" },
223
- "1": { "typestr": "@" }
222
+ "0": { "type": "^v" },
223
+ "1": { "type": "@" }
224
224
  },
225
- "retval": { "typestr": "v" }
225
+ "retval": { "type": "v" }
226
226
  }
227
227
  },
228
228
  "2": {
229
229
  "callable": {
230
230
  "arguments": {
231
- "0": { "typestr": "^v" },
232
- "1": { "typestr": "@" }
231
+ "0": { "type": "^v" },
232
+ "1": { "type": "@" }
233
233
  },
234
- "retval": { "typestr": "v" }
234
+ "retval": { "type": "v" }
235
235
  }
236
236
  }
237
237
  }
@@ -243,10 +243,10 @@
243
243
  "3": {
244
244
  "callable": {
245
245
  "arguments": {
246
- "0": { "typestr": "^v" },
247
- "1": { "typestr": "@" }
246
+ "0": { "type": "^v" },
247
+ "1": { "type": "@" }
248
248
  },
249
- "retval": { "typestr": "v" }
249
+ "retval": { "type": "v" }
250
250
  }
251
251
  },
252
252
  "4": { "type_modifier": "o" }
@@ -279,10 +279,10 @@
279
279
  "3": {
280
280
  "callable": {
281
281
  "arguments": {
282
- "0": { "typestr": "^v" },
283
- "1": { "typestr": "@" }
282
+ "0": { "type": "^v" },
283
+ "1": { "type": "@" }
284
284
  },
285
- "retval": { "typestr": "v" }
285
+ "retval": { "type": "v" }
286
286
  }
287
287
  },
288
288
  "4": { "type_modifier": "o" }
@@ -295,10 +295,10 @@
295
295
  "3": {
296
296
  "callable": {
297
297
  "arguments": {
298
- "0": { "typestr": "^v" },
299
- "1": { "typestr": "@" }
298
+ "0": { "type": "^v" },
299
+ "1": { "type": "@" }
300
300
  },
301
- "retval": { "typestr": "v" }
301
+ "retval": { "type": "v" }
302
302
  }
303
303
  },
304
304
  "4": { "type_modifier": "o" }
@@ -315,19 +315,19 @@
315
315
  "1": {
316
316
  "callable": {
317
317
  "arguments": {
318
- "0": { "typestr": "^v" },
319
- "1": { "typestr": "@" }
318
+ "0": { "type": "^v" },
319
+ "1": { "type": "@" }
320
320
  },
321
- "retval": { "typestr": "v" }
321
+ "retval": { "type": "v" }
322
322
  }
323
323
  },
324
324
  "2": {
325
325
  "callable": {
326
326
  "arguments": {
327
- "0": { "typestr": "^v" },
328
- "1": { "typestr": "@" }
327
+ "0": { "type": "^v" },
328
+ "1": { "type": "@" }
329
329
  },
330
- "retval": { "typestr": "v" }
330
+ "retval": { "type": "v" }
331
331
  }
332
332
  }
333
333
  }
@@ -533,11 +533,11 @@
533
533
  "0": {
534
534
  "callable": {
535
535
  "arguments": {
536
- "0": { "typestr": "^v" },
537
- "1": { "typestr": "n^v", "c_array_length_in_arg": 2 },
538
- "2": { "typestr": "q" }
536
+ "0": { "type": "^v" },
537
+ "1": { "type": "n^v", "c_array_length_in_arg": 2 },
538
+ "2": { "type": "q" }
539
539
  },
540
- "retval": { "typestr": "v" }
540
+ "retval": { "type": "v" }
541
541
  }
542
542
  },
543
543
  "5": { "type_modifier": "o" }
@@ -550,12 +550,12 @@
550
550
  "0": {
551
551
  "callable": {
552
552
  "arguments": {
553
- "0": { "typestr": "^v" },
554
- "1": { "typestr": "N^v", "c_array_length_in_arg": 2 },
555
- "2": { "typestr": "q" },
556
- "3": { "typestr": "@" }
553
+ "0": { "type": "^v" },
554
+ "1": { "type": "N^v", "c_array_length_in_arg": 2 },
555
+ "2": { "type": "q" },
556
+ "3": { "type": "@" }
557
557
  },
558
- "retval": { "typestr": "v" }
558
+ "retval": { "type": "v" }
559
559
  }
560
560
  },
561
561
  "5": { "type_modifier": "o" }
@@ -569,10 +569,10 @@
569
569
  "4": {
570
570
  "callable": {
571
571
  "arguments": {
572
- "0": { "typestr": "^v" },
573
- "1": { "typestr": "^v" }
572
+ "0": { "type": "^v" },
573
+ "1": { "type": "^v" }
574
574
  },
575
- "retval": { "typestr": "v" }
575
+ "retval": { "type": "v" }
576
576
  }
577
577
  },
578
578
  "5": { "type_modifier": "o" }