pyobjc-framework-ScreenTime 9.1.1__tar.gz → 10.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.
Files changed (33) hide show
  1. pyobjc-framework-ScreenTime-10.0/Lib/ScreenTime/__init__.py +34 -0
  2. {pyobjc-framework-ScreenTime-9.1.1 → pyobjc-framework-ScreenTime-10.0}/Lib/ScreenTime/_metadata.py +1 -1
  3. {pyobjc-framework-ScreenTime-9.1.1 → pyobjc-framework-ScreenTime-10.0}/Lib/pyobjc_framework_ScreenTime.egg-info/PKG-INFO +5 -3
  4. {pyobjc-framework-ScreenTime-9.1.1 → pyobjc-framework-ScreenTime-10.0}/Lib/pyobjc_framework_ScreenTime.egg-info/SOURCES.txt +4 -1
  5. pyobjc-framework-ScreenTime-10.0/Lib/pyobjc_framework_ScreenTime.egg-info/requires.txt +2 -0
  6. {pyobjc-framework-ScreenTime-9.1.1 → pyobjc-framework-ScreenTime-10.0}/PKG-INFO +5 -3
  7. pyobjc-framework-ScreenTime-10.0/metadata/raw/arm64-14.0.fwinfo +449 -0
  8. pyobjc-framework-ScreenTime-10.0/metadata/raw/x86_64-14.0.fwinfo +449 -0
  9. {pyobjc-framework-ScreenTime-9.1.1 → pyobjc-framework-ScreenTime-10.0}/pyobjc_setup.py +11 -2
  10. pyobjc-framework-ScreenTime-10.0/pyproject.toml +3 -0
  11. {pyobjc-framework-ScreenTime-9.1.1 → pyobjc-framework-ScreenTime-10.0}/setup.py +8 -2
  12. pyobjc-framework-ScreenTime-9.1.1/Lib/ScreenTime/__init__.py +0 -30
  13. pyobjc-framework-ScreenTime-9.1.1/Lib/pyobjc_framework_ScreenTime.egg-info/requires.txt +0 -2
  14. {pyobjc-framework-ScreenTime-9.1.1 → pyobjc-framework-ScreenTime-10.0}/Lib/pyobjc_framework_ScreenTime.egg-info/dependency_links.txt +0 -0
  15. {pyobjc-framework-ScreenTime-9.1.1 → pyobjc-framework-ScreenTime-10.0}/Lib/pyobjc_framework_ScreenTime.egg-info/not-zip-safe +0 -0
  16. {pyobjc-framework-ScreenTime-9.1.1 → pyobjc-framework-ScreenTime-10.0}/Lib/pyobjc_framework_ScreenTime.egg-info/top_level.txt +0 -0
  17. {pyobjc-framework-ScreenTime-9.1.1 → pyobjc-framework-ScreenTime-10.0}/License.txt +0 -0
  18. {pyobjc-framework-ScreenTime-9.1.1 → pyobjc-framework-ScreenTime-10.0}/MANIFEST.in +0 -0
  19. {pyobjc-framework-ScreenTime-9.1.1 → pyobjc-framework-ScreenTime-10.0}/PyObjCTest/__init__.py +0 -0
  20. {pyobjc-framework-ScreenTime-9.1.1 → pyobjc-framework-ScreenTime-10.0}/PyObjCTest/test_screentime.py +0 -0
  21. {pyobjc-framework-ScreenTime-9.1.1 → pyobjc-framework-ScreenTime-10.0}/PyObjCTest/test_stscreentimeconfiguration.py +0 -0
  22. {pyobjc-framework-ScreenTime-9.1.1 → pyobjc-framework-ScreenTime-10.0}/PyObjCTest/test_stwebhistory.py +0 -0
  23. {pyobjc-framework-ScreenTime-9.1.1 → pyobjc-framework-ScreenTime-10.0}/PyObjCTest/test_stwebpagecontroller.py +0 -0
  24. {pyobjc-framework-ScreenTime-9.1.1 → pyobjc-framework-ScreenTime-10.0}/metadata/ScreenTime.fwinfo +0 -0
  25. {pyobjc-framework-ScreenTime-9.1.1 → pyobjc-framework-ScreenTime-10.0}/metadata/metadata.ini +0 -0
  26. {pyobjc-framework-ScreenTime-9.1.1 → pyobjc-framework-ScreenTime-10.0}/metadata/raw/arm64-12.0.fwinfo +0 -0
  27. {pyobjc-framework-ScreenTime-9.1.1 → pyobjc-framework-ScreenTime-10.0}/metadata/raw/arm64-12.3.fwinfo +0 -0
  28. {pyobjc-framework-ScreenTime-9.1.1 → pyobjc-framework-ScreenTime-10.0}/metadata/raw/arm64-13.3.fwinfo +0 -0
  29. {pyobjc-framework-ScreenTime-9.1.1 → pyobjc-framework-ScreenTime-10.0}/metadata/raw/x86_64-10.16.fwinfo +0 -0
  30. {pyobjc-framework-ScreenTime-9.1.1 → pyobjc-framework-ScreenTime-10.0}/metadata/raw/x86_64-12.0.fwinfo +0 -0
  31. {pyobjc-framework-ScreenTime-9.1.1 → pyobjc-framework-ScreenTime-10.0}/metadata/raw/x86_64-12.3.fwinfo +0 -0
  32. {pyobjc-framework-ScreenTime-9.1.1 → pyobjc-framework-ScreenTime-10.0}/metadata/raw/x86_64-13.3.fwinfo +0 -0
  33. {pyobjc-framework-ScreenTime-9.1.1 → pyobjc-framework-ScreenTime-10.0}/setup.cfg +0 -0
