winrt-Windows.System.Profile.SystemManufacturers 2.0.1__tar.gz → 2.2.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.
- {winrt_windows_system_profile_systemmanufacturers-2.0.1 → winrt_windows_system_profile_systemmanufacturers-2.2.0}/PKG-INFO +4 -4
- {winrt_windows_system_profile_systemmanufacturers-2.0.1 → winrt_windows_system_profile_systemmanufacturers-2.2.0}/all-requirements.txt +2 -2
- {winrt_windows_system_profile_systemmanufacturers-2.0.1 → winrt_windows_system_profile_systemmanufacturers-2.2.0}/py.Windows.System.Profile.SystemManufacturers.cpp +218 -130
- {winrt_windows_system_profile_systemmanufacturers-2.0.1 → winrt_windows_system_profile_systemmanufacturers-2.2.0}/pyproject.toml +3 -2
- winrt_windows_system_profile_systemmanufacturers-2.2.0/pywinrt-version.txt +1 -0
- {winrt_windows_system_profile_systemmanufacturers-2.0.1 → winrt_windows_system_profile_systemmanufacturers-2.2.0}/requirements.txt +2 -2
- {winrt_windows_system_profile_systemmanufacturers-2.0.1 → winrt_windows_system_profile_systemmanufacturers-2.2.0}/winrt/_winrt_windows_system_profile_systemmanufacturers.pyi +6 -8
- {winrt_windows_system_profile_systemmanufacturers-2.0.1 → winrt_windows_system_profile_systemmanufacturers-2.2.0}/winrt/windows/system/profile/systemmanufacturers/__init__.py +1 -1
- {winrt_windows_system_profile_systemmanufacturers-2.0.1 → winrt_windows_system_profile_systemmanufacturers-2.2.0}/winrt_Windows.System.Profile.SystemManufacturers.egg-info/PKG-INFO +4 -4
- winrt_windows_system_profile_systemmanufacturers-2.2.0/winrt_Windows.System.Profile.SystemManufacturers.egg-info/requires.txt +4 -0
- winrt_windows_system_profile_systemmanufacturers-2.0.1/pywinrt-version.txt +0 -1
- winrt_windows_system_profile_systemmanufacturers-2.0.1/winrt_Windows.System.Profile.SystemManufacturers.egg-info/requires.txt +0 -4
- {winrt_windows_system_profile_systemmanufacturers-2.0.1 → winrt_windows_system_profile_systemmanufacturers-2.2.0}/README.md +0 -0
- {winrt_windows_system_profile_systemmanufacturers-2.0.1 → winrt_windows_system_profile_systemmanufacturers-2.2.0}/setup.cfg +0 -0
- {winrt_windows_system_profile_systemmanufacturers-2.0.1 → winrt_windows_system_profile_systemmanufacturers-2.2.0}/setup.py +0 -0
- {winrt_windows_system_profile_systemmanufacturers-2.0.1 → winrt_windows_system_profile_systemmanufacturers-2.2.0}/winrt/windows/system/profile/systemmanufacturers/py.typed +0 -0
- {winrt_windows_system_profile_systemmanufacturers-2.0.1 → winrt_windows_system_profile_systemmanufacturers-2.2.0}/winrt_Windows.System.Profile.SystemManufacturers.egg-info/SOURCES.txt +0 -0
- {winrt_windows_system_profile_systemmanufacturers-2.0.1 → winrt_windows_system_profile_systemmanufacturers-2.2.0}/winrt_Windows.System.Profile.SystemManufacturers.egg-info/dependency_links.txt +0 -0
- {winrt_windows_system_profile_systemmanufacturers-2.0.1 → winrt_windows_system_profile_systemmanufacturers-2.2.0}/winrt_Windows.System.Profile.SystemManufacturers.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.System.Profile.SystemManufacturers
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.2.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -10,11 +10,11 @@ Classifier: Operating System :: Microsoft :: Windows
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python: <3.
|
|
13
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.0
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.0
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
|
|
18
18
|
|
|
19
19
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
20
20
|
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
|
-
winrt-Windows.Foundation[all]==2.0
|
|
3
|
+
winrt-Windows.Foundation[all]==2.2.0
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.System.Profile.SystemManufacturers.h"
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
namespace py::cpp::Windows::System::Profile::SystemManufacturers
|
|
7
6
|
{
|
|
8
7
|
// ----- OemSupportInfo class --------------------
|
|
@@ -24,14 +23,21 @@ namespace py::cpp::Windows::System::Profile::SystemManufacturers
|
|
|
24
23
|
|
|
25
24
|
static PyObject* OemSupportInfo_get_SupportAppLink(py::wrapper::Windows::System::Profile::SystemManufacturers::OemSupportInfo* self, void* /*unused*/) noexcept
|
|
26
25
|
{
|
|
27
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.OemSupportInfo", L"SupportAppLink"))
|
|
28
|
-
{
|
|
29
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
30
|
-
return nullptr;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
26
|
try
|
|
34
27
|
{
|
|
28
|
+
static std::optional<bool> is_property_present{};
|
|
29
|
+
|
|
30
|
+
if (!is_property_present.has_value())
|
|
31
|
+
{
|
|
32
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.OemSupportInfo", L"SupportAppLink");
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
if (!is_property_present.value())
|
|
36
|
+
{
|
|
37
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
38
|
+
return nullptr;
|
|
39
|
+
}
|
|
40
|
+
|
|
35
41
|
return py::convert(self->obj.SupportAppLink());
|
|
36
42
|
}
|
|
37
43
|
catch (...)
|
|
@@ -43,14 +49,21 @@ namespace py::cpp::Windows::System::Profile::SystemManufacturers
|
|
|
43
49
|
|
|
44
50
|
static PyObject* OemSupportInfo_get_SupportLink(py::wrapper::Windows::System::Profile::SystemManufacturers::OemSupportInfo* self, void* /*unused*/) noexcept
|
|
45
51
|
{
|
|
46
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.OemSupportInfo", L"SupportLink"))
|
|
47
|
-
{
|
|
48
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
49
|
-
return nullptr;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
52
|
try
|
|
53
53
|
{
|
|
54
|
+
static std::optional<bool> is_property_present{};
|
|
55
|
+
|
|
56
|
+
if (!is_property_present.has_value())
|
|
57
|
+
{
|
|
58
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.OemSupportInfo", L"SupportLink");
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
if (!is_property_present.value())
|
|
62
|
+
{
|
|
63
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
64
|
+
return nullptr;
|
|
65
|
+
}
|
|
66
|
+
|
|
54
67
|
return py::convert(self->obj.SupportLink());
|
|
55
68
|
}
|
|
56
69
|
catch (...)
|
|
@@ -62,14 +75,21 @@ namespace py::cpp::Windows::System::Profile::SystemManufacturers
|
|
|
62
75
|
|
|
63
76
|
static PyObject* OemSupportInfo_get_SupportProvider(py::wrapper::Windows::System::Profile::SystemManufacturers::OemSupportInfo* self, void* /*unused*/) noexcept
|
|
64
77
|
{
|
|
65
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.OemSupportInfo", L"SupportProvider"))
|
|
66
|
-
{
|
|
67
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
68
|
-
return nullptr;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
78
|
try
|
|
72
79
|
{
|
|
80
|
+
static std::optional<bool> is_property_present{};
|
|
81
|
+
|
|
82
|
+
if (!is_property_present.has_value())
|
|
83
|
+
{
|
|
84
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.OemSupportInfo", L"SupportProvider");
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
if (!is_property_present.value())
|
|
88
|
+
{
|
|
89
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
90
|
+
return nullptr;
|
|
91
|
+
}
|
|
92
|
+
|
|
73
93
|
return py::convert(self->obj.SupportProvider());
|
|
74
94
|
}
|
|
75
95
|
catch (...)
|
|
@@ -116,23 +136,20 @@ namespace py::cpp::Windows::System::Profile::SystemManufacturers
|
|
|
116
136
|
{ }
|
|
117
137
|
};
|
|
118
138
|
|
|
119
|
-
static PyType_Slot _type_slots_OemSupportInfo[] =
|
|
120
|
-
{
|
|
139
|
+
static PyType_Slot _type_slots_OemSupportInfo[] = {
|
|
121
140
|
{ Py_tp_new, reinterpret_cast<void*>(_new_OemSupportInfo) },
|
|
122
141
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_OemSupportInfo) },
|
|
123
142
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_OemSupportInfo) },
|
|
124
143
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_OemSupportInfo) },
|
|
125
|
-
{ }
|
|
144
|
+
{ }
|
|
126
145
|
};
|
|
127
146
|
|
|
128
|
-
static PyType_Spec type_spec_OemSupportInfo =
|
|
129
|
-
{
|
|
147
|
+
static PyType_Spec type_spec_OemSupportInfo = {
|
|
130
148
|
"winrt._winrt_windows_system_profile_systemmanufacturers.OemSupportInfo",
|
|
131
149
|
sizeof(py::wrapper::Windows::System::Profile::SystemManufacturers::OemSupportInfo),
|
|
132
150
|
0,
|
|
133
151
|
Py_TPFLAGS_DEFAULT,
|
|
134
|
-
_type_slots_OemSupportInfo
|
|
135
|
-
};
|
|
152
|
+
_type_slots_OemSupportInfo};
|
|
136
153
|
|
|
137
154
|
// ----- SmbiosInformation class --------------------
|
|
138
155
|
|
|
@@ -145,14 +162,21 @@ namespace py::cpp::Windows::System::Profile::SystemManufacturers
|
|
|
145
162
|
|
|
146
163
|
static PyObject* SmbiosInformation_get_SerialNumber(PyObject* /*unused*/, void* /*unused*/) noexcept
|
|
147
164
|
{
|
|
148
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.SmbiosInformation", L"SerialNumber"))
|
|
149
|
-
{
|
|
150
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
151
|
-
return nullptr;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
165
|
try
|
|
155
166
|
{
|
|
167
|
+
static std::optional<bool> is_property_present{};
|
|
168
|
+
|
|
169
|
+
if (!is_property_present.has_value())
|
|
170
|
+
{
|
|
171
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.SmbiosInformation", L"SerialNumber");
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
if (!is_property_present.value())
|
|
175
|
+
{
|
|
176
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
177
|
+
return nullptr;
|
|
178
|
+
}
|
|
179
|
+
|
|
156
180
|
return py::convert(winrt::Windows::System::Profile::SystemManufacturers::SmbiosInformation::SerialNumber());
|
|
157
181
|
}
|
|
158
182
|
catch (...)
|
|
@@ -170,22 +194,19 @@ namespace py::cpp::Windows::System::Profile::SystemManufacturers
|
|
|
170
194
|
{ }
|
|
171
195
|
};
|
|
172
196
|
|
|
173
|
-
static PyType_Slot _type_slots_SmbiosInformation[] =
|
|
174
|
-
{
|
|
197
|
+
static PyType_Slot _type_slots_SmbiosInformation[] = {
|
|
175
198
|
{ Py_tp_new, reinterpret_cast<void*>(_new_SmbiosInformation) },
|
|
176
199
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_SmbiosInformation) },
|
|
177
200
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_SmbiosInformation) },
|
|
178
|
-
{ }
|
|
201
|
+
{ }
|
|
179
202
|
};
|
|
180
203
|
|
|
181
|
-
static PyType_Spec type_spec_SmbiosInformation =
|
|
182
|
-
{
|
|
204
|
+
static PyType_Spec type_spec_SmbiosInformation = {
|
|
183
205
|
"winrt._winrt_windows_system_profile_systemmanufacturers.SmbiosInformation",
|
|
184
206
|
0,
|
|
185
207
|
0,
|
|
186
208
|
Py_TPFLAGS_DEFAULT,
|
|
187
|
-
_type_slots_SmbiosInformation
|
|
188
|
-
};
|
|
209
|
+
_type_slots_SmbiosInformation};
|
|
189
210
|
|
|
190
211
|
static PyGetSetDef getset_SmbiosInformation_Static[] = {
|
|
191
212
|
{ "serial_number", reinterpret_cast<getter>(SmbiosInformation_get_SerialNumber), nullptr, nullptr, nullptr },
|
|
@@ -232,14 +253,21 @@ namespace py::cpp::Windows::System::Profile::SystemManufacturers
|
|
|
232
253
|
|
|
233
254
|
static PyObject* SystemSupportDeviceInfo_get_FriendlyName(py::wrapper::Windows::System::Profile::SystemManufacturers::SystemSupportDeviceInfo* self, void* /*unused*/) noexcept
|
|
234
255
|
{
|
|
235
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.SystemSupportDeviceInfo", L"FriendlyName"))
|
|
236
|
-
{
|
|
237
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
238
|
-
return nullptr;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
256
|
try
|
|
242
257
|
{
|
|
258
|
+
static std::optional<bool> is_property_present{};
|
|
259
|
+
|
|
260
|
+
if (!is_property_present.has_value())
|
|
261
|
+
{
|
|
262
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.SystemSupportDeviceInfo", L"FriendlyName");
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
if (!is_property_present.value())
|
|
266
|
+
{
|
|
267
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
268
|
+
return nullptr;
|
|
269
|
+
}
|
|
270
|
+
|
|
243
271
|
return py::convert(self->obj.FriendlyName());
|
|
244
272
|
}
|
|
245
273
|
catch (...)
|
|
@@ -251,14 +279,21 @@ namespace py::cpp::Windows::System::Profile::SystemManufacturers
|
|
|
251
279
|
|
|
252
280
|
static PyObject* SystemSupportDeviceInfo_get_OperatingSystem(py::wrapper::Windows::System::Profile::SystemManufacturers::SystemSupportDeviceInfo* self, void* /*unused*/) noexcept
|
|
253
281
|
{
|
|
254
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.SystemSupportDeviceInfo", L"OperatingSystem"))
|
|
255
|
-
{
|
|
256
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
257
|
-
return nullptr;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
282
|
try
|
|
261
283
|
{
|
|
284
|
+
static std::optional<bool> is_property_present{};
|
|
285
|
+
|
|
286
|
+
if (!is_property_present.has_value())
|
|
287
|
+
{
|
|
288
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.SystemSupportDeviceInfo", L"OperatingSystem");
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
if (!is_property_present.value())
|
|
292
|
+
{
|
|
293
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
294
|
+
return nullptr;
|
|
295
|
+
}
|
|
296
|
+
|
|
262
297
|
return py::convert(self->obj.OperatingSystem());
|
|
263
298
|
}
|
|
264
299
|
catch (...)
|
|
@@ -270,14 +305,21 @@ namespace py::cpp::Windows::System::Profile::SystemManufacturers
|
|
|
270
305
|
|
|
271
306
|
static PyObject* SystemSupportDeviceInfo_get_SystemFirmwareVersion(py::wrapper::Windows::System::Profile::SystemManufacturers::SystemSupportDeviceInfo* self, void* /*unused*/) noexcept
|
|
272
307
|
{
|
|
273
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.SystemSupportDeviceInfo", L"SystemFirmwareVersion"))
|
|
274
|
-
{
|
|
275
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
276
|
-
return nullptr;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
308
|
try
|
|
280
309
|
{
|
|
310
|
+
static std::optional<bool> is_property_present{};
|
|
311
|
+
|
|
312
|
+
if (!is_property_present.has_value())
|
|
313
|
+
{
|
|
314
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.SystemSupportDeviceInfo", L"SystemFirmwareVersion");
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
if (!is_property_present.value())
|
|
318
|
+
{
|
|
319
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
320
|
+
return nullptr;
|
|
321
|
+
}
|
|
322
|
+
|
|
281
323
|
return py::convert(self->obj.SystemFirmwareVersion());
|
|
282
324
|
}
|
|
283
325
|
catch (...)
|
|
@@ -289,14 +331,21 @@ namespace py::cpp::Windows::System::Profile::SystemManufacturers
|
|
|
289
331
|
|
|
290
332
|
static PyObject* SystemSupportDeviceInfo_get_SystemHardwareVersion(py::wrapper::Windows::System::Profile::SystemManufacturers::SystemSupportDeviceInfo* self, void* /*unused*/) noexcept
|
|
291
333
|
{
|
|
292
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.SystemSupportDeviceInfo", L"SystemHardwareVersion"))
|
|
293
|
-
{
|
|
294
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
295
|
-
return nullptr;
|
|
296
|
-
}
|
|
297
|
-
|
|
298
334
|
try
|
|
299
335
|
{
|
|
336
|
+
static std::optional<bool> is_property_present{};
|
|
337
|
+
|
|
338
|
+
if (!is_property_present.has_value())
|
|
339
|
+
{
|
|
340
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.SystemSupportDeviceInfo", L"SystemHardwareVersion");
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
if (!is_property_present.value())
|
|
344
|
+
{
|
|
345
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
346
|
+
return nullptr;
|
|
347
|
+
}
|
|
348
|
+
|
|
300
349
|
return py::convert(self->obj.SystemHardwareVersion());
|
|
301
350
|
}
|
|
302
351
|
catch (...)
|
|
@@ -308,14 +357,21 @@ namespace py::cpp::Windows::System::Profile::SystemManufacturers
|
|
|
308
357
|
|
|
309
358
|
static PyObject* SystemSupportDeviceInfo_get_SystemManufacturer(py::wrapper::Windows::System::Profile::SystemManufacturers::SystemSupportDeviceInfo* self, void* /*unused*/) noexcept
|
|
310
359
|
{
|
|
311
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.SystemSupportDeviceInfo", L"SystemManufacturer"))
|
|
312
|
-
{
|
|
313
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
314
|
-
return nullptr;
|
|
315
|
-
}
|
|
316
|
-
|
|
317
360
|
try
|
|
318
361
|
{
|
|
362
|
+
static std::optional<bool> is_property_present{};
|
|
363
|
+
|
|
364
|
+
if (!is_property_present.has_value())
|
|
365
|
+
{
|
|
366
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.SystemSupportDeviceInfo", L"SystemManufacturer");
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
if (!is_property_present.value())
|
|
370
|
+
{
|
|
371
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
372
|
+
return nullptr;
|
|
373
|
+
}
|
|
374
|
+
|
|
319
375
|
return py::convert(self->obj.SystemManufacturer());
|
|
320
376
|
}
|
|
321
377
|
catch (...)
|
|
@@ -327,14 +383,21 @@ namespace py::cpp::Windows::System::Profile::SystemManufacturers
|
|
|
327
383
|
|
|
328
384
|
static PyObject* SystemSupportDeviceInfo_get_SystemProductName(py::wrapper::Windows::System::Profile::SystemManufacturers::SystemSupportDeviceInfo* self, void* /*unused*/) noexcept
|
|
329
385
|
{
|
|
330
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.SystemSupportDeviceInfo", L"SystemProductName"))
|
|
331
|
-
{
|
|
332
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
333
|
-
return nullptr;
|
|
334
|
-
}
|
|
335
|
-
|
|
336
386
|
try
|
|
337
387
|
{
|
|
388
|
+
static std::optional<bool> is_property_present{};
|
|
389
|
+
|
|
390
|
+
if (!is_property_present.has_value())
|
|
391
|
+
{
|
|
392
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.SystemSupportDeviceInfo", L"SystemProductName");
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
if (!is_property_present.value())
|
|
396
|
+
{
|
|
397
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
398
|
+
return nullptr;
|
|
399
|
+
}
|
|
400
|
+
|
|
338
401
|
return py::convert(self->obj.SystemProductName());
|
|
339
402
|
}
|
|
340
403
|
catch (...)
|
|
@@ -346,14 +409,21 @@ namespace py::cpp::Windows::System::Profile::SystemManufacturers
|
|
|
346
409
|
|
|
347
410
|
static PyObject* SystemSupportDeviceInfo_get_SystemSku(py::wrapper::Windows::System::Profile::SystemManufacturers::SystemSupportDeviceInfo* self, void* /*unused*/) noexcept
|
|
348
411
|
{
|
|
349
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.SystemSupportDeviceInfo", L"SystemSku"))
|
|
350
|
-
{
|
|
351
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
352
|
-
return nullptr;
|
|
353
|
-
}
|
|
354
|
-
|
|
355
412
|
try
|
|
356
413
|
{
|
|
414
|
+
static std::optional<bool> is_property_present{};
|
|
415
|
+
|
|
416
|
+
if (!is_property_present.has_value())
|
|
417
|
+
{
|
|
418
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.SystemSupportDeviceInfo", L"SystemSku");
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
if (!is_property_present.value())
|
|
422
|
+
{
|
|
423
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
424
|
+
return nullptr;
|
|
425
|
+
}
|
|
426
|
+
|
|
357
427
|
return py::convert(self->obj.SystemSku());
|
|
358
428
|
}
|
|
359
429
|
catch (...)
|
|
@@ -404,23 +474,20 @@ namespace py::cpp::Windows::System::Profile::SystemManufacturers
|
|
|
404
474
|
{ }
|
|
405
475
|
};
|
|
406
476
|
|
|
407
|
-
static PyType_Slot _type_slots_SystemSupportDeviceInfo[] =
|
|
408
|
-
{
|
|
477
|
+
static PyType_Slot _type_slots_SystemSupportDeviceInfo[] = {
|
|
409
478
|
{ Py_tp_new, reinterpret_cast<void*>(_new_SystemSupportDeviceInfo) },
|
|
410
479
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_SystemSupportDeviceInfo) },
|
|
411
480
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_SystemSupportDeviceInfo) },
|
|
412
481
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_SystemSupportDeviceInfo) },
|
|
413
|
-
{ }
|
|
482
|
+
{ }
|
|
414
483
|
};
|
|
415
484
|
|
|
416
|
-
static PyType_Spec type_spec_SystemSupportDeviceInfo =
|
|
417
|
-
{
|
|
485
|
+
static PyType_Spec type_spec_SystemSupportDeviceInfo = {
|
|
418
486
|
"winrt._winrt_windows_system_profile_systemmanufacturers.SystemSupportDeviceInfo",
|
|
419
487
|
sizeof(py::wrapper::Windows::System::Profile::SystemManufacturers::SystemSupportDeviceInfo),
|
|
420
488
|
0,
|
|
421
489
|
Py_TPFLAGS_DEFAULT,
|
|
422
|
-
_type_slots_SystemSupportDeviceInfo
|
|
423
|
-
};
|
|
490
|
+
_type_slots_SystemSupportDeviceInfo};
|
|
424
491
|
|
|
425
492
|
// ----- SystemSupportInfo class --------------------
|
|
426
493
|
|
|
@@ -433,14 +500,21 @@ namespace py::cpp::Windows::System::Profile::SystemManufacturers
|
|
|
433
500
|
|
|
434
501
|
static PyObject* SystemSupportInfo_get_LocalSystemEdition(PyObject* /*unused*/, void* /*unused*/) noexcept
|
|
435
502
|
{
|
|
436
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.SystemSupportInfo", L"LocalSystemEdition"))
|
|
437
|
-
{
|
|
438
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
439
|
-
return nullptr;
|
|
440
|
-
}
|
|
441
|
-
|
|
442
503
|
try
|
|
443
504
|
{
|
|
505
|
+
static std::optional<bool> is_property_present{};
|
|
506
|
+
|
|
507
|
+
if (!is_property_present.has_value())
|
|
508
|
+
{
|
|
509
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.SystemSupportInfo", L"LocalSystemEdition");
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
if (!is_property_present.value())
|
|
513
|
+
{
|
|
514
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
515
|
+
return nullptr;
|
|
516
|
+
}
|
|
517
|
+
|
|
444
518
|
return py::convert(winrt::Windows::System::Profile::SystemManufacturers::SystemSupportInfo::LocalSystemEdition());
|
|
445
519
|
}
|
|
446
520
|
catch (...)
|
|
@@ -452,14 +526,21 @@ namespace py::cpp::Windows::System::Profile::SystemManufacturers
|
|
|
452
526
|
|
|
453
527
|
static PyObject* SystemSupportInfo_get_OemSupportInfo(PyObject* /*unused*/, void* /*unused*/) noexcept
|
|
454
528
|
{
|
|
455
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.SystemSupportInfo", L"OemSupportInfo"))
|
|
456
|
-
{
|
|
457
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
458
|
-
return nullptr;
|
|
459
|
-
}
|
|
460
|
-
|
|
461
529
|
try
|
|
462
530
|
{
|
|
531
|
+
static std::optional<bool> is_property_present{};
|
|
532
|
+
|
|
533
|
+
if (!is_property_present.has_value())
|
|
534
|
+
{
|
|
535
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.SystemSupportInfo", L"OemSupportInfo");
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
if (!is_property_present.value())
|
|
539
|
+
{
|
|
540
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
541
|
+
return nullptr;
|
|
542
|
+
}
|
|
543
|
+
|
|
463
544
|
return py::convert(winrt::Windows::System::Profile::SystemManufacturers::SystemSupportInfo::OemSupportInfo());
|
|
464
545
|
}
|
|
465
546
|
catch (...)
|
|
@@ -471,14 +552,21 @@ namespace py::cpp::Windows::System::Profile::SystemManufacturers
|
|
|
471
552
|
|
|
472
553
|
static PyObject* SystemSupportInfo_get_LocalDeviceInfo(PyObject* /*unused*/, void* /*unused*/) noexcept
|
|
473
554
|
{
|
|
474
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.SystemSupportInfo", L"LocalDeviceInfo"))
|
|
475
|
-
{
|
|
476
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
477
|
-
return nullptr;
|
|
478
|
-
}
|
|
479
|
-
|
|
480
555
|
try
|
|
481
556
|
{
|
|
557
|
+
static std::optional<bool> is_property_present{};
|
|
558
|
+
|
|
559
|
+
if (!is_property_present.has_value())
|
|
560
|
+
{
|
|
561
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.SystemSupportInfo", L"LocalDeviceInfo");
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
if (!is_property_present.value())
|
|
565
|
+
{
|
|
566
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
567
|
+
return nullptr;
|
|
568
|
+
}
|
|
569
|
+
|
|
482
570
|
return py::convert(winrt::Windows::System::Profile::SystemManufacturers::SystemSupportInfo::LocalDeviceInfo());
|
|
483
571
|
}
|
|
484
572
|
catch (...)
|
|
@@ -496,22 +584,19 @@ namespace py::cpp::Windows::System::Profile::SystemManufacturers
|
|
|
496
584
|
{ }
|
|
497
585
|
};
|
|
498
586
|
|
|
499
|
-
static PyType_Slot _type_slots_SystemSupportInfo[] =
|
|
500
|
-
{
|
|
587
|
+
static PyType_Slot _type_slots_SystemSupportInfo[] = {
|
|
501
588
|
{ Py_tp_new, reinterpret_cast<void*>(_new_SystemSupportInfo) },
|
|
502
589
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_SystemSupportInfo) },
|
|
503
590
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_SystemSupportInfo) },
|
|
504
|
-
{ }
|
|
591
|
+
{ }
|
|
505
592
|
};
|
|
506
593
|
|
|
507
|
-
static PyType_Spec type_spec_SystemSupportInfo =
|
|
508
|
-
{
|
|
594
|
+
static PyType_Spec type_spec_SystemSupportInfo = {
|
|
509
595
|
"winrt._winrt_windows_system_profile_systemmanufacturers.SystemSupportInfo",
|
|
510
596
|
0,
|
|
511
597
|
0,
|
|
512
598
|
Py_TPFLAGS_DEFAULT,
|
|
513
|
-
_type_slots_SystemSupportInfo
|
|
514
|
-
};
|
|
599
|
+
_type_slots_SystemSupportInfo};
|
|
515
600
|
|
|
516
601
|
static PyGetSetDef getset_SystemSupportInfo_Static[] = {
|
|
517
602
|
{ "local_system_edition", reinterpret_cast<getter>(SystemSupportInfo_get_LocalSystemEdition), nullptr, nullptr, nullptr },
|
|
@@ -542,20 +627,19 @@ namespace py::cpp::Windows::System::Profile::SystemManufacturers
|
|
|
542
627
|
};
|
|
543
628
|
|
|
544
629
|
// ----- Windows.System.Profile.SystemManufacturers Initialization --------------------
|
|
545
|
-
PyDoc_STRVAR(module_doc, "Windows::System::Profile::SystemManufacturers");
|
|
546
|
-
|
|
547
630
|
|
|
548
|
-
|
|
549
|
-
= {PyModuleDef_HEAD_INIT,
|
|
550
|
-
"_winrt_windows_system_profile_systemmanufacturers",
|
|
551
|
-
module_doc,
|
|
552
|
-
0,
|
|
553
|
-
nullptr,
|
|
554
|
-
nullptr,
|
|
555
|
-
nullptr,
|
|
556
|
-
nullptr,
|
|
557
|
-
nullptr};
|
|
631
|
+
PyDoc_STRVAR(module_doc, "Windows.System.Profile.SystemManufacturers");
|
|
558
632
|
|
|
633
|
+
static PyModuleDef module_def = {
|
|
634
|
+
PyModuleDef_HEAD_INIT,
|
|
635
|
+
"_winrt_windows_system_profile_systemmanufacturers",
|
|
636
|
+
module_doc,
|
|
637
|
+
0,
|
|
638
|
+
nullptr,
|
|
639
|
+
nullptr,
|
|
640
|
+
nullptr,
|
|
641
|
+
nullptr,
|
|
642
|
+
nullptr};
|
|
559
643
|
} // py::cpp::Windows::System::Profile::SystemManufacturers
|
|
560
644
|
|
|
561
645
|
PyMODINIT_FUNC PyInit__winrt_windows_system_profile_systemmanufacturers(void) noexcept
|
|
@@ -587,7 +671,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_profile_systemmanufacturers(void) no
|
|
|
587
671
|
return nullptr;
|
|
588
672
|
}
|
|
589
673
|
|
|
590
|
-
|
|
674
|
+
py::pytype_handle OemSupportInfo_type{py::register_python_type(module.get(), &type_spec_OemSupportInfo, object_bases.get(), nullptr)};
|
|
675
|
+
if (!OemSupportInfo_type)
|
|
591
676
|
{
|
|
592
677
|
return nullptr;
|
|
593
678
|
}
|
|
@@ -598,12 +683,14 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_profile_systemmanufacturers(void) no
|
|
|
598
683
|
return nullptr;
|
|
599
684
|
}
|
|
600
685
|
|
|
601
|
-
|
|
686
|
+
py::pytype_handle SmbiosInformation_type{py::register_python_type(module.get(), &type_spec_SmbiosInformation, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_SmbiosInformation_Static.get()))};
|
|
687
|
+
if (!SmbiosInformation_type)
|
|
602
688
|
{
|
|
603
689
|
return nullptr;
|
|
604
690
|
}
|
|
605
691
|
|
|
606
|
-
|
|
692
|
+
py::pytype_handle SystemSupportDeviceInfo_type{py::register_python_type(module.get(), &type_spec_SystemSupportDeviceInfo, object_bases.get(), nullptr)};
|
|
693
|
+
if (!SystemSupportDeviceInfo_type)
|
|
607
694
|
{
|
|
608
695
|
return nullptr;
|
|
609
696
|
}
|
|
@@ -614,7 +701,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_profile_systemmanufacturers(void) no
|
|
|
614
701
|
return nullptr;
|
|
615
702
|
}
|
|
616
703
|
|
|
617
|
-
|
|
704
|
+
py::pytype_handle SystemSupportInfo_type{py::register_python_type(module.get(), &type_spec_SystemSupportInfo, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_SystemSupportInfo_Static.get()))};
|
|
705
|
+
if (!SystemSupportInfo_type)
|
|
618
706
|
{
|
|
619
707
|
return nullptr;
|
|
620
708
|
}
|
|
@@ -16,7 +16,7 @@ classifiers = [
|
|
|
16
16
|
"Intended Audience :: Developers",
|
|
17
17
|
]
|
|
18
18
|
dynamic = ["version", "dependencies", "optional-dependencies"]
|
|
19
|
-
requires-python = ">=3.9,<3.
|
|
19
|
+
requires-python = ">=3.9,<3.14"
|
|
20
20
|
|
|
21
21
|
[project.urls]
|
|
22
22
|
# Homepage = "https://github.com/pywinrt/pywinrt"
|
|
@@ -36,7 +36,8 @@ optional-dependencies.all = { file = "all-requirements.txt" }
|
|
|
36
36
|
# use local winrt-sdk build dependency
|
|
37
37
|
environment = { PYTHONPATH="../winrt-sdk/src" }
|
|
38
38
|
# don't install winrt-sdk from PyPI
|
|
39
|
-
build-frontend = { name = "build", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
39
|
+
build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
40
|
+
before-build = "uv pip install setuptools"
|
|
40
41
|
# don't build for PyPy
|
|
41
42
|
skip = "pp*"
|
|
42
43
|
# suppress warnings about ARM64 testing
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.2.0
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.0
|
|
3
|
+
winrt-runtime==2.2.0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
3
|
import datetime
|
|
4
4
|
import sys
|
|
@@ -9,7 +9,7 @@ from builtins import property as _property
|
|
|
9
9
|
|
|
10
10
|
import winrt._winrt
|
|
11
11
|
import winrt.system
|
|
12
|
-
import winrt.windows.foundation
|
|
12
|
+
import winrt.windows.foundation as windows_foundation
|
|
13
13
|
|
|
14
14
|
Self = typing.TypeVar('Self')
|
|
15
15
|
|
|
@@ -18,9 +18,9 @@ class OemSupportInfo(winrt.system.Object):
|
|
|
18
18
|
@staticmethod
|
|
19
19
|
def _from(obj: winrt.system.Object, /) -> OemSupportInfo: ...
|
|
20
20
|
@_property
|
|
21
|
-
def support_app_link(self) -> typing.Optional[
|
|
21
|
+
def support_app_link(self) -> typing.Optional[windows_foundation.Uri]: ...
|
|
22
22
|
@_property
|
|
23
|
-
def support_link(self) -> typing.Optional[
|
|
23
|
+
def support_link(self) -> typing.Optional[windows_foundation.Uri]: ...
|
|
24
24
|
@_property
|
|
25
25
|
def support_provider(self) -> str: ...
|
|
26
26
|
|
|
@@ -31,8 +31,7 @@ class SmbiosInformation_Static(type):
|
|
|
31
31
|
|
|
32
32
|
@typing.final
|
|
33
33
|
class SmbiosInformation(winrt.system.Object, metaclass=SmbiosInformation_Static):
|
|
34
|
-
|
|
35
|
-
def _from(obj: winrt.system.Object, /) -> SmbiosInformation: ...
|
|
34
|
+
pass
|
|
36
35
|
|
|
37
36
|
@typing.final
|
|
38
37
|
class SystemSupportDeviceInfo(winrt.system.Object):
|
|
@@ -64,6 +63,5 @@ class SystemSupportInfo_Static(type):
|
|
|
64
63
|
|
|
65
64
|
@typing.final
|
|
66
65
|
class SystemSupportInfo(winrt.system.Object, metaclass=SystemSupportInfo_Static):
|
|
67
|
-
|
|
68
|
-
def _from(obj: winrt.system.Object, /) -> SystemSupportInfo: ...
|
|
66
|
+
pass
|
|
69
67
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.System.Profile.SystemManufacturers
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.2.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -10,11 +10,11 @@ Classifier: Operating System :: Microsoft :: Windows
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python: <3.
|
|
13
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.0
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.0
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
|
|
18
18
|
|
|
19
19
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
20
20
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.0.1
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|