winrt-Windows.System.Inventory 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_inventory-2.0.1 → winrt_windows_system_inventory-2.2.0}/PKG-INFO +5 -5
- winrt_windows_system_inventory-2.2.0/all-requirements.txt +4 -0
- {winrt_windows_system_inventory-2.0.1 → winrt_windows_system_inventory-2.2.0}/py.Windows.System.Inventory.cpp +96 -58
- {winrt_windows_system_inventory-2.0.1 → winrt_windows_system_inventory-2.2.0}/pyproject.toml +3 -2
- winrt_windows_system_inventory-2.2.0/pywinrt-version.txt +1 -0
- {winrt_windows_system_inventory-2.0.1 → winrt_windows_system_inventory-2.2.0}/requirements.txt +2 -2
- {winrt_windows_system_inventory-2.0.1 → winrt_windows_system_inventory-2.2.0}/winrt/_winrt_windows_system_inventory.pyi +4 -4
- {winrt_windows_system_inventory-2.0.1 → winrt_windows_system_inventory-2.2.0}/winrt/windows/system/inventory/__init__.py +1 -1
- {winrt_windows_system_inventory-2.0.1 → winrt_windows_system_inventory-2.2.0}/winrt_Windows.System.Inventory.egg-info/PKG-INFO +5 -5
- winrt_windows_system_inventory-2.2.0/winrt_Windows.System.Inventory.egg-info/requires.txt +5 -0
- winrt_windows_system_inventory-2.0.1/all-requirements.txt +0 -4
- winrt_windows_system_inventory-2.0.1/pywinrt-version.txt +0 -1
- winrt_windows_system_inventory-2.0.1/winrt_Windows.System.Inventory.egg-info/requires.txt +0 -5
- {winrt_windows_system_inventory-2.0.1 → winrt_windows_system_inventory-2.2.0}/README.md +0 -0
- {winrt_windows_system_inventory-2.0.1 → winrt_windows_system_inventory-2.2.0}/setup.cfg +0 -0
- {winrt_windows_system_inventory-2.0.1 → winrt_windows_system_inventory-2.2.0}/setup.py +0 -0
- {winrt_windows_system_inventory-2.0.1 → winrt_windows_system_inventory-2.2.0}/winrt/windows/system/inventory/py.typed +0 -0
- {winrt_windows_system_inventory-2.0.1 → winrt_windows_system_inventory-2.2.0}/winrt_Windows.System.Inventory.egg-info/SOURCES.txt +0 -0
- {winrt_windows_system_inventory-2.0.1 → winrt_windows_system_inventory-2.2.0}/winrt_Windows.System.Inventory.egg-info/dependency_links.txt +0 -0
- {winrt_windows_system_inventory-2.0.1 → winrt_windows_system_inventory-2.2.0}/winrt_Windows.System.Inventory.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.System.Inventory
|
|
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,12 +10,12 @@ 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
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.0
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.2.0; extra == "all"
|
|
19
19
|
|
|
20
20
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
21
21
|
|
|
@@ -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.Inventory.h"
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
namespace py::cpp::Windows::System::Inventory
|
|
7
6
|
{
|
|
8
7
|
// ----- InstalledDesktopApp class --------------------
|
|
@@ -28,14 +27,21 @@ namespace py::cpp::Windows::System::Inventory
|
|
|
28
27
|
|
|
29
28
|
if (arg_count == 0)
|
|
30
29
|
{
|
|
31
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Inventory.InstalledDesktopApp", L"GetInventoryAsync", 0))
|
|
32
|
-
{
|
|
33
|
-
py::set_arg_count_version_error(0);
|
|
34
|
-
return nullptr;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
30
|
try
|
|
38
31
|
{
|
|
32
|
+
static std::optional<bool> is_overload_present{};
|
|
33
|
+
|
|
34
|
+
if (!is_overload_present.has_value())
|
|
35
|
+
{
|
|
36
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Inventory.InstalledDesktopApp", L"GetInventoryAsync", 0);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if (!is_overload_present.value())
|
|
40
|
+
{
|
|
41
|
+
py::set_arg_count_version_error(0);
|
|
42
|
+
return nullptr;
|
|
43
|
+
}
|
|
44
|
+
|
|
39
45
|
return py::convert(winrt::Windows::System::Inventory::InstalledDesktopApp::GetInventoryAsync());
|
|
40
46
|
}
|
|
41
47
|
catch (...)
|
|
@@ -57,14 +63,21 @@ namespace py::cpp::Windows::System::Inventory
|
|
|
57
63
|
|
|
58
64
|
if (arg_count == 0)
|
|
59
65
|
{
|
|
60
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Inventory.InstalledDesktopApp", L"ToString", 0))
|
|
61
|
-
{
|
|
62
|
-
py::set_arg_count_version_error(0);
|
|
63
|
-
return nullptr;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
66
|
try
|
|
67
67
|
{
|
|
68
|
+
static std::optional<bool> is_overload_present{};
|
|
69
|
+
|
|
70
|
+
if (!is_overload_present.has_value())
|
|
71
|
+
{
|
|
72
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Inventory.InstalledDesktopApp", L"ToString", 0);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if (!is_overload_present.value())
|
|
76
|
+
{
|
|
77
|
+
py::set_arg_count_version_error(0);
|
|
78
|
+
return nullptr;
|
|
79
|
+
}
|
|
80
|
+
|
|
68
81
|
return py::convert(self->obj.ToString());
|
|
69
82
|
}
|
|
70
83
|
catch (...)
|
|
@@ -82,14 +95,21 @@ namespace py::cpp::Windows::System::Inventory
|
|
|
82
95
|
|
|
83
96
|
static PyObject* InstalledDesktopApp_get_DisplayName(py::wrapper::Windows::System::Inventory::InstalledDesktopApp* self, void* /*unused*/) noexcept
|
|
84
97
|
{
|
|
85
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Inventory.InstalledDesktopApp", L"DisplayName"))
|
|
86
|
-
{
|
|
87
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
88
|
-
return nullptr;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
98
|
try
|
|
92
99
|
{
|
|
100
|
+
static std::optional<bool> is_property_present{};
|
|
101
|
+
|
|
102
|
+
if (!is_property_present.has_value())
|
|
103
|
+
{
|
|
104
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Inventory.InstalledDesktopApp", L"DisplayName");
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
if (!is_property_present.value())
|
|
108
|
+
{
|
|
109
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
110
|
+
return nullptr;
|
|
111
|
+
}
|
|
112
|
+
|
|
93
113
|
return py::convert(self->obj.DisplayName());
|
|
94
114
|
}
|
|
95
115
|
catch (...)
|
|
@@ -101,14 +121,21 @@ namespace py::cpp::Windows::System::Inventory
|
|
|
101
121
|
|
|
102
122
|
static PyObject* InstalledDesktopApp_get_DisplayVersion(py::wrapper::Windows::System::Inventory::InstalledDesktopApp* self, void* /*unused*/) noexcept
|
|
103
123
|
{
|
|
104
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Inventory.InstalledDesktopApp", L"DisplayVersion"))
|
|
105
|
-
{
|
|
106
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
107
|
-
return nullptr;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
124
|
try
|
|
111
125
|
{
|
|
126
|
+
static std::optional<bool> is_property_present{};
|
|
127
|
+
|
|
128
|
+
if (!is_property_present.has_value())
|
|
129
|
+
{
|
|
130
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Inventory.InstalledDesktopApp", L"DisplayVersion");
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
if (!is_property_present.value())
|
|
134
|
+
{
|
|
135
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
136
|
+
return nullptr;
|
|
137
|
+
}
|
|
138
|
+
|
|
112
139
|
return py::convert(self->obj.DisplayVersion());
|
|
113
140
|
}
|
|
114
141
|
catch (...)
|
|
@@ -120,14 +147,21 @@ namespace py::cpp::Windows::System::Inventory
|
|
|
120
147
|
|
|
121
148
|
static PyObject* InstalledDesktopApp_get_Id(py::wrapper::Windows::System::Inventory::InstalledDesktopApp* self, void* /*unused*/) noexcept
|
|
122
149
|
{
|
|
123
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Inventory.InstalledDesktopApp", L"Id"))
|
|
124
|
-
{
|
|
125
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
126
|
-
return nullptr;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
150
|
try
|
|
130
151
|
{
|
|
152
|
+
static std::optional<bool> is_property_present{};
|
|
153
|
+
|
|
154
|
+
if (!is_property_present.has_value())
|
|
155
|
+
{
|
|
156
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Inventory.InstalledDesktopApp", L"Id");
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
if (!is_property_present.value())
|
|
160
|
+
{
|
|
161
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
162
|
+
return nullptr;
|
|
163
|
+
}
|
|
164
|
+
|
|
131
165
|
return py::convert(self->obj.Id());
|
|
132
166
|
}
|
|
133
167
|
catch (...)
|
|
@@ -139,14 +173,21 @@ namespace py::cpp::Windows::System::Inventory
|
|
|
139
173
|
|
|
140
174
|
static PyObject* InstalledDesktopApp_get_Publisher(py::wrapper::Windows::System::Inventory::InstalledDesktopApp* self, void* /*unused*/) noexcept
|
|
141
175
|
{
|
|
142
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Inventory.InstalledDesktopApp", L"Publisher"))
|
|
143
|
-
{
|
|
144
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
145
|
-
return nullptr;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
176
|
try
|
|
149
177
|
{
|
|
178
|
+
static std::optional<bool> is_property_present{};
|
|
179
|
+
|
|
180
|
+
if (!is_property_present.has_value())
|
|
181
|
+
{
|
|
182
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Inventory.InstalledDesktopApp", L"Publisher");
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
if (!is_property_present.value())
|
|
186
|
+
{
|
|
187
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
188
|
+
return nullptr;
|
|
189
|
+
}
|
|
190
|
+
|
|
150
191
|
return py::convert(self->obj.Publisher());
|
|
151
192
|
}
|
|
152
193
|
catch (...)
|
|
@@ -208,24 +249,21 @@ namespace py::cpp::Windows::System::Inventory
|
|
|
208
249
|
{ }
|
|
209
250
|
};
|
|
210
251
|
|
|
211
|
-
static PyType_Slot _type_slots_InstalledDesktopApp[] =
|
|
212
|
-
{
|
|
252
|
+
static PyType_Slot _type_slots_InstalledDesktopApp[] = {
|
|
213
253
|
{ Py_tp_new, reinterpret_cast<void*>(_new_InstalledDesktopApp) },
|
|
214
254
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_InstalledDesktopApp) },
|
|
215
255
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_InstalledDesktopApp) },
|
|
216
256
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_InstalledDesktopApp) },
|
|
217
257
|
{ Py_tp_str, reinterpret_cast<void*>(_str_InstalledDesktopApp) },
|
|
218
|
-
{ }
|
|
258
|
+
{ }
|
|
219
259
|
};
|
|
220
260
|
|
|
221
|
-
static PyType_Spec type_spec_InstalledDesktopApp =
|
|
222
|
-
{
|
|
261
|
+
static PyType_Spec type_spec_InstalledDesktopApp = {
|
|
223
262
|
"winrt._winrt_windows_system_inventory.InstalledDesktopApp",
|
|
224
263
|
sizeof(py::wrapper::Windows::System::Inventory::InstalledDesktopApp),
|
|
225
264
|
0,
|
|
226
265
|
Py_TPFLAGS_DEFAULT,
|
|
227
|
-
_type_slots_InstalledDesktopApp
|
|
228
|
-
};
|
|
266
|
+
_type_slots_InstalledDesktopApp};
|
|
229
267
|
|
|
230
268
|
static PyGetSetDef getset_InstalledDesktopApp_Static[] = {
|
|
231
269
|
{ }
|
|
@@ -254,20 +292,19 @@ namespace py::cpp::Windows::System::Inventory
|
|
|
254
292
|
};
|
|
255
293
|
|
|
256
294
|
// ----- Windows.System.Inventory Initialization --------------------
|
|
257
|
-
PyDoc_STRVAR(module_doc, "Windows::System::Inventory");
|
|
258
295
|
|
|
296
|
+
PyDoc_STRVAR(module_doc, "Windows.System.Inventory");
|
|
259
297
|
|
|
260
|
-
static PyModuleDef module_def
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
298
|
+
static PyModuleDef module_def = {
|
|
299
|
+
PyModuleDef_HEAD_INIT,
|
|
300
|
+
"_winrt_windows_system_inventory",
|
|
301
|
+
module_doc,
|
|
302
|
+
0,
|
|
303
|
+
nullptr,
|
|
304
|
+
nullptr,
|
|
305
|
+
nullptr,
|
|
306
|
+
nullptr,
|
|
307
|
+
nullptr};
|
|
271
308
|
} // py::cpp::Windows::System::Inventory
|
|
272
309
|
|
|
273
310
|
PyMODINIT_FUNC PyInit__winrt_windows_system_inventory(void) noexcept
|
|
@@ -305,7 +342,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_inventory(void) noexcept
|
|
|
305
342
|
return nullptr;
|
|
306
343
|
}
|
|
307
344
|
|
|
308
|
-
|
|
345
|
+
py::pytype_handle InstalledDesktopApp_type{py::register_python_type(module.get(), &type_spec_InstalledDesktopApp, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_InstalledDesktopApp_Static.get()))};
|
|
346
|
+
if (!InstalledDesktopApp_type)
|
|
309
347
|
{
|
|
310
348
|
return nullptr;
|
|
311
349
|
}
|
{winrt_windows_system_inventory-2.0.1 → winrt_windows_system_inventory-2.2.0}/pyproject.toml
RENAMED
|
@@ -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
|
{winrt_windows_system_inventory-2.0.1 → winrt_windows_system_inventory-2.2.0}/requirements.txt
RENAMED
|
@@ -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,14 +9,14 @@ from builtins import property as _property
|
|
|
9
9
|
|
|
10
10
|
import winrt._winrt
|
|
11
11
|
import winrt.system
|
|
12
|
-
import winrt.windows.foundation
|
|
13
|
-
import winrt.windows.foundation.collections
|
|
12
|
+
import winrt.windows.foundation as windows_foundation
|
|
13
|
+
import winrt.windows.foundation.collections as windows_foundation_collections
|
|
14
14
|
|
|
15
15
|
Self = typing.TypeVar('Self')
|
|
16
16
|
|
|
17
17
|
@typing.final
|
|
18
18
|
class InstalledDesktopApp_Static(type):
|
|
19
|
-
def get_inventory_async(cls) ->
|
|
19
|
+
def get_inventory_async(cls) -> windows_foundation.IAsyncOperation[windows_foundation_collections.IVectorView[InstalledDesktopApp]]: ...
|
|
20
20
|
|
|
21
21
|
@typing.final
|
|
22
22
|
class InstalledDesktopApp(winrt.system.Object, metaclass=InstalledDesktopApp_Static):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.System.Inventory
|
|
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,12 +10,12 @@ 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
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.0
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.2.0; extra == "all"
|
|
19
19
|
|
|
20
20
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
21
21
|
|
|
@@ -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
|