pyobjc-framework-ThreadNetwork 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.
Files changed (26) hide show
  1. {pyobjc_framework_threadnetwork-12.2.2 → pyobjc_framework_threadnetwork-13.1}/Lib/ThreadNetwork/_metadata.py +55 -2
  2. {pyobjc_framework_threadnetwork-12.2.2 → pyobjc_framework_threadnetwork-13.1}/Lib/pyobjc_framework_ThreadNetwork.egg-info/PKG-INFO +5 -5
  3. {pyobjc_framework_threadnetwork-12.2.2 → pyobjc_framework_threadnetwork-13.1}/Lib/pyobjc_framework_ThreadNetwork.egg-info/SOURCES.txt +3 -2
  4. pyobjc_framework_threadnetwork-13.1/Lib/pyobjc_framework_ThreadNetwork.egg-info/pyobjc-build-info.txt +3 -0
  5. pyobjc_framework_threadnetwork-13.1/Lib/pyobjc_framework_ThreadNetwork.egg-info/requires.txt +2 -0
  6. {pyobjc_framework_threadnetwork-12.2.2 → pyobjc_framework_threadnetwork-13.1}/PKG-INFO +5 -5
  7. {pyobjc_framework_threadnetwork-12.2.2 → pyobjc_framework_threadnetwork-13.1}/PyObjCTest/test_thclient.py +10 -2
  8. pyobjc_framework_threadnetwork-13.1/PyObjCTest/test_thnearbynetworkcredentials.py +11 -0
  9. {pyobjc_framework_threadnetwork-12.2.2 → pyobjc_framework_threadnetwork-13.1}/PyObjCTest/test_threadnetwork.py +1 -1
  10. {pyobjc_framework_threadnetwork-12.2.2 → pyobjc_framework_threadnetwork-13.1}/metadata/ThreadNetwork.fwinfo +0 -4
  11. pyobjc_framework_threadnetwork-12.2.2/metadata/raw/arm64-26.5.fwinfo → pyobjc_framework_threadnetwork-13.1/metadata/raw/arm64-27.fwinfo +150 -4
  12. pyobjc_framework_threadnetwork-12.2.2/metadata/raw/x86_64-26.5.fwinfo → pyobjc_framework_threadnetwork-13.1/metadata/raw/x86_64-27.fwinfo +150 -4
  13. {pyobjc_framework_threadnetwork-12.2.2 → pyobjc_framework_threadnetwork-13.1}/pyobjc_setup.py +66 -8
  14. {pyobjc_framework_threadnetwork-12.2.2 → pyobjc_framework_threadnetwork-13.1}/setup.py +1 -1
  15. pyobjc_framework_threadnetwork-12.2.2/Lib/pyobjc_framework_ThreadNetwork.egg-info/pyobjc-build-info.txt +0 -3
  16. pyobjc_framework_threadnetwork-12.2.2/Lib/pyobjc_framework_ThreadNetwork.egg-info/requires.txt +0 -2
  17. {pyobjc_framework_threadnetwork-12.2.2 → pyobjc_framework_threadnetwork-13.1}/Lib/ThreadNetwork/__init__.py +0 -0
  18. {pyobjc_framework_threadnetwork-12.2.2 → pyobjc_framework_threadnetwork-13.1}/Lib/pyobjc_framework_ThreadNetwork.egg-info/dependency_links.txt +0 -0
  19. {pyobjc_framework_threadnetwork-12.2.2 → pyobjc_framework_threadnetwork-13.1}/Lib/pyobjc_framework_ThreadNetwork.egg-info/not-zip-safe +0 -0
  20. {pyobjc_framework_threadnetwork-12.2.2 → pyobjc_framework_threadnetwork-13.1}/Lib/pyobjc_framework_ThreadNetwork.egg-info/top_level.txt +0 -0
  21. {pyobjc_framework_threadnetwork-12.2.2 → pyobjc_framework_threadnetwork-13.1}/License.txt +0 -0
  22. {pyobjc_framework_threadnetwork-12.2.2 → pyobjc_framework_threadnetwork-13.1}/MANIFEST.in +0 -0
  23. {pyobjc_framework_threadnetwork-12.2.2 → pyobjc_framework_threadnetwork-13.1}/PyObjCTest/__init__.py +0 -0
  24. {pyobjc_framework_threadnetwork-12.2.2 → pyobjc_framework_threadnetwork-13.1}/metadata/metadata.ini +0 -0
  25. {pyobjc_framework_threadnetwork-12.2.2 → pyobjc_framework_threadnetwork-13.1}/pyproject.toml +0 -0
  26. {pyobjc_framework_threadnetwork-12.2.2 → pyobjc_framework_threadnetwork-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 11:59:56 2026
4
- #
5
3
  # flake8: noqa
6
4
 
7
5
  import objc, sys
@@ -66,6 +64,20 @@ try:
66
64
  }
