winrt-Windows.System.Inventory 2.2.0__tar.gz → 3.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (22) hide show
  1. {winrt_windows_system_inventory-2.2.0 → winrt_windows_system_inventory-3.0.0}/PKG-INFO +5 -5
  2. winrt_windows_system_inventory-3.0.0/all-requirements.txt +4 -0
  3. {winrt_windows_system_inventory-2.2.0 → winrt_windows_system_inventory-3.0.0}/py.Windows.System.Inventory.cpp +58 -25
  4. {winrt_windows_system_inventory-2.2.0 → winrt_windows_system_inventory-3.0.0}/pyproject.toml +2 -2
  5. winrt_windows_system_inventory-3.0.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_system_inventory-2.2.0 → winrt_windows_system_inventory-3.0.0}/requirements.txt +2 -2
  7. {winrt_windows_system_inventory-2.2.0 → winrt_windows_system_inventory-3.0.0}/setup.py +1 -1
  8. winrt_windows_system_inventory-3.0.0/winrt/_winrt_windows_system_inventory.pyi +39 -0
  9. winrt_windows_system_inventory-3.0.0/winrt/windows/system/inventory/__init__.py +11 -0
  10. {winrt_windows_system_inventory-2.2.0 → winrt_windows_system_inventory-3.0.0}/winrt_Windows.System.Inventory.egg-info/PKG-INFO +5 -5
  11. winrt_windows_system_inventory-3.0.0/winrt_Windows.System.Inventory.egg-info/requires.txt +5 -0
  12. winrt_windows_system_inventory-2.2.0/all-requirements.txt +0 -4
  13. winrt_windows_system_inventory-2.2.0/pywinrt-version.txt +0 -1
  14. winrt_windows_system_inventory-2.2.0/winrt/_winrt_windows_system_inventory.pyi +0 -35
  15. winrt_windows_system_inventory-2.2.0/winrt/windows/system/inventory/__init__.py +0 -10
  16. winrt_windows_system_inventory-2.2.0/winrt_Windows.System.Inventory.egg-info/requires.txt +0 -5
  17. {winrt_windows_system_inventory-2.2.0 → winrt_windows_system_inventory-3.0.0}/README.md +0 -0
  18. {winrt_windows_system_inventory-2.2.0 → winrt_windows_system_inventory-3.0.0}/setup.cfg +0 -0
  19. {winrt_windows_system_inventory-2.2.0 → winrt_windows_system_inventory-3.0.0}/winrt/windows/system/inventory/py.typed +0 -0
  20. {winrt_windows_system_inventory-2.2.0 → winrt_windows_system_inventory-3.0.0}/winrt_Windows.System.Inventory.egg-info/SOURCES.txt +0 -0
  21. {winrt_windows_system_inventory-2.2.0 → winrt_windows_system_inventory-3.0.0}/winrt_Windows.System.Inventory.egg-info/dependency_links.txt +0 -0
  22. {winrt_windows_system_inventory-2.2.0 → winrt_windows_system_inventory-3.0.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.2.0
3
+ Version: 3.0.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.14,>=3.9
13
+ Requires-Python: >=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.2.0
15
+ Requires-Dist: winrt-runtime==3.0.0
16
16
  Provides-Extra: all
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"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==3.0.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.0.0; extra == "all"
19
19
 
20
20
  <!-- warning: Please don't edit this file. It was automatically generated. -->
21
21
 
@@ -0,0 +1,4 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
+
3
+ winrt-Windows.Foundation[all]==3.0.0
4
+ winrt-Windows.Foundation.Collections[all]==3.0.0
@@ -1,4 +1,4 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
2
 
3
3
  #include "py.Windows.System.Inventory.h"
4
4
 
@@ -23,7 +23,7 @@ namespace py::cpp::Windows::System::Inventory
23
23
 
24
24
  static PyObject* InstalledDesktopApp_GetInventoryAsync(PyObject* /*unused*/, PyObject* args) noexcept
25
25
  {
26
- auto arg_count = PyTuple_Size(args);
26
+ auto arg_count = PyTuple_GET_SIZE(args);
27
27
 
28
28
  if (arg_count == 0)
29
29
  {
@@ -42,7 +42,11 @@ namespace py::cpp::Windows::System::Inventory
42
42
  return nullptr;
43
43
  }
44
44
 
45
- return py::convert(winrt::Windows::System::Inventory::InstalledDesktopApp::GetInventoryAsync());
45
+ return py::convert([&]()
46
+ {
47
+ auto _gil = release_gil();
48
+ return winrt::Windows::System::Inventory::InstalledDesktopApp::GetInventoryAsync();
49
+ }());
46
50
  }
47
51
  catch (...)
48
52
  {
@@ -59,7 +63,7 @@ namespace py::cpp::Windows::System::Inventory
59
63
 
60
64
  static PyObject* InstalledDesktopApp_ToString(py::wrapper::Windows::System::Inventory::InstalledDesktopApp* self, PyObject* args) noexcept
61
65
  {
62
- auto arg_count = PyTuple_Size(args);
66
+ auto arg_count = PyTuple_GET_SIZE(args);
63
67
 
64
68
  if (arg_count == 0)
65
69
  {
@@ -78,7 +82,11 @@ namespace py::cpp::Windows::System::Inventory
78
82
  return nullptr;
79
83
  }
80
84
 
81
- return py::convert(self->obj.ToString());
85
+ return py::convert([&]()
86
+ {
87
+ auto _gil = release_gil();
88
+ return self->obj.ToString();
89
+ }());
82
90
  }
83
91
  catch (...)
84
92
  {
@@ -110,7 +118,11 @@ namespace py::cpp::Windows::System::Inventory
110
118
  return nullptr;
111
119
  }
112
120
 
113
- return py::convert(self->obj.DisplayName());
121
+ return py::convert([&]()
122
+ {
123
+ auto _gil = release_gil();
124
+ return self->obj.DisplayName();
125
+ }());
114
126
  }
115
127
  catch (...)
116
128
  {
@@ -136,7 +148,11 @@ namespace py::cpp::Windows::System::Inventory
136
148
  return nullptr;
137
149
  }
138
150
 
139
- return py::convert(self->obj.DisplayVersion());
151
+ return py::convert([&]()
152
+ {
153
+ auto _gil = release_gil();
154
+ return self->obj.DisplayVersion();
155
+ }());
140
156
  }