@@ -0,0 +1,34 @@
1
+ """
2
+ Python mapping for the ScreenTime framework.
3
+
4
+ This module does not contain docstrings for the wrapped code, check Apple's
5
+ documentation for details on how to use these functions and classes.
6
+ """
7
+
8
+
9
+ def _setup():
10
+ import sys
11
+
12
+ import Foundation
13
+ import objc
14
+ from . import _metadata
15
+
16
+ dir_func, getattr_func = objc.createFrameworkDirAndGetattr(
17
+ name="ScreenTime",
18
+ frameworkIdentifier="com.apple.ScreenTime",
19
+ frameworkPath=objc.pathForFramework(
20
+ "/System/Library/Frameworks/ScreenTime.framework"
21
+ ),
22
+ globals_dict=globals(),
23
+ inline_list=None,
24
+ parents=(Foundation,),
25
+ metadict=_metadata.__dict__,
26
+ )
27
+
28
+ globals()["__dir__"] = dir_func
29
+ globals()["__getattr__"] = getattr_func
30
+
31
+ del sys.modules["ScreenTime._metadata"]
32
+
33
+
34
+ globals().pop("_setup")()
@@ -1,6 +1,6 @@
1
1
  # This file is generated by objective.metadata
2
2
  #
3
- # Last update: Sat Feb 18 13:01:48 2023
3
+ # Last update: Sat Jul 1 14:08:18 2023
4
4
  #
5
5
  # flake8: noqa
6
6
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyobjc-framework-ScreenTime
3
- Version: 9.1.1
3
+ Version: 10.0
4
4
  Summary: Wrappers for the framework ScreenTime on macOS
5
5
  Home-page: https://github.com/ronaldoussoren/pyobjc
6
6
  Author: Ronald Oussoren
@@ -18,17 +18,19 @@ Classifier: Operating System :: MacOS :: MacOS X
18
18
  Classifier: Programming Language :: Python
19
19
  Classifier: Programming Language :: Python :: 3
20
20
  Classifier: Programming Language :: Python :: 3 :: Only
21
- Classifier: Programming Language :: Python :: 3.7
22
21
  Classifier: Programming Language :: Python :: 3.8
23
22
  Classifier: Programming Language :: Python :: 3.9
24
23
  Classifier: Programming Language :: Python :: 3.10
25
24
  Classifier: Programming Language :: Python :: 3.11
25
+ Classifier: Programming Language :: Python :: 3.12
26
26
  Classifier: Programming Language :: Python :: Implementation :: CPython
27
27
  Classifier: Programming Language :: Objective C
28
28
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
29
29
  Classifier: Topic :: Software Development :: User Interfaces
30
- Requires-Python: >=3.7
30
+ Requires-Python: >=3.8
31
31
  Description-Content-Type: text/x-rst; charset=UTF-8
32
+ Requires-Dist: pyobjc-core>=10.0
33
+ Requires-Dist: pyobjc-framework-Cocoa>=10.0
32
34
  Project-URL: Documentation, https://pyobjc.readthedocs.io/en/latest/
33
35
  Project-URL: Issue tracker, https://github.com/ronaldoussoren/pyobjc/issues
34
36
  Project-URL: Repository, https://github.com/ronaldoussoren/pyobjc
@@ -1,6 +1,7 @@
1
1
  License.txt
2
2
  MANIFEST.in
3
3
  pyobjc_setup.py
4
+ pyproject.toml
4
5
  setup.py
5
6
  Lib/ScreenTime/__init__.py
6
7
  Lib/ScreenTime/_metadata.py
@@ -20,7 +21,9 @@ metadata/metadata.ini
20
21
  metadata/raw/arm64-12.0.fwinfo
21
22
  metadata/raw/arm64-12.3.fwinfo
22
23
  metadata/raw/arm64-13.3.fwinfo
24
+ metadata/raw/arm64-14.0.fwinfo
23
25
  metadata/raw/x86_64-10.16.fwinfo
24
26
  metadata/raw/x86_64-12.0.fwinfo
25
27
  metadata/raw/x86_64-12.3.fwinfo