67
65
  },
68
66
  )
67
+ r(
68
+ b"THClient",
69
+ b"enableCredentialSharingModeForExtendedPANID:completion:",
70
+ {
71
+ "arguments": {
72
+ 3: {
73
+ "callable": {
74
+ "retval": {"type": b"v"},
75
+ "arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
76
+ }
77
+ }
78
+ }
79
+ },
80
+ )
69
81
  r(
70
82
  b"THClient",
71
83
  b"isPreferredNetworkAvailableWithCompletion:",
@@ -80,6 +92,24 @@ try:
80
92
  }
81
93
  },
82
94
  )
95
+ r(
96
+ b"THClient",
97
+ b"retrieveActiveCredentialsForNearbyNetworksWithCompletion:",
98
+ {
99
+ "arguments": {
100
+ 2: {
101
+ "callable": {
102
+ "retval": {"type": b"v"},
103
+ "arguments": {
104
+ 0: {"type": b"^v"},
105
+ 1: {"type": b"@"},
106
+ 2: {"type": b"@"},
107
+ },
108
+ }
109
+ }
110
+ }
111
+ },
112
+ )
83
113
  r(
84
114
  b"THClient",
85
115
  b"retrieveAllActiveCredentials:",
@@ -152,6 +182,24 @@ try:
152
182
  }
153
183
  },
154
184
  )
185
+ r(
186
+ b"THClient",
187
+ b"retrieveNearbyNetworkCredentialsWithCompletion:",
188
+ {
189
+ "arguments": {
190
+ 2: {
191
+ "callable": {
192
+ "retval": {"type": b"v"},
193
+ "arguments": {
194
+ 0: {"type": b"^v"},
195
+ 1: {"type": b"@"},
196
+ 2: {"type": b"@"},
197
+ },
198
+ }
199
+ }
200
+ }
201
+ },
202
+ )
155
203
  r(
156
204
  b"THClient",
157
205
  b"retrievePreferredCredentials:",
@@ -184,6 +232,11 @@ try:
184
232
  }
185
233
  },
186
234
  )
235
+ r(
236
+ b"THNearbyNetworkCredentials",
237
+ b"isForPreferredNetwork",
238
+ {"retval": {"type": b"Z"}},
239
+ )
187
240
  finally:
188
241
  objc._updatingMetadata(False)
189
242
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyobjc-framework-ThreadNetwork
3
- Version: 12.2.2
3
+ Version: 13.1
4
4
  Summary: Wrappers for the framework ThreadNetwork 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.10
31
+ Requires-Python: >=3.11
32
32
  Description-Content-Type: text/x-rst; charset=UTF-8
33
- Requires-Dist: pyobjc-core>=12.2.2
34
- Requires-Dist: pyobjc-framework-Cocoa>=12.2.2
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
@@ -14,8 +14,9 @@ Lib/pyobjc_framework_ThreadNetwork.egg-info/requires.txt
14
14
  Lib/pyobjc_framework_ThreadNetwork.egg-info/top_level.txt
