pyobjc-framework-MetricKit 12.2.1__tar.gz → 13.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_metrickit-12.2.1 → pyobjc_framework_metrickit-13.0}/Lib/MetricKit/_metadata.py +3 -2
- {pyobjc_framework_metrickit-12.2.1 → pyobjc_framework_metrickit-13.0}/Lib/pyobjc_framework_MetricKit.egg-info/PKG-INFO +5 -5
- {pyobjc_framework_metrickit-12.2.1 → pyobjc_framework_metrickit-13.0}/Lib/pyobjc_framework_MetricKit.egg-info/SOURCES.txt +2 -2
- pyobjc_framework_metrickit-13.0/Lib/pyobjc_framework_MetricKit.egg-info/pyobjc-build-info.txt +3 -0
- pyobjc_framework_metrickit-13.0/Lib/pyobjc_framework_MetricKit.egg-info/requires.txt +2 -0
- {pyobjc_framework_metrickit-12.2.1 → pyobjc_framework_metrickit-13.0}/Modules/_MetricKit.m +9 -2
- {pyobjc_framework_metrickit-12.2.1 → pyobjc_framework_metrickit-13.0}/Modules/_MetricKit_protocols.m +8 -0
- {pyobjc_framework_metrickit-12.2.1 → pyobjc_framework_metrickit-13.0}/Modules/pyobjc-api.h +18 -4
- {pyobjc_framework_metrickit-12.2.1 → pyobjc_framework_metrickit-13.0}/Modules/pyobjc-compat.h +0 -18
- {pyobjc_framework_metrickit-12.2.1 → pyobjc_framework_metrickit-13.0}/PKG-INFO +5 -5
- {pyobjc_framework_metrickit-12.2.1 → pyobjc_framework_metrickit-13.0}/PyObjCTest/test_mxmetricmanager.py +3 -3
- {pyobjc_framework_metrickit-12.2.1 → pyobjc_framework_metrickit-13.0}/PyObjCTest/test_mxsignpost_private.py +1 -1
- {pyobjc_framework_metrickit-12.2.1 → pyobjc_framework_metrickit-13.0}/metadata/MetricKit.fwinfo +1 -9
- pyobjc_framework_metrickit-12.2.1/metadata/raw/arm64-26.5.fwinfo → pyobjc_framework_metrickit-13.0/metadata/raw/arm64-27.fwinfo +150 -3
- pyobjc_framework_metrickit-12.2.1/metadata/raw/x86_64-26.5.fwinfo → pyobjc_framework_metrickit-13.0/metadata/raw/x86_64-27.fwinfo +150 -3
- {pyobjc_framework_metrickit-12.2.1 → pyobjc_framework_metrickit-13.0}/pyobjc_setup.py +7 -7
- {pyobjc_framework_metrickit-12.2.1 → pyobjc_framework_metrickit-13.0}/setup.py +1 -1
- pyobjc_framework_metrickit-12.2.1/Lib/pyobjc_framework_MetricKit.egg-info/pyobjc-build-info.txt +0 -3
- pyobjc_framework_metrickit-12.2.1/Lib/pyobjc_framework_MetricKit.egg-info/requires.txt +0 -2
- {pyobjc_framework_metrickit-12.2.1 → pyobjc_framework_metrickit-13.0}/Lib/MetricKit/__init__.py +0 -0
- {pyobjc_framework_metrickit-12.2.1 → pyobjc_framework_metrickit-13.0}/Lib/pyobjc_framework_MetricKit.egg-info/dependency_links.txt +0 -0
- {pyobjc_framework_metrickit-12.2.1 → pyobjc_framework_metrickit-13.0}/Lib/pyobjc_framework_MetricKit.egg-info/not-zip-safe +0 -0
- {pyobjc_framework_metrickit-12.2.1 → pyobjc_framework_metrickit-13.0}/Lib/pyobjc_framework_MetricKit.egg-info/top_level.txt +0 -0
- {pyobjc_framework_metrickit-12.2.1 → pyobjc_framework_metrickit-13.0}/License.txt +0 -0
- {pyobjc_framework_metrickit-12.2.1 → pyobjc_framework_metrickit-13.0}/MANIFEST.in +0 -0
- {pyobjc_framework_metrickit-12.2.1 → pyobjc_framework_metrickit-13.0}/PyObjCTest/__init__.py +0 -0
- {pyobjc_framework_metrickit-12.2.1 → pyobjc_framework_metrickit-13.0}/PyObjCTest/test_metrickit.py +0 -0
- {pyobjc_framework_metrickit-12.2.1 → pyobjc_framework_metrickit-13.0}/PyObjCTest/test_mxaverage.py +0 -0
- {pyobjc_framework_metrickit-12.2.1 → pyobjc_framework_metrickit-13.0}/PyObjCTest/test_mxcallstacktree.py +0 -0
- {pyobjc_framework_metrickit-12.2.1 → pyobjc_framework_metrickit-13.0}/PyObjCTest/test_mxcpuexceptiondiagnostic.py +0 -0
- {pyobjc_framework_metrickit-12.2.1 → pyobjc_framework_metrickit-13.0}/PyObjCTest/test_mxcpumetrics.py +0 -0
- {pyobjc_framework_metrickit-12.2.1 → pyobjc_framework_metrickit-13.0}/PyObjCTest/test_mxcrashdiagnostic.py +0 -0
- {pyobjc_framework_metrickit-12.2.1 → pyobjc_framework_metrickit-13.0}/PyObjCTest/test_mxdiagnostic.py +0 -0
- {pyobjc_framework_metrickit-12.2.1 → pyobjc_framework_metrickit-13.0}/PyObjCTest/test_mxdiagnosticpayload.py +0 -0
- {pyobjc_framework_metrickit-12.2.1 → pyobjc_framework_metrickit-13.0}/PyObjCTest/test_mxdiskwriteexceptiondiagnostic.py +0 -0
- {pyobjc_framework_metrickit-12.2.1 → pyobjc_framework_metrickit-13.0}/PyObjCTest/test_mxhangdiagnostic.py +0 -0
- {pyobjc_framework_metrickit-12.2.1 → pyobjc_framework_metrickit-13.0}/PyObjCTest/test_mxhistogram.py +0 -0
- {pyobjc_framework_metrickit-12.2.1 → pyobjc_framework_metrickit-13.0}/PyObjCTest/test_mxmetadata.py +0 -0
- {pyobjc_framework_metrickit-12.2.1 → pyobjc_framework_metrickit-13.0}/PyObjCTest/test_mxmetricpayload.py +0 -0
- {pyobjc_framework_metrickit-12.2.1 → pyobjc_framework_metrickit-13.0}/PyObjCTest/test_mxsignpost.py +0 -0
- {pyobjc_framework_metrickit-12.2.1 → pyobjc_framework_metrickit-13.0}/PyObjCTest/test_mxsignpostrecord.py +0 -0
- {pyobjc_framework_metrickit-12.2.1 → pyobjc_framework_metrickit-13.0}/metadata/metadata.ini +0 -0
- {pyobjc_framework_metrickit-12.2.1 → pyobjc_framework_metrickit-13.0}/pyproject.toml +0 -0
- {pyobjc_framework_metrickit-12.2.1 → pyobjc_framework_metrickit-13.0}/setup.cfg +0 -0
{pyobjc_framework_metrickit-12.2.1 → pyobjc_framework_metrickit-13.0}/Lib/MetricKit/_metadata.py
RENAMED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
# This file is generated by objective.metadata
|
|
2
2
|
#
|
|
3
|
-
# Last update: Sun May 24 11:53:35 2026
|
|
4
|
-
#
|
|
5
3
|
# flake8: noqa
|
|
6
4
|
|
|
7
5
|
import objc, sys
|
|
@@ -73,5 +71,8 @@ try:
|
|
|
73
71
|
finally:
|
|
74
72
|
objc._updatingMetadata(False)
|
|
75
73
|
expressions = {}
|
|
74
|
+
formal_protocols = {
|
|
75
|
+
"MXMetricManagerSubscriber": "MXMetricManagerSubscriber",
|
|
76
|
+
}
|
|
76
77
|
|
|
77
78
|
# END OF FILE
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyobjc-framework-MetricKit
|
|
3
|
-
Version:
|
|
3
|
+
Version: 13.0
|
|
4
4
|
Summary: Wrappers for the framework MetricKit 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.0
|
|
34
|
+
Requires-Dist: pyobjc-framework-Cocoa>=13.0
|
|
35
35
|
Dynamic: author
|
|
36
36
|
Dynamic: author-email
|
|
37
37
|
Dynamic: classifier
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
#include "Python.h"
|
|
3
3
|
#include "pyobjc-api.h"
|
|
4
4
|
|
|
5
|
+
#ifdef USE_STATIC_ANALYZER
|
|
6
|
+
#include "../../pyobjc-core/Modules/objc/python-api-used.h"
|
|
7
|
+
#endif
|
|
8
|
+
|
|
5
9
|
#import <Foundation/Foundation.h>
|
|
6
10
|
#import <MetricKit/MetricKit.h>
|
|
7
11
|
|
|
@@ -10,6 +14,8 @@
|
|
|
10
14
|
*/
|
|
11
15
|
#include "_MetricKit_protocols.m"
|
|
12
16
|
|
|
17
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
18
|
+
|
|
13
19
|
static PyMethodDef mod_methods[] = {
|
|
14
20
|
{0, 0, 0, 0} /* sentinel */
|
|
15
21
|
};
|
|
@@ -55,10 +61,11 @@ static struct PyModuleDef mod_module = {
|
|
|
55
61
|
.m_free = NULL,
|
|
56
62
|
};
|
|
57
63
|
|
|
58
|
-
PyObject* PyInit__MetricKit(void);
|
|
64
|
+
PyObject* _Nullable PyInit__MetricKit(void);
|
|
59
65
|
|
|
60
|
-
PyObject* __attribute__((__visibility__("default")))
|
|
66
|
+
PyObject* _Nullable __attribute__((__visibility__("default")))
|
|
61
67
|
PyInit__MetricKit(void)
|
|
62
68
|
{
|
|
63
69
|
return PyModuleDef_Init(&mod_module);
|
|
64
70
|
}
|
|
71
|
+
NS_ASSUME_NONNULL_END
|
{pyobjc_framework_metrickit-12.2.1 → pyobjc_framework_metrickit-13.0}/Modules/_MetricKit_protocols.m
RENAMED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
// LCOV_EXCL_START
|
|
2
|
+
// This function is only present to ensure protocols are
|
|
3
|
+
// available at runtime.
|
|
4
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
5
|
+
|
|
1
6
|
static void __attribute__((__used__))
|
|
2
7
|
use_protocols(void)
|
|
3
8
|
{
|
|
@@ -7,3 +12,6 @@ use_protocols(void)
|
|
|
7
12
|
Py_XDECREF(p);
|
|
8
13
|
#endif
|
|
9
14
|
}
|
|
15
|
+
|
|
16
|
+
NS_ASSUME_NONNULL_END
|
|
17
|
+
// LCOV_EXCL_STOP
|
|
@@ -60,6 +60,11 @@ typedef int(RegisterMethodMappingFunctionType)(
|
|
|
60
60
|
PyObject* _Nonnull const* _Nonnull, size_t),
|
|
61
61
|
IMP _Nullable (*_Nonnull)(PyObject* _Nonnull, PyObject* _Nonnull));
|
|
62
62
|
|
|
63
|
+
#ifndef PyObjC_FUNCTION_CALL_H
|
|
64
|
+
typedef PyObject* _Nullable (*PyObjC_FunctionCallFunc)(
|
|
65
|
+
PyObject* meth, PyObject* _Nonnull const* _Nonnull args, size_t nargs);
|
|
66
|
+
#endif
|
|
67
|
+
|
|
63
68
|
struct pyobjc_api {
|
|
64
69
|
int api_version; /* API version */
|
|
65
70
|
size_t struct_len; /* Length of this struct */
|
|
@@ -117,6 +122,9 @@ struct pyobjc_api {
|
|
|
117
122
|
|
|
118
123
|
PyObject* _Nullable (*_Nonnull createopaquepointertype)(const char*, const char*,
|
|
119
124
|
const char*);
|
|
125
|
+
int (*_Nonnull register_functioncaller)(void*, PyObjC_FunctionCallFunc);
|
|
126
|
+
PyObject* _Nullable (*_Nonnull create_registered_struct)(
|
|
127
|
+
const char*, Py_ssize_t, const char* _Nonnull* _Nullable, Py_ssize_t*);
|
|
120
128
|
};
|
|
121
129
|
|
|
122
130
|
#ifndef PYOBJC_BUILD
|
|
@@ -159,6 +167,8 @@ static struct pyobjc_api* PyObjC_API;
|
|
|
159
167
|
#define PyObjC_CheckArgCount (PyObjC_API->checkargcount)
|
|
160
168
|
#define PyObjC_CheckNoKwnames (PyObjC_API->checknokwnames)
|
|
161
169
|
#define PyObjCCreateOpaquePointerType (PyObjC_API->createopaquepointertype)
|
|
170
|
+
#define PyObjCRegister_FunctionCaller (PyObjC_API->register_functioncaller)
|
|
171
|
+
#define PyObjC_CreateRegisteredStruct (PyObjC_API->create_registered_struct)
|
|
162
172
|
|
|
163
173
|
typedef void (*PyObjC_Function_Pointer)(void);
|
|
164
174
|
typedef struct PyObjC_function_map {
|
|
@@ -178,21 +188,25 @@ static inline int
|
|
|
178
188
|
PyObjC_ImportAPI(PyObject* calling_module)
|
|
179
189
|
{
|
|
180
190
|
PyObjC_API = (struct pyobjc_api*)PyCapsule_Import("objc." PYOBJC_API_NAME, 0);
|
|
181
|
-
if (PyObjC_API == NULL) {
|
|
182
|
-
return -1;
|
|
191
|
+
if (PyObjC_API == NULL) { // LCOV_BR_EXCL_LINE
|
|
192
|
+
return -1; // LCOV_EXCL_LINE
|
|
183
193
|
}
|
|
184
|
-
if (PyObjC_API->api_version != PYOBJC_API_VERSION) {
|
|
194
|
+
if (PyObjC_API->api_version != PYOBJC_API_VERSION) { // LCOV_BR_EXCL_LINE
|
|
195
|
+
// LCOV_EXCL_START
|
|
185
196
|
PyErr_Format(PyExc_RuntimeError,
|
|
186
197
|
"Wrong version of PyObjC C API (got %d, expected %d)",
|
|
187
198
|
(int)PyObjC_API->api_version, (int)PYOBJC_API_VERSION);
|
|
188
199
|
return -1;
|
|
200
|
+
// LCOV_EXCL_STOP
|
|
189
201
|
}
|
|
190
202
|
|
|
191
|
-
if (PyObjC_API->struct_len < PyObjC_EXPECTED_STRUCT_SIZE) {
|
|
203
|
+
if (PyObjC_API->struct_len < PyObjC_EXPECTED_STRUCT_SIZE) { // LCOV_EXCL_LINE
|
|
204
|
+
// LCOV_EXCL_START
|
|
192
205
|
PyErr_Format(PyExc_RuntimeError,
|
|
193
206
|
"Wrong struct-size of PyObjC C API (got %d, expected %d)",
|
|
194
207
|
(int)PyObjC_API->struct_len, (int)sizeof(struct pyobjc_api));
|
|
195
208
|
return -1;
|
|
209
|
+
// LCOV_EXCL_STOP
|
|
196
210
|
}
|
|
197
211
|
|
|
198
212
|
/* Current pyobjc implementation doesn't allow deregistering
|
{pyobjc_framework_metrickit-12.2.1 → pyobjc_framework_metrickit-13.0}/Modules/pyobjc-compat.h
RENAMED
|
@@ -167,24 +167,6 @@ _PyObjCTuple_GetItem(PyObject* tuple, Py_ssize_t idx)
|
|
|
167
167
|
PyGILState_Release(_GILState); \
|
|
168
168
|
} while (0)
|
|
169
169
|
|
|
170
|
-
#if PY_VERSION_HEX < 0x030a0000
|
|
171
|
-
|
|
172
|
-
static inline PyObject*
|
|
173
|
-
Py_NewRef(PyObject* o)
|
|
174
|
-
{
|
|
175
|
-
Py_INCREF(o);
|
|
176
|
-
return o;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
static inline PyObject*
|
|
180
|
-
Py_XNewRef(PyObject* o)
|
|
181
|
-
{
|
|
182
|
-
Py_XINCREF(o);
|
|
183
|
-
return o;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
#endif /* PY_VERSION_HEX < 0x030a0000 */
|
|
187
|
-
|
|
188
170
|
#if PY_VERSION_HEX < 0x030d0000
|
|
189
171
|
#define Py_BEGIN_CRITICAL_SECTION(value) \
|
|
190
172
|
{ \
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyobjc-framework-MetricKit
|
|
3
|
-
Version:
|
|
3
|
+
Version: 13.0
|
|
4
4
|
Summary: Wrappers for the framework MetricKit 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.0
|
|
34
|
+
Requires-Dist: pyobjc-framework-Cocoa>=13.0
|
|
35
35
|
Dynamic: author
|
|
36
36
|
Dynamic: author-email
|
|
37
37
|
Dynamic: classifier
|
|
@@ -6,12 +6,12 @@ class TestMXMetricManager(TestCase):
|
|
|
6
6
|
def test_classes(self):
|
|
7
7
|
MetricKit.MXMetricManager
|
|
8
8
|
|
|
9
|
-
def
|
|
9
|
+
def test_enums(self):
|
|
10
10
|
self.assertIsTypedEnum(MetricKit.MXLaunchTaskID, str)
|
|
11
11
|
|
|
12
12
|
@min_sdk_level("12.0")
|
|
13
|
-
def
|
|
14
|
-
self.assertProtocolExists("MXMetricManagerSubscriber")
|
|
13
|
+
def test_protocols(self):
|
|
14
|
+
self.assertProtocolExists("MXMetricManagerSubscriber", MetricKit)
|
|
15
15
|
|
|
16
16
|
@min_os_level("12.0")
|
|
17
17
|
def test_methods(self):
|
|
@@ -11,7 +11,7 @@ class TestMXSignpost_Private(TestCase):
|
|
|
11
11
|
b"\n%{public, " + MetricKit._METRICS_SIGNPOST_TYPE_TOKEN + b"}@",
|
|
12
12
|
)
|
|
13
13
|
|
|
14
|
-
def
|
|
14
|
+
def test_functions_macros(self):
|
|
15
15
|
# These function macros use _MXSignpostMetricsSnapshot() which
|
|
16
16
|
# is not available on macOS, hence these should not be exposed:
|
|
17
17
|
# XXX: The macOS 26 SDK introduces support...
|
{pyobjc_framework_metrickit-12.2.1 → pyobjc_framework_metrickit-13.0}/metadata/MetricKit.fwinfo
RENAMED
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
// for information on how to update this file.
|
|
3
3
|
{
|
|
4
4
|
"definitions": {
|
|
5
|
-
"classes": {},
|
|
6
|
-
"formal_protocols": {},
|
|
7
5
|
"typed_enum": {
|
|
8
6
|
"MXLaunchTaskID": { "type": "@", "type_name": "NSString" }
|
|
9
7
|
},
|
|
@@ -12,12 +10,6 @@
|
|
|
12
10
|
"value": "\n%{public, signpost:metrics}@",
|
|
13
11
|
"unicode": false
|
|
14
12
|
}
|
|
15
|
-
}
|
|
16
|
-
"functions": {
|
|
17
|
-
"_MXSignpostMetricsSnapshot": {
|
|
18
|
-
"retval": {}
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
"informal_protocols": {}
|
|
13
|
+
}
|
|
22
14
|
}
|
|
23
15
|
}
|