26
- metadata/raw/x86_64-13.3.fwinfo
28
+ metadata/raw/x86_64-13.3.fwinfo
29
+ metadata/raw/x86_64-14.0.fwinfo
@@ -0,0 +1,2 @@
1
+ pyobjc-core>=10.0
2
+ pyobjc-framework-Cocoa>=10.0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyobjc-framework-ScreenTime
3
- Version: 9.1.1
3
+ Version: 10.0
4
4
  Summary: Wrappers for the framework ScreenTime on macOS
5
5
  Home-page: https://github.com/ronaldoussoren/pyobjc
6
6
  Author: Ronald Oussoren
@@ -18,17 +18,19 @@ Classifier: Operating System :: MacOS :: MacOS X
18
18
  Classifier: Programming Language :: Python
19
19
  Classifier: Programming Language :: Python :: 3
20
20
  Classifier: Programming Language :: Python :: 3 :: Only
21
- Classifier: Programming Language :: Python :: 3.7
22
21
  Classifier: Programming Language :: Python :: 3.8
23
22
  Classifier: Programming Language :: Python :: 3.9
24
23
  Classifier: Programming Language :: Python :: 3.10
25
24
  Classifier: Programming Language :: Python :: 3.11
25
+ Classifier: Programming Language :: Python :: 3.12
26
26
  Classifier: Programming Language :: Python :: Implementation :: CPython
27
27
  Classifier: Programming Language :: Objective C
28
28
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
29
29
  Classifier: Topic :: Software Development :: User Interfaces
30
- Requires-Python: >=3.7
30
+ Requires-Python: >=3.8
31
31
  Description-Content-Type: text/x-rst; charset=UTF-8
32
+ Requires-Dist: pyobjc-core>=10.0
33
+ Requires-Dist: pyobjc-framework-Cocoa>=10.0
32
34
 
33
35
 
34
36
  Wrappers for the "ScreenTime" framework on macOS.