15
15
  PyObjCTest/__init__.py
16
16
  PyObjCTest/test_thclient.py
17
+ PyObjCTest/test_thnearbynetworkcredentials.py
17
18
  PyObjCTest/test_threadnetwork.py
18
19
  metadata/ThreadNetwork.fwinfo
19
20
  metadata/metadata.ini
20
- metadata/raw/arm64-26.5.fwinfo
21
- metadata/raw/x86_64-26.5.fwinfo
21
+ metadata/raw/arm64-27.fwinfo
22
+ metadata/raw/x86_64-27.fwinfo
@@ -0,0 +1,3 @@
1
+ macOS 27.2.1 (26B131)
2
+ Apple clang version 21.0.0 (clang-2100.4.1.1)
3
+ SDK: macOS 27.2
@@ -0,0 +1,2 @@
1
+ pyobjc-core>=13.1
2
+ pyobjc-framework-Cocoa>=13.1
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyobjc-framework-ThreadNetwork
3
- Version: 12.2.2
3
+ Version: 13.1
4
4
  Summary: Wrappers for the framework ThreadNetwork 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.10
31
+ Requires-Python: >=3.11
32
32
  Description-Content-Type: text/x-rst; charset=UTF-8
33
- Requires-Dist: pyobjc-core>=12.2.2
34
- Requires-Dist: pyobjc-framework-Cocoa>=12.2.2
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,9 +1,9 @@
1
- from PyObjCTools.TestSupport import TestCase
1
+ from PyObjCTools.TestSupport import TestCase, min_os_level
2
2
 
3
3
  import ThreadNetwork
4
4
 
5
5
 
6
- class THClient(TestCase):
6
+ class TestTHClient(TestCase):
7
7
  def test_methods(self):
8
8
  self.assertArgIsBlock(ThreadNetwork.THClient.retrieveAllCredentials_, 0, b"v@@")
9
9
  self.assertArgIsBlock(
@@ -32,3 +32,11 @@ class THClient(TestCase):
32
32
  1,
33
33
  b"vZ",
34
34
  )
35
+
36
+ @min_os_level("27.3")
37
+ def test_methods27_3(self):
38
+ self.assertArgIsBlock(
39
+ ThreadNetwork.THClient.retrieveNearbyNetworkCredentialsWithCompletion_,
40
+ 0,
41
+ b"v@@",
42
+ )
@@ -0,0 +1,11 @@
1
+ from PyObjCTools.TestSupport import TestCase, min_os_level
2
+
3
+ import ThreadNetwork
4
+
5
+
6
+ class TestTHNearbyNetworkCredentials(TestCase):
7
+ @min_os_level("27.3")
8
+ def test_methods(self):
9
+ self.assertResultIsBOOL(
10
+ ThreadNetwork.THNearbyNetworkCredentials.isForPreferredNetwork
11
+ )
@@ -4,5 +4,5 @@ import ThreadNetwork
4
4
 
5
5
 
6
6
  class TestThreadNetwork(TestCase):
7
- def test_metadata_sane(self):
7
+ def test_callable_metadata_is_sane(self):
8
8
  self.assertCallableMetadataIsSane(ThreadNetwork)
@@ -2,9 +2,5 @@
2
2
  // for information on how to update this file.
3
3
  {
4
4
  "definitions": {
5
- "classes": {},
6
- "formal_protocols": {},
7
- "functions": {},
8
- "informal_protocols": {}
9
5
  }
10
6
  }
