winrt-Windows.System.Profile.SystemManufacturers 2.0.0b2__tar.gz → 2.1.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.0b2 → winrt_windows_system_profile_systemmanufacturers-2.1.0}/PKG-INFO +3 -1
- winrt_windows_system_profile_systemmanufacturers-2.1.0/all-requirements.txt +3 -0
- {winrt-Windows.System.Profile.SystemManufacturers-2.0.0b2 → winrt_windows_system_profile_systemmanufacturers-2.1.0}/py.Windows.System.Profile.SystemManufacturers.cpp +112 -126
- {winrt-Windows.System.Profile.SystemManufacturers-2.0.0b2 → winrt_windows_system_profile_systemmanufacturers-2.1.0}/pyproject.toml +2 -2
- winrt_windows_system_profile_systemmanufacturers-2.1.0/pywinrt-version.txt +1 -0
- {winrt-Windows.System.Profile.SystemManufacturers-2.0.0b2 → winrt_windows_system_profile_systemmanufacturers-2.1.0}/requirements.txt +2 -2
- winrt_windows_system_profile_systemmanufacturers-2.1.0/setup.py +31 -0
- {winrt-Windows.System.Profile.SystemManufacturers-2.0.0b2 → winrt_windows_system_profile_systemmanufacturers-2.1.0}/winrt/_winrt_windows_system_profile_systemmanufacturers.pyi +6 -8
- {winrt-Windows.System.Profile.SystemManufacturers-2.0.0b2 → winrt_windows_system_profile_systemmanufacturers-2.1.0}/winrt/windows/system/profile/systemmanufacturers/__init__.py +1 -1
- winrt_windows_system_profile_systemmanufacturers-2.1.0/winrt/windows/system/profile/systemmanufacturers/py.typed +0 -0
- {winrt-Windows.System.Profile.SystemManufacturers-2.0.0b2 → winrt_windows_system_profile_systemmanufacturers-2.1.0}/winrt_Windows.System.Profile.SystemManufacturers.egg-info/PKG-INFO +3 -1
- {winrt-Windows.System.Profile.SystemManufacturers-2.0.0b2 → winrt_windows_system_profile_systemmanufacturers-2.1.0}/winrt_Windows.System.Profile.SystemManufacturers.egg-info/SOURCES.txt +1 -0
- winrt_windows_system_profile_systemmanufacturers-2.1.0/winrt_Windows.System.Profile.SystemManufacturers.egg-info/requires.txt +4 -0
- winrt-Windows.System.Profile.SystemManufacturers-2.0.0b2/all-requirements.txt +0 -3
- winrt-Windows.System.Profile.SystemManufacturers-2.0.0b2/pywinrt-version.txt +0 -1
- winrt-Windows.System.Profile.SystemManufacturers-2.0.0b2/setup.py +0 -16
- winrt-Windows.System.Profile.SystemManufacturers-2.0.0b2/winrt_Windows.System.Profile.SystemManufacturers.egg-info/requires.txt +0 -4
- {winrt-Windows.System.Profile.SystemManufacturers-2.0.0b2 → winrt_windows_system_profile_systemmanufacturers-2.1.0}/README.md +0 -0
- {winrt-Windows.System.Profile.SystemManufacturers-2.0.0b2 → winrt_windows_system_profile_systemmanufacturers-2.1.0}/setup.cfg +0 -0
- {winrt-Windows.System.Profile.SystemManufacturers-2.0.0b2 → winrt_windows_system_profile_systemmanufacturers-2.1.0}/winrt_Windows.System.Profile.SystemManufacturers.egg-info/dependency_links.txt +0 -0
- {winrt-Windows.System.Profile.SystemManufacturers-2.0.0b2 → winrt_windows_system_profile_systemmanufacturers-2.1.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.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -12,7 +12,9 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
13
|
Requires-Python: <3.13,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
+
Requires-Dist: winrt-runtime==2.1.0
|
|
15
16
|
Provides-Extra: all
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
|
|
16
18
|
|
|
17
19
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
18
20
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.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,14 @@ 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
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.OemSupportInfo", L"SupportAppLink"))
|
|
29
|
+
{
|
|
30
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
31
|
+
return nullptr;
|
|
32
|
+
}
|
|
33
|
+
|
|
35
34
|
return py::convert(self->obj.SupportAppLink());
|
|
36
35
|
}
|
|
37
36
|
catch (...)
|
|
@@ -43,14 +42,14 @@ namespace py::cpp::Windows::System::Profile::SystemManufacturers
|
|
|
43
42
|
|
|
44
43
|
static PyObject* OemSupportInfo_get_SupportLink(py::wrapper::Windows::System::Profile::SystemManufacturers::OemSupportInfo* self, void* /*unused*/) noexcept
|
|
45
44
|
{
|
|
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
45
|
try
|
|
53
46
|
{
|
|
47
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.OemSupportInfo", L"SupportLink"))
|
|
48
|
+
{
|
|
49
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
50
|
+
return nullptr;
|
|
51
|
+
}
|
|
52
|
+
|
|
54
53
|
return py::convert(self->obj.SupportLink());
|
|
55
54
|
}
|
|
56
55
|
catch (...)
|
|
@@ -62,14 +61,14 @@ namespace py::cpp::Windows::System::Profile::SystemManufacturers
|
|
|
62
61
|
|
|
63
62
|
static PyObject* OemSupportInfo_get_SupportProvider(py::wrapper::Windows::System::Profile::SystemManufacturers::OemSupportInfo* self, void* /*unused*/) noexcept
|
|
64
63
|
{
|
|
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
64
|
try
|
|
72
65
|
{
|
|
66
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.OemSupportInfo", L"SupportProvider"))
|
|
67
|
+
{
|
|
68
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
69
|
+
return nullptr;
|
|
70
|
+
}
|
|
71
|
+
|
|
73
72
|
return py::convert(self->obj.SupportProvider());
|
|
74
73
|
}
|
|
75
74
|
catch (...)
|
|
@@ -116,23 +115,20 @@ namespace py::cpp::Windows::System::Profile::SystemManufacturers
|
|
|
116
115
|
{ }
|
|
117
116
|
};
|
|
118
117
|
|
|
119
|
-
static PyType_Slot _type_slots_OemSupportInfo[] =
|
|
120
|
-
{
|
|
118
|
+
static PyType_Slot _type_slots_OemSupportInfo[] = {
|
|
121
119
|
{ Py_tp_new, reinterpret_cast<void*>(_new_OemSupportInfo) },
|
|
122
120
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_OemSupportInfo) },
|
|
123
121
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_OemSupportInfo) },
|
|
124
122
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_OemSupportInfo) },
|
|
125
|
-
{ }
|
|
123
|
+
{ }
|
|
126
124
|
};
|
|
127
125
|
|
|
128
|
-
static PyType_Spec type_spec_OemSupportInfo =
|
|
129
|
-
{
|
|
126
|
+
static PyType_Spec type_spec_OemSupportInfo = {
|
|
130
127
|
"winrt._winrt_windows_system_profile_systemmanufacturers.OemSupportInfo",
|
|
131
128
|
sizeof(py::wrapper::Windows::System::Profile::SystemManufacturers::OemSupportInfo),
|
|
132
129
|
0,
|
|
133
130
|
Py_TPFLAGS_DEFAULT,
|
|
134
|
-
_type_slots_OemSupportInfo
|
|
135
|
-
};
|
|
131
|
+
_type_slots_OemSupportInfo};
|
|
136
132
|
|
|
137
133
|
// ----- SmbiosInformation class --------------------
|
|
138
134
|
|
|
@@ -145,14 +141,14 @@ namespace py::cpp::Windows::System::Profile::SystemManufacturers
|
|
|
145
141
|
|
|
146
142
|
static PyObject* SmbiosInformation_get_SerialNumber(PyObject* /*unused*/, void* /*unused*/) noexcept
|
|
147
143
|
{
|
|
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
144
|
try
|
|
155
145
|
{
|
|
146
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.SmbiosInformation", L"SerialNumber"))
|
|
147
|
+
{
|
|
148
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
149
|
+
return nullptr;
|
|
150
|
+
}
|
|
151
|
+
|
|
156
152
|
return py::convert(winrt::Windows::System::Profile::SystemManufacturers::SmbiosInformation::SerialNumber());
|
|
157
153
|
}
|
|
158
154
|
catch (...)
|
|
@@ -170,22 +166,19 @@ namespace py::cpp::Windows::System::Profile::SystemManufacturers
|
|
|
170
166
|
{ }
|
|
171
167
|
};
|
|
172
168
|
|
|
173
|
-
static PyType_Slot _type_slots_SmbiosInformation[] =
|
|
174
|
-
{
|
|
169
|
+
static PyType_Slot _type_slots_SmbiosInformation[] = {
|
|
175
170
|
{ Py_tp_new, reinterpret_cast<void*>(_new_SmbiosInformation) },
|
|
176
171
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_SmbiosInformation) },
|
|
177
172
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_SmbiosInformation) },
|
|
178
|
-
{ }
|
|
173
|
+
{ }
|
|
179
174
|
};
|
|
180
175
|
|
|
181
|
-
static PyType_Spec type_spec_SmbiosInformation =
|
|
182
|
-
{
|
|
176
|
+
static PyType_Spec type_spec_SmbiosInformation = {
|
|
183
177
|
"winrt._winrt_windows_system_profile_systemmanufacturers.SmbiosInformation",
|
|
184
178
|
0,
|
|
185
179
|
0,
|
|
186
180
|
Py_TPFLAGS_DEFAULT,
|
|
187
|
-
_type_slots_SmbiosInformation
|
|
188
|
-
};
|
|
181
|
+
_type_slots_SmbiosInformation};
|
|
189
182
|
|
|
190
183
|
static PyGetSetDef getset_SmbiosInformation_Static[] = {
|
|
191
184
|
{ "serial_number", reinterpret_cast<getter>(SmbiosInformation_get_SerialNumber), nullptr, nullptr, nullptr },
|
|
@@ -232,14 +225,14 @@ namespace py::cpp::Windows::System::Profile::SystemManufacturers
|
|
|
232
225
|
|
|
233
226
|
static PyObject* SystemSupportDeviceInfo_get_FriendlyName(py::wrapper::Windows::System::Profile::SystemManufacturers::SystemSupportDeviceInfo* self, void* /*unused*/) noexcept
|
|
234
227
|
{
|
|
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
228
|
try
|
|
242
229
|
{
|
|
230
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.SystemSupportDeviceInfo", L"FriendlyName"))
|
|
231
|
+
{
|
|
232
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
233
|
+
return nullptr;
|
|
234
|
+
}
|
|
235
|
+
|
|
243
236
|
return py::convert(self->obj.FriendlyName());
|
|
244
237
|
}
|
|
245
238
|
catch (...)
|
|
@@ -251,14 +244,14 @@ namespace py::cpp::Windows::System::Profile::SystemManufacturers
|
|
|
251
244
|
|
|
252
245
|
static PyObject* SystemSupportDeviceInfo_get_OperatingSystem(py::wrapper::Windows::System::Profile::SystemManufacturers::SystemSupportDeviceInfo* self, void* /*unused*/) noexcept
|
|
253
246
|
{
|
|
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
247
|
try
|
|
261
248
|
{
|
|
249
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.SystemSupportDeviceInfo", L"OperatingSystem"))
|
|
250
|
+
{
|
|
251
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
252
|
+
return nullptr;
|
|
253
|
+
}
|
|
254
|
+
|
|
262
255
|
return py::convert(self->obj.OperatingSystem());
|
|
263
256
|
}
|
|
264
257
|
catch (...)
|
|
@@ -270,14 +263,14 @@ namespace py::cpp::Windows::System::Profile::SystemManufacturers
|
|
|
270
263
|
|
|
271
264
|
static PyObject* SystemSupportDeviceInfo_get_SystemFirmwareVersion(py::wrapper::Windows::System::Profile::SystemManufacturers::SystemSupportDeviceInfo* self, void* /*unused*/) noexcept
|
|
272
265
|
{
|
|
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
266
|
try
|
|
280
267
|
{
|
|
268
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.SystemSupportDeviceInfo", L"SystemFirmwareVersion"))
|
|
269
|
+
{
|
|
270
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
271
|
+
return nullptr;
|
|
272
|
+
}
|
|
273
|
+
|
|
281
274
|
return py::convert(self->obj.SystemFirmwareVersion());
|
|
282
275
|
}
|
|
283
276
|
catch (...)
|
|
@@ -289,14 +282,14 @@ namespace py::cpp::Windows::System::Profile::SystemManufacturers
|
|
|
289
282
|
|
|
290
283
|
static PyObject* SystemSupportDeviceInfo_get_SystemHardwareVersion(py::wrapper::Windows::System::Profile::SystemManufacturers::SystemSupportDeviceInfo* self, void* /*unused*/) noexcept
|
|
291
284
|
{
|
|
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
285
|
try
|
|
299
286
|
{
|
|
287
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.SystemSupportDeviceInfo", L"SystemHardwareVersion"))
|
|
288
|
+
{
|
|
289
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
290
|
+
return nullptr;
|
|
291
|
+
}
|
|
292
|
+
|
|
300
293
|
return py::convert(self->obj.SystemHardwareVersion());
|
|
301
294
|
}
|
|
302
295
|
catch (...)
|
|
@@ -308,14 +301,14 @@ namespace py::cpp::Windows::System::Profile::SystemManufacturers
|
|
|
308
301
|
|
|
309
302
|
static PyObject* SystemSupportDeviceInfo_get_SystemManufacturer(py::wrapper::Windows::System::Profile::SystemManufacturers::SystemSupportDeviceInfo* self, void* /*unused*/) noexcept
|
|
310
303
|
{
|
|
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
304
|
try
|
|
318
305
|
{
|
|
306
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.SystemSupportDeviceInfo", L"SystemManufacturer"))
|
|
307
|
+
{
|
|
308
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
309
|
+
return nullptr;
|
|
310
|
+
}
|
|
311
|
+
|
|
319
312
|
return py::convert(self->obj.SystemManufacturer());
|
|
320
313
|
}
|
|
321
314
|
catch (...)
|
|
@@ -327,14 +320,14 @@ namespace py::cpp::Windows::System::Profile::SystemManufacturers
|
|
|
327
320
|
|
|
328
321
|
static PyObject* SystemSupportDeviceInfo_get_SystemProductName(py::wrapper::Windows::System::Profile::SystemManufacturers::SystemSupportDeviceInfo* self, void* /*unused*/) noexcept
|
|
329
322
|
{
|
|
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
323
|
try
|
|
337
324
|
{
|
|
325
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.SystemSupportDeviceInfo", L"SystemProductName"))
|
|
326
|
+
{
|
|
327
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
328
|
+
return nullptr;
|
|
329
|
+
}
|
|
330
|
+
|
|
338
331
|
return py::convert(self->obj.SystemProductName());
|
|
339
332
|
}
|
|
340
333
|
catch (...)
|
|
@@ -346,14 +339,14 @@ namespace py::cpp::Windows::System::Profile::SystemManufacturers
|
|
|
346
339
|
|
|
347
340
|
static PyObject* SystemSupportDeviceInfo_get_SystemSku(py::wrapper::Windows::System::Profile::SystemManufacturers::SystemSupportDeviceInfo* self, void* /*unused*/) noexcept
|
|
348
341
|
{
|
|
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
342
|
try
|
|
356
343
|
{
|
|
344
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.SystemSupportDeviceInfo", L"SystemSku"))
|
|
345
|
+
{
|
|
346
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
347
|
+
return nullptr;
|
|
348
|
+
}
|
|
349
|
+
|
|
357
350
|
return py::convert(self->obj.SystemSku());
|
|
358
351
|
}
|
|
359
352
|
catch (...)
|
|
@@ -404,23 +397,20 @@ namespace py::cpp::Windows::System::Profile::SystemManufacturers
|
|
|
404
397
|
{ }
|
|
405
398
|
};
|
|
406
399
|
|
|
407
|
-
static PyType_Slot _type_slots_SystemSupportDeviceInfo[] =
|
|
408
|
-
{
|
|
400
|
+
static PyType_Slot _type_slots_SystemSupportDeviceInfo[] = {
|
|
409
401
|
{ Py_tp_new, reinterpret_cast<void*>(_new_SystemSupportDeviceInfo) },
|
|
410
402
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_SystemSupportDeviceInfo) },
|
|
411
403
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_SystemSupportDeviceInfo) },
|
|
412
404
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_SystemSupportDeviceInfo) },
|
|
413
|
-
{ }
|
|
405
|
+
{ }
|
|
414
406
|
};
|
|
415
407
|
|
|
416
|
-
static PyType_Spec type_spec_SystemSupportDeviceInfo =
|
|
417
|
-
{
|
|
408
|
+
static PyType_Spec type_spec_SystemSupportDeviceInfo = {
|
|
418
409
|
"winrt._winrt_windows_system_profile_systemmanufacturers.SystemSupportDeviceInfo",
|
|
419
410
|
sizeof(py::wrapper::Windows::System::Profile::SystemManufacturers::SystemSupportDeviceInfo),
|
|
420
411
|
0,
|
|
421
412
|
Py_TPFLAGS_DEFAULT,
|
|
422
|
-
_type_slots_SystemSupportDeviceInfo
|
|
423
|
-
};
|
|
413
|
+
_type_slots_SystemSupportDeviceInfo};
|
|
424
414
|
|
|
425
415
|
// ----- SystemSupportInfo class --------------------
|
|
426
416
|
|
|
@@ -433,14 +423,14 @@ namespace py::cpp::Windows::System::Profile::SystemManufacturers
|
|
|
433
423
|
|
|
434
424
|
static PyObject* SystemSupportInfo_get_LocalSystemEdition(PyObject* /*unused*/, void* /*unused*/) noexcept
|
|
435
425
|
{
|
|
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
426
|
try
|
|
443
427
|
{
|
|
428
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.SystemSupportInfo", L"LocalSystemEdition"))
|
|
429
|
+
{
|
|
430
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
431
|
+
return nullptr;
|
|
432
|
+
}
|
|
433
|
+
|
|
444
434
|
return py::convert(winrt::Windows::System::Profile::SystemManufacturers::SystemSupportInfo::LocalSystemEdition());
|
|
445
435
|
}
|
|
446
436
|
catch (...)
|
|
@@ -452,14 +442,14 @@ namespace py::cpp::Windows::System::Profile::SystemManufacturers
|
|
|
452
442
|
|
|
453
443
|
static PyObject* SystemSupportInfo_get_OemSupportInfo(PyObject* /*unused*/, void* /*unused*/) noexcept
|
|
454
444
|
{
|
|
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
445
|
try
|
|
462
446
|
{
|
|
447
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.SystemSupportInfo", L"OemSupportInfo"))
|
|
448
|
+
{
|
|
449
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
450
|
+
return nullptr;
|
|
451
|
+
}
|
|
452
|
+
|
|
463
453
|
return py::convert(winrt::Windows::System::Profile::SystemManufacturers::SystemSupportInfo::OemSupportInfo());
|
|
464
454
|
}
|
|
465
455
|
catch (...)
|
|
@@ -471,14 +461,14 @@ namespace py::cpp::Windows::System::Profile::SystemManufacturers
|
|
|
471
461
|
|
|
472
462
|
static PyObject* SystemSupportInfo_get_LocalDeviceInfo(PyObject* /*unused*/, void* /*unused*/) noexcept
|
|
473
463
|
{
|
|
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
464
|
try
|
|
481
465
|
{
|
|
466
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.SystemSupportInfo", L"LocalDeviceInfo"))
|
|
467
|
+
{
|
|
468
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
469
|
+
return nullptr;
|
|
470
|
+
}
|
|
471
|
+
|
|
482
472
|
return py::convert(winrt::Windows::System::Profile::SystemManufacturers::SystemSupportInfo::LocalDeviceInfo());
|
|
483
473
|
}
|
|
484
474
|
catch (...)
|
|
@@ -496,22 +486,19 @@ namespace py::cpp::Windows::System::Profile::SystemManufacturers
|
|
|
496
486
|
{ }
|
|
497
487
|
};
|
|
498
488
|
|
|
499
|
-
static PyType_Slot _type_slots_SystemSupportInfo[] =
|
|
500
|
-
{
|
|
489
|
+
static PyType_Slot _type_slots_SystemSupportInfo[] = {
|
|
501
490
|
{ Py_tp_new, reinterpret_cast<void*>(_new_SystemSupportInfo) },
|
|
502
491
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_SystemSupportInfo) },
|
|
503
492
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_SystemSupportInfo) },
|
|
504
|
-
{ }
|
|
493
|
+
{ }
|
|
505
494
|
};
|
|
506
495
|
|
|
507
|
-
static PyType_Spec type_spec_SystemSupportInfo =
|
|
508
|
-
{
|
|
496
|
+
static PyType_Spec type_spec_SystemSupportInfo = {
|
|
509
497
|
"winrt._winrt_windows_system_profile_systemmanufacturers.SystemSupportInfo",
|
|
510
498
|
0,
|
|
511
499
|
0,
|
|
512
500
|
Py_TPFLAGS_DEFAULT,
|
|
513
|
-
_type_slots_SystemSupportInfo
|
|
514
|
-
};
|
|
501
|
+
_type_slots_SystemSupportInfo};
|
|
515
502
|
|
|
516
503
|
static PyGetSetDef getset_SystemSupportInfo_Static[] = {
|
|
517
504
|
{ "local_system_edition", reinterpret_cast<getter>(SystemSupportInfo_get_LocalSystemEdition), nullptr, nullptr, nullptr },
|
|
@@ -542,20 +529,19 @@ namespace py::cpp::Windows::System::Profile::SystemManufacturers
|
|
|
542
529
|
};
|
|
543
530
|
|
|
544
531
|
// ----- Windows.System.Profile.SystemManufacturers Initialization --------------------
|
|
545
|
-
PyDoc_STRVAR(module_doc, "Windows::System::Profile::SystemManufacturers");
|
|
546
532
|
|
|
533
|
+
PyDoc_STRVAR(module_doc, "Windows.System.Profile.SystemManufacturers");
|
|
547
534
|
|
|
548
|
-
static PyModuleDef module_def
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
535
|
+
static PyModuleDef module_def = {
|
|
536
|
+
PyModuleDef_HEAD_INIT,
|
|
537
|
+
"_winrt_windows_system_profile_systemmanufacturers",
|
|
538
|
+
module_doc,
|
|
539
|
+
0,
|
|
540
|
+
nullptr,
|
|
541
|
+
nullptr,
|
|
542
|
+
nullptr,
|
|
543
|
+
nullptr,
|
|
544
|
+
nullptr};
|
|
559
545
|
} // py::cpp::Windows::System::Profile::SystemManufacturers
|
|
560
546
|
|
|
561
547
|
PyMODINIT_FUNC PyInit__winrt_windows_system_profile_systemmanufacturers(void) noexcept
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
2
|
|
|
3
3
|
[build-system]
|
|
4
|
-
requires = ["setuptools", "
|
|
4
|
+
requires = ["setuptools", "winrt-sdk"]
|
|
5
5
|
build-backend = "setuptools.build_meta"
|
|
6
6
|
|
|
7
7
|
[project]
|
|
@@ -30,7 +30,7 @@ dependencies = { file = "requirements.txt" }
|
|
|
30
30
|
optional-dependencies.all = { file = "all-requirements.txt" }
|
|
31
31
|
|
|
32
32
|
[tool.setuptools.package-data]
|
|
33
|
-
|
|
33
|
+
"*" = ["*.pyi", "py.typed"]
|
|
34
34
|
|
|
35
35
|
[tool.cibuildwheel]
|
|
36
36
|
# use local winrt-sdk build dependency
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.1.0
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.
|
|
3
|
+
winrt-runtime==2.1.0
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
+
|
|
3
|
+
from setuptools import Extension, setup
|
|
4
|
+
from setuptools.command.build_ext import build_ext
|
|
5
|
+
from winrt_sdk import get_include_dirs
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class build_ext_ex(build_ext):
|
|
9
|
+
def build_extension(self, ext):
|
|
10
|
+
if self.compiler.compiler_type == "msvc":
|
|
11
|
+
ext.extra_compile_args = ["/std:c++20", "/permissive-"]
|
|
12
|
+
elif self.compiler.compiler_type == "mingw32":
|
|
13
|
+
ext.extra_compile_args = ["-std=c++20", "-D_WIN32_WINNT=_WIN32_WINNT_WIN10"]
|
|
14
|
+
ext.extra_link_args = ["-loleaut32"]
|
|
15
|
+
else:
|
|
16
|
+
raise ValueError(f"Unsupported compiler: {self.compiler.compiler_type}")
|
|
17
|
+
|
|
18
|
+
build_ext.build_extension(self, ext)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
setup(
|
|
22
|
+
cmdclass = {'build_ext': build_ext_ex},
|
|
23
|
+
ext_modules=[
|
|
24
|
+
Extension(
|
|
25
|
+
"winrt._winrt_windows_system_profile_systemmanufacturers",
|
|
26
|
+
sources=["py.Windows.System.Profile.SystemManufacturers.cpp"],
|
|
27
|
+
include_dirs=get_include_dirs(),
|
|
28
|
+
libraries=["windowsapp"],
|
|
29
|
+
)
|
|
30
|
+
],
|
|
31
|
+
)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.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
|
|
|
File without changes
|
|
@@ -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.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -12,7 +12,9 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
13
|
Requires-Python: <3.13,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
+
Requires-Dist: winrt-runtime==2.1.0
|
|
15
16
|
Provides-Extra: all
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
|
|
16
18
|
|
|
17
19
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
18
20
|
|
|
@@ -7,6 +7,7 @@ requirements.txt
|
|
|
7
7
|
setup.py
|
|
8
8
|
winrt/_winrt_windows_system_profile_systemmanufacturers.pyi
|
|
9
9
|
winrt/windows/system/profile/systemmanufacturers/__init__.py
|
|
10
|
+
winrt/windows/system/profile/systemmanufacturers/py.typed
|
|
10
11
|
winrt_Windows.System.Profile.SystemManufacturers.egg-info/PKG-INFO
|
|
11
12
|
winrt_Windows.System.Profile.SystemManufacturers.egg-info/SOURCES.txt
|
|
12
13
|
winrt_Windows.System.Profile.SystemManufacturers.egg-info/dependency_links.txt
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.0.0-beta.2
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
-
|
|
3
|
-
from setuptools import Extension, setup
|
|
4
|
-
from winrt_sdk import get_include_dirs
|
|
5
|
-
|
|
6
|
-
setup(
|
|
7
|
-
ext_modules=[
|
|
8
|
-
Extension(
|
|
9
|
-
"winrt._winrt_windows_system_profile_systemmanufacturers",
|
|
10
|
-
sources=["py.Windows.System.Profile.SystemManufacturers.cpp"],
|
|
11
|
-
include_dirs=get_include_dirs(),
|
|
12
|
-
extra_compile_args=["/std:c++20", "/permissive-"],
|
|
13
|
-
libraries=["windowsapp"],
|
|
14
|
-
)
|
|
15
|
-
],
|
|
16
|
-
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|