@@ -0,0 +1,449 @@
1
+ // GENERATED FILE DO NOT EDIT
2
+ //
3
+ // This file was generated by objective.metadata
4
+ // Last update: Sat Jul 1 14:08:17 2023
5
+ {
6
+ "arch": "arm64",
7
+ "definitions": {
8
+ "aliases": {},
9
+ "called_definitions": {},
10
+ "cftypes": {},
11
+ "classes": {
12
+ "STScreenTimeConfiguration": {
13
+ "categories": [],
14
+ "methods": [
15
+ {
16
+ "args": [],
17
+ "class_method": false,
18
+ "retval": {
19
+ "typestr": "@",
20
+ "typestr_special": false
21
+ },
22
+ "selector": "init",
23
+ "visibility": "public"
24
+ },
25
+ {
26
+ "args": [],
27
+ "class_method": true,
28
+ "retval": {
29
+ "typestr": "@",
30
+ "typestr_special": false
31
+ },
32
+ "selector": "new",
33
+ "visibility": "public"
34
+ },
35
+ {
36
+ "args": [],
37
+ "class_method": false,
38
+ "retval": {
39
+ "typestr": "Z",
40
+ "typestr_special": true
41
+ },
42
+ "selector": "enforcesChildRestrictions",
43
+ "visibility": "public"
44
+ }
45
+ ],
46
+ "name": "STScreenTimeConfiguration",
47
+ "properties": [
48
+ {
49
+ "attributes": [
50
+ "readonly"
51
+ ],
52
+ "name": "enforcesChildRestrictions",
53
+ "typestr": "Z",
54
+ "typestr_special": true
55
+ }
56
+ ],
57
+ "protocols": [],
58
+ "super": "NSObject"
59
+ },
60
+ "STScreenTimeConfigurationObserver": {
61
+ "categories": [],
62
+ "methods": [
63
+ {
64
+ "args": [
65
+ {
66
+ "typestr": "@",
67
+ "typestr_special": false
68
+ }
69
+ ],
70
+ "class_method": false,
71
+ "retval": {
72
+ "typestr": "@",
73
+ "typestr_special": false
74
+ },
75
+ "selector": "initWithUpdateQueue:",
76
+ "visibility": "public"
77
+ },
78
+ {
79
+ "args": [],
80
+ "class_method": false,
81
+ "retval": {
82
+ "typestr": "v",
83
+ "typestr_special": false
84
+ },
85
+ "selector": "startObserving",
86
+ "visibility": "public"
87
+ },
88
+ {
89
+ "args": [],
90
+ "class_method": false,
91
+ "retval": {
92
+ "typestr": "v",
93
+ "typestr_special": false
94
+ },
95
+ "selector": "stopObserving",
96
+ "visibility": "public"
97
+ },
98
+ {
99
+ "args": [],
100
+ "class_method": false,
101
+ "retval": {
102
+ "typestr": "@",
103
+ "typestr_special": false
104
+ },
105
+ "selector": "init",
106
+ "visibility": "public"
107
+ },
108
+ {
109
+ "args": [],
110
+ "class_method": true,
111
+ "retval": {
112
+ "typestr": "@",
113
+ "typestr_special": false
114
+ },
115
+ "selector": "new",
116
+ "visibility": "public"
117
+ },
118
+ {
119
+ "args": [],
120
+ "class_method": false,
121
+ "retval": {
122
+ "typestr": "@",
123
+ "typestr_special": false
124
+ },
125
+ "selector": "configuration",
126
+ "visibility": "public"
127
+ }
128
+ ],
129
+ "name": "STScreenTimeConfigurationObserver",
130
+ "properties": [
131
+ {
132
+ "attributes": [
133
+ "readonly",
134
+ "strong"
135
+ ],
136
+ "name": "configuration",
137
+ "typestr": "@",
138
+ "typestr_special": false
139
+ }
140
+ ],
141
+ "protocols": [],
142
+ "super": "NSObject"
143
+ },
144
+ "STWebHistory": {
145
+ "categories": [],
146
+ "methods": [
147
+ {
148
+ "args": [
149
+ {
150
+ "typestr": "@",
151
+ "typestr_special": false
152
+ },
153
+ {
154
+ "type_modifier": "o",
155
+ "typestr": "^@",
156
+ "typestr_special": false
157
+ }
158
+ ],
159
+ "class_method": false,
160
+ "retval": {
161
+ "typestr": "@",
162
+ "typestr_special": false
163
+ },
164
+ "selector": "initWithBundleIdentifier:error:",
165
+ "visibility": "public"
166
+ },
167
+ {
168
+ "args": [
169
+ {
170
+ "typestr": "@",
171
+ "typestr_special": false
172
+ }
173
+ ],
174
+ "class_method": false,
175
+ "retval": {
176
+ "typestr": "v",
177
+ "typestr_special": false
178
+ },
179
+ "selector": "deleteHistoryForURL:",
180
+ "visibility": "public"
181
+ },
182
+ {
183
+ "args": [
184
+ {
185
+ "typestr": "@",
186
+ "typestr_special": false
187
+ }
188
+ ],
189
+ "class_method": false,
190
+ "retval": {
191
+ "typestr": "v",
192
+ "typestr_special": false
193
+ },
194
+ "selector": "deleteHistoryDuringInterval:",
195
+ "visibility": "public"
196
+ },
197
+ {
198
+ "args": [],
199
+ "class_method": false,
200
+ "retval": {
201
+ "typestr": "v",
202
+ "typestr_special": false
203
+ },
204
+ "selector": "deleteAllHistory",
205
+ "visibility": "public"
206
+ }
207
+ ],
208
+ "name": "STWebHistory",
209
+ "properties": [],
210
+ "protocols": [],
211
+ "super": "NSObject"
212
+ },
213
+ "STWebpageController": {
214
+ "categories": [],
215
+ "methods": [
216
+ {
217
+ "args": [
218
+ {
219
+ "typestr": "@",
220
+ "typestr_special": false
221
+ },
222
+ {
223
+ "type_modifier": "o",
224
+ "typestr": "^@",
225
+ "typestr_special": false
226
+ }
227
+ ],
228
+ "class_method": false,
229
+ "retval": {
230
+ "typestr": "Z",
231
+ "typestr_special": true
232
+ },
233
+ "selector": "setBundleIdentifier:error:",
234
+ "visibility": "public"
235
+ },
236
+ {
237
+ "args": [
238
+ {
239
+ "typestr": "@",
240
+ "typestr_special": false
241
+ },
242
+ {
243
+ "typestr": "@",
244
+ "typestr_special": false
245
+ }
246
+ ],
247
+ "class_method": false,
248
+ "retval": {
249
+ "typestr": "@",
250
+ "typestr_special": false
251
+ },
252
+ "selector": "initWithNibName:bundle:",
253
+ "visibility": "public"
254
+ },
255
+ {
256
+ "args": [
257
+ {
258
+ "typestr": "@",
259
+ "typestr_special": false
260
+ }
261
+ ],
262
+ "class_method": false,
263
+ "retval": {
264
+ "typestr": "@",
265
+ "typestr_special": false
266
+ },
267
+ "selector": "initWithCoder:",
268
+ "visibility": "public"
269
+ },
270
+ {
271
+ "args": [],
272
+ "class_method": false,
273
+ "retval": {
274
+ "typestr": "Z",
275
+ "typestr_special": true
276
+ },
277
+ "selector": "suppressUsageRecording",
278
+ "visibility": "public"
279
+ },
280
+ {
281
+ "args": [
282
+ {
283
+ "typestr": "Z",
284
+ "typestr_special": true
285
+ }
286
+ ],
287
+ "class_method": false,
288
+ "retval": {
289
+ "typestr": "v",
290
+ "typestr_special": false
291
+ },
292
+ "selector": "setSuppressUsageRecording:",
293
+ "visibility": "public"
294
+ },
295
+ {
296
+ "args": [],
297
+ "class_method": false,
298
+ "retval": {
299
+ "typestr": "@",
300
+ "typestr_special": false
301
+ },
302
+ "selector": "URL",
303
+ "visibility": "public"
304
+ },
305
+ {
306
+ "args": [
307
+ {
308
+ "typestr": "@",
309
+ "typestr_special": false
310
+ }
311
+ ],
312
+ "class_method": false,
313
+ "retval": {
314
+ "typestr": "v",
315
+ "typestr_special": false
316
+ },
317
+ "selector": "setURL:",
318
+ "visibility": "public"
319
+ },
320
+ {
321
+ "args": [],
322
+ "class_method": false,
323
+ "retval": {
324
+ "typestr": "Z",
325
+ "typestr_special": true
326
+ },
327
+ "selector": "URLIsPlayingVideo",
328
+ "visibility": "public"
329
+ },
330
+ {
331
+ "args": [
332
+ {
333
+ "typestr": "Z",
334
+ "typestr_special": true
335
+ }
336
+ ],
337
+ "class_method": false,
338
+ "retval": {
339
+ "typestr": "v",
340
+ "typestr_special": false
341
+ },
342
+ "selector": "setURLIsPlayingVideo:",
343
+ "visibility": "public"
344
+ },
345
+ {
346
+ "args": [],
347
+ "class_method": false,
348
+ "retval": {
349
+ "typestr": "Z",
350
+ "typestr_special": true
351
+ },
352
+ "selector": "URLIsPictureInPicture",
353
+ "visibility": "public"
354
+ },
355
+ {
356
+ "args": [
357
+ {
358
+ "typestr": "Z",
359
+ "typestr_special": true
360
+ }
361
+ ],
362
+ "class_method": false,
363
+ "retval": {
364
+ "typestr": "v",
365
+ "typestr_special": false
366
+ },
367
+ "selector": "setURLIsPictureInPicture:",
368
+ "visibility": "public"
369
+ },
370
+ {
371
+ "args": [],
372
+ "class_method": false,
373
+ "retval": {
374
+ "typestr": "Z",
375
+ "typestr_special": true
376
+ },
377
+ "selector": "URLIsBlocked",
378
+ "visibility": "public"
379
+ }
380
+ ],
381
+ "name": "STWebpageController",
382
+ "properties": [
383
+ {
384
+ "attributes": [
385
+ "nonatomic"
386
+ ],
387
+ "name": "suppressUsageRecording",
388
+ "typestr": "Z",
389
+ "typestr_special": true
390
+ },
391
+ {
392
+ "attributes": [
393
+ "copy",
394
+ "nonatomic"
395
+ ],
396
+ "name": "URL",
397
+ "typestr": "@",
398
+ "typestr_special": false
399
+ },
400
+ {
401
+ "attributes": [
402
+ "nonatomic"
403
+ ],
404
+ "name": "URLIsPlayingVideo",
405
+ "typestr": "Z",
406
+ "typestr_special": true
407
+ },
408
+ {
409
+ "attributes": [
410
+ "nonatomic"
411
+ ],
412
+ "name": "URLIsPictureInPicture",
413
+ "typestr": "Z",
414
+ "typestr_special": true
415
+ },
416
+ {
417
+ "attributes": [
418
+ "readonly"
419
+ ],
420
+ "name": "URLIsBlocked",
421
+ "typestr": "Z",
422
+ "typestr_special": true
423
+ }
424
+ ],
425
+ "protocols": [],
426
+ "super": "NSViewController"
427
+ }
428
+ },
429
+ "enum": {},
430
+ "enum_type": {},
431
+ "expressions": {},
432
+ "externs": {},
433
+ "formal_protocols": {},
434
+ "func_macros": {},
435
+ "functions": {},
436
+ "informal_protocols": {},
437
+ "literals": {},
438
+ "structs": {},
439
+ "typedefs": {}
440
+ },
441
+ "framework": "ScreenTime",
442
+ "headers": [
443
+ "STScreenTimeConfiguration.h",
444
+ "STWebHistory.h",
445
+ "STWebpageController.h"
446
+ ],
447
+ "release": "10.16",
448
+ "sdk": "/Users/ronald/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk"
449
+ }
@@ -0,0 +1,449 @@
1
+ // GENERATED FILE DO NOT EDIT
2
+ //
3
+ // This file was generated by objective.metadata
4
+ // Last update: Sat Jul 1 14:08:15 2023
5
+ {
6
+ "arch": "x86_64",
7
+ "definitions": {
8
+ "aliases": {},
9
+ "called_definitions": {},
10
+ "cftypes": {},
11
+ "classes": {
12
+ "STScreenTimeConfiguration": {
13
+ "categories": [],
14
+ "methods": [
15
+ {
16
+ "args": [],
17
+ "class_method": false,
18
+ "retval": {
19
+ "typestr": "@",
20
+ "typestr_special": false
21
+ },
22
+ "selector": "init",
23
+ "visibility": "public"
24
+ },
25
+ {
26
+ "args": [],
27
+ "class_method": true,
28
+ "retval": {
29
+ "typestr": "@",
30
+ "typestr_special": false
31
+ },
32
+ "selector": "new",
33
+ "visibility": "public"
34
+ },
35
+ {
36
+ "args": [],
37
+ "class_method": false,
38
+ "retval": {
39
+ "typestr": "Z",
40
+ "typestr_special": true
41
+ },
42
+ "selector": "enforcesChildRestrictions",
43
+ "visibility": "public"
44
+ }
45
+ ],
46
+ "name": "STScreenTimeConfiguration",
47
+ "properties": [
48
+ {
49
+ "attributes": [
50
+ "readonly"
51
+ ],
52
+ "name": "enforcesChildRestrictions",
53
+ "typestr": "Z",
54
+ "typestr_special": true
55
+ }
56
+ ],
57
+ "protocols": [],
58
+ "super": "NSObject"
59
+ },
60
+ "STScreenTimeConfigurationObserver": {
61
+ "categories": [],
62
+ "methods": [
63
+ {
64
+ "args": [
65
+ {
66
+ "typestr": "@",
67
+ "typestr_special": false
68
+ }
69
+ ],
70
+ "class_method": false,
71
+ "retval": {
72
+ "typestr": "@",
73
+ "typestr_special": false
74
+ },
75
+ "selector": "initWithUpdateQueue:",
76
+ "visibility": "public"
77
+ },
78
+ {
79
+ "args": [],
80
+ "class_method": false,
81
+ "retval": {
82
+ "typestr": "v",
83
+ "typestr_special": false
84
+ },
85
+ "selector": "startObserving",
86
+ "visibility": "public"
87
+ },
88
+ {
89
+ "args": [],
90
+ "class_method": false,
91
+ "retval": {
92
+ "typestr": "v",
93
+ "typestr_special": false
94
+ },
95
+ "selector": "stopObserving",
96
+ "visibility": "public"
97
+ },
98
+ {
99
+ "args": [],
100
+ "class_method": false,
101
+ "retval": {
102
+ "typestr": "@",
103
+ "typestr_special": false
104
+ },
105
+ "selector": "init",
106
+ "visibility": "public"
107
+ },
108
+ {
109
+ "args": [],
110
+ "class_method": true,
111
+ "retval": {
112
+ "typestr": "@",
113
+ "typestr_special": false
114
+ },
115
+ "selector": "new",
116
+ "visibility": "public"
117
+ },
118
+ {
119
+ "args": [],
120
+ "class_method": false,
121
+ "retval": {
122
+ "typestr": "@",
123
+ "typestr_special": false
124
+ },
125
+ "selector": "configuration",
126
+ "visibility": "public"
127
+ }
128
+ ],
129
+ "name": "STScreenTimeConfigurationObserver",
130
+ "properties": [
131
+ {
132
+ "attributes": [
133
+ "readonly",
134
+ "strong"
135
+ ],
136
+ "name": "configuration",
137
+ "typestr": "@",
138
+ "typestr_special": false
139
+ }
140
+ ],
141
+ "protocols": [],
142
+ "super": "NSObject"
143
+ },
144
+ "STWebHistory": {
145
+ "categories": [],
146
+ "methods": [
147
+ {
148
+ "args": [
149
+ {
150
+ "typestr": "@",
151
+ "typestr_special": false
152
+ },
153
+ {
154
+ "type_modifier": "o",
155
+ "typestr": "^@",
156
+ "typestr_special": false
157
+ }
158
+ ],
159
+ "class_method": false,
160
+ "retval": {
161
+ "typestr": "@",
162
+ "typestr_special": false
163
+ },
164
+ "selector": "initWithBundleIdentifier:error:",
165
+ "visibility": "public"
166
+ },
167
+ {
168
+ "args": [
169
+ {
170
+ "typestr": "@",
171
+ "typestr_special": false
172
+ }
173
+ ],
174
+ "class_method": false,
175
+ "retval": {
176
+ "typestr": "v",
177
+ "typestr_special": false
178
+ },
179
+ "selector": "deleteHistoryForURL:",
180
+ "visibility": "public"
181
+ },
182
+ {
183
+ "args": [
184
+ {
185
+ "typestr": "@",
186
+ "typestr_special": false
187
+ }
188
+ ],
189
+ "class_method": false,
190
+ "retval": {
191
+ "typestr": "v",
192
+ "typestr_special": false
193
+ },
194
+ "selector": "deleteHistoryDuringInterval:",
195
+ "visibility": "public"
196
+ },
197
+ {
198
+ "args": [],
199
+ "class_method": false,
200
+ "retval": {
201
+ "typestr": "v",
202
+ "typestr_special": false
203
+ },
204
+ "selector": "deleteAllHistory",
205
+ "visibility": "public"
206
+ }
207
+ ],
208
+ "name": "STWebHistory",
209
+ "properties": [],
210
+ "protocols": [],
211
+ "super": "NSObject"
212
+ },
213
+ "STWebpageController": {
214
+ "categories": [],
215
+ "methods": [
216
+ {
217
+ "args": [
218
+ {
219
+ "typestr": "@",
220
+ "typestr_special": false
221
+ },
222
+ {
223
+ "type_modifier": "o",
224
+ "typestr": "^@",
225
+ "typestr_special": false
226
+ }
227
+ ],
228
+ "class_method": false,
229
+ "retval": {
230
+ "typestr": "Z",
231
+ "typestr_special": true
232
+ },
233
+ "selector": "setBundleIdentifier:error:",
234
+ "visibility": "public"
235
+ },
236
+ {
237
+ "args": [
238
+ {
239
+ "typestr": "@",
240
+ "typestr_special": false
241
+ },
242
+ {
243
+ "typestr": "@",
244
+ "typestr_special": false
245
+ }
246
+ ],
247
+ "class_method": false,
248
+ "retval": {
249
+ "typestr": "@",
250
+ "typestr_special": false
251
+ },
252
+ "selector": "initWithNibName:bundle:",
253
+ "visibility": "public"
254
+ },
255
+ {
256
+ "args": [
257
+ {
258
+ "typestr": "@",
259
+ "typestr_special": false
260
+ }
261
+ ],
262
+ "class_method": false,
263
+ "retval": {
264
+ "typestr": "@",
265
+ "typestr_special": false
266
+ },
267
+ "selector": "initWithCoder:",
268
+ "visibility": "public"
269
+ },
270
+ {
271
+ "args": [],
272
+ "class_method": false,
273
+ "retval": {
274
+ "typestr": "Z",
275
+ "typestr_special": true
276
+ },
277
+ "selector": "suppressUsageRecording",
278
+ "visibility": "public"
279
+ },
280
+ {
281
+ "args": [
282
+ {
283
+ "typestr": "Z",
284
+ "typestr_special": true
285
+ }
286
+ ],
287
+ "class_method": false,
288
+ "retval": {
289
+ "typestr": "v",
290
+ "typestr_special": false
291
+ },
292
+ "selector": "setSuppressUsageRecording:",
293
+ "visibility": "public"
294
+ },
295
+ {
296
+ "args": [],
297
+ "class_method": false,
298
+ "retval": {
299
+ "typestr": "@",
300
+ "typestr_special": false
301
+ },
302
+ "selector": "URL",
303
+ "visibility": "public"
304
+ },
305
+ {
306
+ "args": [
307
+ {
308
+ "typestr": "@",
309
+ "typestr_special": false
310
+ }
311
+ ],
312
+ "class_method": false,
313
+ "retval": {
314
+ "typestr": "v",
315
+ "typestr_special": false
316
+ },
317
+ "selector": "setURL:",
318
+ "visibility": "public"
319
+ },
320
+ {
321
+ "args": [],
322
+ "class_method": false,
323
+ "retval": {
324
+ "typestr": "Z",
325
+ "typestr_special": true
326
+ },
327
+ "selector": "URLIsPlayingVideo",
328
+ "visibility": "public"
329
+ },
330
+ {
331
+ "args": [
332
+ {
333
+ "typestr": "Z",
334
+ "typestr_special": true
335
+ }
336
+ ],
337
+ "class_method": false,
338
+ "retval": {
339
+ "typestr": "v",
340
+ "typestr_special": false
341
+ },
342
+ "selector": "setURLIsPlayingVideo:",
343
+ "visibility": "public"
344
+ },
345
+ {
346
+ "args": [],
347
+ "class_method": false,
348
+ "retval": {
349
+ "typestr": "Z",
350
+ "typestr_special": true
351
+ },
352
+ "selector": "URLIsPictureInPicture",
353
+ "visibility": "public"
354
+ },
355
+ {
356
+ "args": [
357
+ {
358
+ "typestr": "Z",
359
+ "typestr_special": true
360
+ }
361
+ ],
362
+ "class_method": false,
363
+ "retval": {
364
+ "typestr": "v",
365
+ "typestr_special": false
366
+ },
367
+ "selector": "setURLIsPictureInPicture:",
368
+ "visibility": "public"
369
+ },
370
+ {
371
+ "args": [],
372
+ "class_method": false,
373
+ "retval": {
374
+ "typestr": "Z",
375
+ "typestr_special": true
376
+ },
377
+ "selector": "URLIsBlocked",
378
+ "visibility": "public"
379
+ }
380
+ ],
381
+ "name": "STWebpageController",
382
+ "properties": [
383
+ {
384
+ "attributes": [
385
+ "nonatomic"
386
+ ],
387
+ "name": "suppressUsageRecording",
388
+ "typestr": "Z",
389
+ "typestr_special": true
390
+ },
391
+ {
392
+ "attributes": [
393
+ "copy",
394
+ "nonatomic"
395
+ ],
396
+ "name": "URL",
397
+ "typestr": "@",
398
+ "typestr_special": false
399
+ },
400
+ {
401
+ "attributes": [
402
+ "nonatomic"
403
+ ],
404
+ "name": "URLIsPlayingVideo",
405
+ "typestr": "Z",
406
+ "typestr_special": true
407
+ },
408
+ {
409
+ "attributes": [
410
+ "nonatomic"
411
+ ],
412
+ "name": "URLIsPictureInPicture",
413
+ "typestr": "Z",
414
+ "typestr_special": true
415
+ },
416
+ {
417
+ "attributes": [
418
+ "readonly"
419
+ ],
420
+ "name": "URLIsBlocked",
421
+ "typestr": "Z",
422
+ "typestr_special": true
423
+ }
424
+ ],
425
+ "protocols": [],
426
+ "super": "NSViewController"
427
+ }
428
+ },
429
+ "enum": {},
430
+ "enum_type": {},
431
+ "expressions": {},
432
+ "externs": {},
433
+ "formal_protocols": {},
434
+ "func_macros": {},
435
+ "functions": {},
436
+ "informal_protocols": {},
437
+ "literals": {},
438
+ "structs": {},
439
+ "typedefs": {}
440
+ },
441
+ "framework": "ScreenTime",
442
+ "headers": [
443
+ "STScreenTimeConfiguration.h",
444
+ "STWebHistory.h",
445
+ "STWebpageController.h"
446
+ ],
447
+ "release": "10.16",
448
+ "sdk": "/Users/ronald/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk"
449
+ }
@@ -208,11 +208,11 @@ Operating System :: MacOS :: MacOS X
208
208
  Programming Language :: Python