@@ -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:56 2026
5
4
  {
6
5
  "arch": "arm64",
7
6
  "definitions": {
@@ -98,6 +97,80 @@
98
97
  "selector": "retrieveAllActiveCredentials:",
99
98
  "visibility": "public"
100
99
  },
100
+ {
101
+ "args": [
102
+ {
103
+ "callable": {
104
+ "arguments": {
105
+ "0": {
106
+ "type": "^v"
107
+ },
108
+ "1": {
109
+ "type": "@",
110
+ "type_name": "NSSet<THCredentials *> *"
111
+ },
112
+ "2": {
113
+ "type": "@",
114
+ "type_name": "NSError *"
115
+ }
116
+ },
117
+ "retval": {
118
+ "type": "v"
119
+ }
120
+ },
121
+ "name": "completion",
122
+ "null_accepted": true,
123
+ "type_name": "void (^)(NSSet<THCredentials *> * _Nullable, NSError * _Nullable)",
124
+ "typestr": "@?",
125
+ "typestr_special": false
126
+ }
127
+ ],
128
+ "class_method": false,
129
+ "retval": {
130
+ "type_name": "void",
131
+ "typestr": "v",
132
+ "typestr_special": false
133
+ },
134
+ "selector": "retrieveActiveCredentialsForNearbyNetworksWithCompletion:",
135
+ "visibility": "public"
136
+ },
137
+ {
138
+ "args": [
139
+ {
140
+ "callable": {
141
+ "arguments": {
142
+ "0": {
143
+ "type": "^v"
144
+ },
145
+ "1": {
146
+ "type": "@",
147
+ "type_name": "NSSet<THNearbyNetworkCredentials *> *"
148
+ },
149
+ "2": {
150
+ "type": "@",
151
+ "type_name": "NSError *"
152
+ }
153
+ },
154
+ "retval": {
155
+ "type": "v"
156
+ }
157
+ },
158
+ "name": "completion",
159
+ "null_accepted": true,
160
+ "type_name": "void (^)(NSSet<THNearbyNetworkCredentials *> * _Nullable, NSError * _Nullable)",
161
+ "typestr": "@?",
162
+ "typestr_special": false
163
+ }
164
+ ],
165
+ "class_method": false,
166
+ "retval": {
167
+ "type_name": "void",
168
+ "typestr": "v",
169
+ "typestr_special": false
170
+ },
171
+ "selector": "retrieveNearbyNetworkCredentialsWithCompletion:",
172
+ "visibility": "public"
173
+ },
101
174
  {
102
175
  "args": [
103
176
  {
@@ -382,6 +455,46 @@
382
455
  },
383
456
  "selector": "isPreferredNetworkAvailableWithCompletion:",
384
457
  "visibility": "public"
458
+ },
459
+ {
460
+ "args": [
461
+ {
462
+ "name": "extendedPANID",
463
+ "null_accepted": true,
464
+ "type_name": "NSData *",
465
+ "typestr": "@",
466
+ "typestr_special": false
467
+ },
468
+ {
469
+ "callable": {
470
+ "arguments": {
471
+ "0": {
472
+ "type": "^v"
473
+ },
474
+ "1": {
475
+ "type": "@",
476
+ "type_name": "NSError *"
477
+ }
478
+ },
479
+ "retval": {
480
+ "type": "v"
481
+ }
482
+ },
483
+ "name": "completion",
484
+ "null_accepted": true,
485
+ "type_name": "void (^)(NSError * _Nullable)",
486
+ "typestr": "@?",
487
+ "typestr_special": false
488
+ }
489
+ ],
490
+ "class_method": false,
491
+ "retval": {
492
+ "type_name": "void",
493
+ "typestr": "v",
494
+ "typestr_special": false
495
+ },
496
+ "selector": "enableCredentialSharingModeForExtendedPANID:completion:",
497
+ "visibility": "public"
385
498
  }
386
499
  ],
387
500
  "name": "THClient",
@@ -651,6 +764,38 @@
651
764
  "NSSecureCoding"
652
765
  ],
653
766
  "super": "NSObject"