141
157
  catch (...)
142
158
  {
@@ -162,7 +178,11 @@ namespace py::cpp::Windows::System::Inventory
162
178
  return nullptr;
163
179
  }
164
180
 
165
- return py::convert(self->obj.Id());
181
+ return py::convert([&]()
182
+ {
183
+ auto _gil = release_gil();
184
+ return self->obj.Id();
185
+ }());
166
186
  }
167
187
  catch (...)
168
188
  {
@@ -188,7 +208,11 @@ namespace py::cpp::Windows::System::Inventory
188
208
  return nullptr;
189
209
  }
190
210
 
191
- return py::convert(self->obj.Publisher());
211
+ return py::convert([&]()
212
+ {
213
+ auto _gil = release_gil();
214
+ return self->obj.Publisher();
215
+ }());
192
216
  }
193
217
  catch (...)
194
218
  {
@@ -225,7 +249,11 @@ namespace py::cpp::Windows::System::Inventory
225
249
  {
226
250
  try
227
251
  {
228
- return py::convert(self->obj.ToString());
252
+ return py::convert([&]()
253
+ {
254
+ auto _gil = py::release_gil();
255
+ return self->obj.ToString();
256
+ }());
229
257
  }
230
258
  catch (...)
231
259
  {
@@ -238,16 +266,14 @@ namespace py::cpp::Windows::System::Inventory
238
266
  { "to_string", reinterpret_cast<PyCFunction>(InstalledDesktopApp_ToString), METH_VARARGS, nullptr },
239
267
  { "_assign_array_", _assign_array_InstalledDesktopApp, METH_O | METH_STATIC, nullptr },
240
268
  { "_from", reinterpret_cast<PyCFunction>(_from_InstalledDesktopApp), METH_O | METH_STATIC, nullptr },
241
- { }
242
- };
269
+ { }};
243
270
 
244
271
  static PyGetSetDef _getset_InstalledDesktopApp[] = {
245
272
  { "display_name", reinterpret_cast<getter>(InstalledDesktopApp_get_DisplayName), nullptr, nullptr, nullptr },
246
273
  { "display_version", reinterpret_cast<getter>(InstalledDesktopApp_get_DisplayVersion), nullptr, nullptr, nullptr },
247
274
  { "id", reinterpret_cast<getter>(InstalledDesktopApp_get_Id), nullptr, nullptr, nullptr },
248
275
  { "publisher", reinterpret_cast<getter>(InstalledDesktopApp_get_Publisher), nullptr, nullptr, nullptr },
249
- { }
250
- };
276
+ { }};
251
277
 
252
278
  static PyType_Slot _type_slots_InstalledDesktopApp[] = {
253
279
  { Py_tp_new, reinterpret_cast<void*>(_new_InstalledDesktopApp) },
@@ -255,8 +281,7 @@ namespace py::cpp::Windows::System::Inventory
255
281
  { Py_tp_methods, reinterpret_cast<void*>(_methods_InstalledDesktopApp) },
256
282
  { Py_tp_getset, reinterpret_cast<void*>(_getset_InstalledDesktopApp) },
257
283
  { Py_tp_str, reinterpret_cast<void*>(_str_InstalledDesktopApp) },
258
- { }
259
- };
284
+ { }};
260
285
 