209
209
  Programming Language :: Python :: 3
210
210
  Programming Language :: Python :: 3 :: Only
211
- Programming Language :: Python :: 3.7
212
211
  Programming Language :: Python :: 3.8
213
212
  Programming Language :: Python :: 3.9
214
213
  Programming Language :: Python :: 3.10
215
214
  Programming Language :: Python :: 3.11
215
+ Programming Language :: Python :: 3.12
216
216
  Programming Language :: Python :: Implementation :: CPython
217
217
  Programming Language :: Objective C
218
218
  Topic :: Software Development :: Libraries :: Python Modules
@@ -510,6 +510,15 @@ def Extension(*args, **kwds):
510
510
  % (tuple(map(int, os_level.split(".")[:2])))
511
511
  )
512
512
 
513
+ # XCode 15 has a bug w.r.t. weak linking for older macOS versions,
514
+ # fall back to older linker when using that compiler.
515
+ # XXX: This should be in _fixup_compiler but doesn't work there...
516
+ lines = subprocess.check_output(["xcodebuild", "-version"], text=True).splitlines()
517
+ if lines[0].startswith("Xcode"):
518
+ xcode_vers = int(lines[0].split()[-1].split(".")[0])
519
+ if xcode_vers >= 15:
520
+ ldflags.append("-Wl,-ld_classic")
521
+
513
522
  if os_level == "10.4":