767
+ },
768
+ "THNearbyNetworkCredentials": {
769
+ "categories": [],
770
+ "methods": [
771
+ {
772
+ "args": [],
773
+ "class_method": false,
774
+ "retval": {
775
+ "type_name": "BOOL",
776
+ "typestr": "Z",
777
+ "typestr_special": true
778
+ },
779
+ "selector": "isForPreferredNetwork",
780
+ "visibility": "public"
781
+ }
782
+ ],
783
+ "name": "THNearbyNetworkCredentials",
784
+ "properties": [
785
+ {
786
+ "attributes": [
787
+ "assign",
788
+ "nonatomic",
789
+ "readonly"
790
+ ],
791
+ "name": "isForPreferredNetwork",
792
+ "type_name": "BOOL",
793
+ "typestr": "Z",
794
+ "typestr_special": true
795
+ }
796
+ ],
797
+ "protocols": [],
798
+ "super": "THCredentials"
654
799
  }
655
800
  },
656
801
  "enum": {},
@@ -668,8 +813,9 @@
668
813
  "framework": "ThreadNetwork",
669
814
  "headers": [
670
815
  "THClient.h",
671
- "THCredentials.h"
816
+ "THCredentials.h",
817
+ "THNearbyNetworkCredentials.h"
672
818
  ],
673
- "release": "26.5",
674
- "sdk": "/Users/ronald/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk"
819
+ "release": "macOS 27.3",
820
+ "sdk": "Xcode 27.3 (27C5035f)/MacOSX27.sdk"
675
821
  }
@@ -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:54 2026
5
4
  {
6
5
  "arch": "x86_64",
7
6
  "definitions": {
@@ -98,6 +97,80 @@
98
97
  "selector": "retrieveAllActiveCredentials:",
99
98
  "visibility": "public"
100
99
  },
100
+ {
101
+ "args": [
102
+ {
103
+ "callable": {
104
+ "arguments": {
105
+ "0": {
106
+ "type": "^v"
107
+ },
108
+ "1": {
109
+ "type": "@",
110
+ "type_name": "NSSet<THCredentials *> *"
111
+ },
112
+ "2": {
113
+ "type": "@",
114
+ "type_name": "NSError *"
115
+ }
116
+ },
117
+ "retval": {
118
+ "type": "v"
119
+ }
120
+ },
121
+ "name": "completion",
122
+ "null_accepted": true,
123
+ "type_name": "void (^)(NSSet<THCredentials *> * _Nullable, NSError * _Nullable)",
124
+ "typestr": "@?",
125
+ "typestr_special": false
126
+ }
127
+ ],
128
+ "class_method": false,
129
+ "retval": {
130
+ "type_name": "void",
131
+ "typestr": "v",
132
+ "typestr_special": false
133
+ },
134
+ "selector": "retrieveActiveCredentialsForNearbyNetworksWithCompletion:",
135
+ "visibility": "public"
136
+ },
137
+ {
138
+ "args": [
139
+ {
140
+ "callable": {
141
+ "arguments": {
142
+ "0": {
143
+ "type": "^v"
144
+ },
145
+ "1": {
146
+ "type": "@",
147
+ "type_name": "NSSet<THNearbyNetworkCredentials *> *"
148
+ },
149
+ "2": {
150
+ "type": "@",
151
+ "type_name": "NSError *"
152
+ }
153
+ },
154
+ "retval": {
155
+ "type": "v"
156
+ }
157
+ },
158
+ "name": "completion",
159
+ "null_accepted": true,
160
+ "type_name": "void (^)(NSSet<THNearbyNetworkCredentials *> * _Nullable, NSError * _Nullable)",
161
+ "typestr": "@?",
162
+ "typestr_special": false
163
+ }
164
+ ],
165
+ "class_method": false,
166
+ "retval": {
167
+ "type_name": "void",
168
+ "typestr": "v",
169
+ "typestr_special": false
170
+ },
171
+ "selector": "retrieveNearbyNetworkCredentialsWithCompletion:",
172
+ "visibility": "public"
173
+ },
101
174
  {
102
175
  "args": [
103
176
  {
@@ -382,6 +455,46 @@
382
455
  },
383
456
  "selector": "isPreferredNetworkAvailableWithCompletion:",
384
457
  "visibility": "public"
458
+ },
459
+ {
460
+ "args": [
461
+ {
462
+ "name": "extendedPANID",
463
+ "null_accepted": true,
464
+ "type_name": "NSData *",
465
+ "typestr": "@",
466
+ "typestr_special": false
467
+ },
468
+ {
469
+ "callable": {
470
+ "arguments": {
471
+ "0": {
472
+ "type": "^v"
473
+ },
474
+ "1": {
475
+ "type": "@",
476
+ "type_name": "NSError *"
477
+ }
478
+ },
479
+ "retval": {
480
+ "type": "v"
481
+ }
482
+ },
483
+ "name": "completion",
484
+ "null_accepted": true,
485
+ "type_name": "void (^)(NSError * _Nullable)",
486
+ "typestr": "@?",
487
+ "typestr_special": false
488
+ }
489
+ ],
490
+ "class_method": false,
491
+ "retval": {
492
+ "type_name": "void",
493
+ "typestr": "v",
494
+ "typestr_special": false
495
+ },
496
+ "selector": "enableCredentialSharingModeForExtendedPANID:completion:",
497
+ "visibility": "public"
385
498
  }
386
499
  ],
387
500
  "name": "THClient",
@@ -651,6 +764,38 @@
651
764
  "NSSecureCoding"
652
765
  ],