261
286
  static PyType_Spec type_spec_InstalledDesktopApp = {
262
287
  "winrt._winrt_windows_system_inventory.InstalledDesktopApp",
@@ -266,13 +291,11 @@ namespace py::cpp::Windows::System::Inventory
266
291
  _type_slots_InstalledDesktopApp};
267
292
 
268
293
  static PyGetSetDef getset_InstalledDesktopApp_Static[] = {
269
- { }
270
- };
294
+ { }};
271
295
 
272
296
  static PyMethodDef methods_InstalledDesktopApp_Static[] = {
273
297
  { "get_inventory_async", reinterpret_cast<PyCFunction>(InstalledDesktopApp_GetInventoryAsync), METH_VARARGS, nullptr },
274
- { }
275
- };
298
+ { }};
276
299
 
277
300
  static PyType_Slot type_slots_InstalledDesktopApp_Static[] =
278
301
  {
@@ -282,14 +305,12 @@ namespace py::cpp::Windows::System::Inventory
282
305
  { }
283
306
  };
284
307
 
285
- static PyType_Spec type_spec_InstalledDesktopApp_Static =
286
- {
308
+ static PyType_Spec type_spec_InstalledDesktopApp_Static = {
287
309
  "winrt._winrt_windows_system_inventory.InstalledDesktopApp_Static",
288
310
  static_cast<int>(PyType_Type.tp_basicsize),
289
311
  static_cast<int>(PyType_Type.tp_itemsize),
290
312
  Py_TPFLAGS_DEFAULT,
291
- type_slots_InstalledDesktopApp_Static
292
- };
313
+ type_slots_InstalledDesktopApp_Static};
293
314
 
294
315
  // ----- Windows.System.Inventory Initialization --------------------
295
316
 
@@ -323,6 +344,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_inventory(void) noexcept
323
344
  return nullptr;
324
345
  }
325
346
 
347
+ auto inspectable_meta_type = py::get_inspectable_meta_type();
348
+ if (!inspectable_meta_type)
349
+ {
350
+ return nullptr;
351
+ }
352
+
326
353
  auto object_type = py::get_object_type();
327
354
  if (!object_type)
328
355
  {
@@ -336,7 +363,13 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_inventory(void) noexcept
336
363
  return nullptr;
337
364
  }
338
365
 
339
- py::pyobj_handle type_InstalledDesktopApp_Static{PyType_FromSpec(&type_spec_InstalledDesktopApp_Static)};
366
+ py::pyobj_handle InstalledDesktopApp_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
367
+ if (!InstalledDesktopApp_Static_bases)
368
+ {
369
+ return nullptr;
370
+ }
371
+
372
+ py::pyobj_handle type_InstalledDesktopApp_Static{PyType_FromSpecWithBases(&type_spec_InstalledDesktopApp_Static, InstalledDesktopApp_Static_bases.get())};
340
373
  if (!type_InstalledDesktopApp_Static)