514
523
  cflags.append("-DNO_OBJC2_RUNTIME")
515
524
 
@@ -661,7 +670,7 @@ def setup(min_os_level=None, max_os_level=None, cmdclass=None, **kwds):
661
670
  zip_safe=False,
662
671
  license="MIT License",
663
672
  classifiers=CLASSIFIERS,
664
- python_requires=">=3.7",
673
+ python_requires=">=3.8",
665
674
  keywords=["PyObjC"] + [p for p in k["packages"] if p not in ("PyObjCTools",)],
666
675
  **k,
667
676
  )
@@ -0,0 +1,3 @@
1
+ [build-system]
2
+ requires = ["setuptools", "wheel"]
3
+ build-backend = "setuptools.build_meta"
@@ -7,9 +7,15 @@ for general tips and tricks regarding the translation between Python
7
7
  and (Objective-)C frameworks
8
8
  """
9
9
 
10
- from pyobjc_setup import setup
10
+ import os
11
+ import sys
11
12
 
12
- VERSION = "9.1.1"
13
+ sys.path.insert(0, os.path.dirname(__file__))
14
+
15
+
16
+ from pyobjc_setup import setup # noqa: E402
17
+
18
+ VERSION = "10.0"
13
19
 
14
20
  setup(
15
21
  name="pyobjc-framework-ScreenTime",
@@ -1,30 +0,0 @@
1
- """
2
- Python mapping for the ScreenTime framework.
3
-
4
- This module does not contain docstrings for the wrapped code, check Apple's
5
- documentation for details on how to use these functions and classes.
6
- """
7
-
8
- import sys
9
-
10
- import Foundation
11
- import objc
12
- from ScreenTime import _metadata
13
-
14
- sys.modules["ScreenTime"] = mod = objc.ObjCLazyModule(
15
- "ScreenTime",
16
- "com.apple.ScreenTime",
17
- objc.pathForFramework("/System/Library/Frameworks/ScreenTime.framework"),
18
- _metadata.__dict__,
19
- None,
20
- {
21
- "__doc__": __doc__,
22
- "objc": objc,
23
- "__path__": __path__,
24
- "__loader__": globals().get("__loader__", None),
25
- },
26
- (Foundation,),
27
- )
28
-
29
-
30
- del sys.modules["ScreenTime._metadata"]
@@ -1,2 +0,0 @@
1
- pyobjc-core>=9.1.1
2
- pyobjc-framework-Cocoa>=9.1.1