653
766
  "super": "NSObject"
767
+ },
768
+ "THNearbyNetworkCredentials": {
769
+ "categories": [],
770
+ "methods": [
771
+ {
772
+ "args": [],
773
+ "class_method": false,
774
+ "retval": {
775
+ "type_name": "BOOL",
776
+ "typestr": "Z",
777
+ "typestr_special": true
778
+ },
779
+ "selector": "isForPreferredNetwork",
780
+ "visibility": "public"
781
+ }
782
+ ],
783
+ "name": "THNearbyNetworkCredentials",
784
+ "properties": [
785
+ {
786
+ "attributes": [
787
+ "assign",
788
+ "nonatomic",
789
+ "readonly"
790
+ ],
791
+ "name": "isForPreferredNetwork",
792
+ "type_name": "BOOL",
793
+ "typestr": "Z",
794
+ "typestr_special": true
795
+ }
796
+ ],
797
+ "protocols": [],
798
+ "super": "THCredentials"
654
799
  }
655
800
  },
656
801
  "enum": {},
@@ -668,8 +813,9 @@
668
813
  "framework": "ThreadNetwork",
669
814
  "headers": [
670
815
  "THClient.h",
671
- "THCredentials.h"
816
+ "THCredentials.h",
817
+ "THNearbyNetworkCredentials.h"
672
818
  ],
673
- "release": "26.5",
674
- "sdk": "/Users/ronald/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk"
819
+ "release": "macOS 27.3",
820
+ "sdk": "Xcode 27.3 (27C5035f)/MacOSX27.sdk"
675
821
  }
@@ -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 build_ext, build_py, develop, egg_info, install_lib
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=": len(getattr(result, "skipped", [])),
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.10",
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,
@@ -15,7 +15,7 @@ sys.path.insert(0, os.path.dirname(__file__))
15
15
 
16
16
  from pyobjc_setup import setup # noqa: E402
17
17
 
18
- VERSION = "12.2.2"
18
+ VERSION = "13.1"
19
19
 
20
20
  setup(
21
21
  name="pyobjc-framework-ThreadNetwork",
@@ -1,3 +0,0 @@
1
- macOS 26.6 (25G70)
2
- Apple clang version 21.0.0 (clang-2100.1.1.101)
3
- SDK: macOS 26.5
@@ -1,2 +0,0 @@
1
- pyobjc-core>=12.2.2
2
- pyobjc-framework-Cocoa>=12.2.2