341
374
  {
342
375
  return nullptr;
@@ -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.14"
19
+ requires-python = ">=3.9"
20
20
 
21
21
  [project.urls]
22
22
  # Homepage = "https://github.com/pywinrt/pywinrt"
@@ -34,7 +34,7 @@ optional-dependencies.all = { file = "all-requirements.txt" }
34
34
 
35
35
  [tool.cibuildwheel]
36
36
  # use local winrt-sdk build dependency
37
- environment = { PYTHONPATH="../winrt-sdk/src" }
37
+ environment = { PYTHONPATH="../../winrt-sdk/src" }
38
38
  # don't install winrt-sdk from PyPI
39
39
  build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
40
40
  before-build = "uv pip install setuptools"
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
2
 
3
- winrt-runtime==2.2.0
3
+ winrt-runtime==3.0.0
@@ -19,7 +19,7 @@ class build_ext_ex(build_ext):
19
19
 
20
20
 
21
21
  setup(
22
- cmdclass = {'build_ext': build_ext_ex},
22
+ cmdclass={"build_ext": build_ext_ex},
23
23
  ext_modules=[
24
24
  Extension(
25
25
  "winrt._winrt_windows_system_inventory",
@@ -0,0 +1,39 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
+
3
+ import datetime
4
+ import sys
5
+ import types
6
+ import typing
7
+ import uuid as _uuid
8
+ from builtins import property as _property
9
+
10
+ import winrt._winrt
11
+ import winrt.system
12
+ import winrt.windows.foundation as windows_foundation
13
+ import winrt.windows.foundation.collections as windows_foundation_collections
14
+
15
+ Self = typing.TypeVar('Self')
16
+
17
+ @typing.final
18
+ class InstalledDesktopApp_Static(winrt._winrt.IInspectable_Static):
19
+ # Windows.Foundation.IAsyncOperation`1<Windows.Foundation.Collections.IVectorView`1<Windows.System.Inventory.InstalledDesktopApp>> Windows.System.Inventory.InstalledDesktopApp::GetInventoryAsync()
20
+ def get_inventory_async(cls) -> windows_foundation.IAsyncOperation[typing.Sequence[InstalledDesktopApp]]: ...
21
+
22
+ @typing.final
23
+ class InstalledDesktopApp(winrt.system.Object, windows_foundation.IStringable, metaclass=InstalledDesktopApp_Static):
24
+ def __str__(self) -> str: ...
25
+ # System.String Windows.System.Inventory.InstalledDesktopApp::ToString()
26
+ def to_string(self) -> str: ...
27
+ # System.String Windows.System.Inventory.InstalledDesktopApp::get_DisplayName()
28
+ @_property
29
+ def display_name(self) -> str: ...
30
+ # System.String Windows.System.Inventory.InstalledDesktopApp::get_DisplayVersion()
31
+ @_property
32
+ def display_version(self) -> str: ...
33
+ # System.String Windows.System.Inventory.InstalledDesktopApp::get_Id()
34
+ @_property
35
+ def id(self) -> str: ...
36
+ # System.String Windows.System.Inventory.InstalledDesktopApp::get_Publisher()
37
+ @_property
38
+ def publisher(self) -> str: ...
39
+
@@ -0,0 +1,11 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
+
3
+ import winrt.system
4
+ from winrt._winrt_windows_system_inventory import (
5
+ InstalledDesktopApp,
6
+ )
7
+
8
+ __all__ = [
9
+ "InstalledDesktopApp",
10
+ ]
11
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.System.Inventory
3
- Version: 2.2.0
3
+ Version: 3.0.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.14,>=3.9
13
+ Requires-Python: >=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.2.0
15
+ Requires-Dist: winrt-runtime==3.0.0
16
16
  Provides-Extra: all
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"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==3.0.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.0.0; extra == "all"
19
19
 
20
20
  <!-- warning: Please don't edit this file. It was automatically generated. -->
21
21
 
@@ -0,0 +1,5 @@
1
+ winrt-runtime==3.0.0
2
+
3
+ [all]
4
+ winrt-Windows.Foundation[all]==3.0.0
5
+ winrt-Windows.Foundation.Collections[all]==3.0.0
@@ -1,4 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
-
3
- winrt-Windows.Foundation[all]==2.2.0
4
- winrt-Windows.Foundation.Collections[all]==2.2.0
@@ -1,35 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
-
3
- import datetime
4
- import sys
5
- import types
6
- import typing
7
- import uuid as _uuid
8
- from builtins import property as _property
9
-
10
- import winrt._winrt
11
- import winrt.system
12
- import winrt.windows.foundation as windows_foundation
13
- import winrt.windows.foundation.collections as windows_foundation_collections
14
-
15
- Self = typing.TypeVar('Self')
16
-
17
- @typing.final
18
- class InstalledDesktopApp_Static(type):
19
- def get_inventory_async(cls) -> windows_foundation.IAsyncOperation[windows_foundation_collections.IVectorView[InstalledDesktopApp]]: ...
20
-
21
- @typing.final
22
- class InstalledDesktopApp(winrt.system.Object, metaclass=InstalledDesktopApp_Static):
23
- def __str__(self) -> str: ...
24
- @staticmethod
25
- def _from(obj: winrt.system.Object, /) -> InstalledDesktopApp: ...
26
- def to_string(self) -> str: ...
27
- @_property
28
- def display_name(self) -> str: ...
29
- @_property
30
- def display_version(self) -> str: ...
31
- @_property
32
- def id(self) -> str: ...
33
- @_property
34
- def publisher(self) -> str: ...
35
-
@@ -1,10 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
-
3
- import winrt.system
4
- from winrt import _winrt_windows_system_inventory
5
-
6
- __all__ = [
7
- "InstalledDesktopApp",
8
- ]
9
-
10
- InstalledDesktopApp = _winrt_windows_system_inventory.InstalledDesktopApp
@@ -1,5 +0,0 @@
1
- winrt-runtime==2.2.0
2
-
3
- [all]
4
- winrt-Windows.Foundation[all]==2.2.0
5
- winrt-Windows.Foundation.Collections[all]==2.2.0