winrt-Windows.Devices.Enumeration.Pnp 2.1.0__tar.gz → 2.3.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_devices_enumeration_pnp-2.1.0 → winrt_windows_devices_enumeration_pnp-2.3.0}/PKG-INFO +6 -6
- winrt_windows_devices_enumeration_pnp-2.3.0/all-requirements.txt +5 -0
- {winrt_windows_devices_enumeration_pnp-2.1.0 → winrt_windows_devices_enumeration_pnp-2.3.0}/py.Windows.Devices.Enumeration.Pnp.cpp +249 -35
- {winrt_windows_devices_enumeration_pnp-2.1.0 → winrt_windows_devices_enumeration_pnp-2.3.0}/pyproject.toml +3 -2
- winrt_windows_devices_enumeration_pnp-2.3.0/pywinrt-version.txt +1 -0
- {winrt_windows_devices_enumeration_pnp-2.1.0 → winrt_windows_devices_enumeration_pnp-2.3.0}/requirements.txt +2 -2
- {winrt_windows_devices_enumeration_pnp-2.1.0 → winrt_windows_devices_enumeration_pnp-2.3.0}/winrt/_winrt_windows_devices_enumeration_pnp.pyi +2 -2
- {winrt_windows_devices_enumeration_pnp-2.1.0 → winrt_windows_devices_enumeration_pnp-2.3.0}/winrt/windows/devices/enumeration/pnp/__init__.py +2 -1
- {winrt_windows_devices_enumeration_pnp-2.1.0 → winrt_windows_devices_enumeration_pnp-2.3.0}/winrt_Windows.Devices.Enumeration.Pnp.egg-info/PKG-INFO +6 -6
- winrt_windows_devices_enumeration_pnp-2.3.0/winrt_Windows.Devices.Enumeration.Pnp.egg-info/requires.txt +6 -0
- winrt_windows_devices_enumeration_pnp-2.1.0/all-requirements.txt +0 -5
- winrt_windows_devices_enumeration_pnp-2.1.0/pywinrt-version.txt +0 -1
- winrt_windows_devices_enumeration_pnp-2.1.0/winrt_Windows.Devices.Enumeration.Pnp.egg-info/requires.txt +0 -6
- {winrt_windows_devices_enumeration_pnp-2.1.0 → winrt_windows_devices_enumeration_pnp-2.3.0}/README.md +0 -0
- {winrt_windows_devices_enumeration_pnp-2.1.0 → winrt_windows_devices_enumeration_pnp-2.3.0}/setup.cfg +0 -0
- {winrt_windows_devices_enumeration_pnp-2.1.0 → winrt_windows_devices_enumeration_pnp-2.3.0}/setup.py +0 -0
- {winrt_windows_devices_enumeration_pnp-2.1.0 → winrt_windows_devices_enumeration_pnp-2.3.0}/winrt/windows/devices/enumeration/pnp/py.typed +0 -0
- {winrt_windows_devices_enumeration_pnp-2.1.0 → winrt_windows_devices_enumeration_pnp-2.3.0}/winrt_Windows.Devices.Enumeration.Pnp.egg-info/SOURCES.txt +0 -0
- {winrt_windows_devices_enumeration_pnp-2.1.0 → winrt_windows_devices_enumeration_pnp-2.3.0}/winrt_Windows.Devices.Enumeration.Pnp.egg-info/dependency_links.txt +0 -0
- {winrt_windows_devices_enumeration_pnp-2.1.0 → winrt_windows_devices_enumeration_pnp-2.3.0}/winrt_Windows.Devices.Enumeration.Pnp.egg-info/top_level.txt +0 -0
{winrt_windows_devices_enumeration_pnp-2.1.0 → winrt_windows_devices_enumeration_pnp-2.3.0}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Devices.Enumeration.Pnp
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.3.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,13 +10,13 @@ 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.
|
|
15
|
+
Requires-Dist: winrt-runtime==2.3.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Devices.Enumeration[all]==2.
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.
|
|
19
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.
|
|
17
|
+
Requires-Dist: winrt-Windows.Devices.Enumeration[all]==2.3.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.3.0; extra == "all"
|
|
20
20
|
|
|
21
21
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
22
22
|
|
|
@@ -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.3.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.Devices.Enumeration.Pnp.h"
|
|
4
4
|
|
|
@@ -29,7 +29,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
29
29
|
{
|
|
30
30
|
try
|
|
31
31
|
{
|
|
32
|
-
|
|
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.Devices.Enumeration.Pnp.PnpObject", L"CreateFromIdAsync", 3);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if (!is_overload_present.value())
|
|
33
40
|
{
|
|
34
41
|
py::set_arg_count_version_error(3);
|
|
35
42
|
return nullptr;
|
|
@@ -62,7 +69,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
62
69
|
{
|
|
63
70
|
try
|
|
64
71
|
{
|
|
65
|
-
|
|
72
|
+
static std::optional<bool> is_overload_present{};
|
|
73
|
+
|
|
74
|
+
if (!is_overload_present.has_value())
|
|
75
|
+
{
|
|
76
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Enumeration.Pnp.PnpObject", L"CreateWatcher", 2);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
if (!is_overload_present.value())
|
|
66
80
|
{
|
|
67
81
|
py::set_arg_count_version_error(2);
|
|
68
82
|
return nullptr;
|
|
@@ -83,7 +97,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
83
97
|
{
|
|
84
98
|
try
|
|
85
99
|
{
|
|
86
|
-
|
|
100
|
+
static std::optional<bool> is_overload_present{};
|
|
101
|
+
|
|
102
|
+
if (!is_overload_present.has_value())
|
|
103
|
+
{
|
|
104
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Enumeration.Pnp.PnpObject", L"CreateWatcher", 3);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
if (!is_overload_present.value())
|
|
87
108
|
{
|
|
88
109
|
py::set_arg_count_version_error(3);
|
|
89
110
|
return nullptr;
|
|
@@ -116,7 +137,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
116
137
|
{
|
|
117
138
|
try
|
|
118
139
|
{
|
|
119
|
-
|
|
140
|
+
static std::optional<bool> is_overload_present{};
|
|
141
|
+
|
|
142
|
+
if (!is_overload_present.has_value())
|
|
143
|
+
{
|
|
144
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Enumeration.Pnp.PnpObject", L"FindAllAsync", 2);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
if (!is_overload_present.value())
|
|
120
148
|
{
|
|
121
149
|
py::set_arg_count_version_error(2);
|
|
122
150
|
return nullptr;
|
|
@@ -137,7 +165,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
137
165
|
{
|
|
138
166
|
try
|
|
139
167
|
{
|
|
140
|
-
|
|
168
|
+
static std::optional<bool> is_overload_present{};
|
|
169
|
+
|
|
170
|
+
if (!is_overload_present.has_value())
|
|
171
|
+
{
|
|
172
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Enumeration.Pnp.PnpObject", L"FindAllAsync", 3);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
if (!is_overload_present.value())
|
|
141
176
|
{
|
|
142
177
|
py::set_arg_count_version_error(3);
|
|
143
178
|
return nullptr;
|
|
@@ -170,7 +205,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
170
205
|
{
|
|
171
206
|
try
|
|
172
207
|
{
|
|
173
|
-
|
|
208
|
+
static std::optional<bool> is_overload_present{};
|
|
209
|
+
|
|
210
|
+
if (!is_overload_present.has_value())
|
|
211
|
+
{
|
|
212
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Enumeration.Pnp.PnpObject", L"Update", 1);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
if (!is_overload_present.value())
|
|
174
216
|
{
|
|
175
217
|
py::set_arg_count_version_error(1);
|
|
176
218
|
return nullptr;
|
|
@@ -198,7 +240,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
198
240
|
{
|
|
199
241
|
try
|
|
200
242
|
{
|
|
201
|
-
|
|
243
|
+
static std::optional<bool> is_property_present{};
|
|
244
|
+
|
|
245
|
+
if (!is_property_present.has_value())
|
|
246
|
+
{
|
|
247
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Enumeration.Pnp.PnpObject", L"Id");
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
if (!is_property_present.value())
|
|
202
251
|
{
|
|
203
252
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
204
253
|
return nullptr;
|
|
@@ -217,7 +266,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
217
266
|
{
|
|
218
267
|
try
|
|
219
268
|
{
|
|
220
|
-
|
|
269
|
+
static std::optional<bool> is_property_present{};
|
|
270
|
+
|
|
271
|
+
if (!is_property_present.has_value())
|
|
272
|
+
{
|
|
273
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Enumeration.Pnp.PnpObject", L"Properties");
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
if (!is_property_present.value())
|
|
221
277
|
{
|
|
222
278
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
223
279
|
return nullptr;
|
|
@@ -236,7 +292,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
236
292
|
{
|
|
237
293
|
try
|
|
238
294
|
{
|
|
239
|
-
|
|
295
|
+
static std::optional<bool> is_property_present{};
|
|
296
|
+
|
|
297
|
+
if (!is_property_present.has_value())
|
|
298
|
+
{
|
|
299
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Enumeration.Pnp.PnpObject", L"Type");
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
if (!is_property_present.value())
|
|
240
303
|
{
|
|
241
304
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
242
305
|
return nullptr;
|
|
@@ -357,7 +420,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
357
420
|
{
|
|
358
421
|
try
|
|
359
422
|
{
|
|
360
|
-
|
|
423
|
+
static std::optional<bool> is_overload_present{};
|
|
424
|
+
|
|
425
|
+
if (!is_overload_present.has_value())
|
|
426
|
+
{
|
|
427
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectCollection", L"First", 0);
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
if (!is_overload_present.value())
|
|
361
431
|
{
|
|
362
432
|
py::set_arg_count_version_error(0);
|
|
363
433
|
return nullptr;
|
|
@@ -386,7 +456,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
386
456
|
{
|
|
387
457
|
try
|
|
388
458
|
{
|
|
389
|
-
|
|
459
|
+
static std::optional<bool> is_overload_present{};
|
|
460
|
+
|
|
461
|
+
if (!is_overload_present.has_value())
|
|
462
|
+
{
|
|
463
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectCollection", L"GetAt", 1);
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
if (!is_overload_present.value())
|
|
390
467
|
{
|
|
391
468
|
py::set_arg_count_version_error(1);
|
|
392
469
|
return nullptr;
|
|
@@ -417,7 +494,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
417
494
|
{
|
|
418
495
|
try
|
|
419
496
|
{
|
|
420
|
-
|
|
497
|
+
static std::optional<bool> is_overload_present{};
|
|
498
|
+
|
|
499
|
+
if (!is_overload_present.has_value())
|
|
500
|
+
{
|
|
501
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectCollection", L"GetMany", 1);
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
if (!is_overload_present.value())
|
|
421
505
|
{
|
|
422
506
|
py::set_arg_count_version_error(1);
|
|
423
507
|
return nullptr;
|
|
@@ -449,7 +533,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
449
533
|
{
|
|
450
534
|
try
|
|
451
535
|
{
|
|
452
|
-
|
|
536
|
+
static std::optional<bool> is_overload_present{};
|
|
537
|
+
|
|
538
|
+
if (!is_overload_present.has_value())
|
|
539
|
+
{
|
|
540
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectCollection", L"IndexOf", 1);
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
if (!is_overload_present.value())
|
|
453
544
|
{
|
|
454
545
|
py::set_arg_count_version_error(1);
|
|
455
546
|
return nullptr;
|
|
@@ -489,7 +580,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
489
580
|
{
|
|
490
581
|
try
|
|
491
582
|
{
|
|
492
|
-
|
|
583
|
+
static std::optional<bool> is_property_present{};
|
|
584
|
+
|
|
585
|
+
if (!is_property_present.has_value())
|
|
586
|
+
{
|
|
587
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectCollection", L"Size");
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
if (!is_property_present.value())
|
|
493
591
|
{
|
|
494
592
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
495
593
|
return nullptr;
|
|
@@ -682,7 +780,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
682
780
|
{
|
|
683
781
|
try
|
|
684
782
|
{
|
|
685
|
-
|
|
783
|
+
static std::optional<bool> is_property_present{};
|
|
784
|
+
|
|
785
|
+
if (!is_property_present.has_value())
|
|
786
|
+
{
|
|
787
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectUpdate", L"Id");
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
if (!is_property_present.value())
|
|
686
791
|
{
|
|
687
792
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
688
793
|
return nullptr;
|
|
@@ -701,7 +806,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
701
806
|
{
|
|
702
807
|
try
|
|
703
808
|
{
|
|
704
|
-
|
|
809
|
+
static std::optional<bool> is_property_present{};
|
|
810
|
+
|
|
811
|
+
if (!is_property_present.has_value())
|
|
812
|
+
{
|
|
813
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectUpdate", L"Properties");
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
if (!is_property_present.value())
|
|
705
817
|
{
|
|
706
818
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
707
819
|
return nullptr;
|
|
@@ -720,7 +832,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
720
832
|
{
|
|
721
833
|
try
|
|
722
834
|
{
|
|
723
|
-
|
|
835
|
+
static std::optional<bool> is_property_present{};
|
|
836
|
+
|
|
837
|
+
if (!is_property_present.has_value())
|
|
838
|
+
{
|
|
839
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectUpdate", L"Type");
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
if (!is_property_present.value())
|
|
724
843
|
{
|
|
725
844
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
726
845
|
return nullptr;
|
|
@@ -812,7 +931,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
812
931
|
{
|
|
813
932
|
try
|
|
814
933
|
{
|
|
815
|
-
|
|
934
|
+
static std::optional<bool> is_overload_present{};
|
|
935
|
+
|
|
936
|
+
if (!is_overload_present.has_value())
|
|
937
|
+
{
|
|
938
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectWatcher", L"Start", 0);
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
if (!is_overload_present.value())
|
|
816
942
|
{
|
|
817
943
|
py::set_arg_count_version_error(0);
|
|
818
944
|
return nullptr;
|
|
@@ -842,7 +968,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
842
968
|
{
|
|
843
969
|
try
|
|
844
970
|
{
|
|
845
|
-
|
|
971
|
+
static std::optional<bool> is_overload_present{};
|
|
972
|
+
|
|
973
|
+
if (!is_overload_present.has_value())
|
|
974
|
+
{
|
|
975
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectWatcher", L"Stop", 0);
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
if (!is_overload_present.value())
|
|
846
979
|
{
|
|
847
980
|
py::set_arg_count_version_error(0);
|
|
848
981
|
return nullptr;
|
|
@@ -868,7 +1001,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
868
1001
|
{
|
|
869
1002
|
try
|
|
870
1003
|
{
|
|
871
|
-
|
|
1004
|
+
static std::optional<bool> is_property_present{};
|
|
1005
|
+
|
|
1006
|
+
if (!is_property_present.has_value())
|
|
1007
|
+
{
|
|
1008
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectWatcher", L"Status");
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
if (!is_property_present.value())
|
|
872
1012
|
{
|
|
873
1013
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
874
1014
|
return nullptr;
|
|
@@ -887,7 +1027,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
887
1027
|
{
|
|
888
1028
|
try
|
|
889
1029
|
{
|
|
890
|
-
|
|
1030
|
+
static std::optional<bool> is_event_present{};
|
|
1031
|
+
|
|
1032
|
+
if (!is_event_present.has_value())
|
|
1033
|
+
{
|
|
1034
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectWatcher", L"Added");
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
if (!is_event_present.value())
|
|
891
1038
|
{
|
|
892
1039
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
893
1040
|
return nullptr;
|
|
@@ -908,7 +1055,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
908
1055
|
{
|
|
909
1056
|
try
|
|
910
1057
|
{
|
|
911
|
-
|
|
1058
|
+
static std::optional<bool> is_event_present{};
|
|
1059
|
+
|
|
1060
|
+
if (!is_event_present.has_value())
|
|
1061
|
+
{
|
|
1062
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectWatcher", L"Added");
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
if (!is_event_present.value())
|
|
912
1066
|
{
|
|
913
1067
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
914
1068
|
return nullptr;
|
|
@@ -930,7 +1084,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
930
1084
|
{
|
|
931
1085
|
try
|
|
932
1086
|
{
|
|
933
|
-
|
|
1087
|
+
static std::optional<bool> is_event_present{};
|
|
1088
|
+
|
|
1089
|
+
if (!is_event_present.has_value())
|
|
1090
|
+
{
|
|
1091
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectWatcher", L"EnumerationCompleted");
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1094
|
+
if (!is_event_present.value())
|
|
934
1095
|
{
|
|
935
1096
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
936
1097
|
return nullptr;
|
|
@@ -951,7 +1112,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
951
1112
|
{
|
|
952
1113
|
try
|
|
953
1114
|
{
|
|
954
|
-
|
|
1115
|
+
static std::optional<bool> is_event_present{};
|
|
1116
|
+
|
|
1117
|
+
if (!is_event_present.has_value())
|
|
1118
|
+
{
|
|
1119
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectWatcher", L"EnumerationCompleted");
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
if (!is_event_present.value())
|
|
955
1123
|
{
|
|
956
1124
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
957
1125
|
return nullptr;
|
|
@@ -973,7 +1141,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
973
1141
|
{
|
|
974
1142
|
try
|
|
975
1143
|
{
|
|
976
|
-
|
|
1144
|
+
static std::optional<bool> is_event_present{};
|
|
1145
|
+
|
|
1146
|
+
if (!is_event_present.has_value())
|
|
1147
|
+
{
|
|
1148
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectWatcher", L"Removed");
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
if (!is_event_present.value())
|
|
977
1152
|
{
|
|
978
1153
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
979
1154
|
return nullptr;
|
|
@@ -994,7 +1169,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
994
1169
|
{
|
|
995
1170
|
try
|
|
996
1171
|
{
|
|
997
|
-
|
|
1172
|
+
static std::optional<bool> is_event_present{};
|
|
1173
|
+
|
|
1174
|
+
if (!is_event_present.has_value())
|
|
1175
|
+
{
|
|
1176
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectWatcher", L"Removed");
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1179
|
+
if (!is_event_present.value())
|
|
998
1180
|
{
|
|
999
1181
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
1000
1182
|
return nullptr;
|
|
@@ -1016,7 +1198,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
1016
1198
|
{
|
|
1017
1199
|
try
|
|
1018
1200
|
{
|
|
1019
|
-
|
|
1201
|
+
static std::optional<bool> is_event_present{};
|
|
1202
|
+
|
|
1203
|
+
if (!is_event_present.has_value())
|
|
1204
|
+
{
|
|
1205
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectWatcher", L"Stopped");
|
|
1206
|
+
}
|
|
1207
|
+
|
|
1208
|
+
if (!is_event_present.value())
|
|
1020
1209
|
{
|
|
1021
1210
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
1022
1211
|
return nullptr;
|
|
@@ -1037,7 +1226,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
1037
1226
|
{
|
|
1038
1227
|
try
|
|
1039
1228
|
{
|
|
1040
|
-
|
|
1229
|
+
static std::optional<bool> is_event_present{};
|
|
1230
|
+
|
|
1231
|
+
if (!is_event_present.has_value())
|
|
1232
|
+
{
|
|
1233
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectWatcher", L"Stopped");
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1236
|
+
if (!is_event_present.value())
|
|
1041
1237
|
{
|
|
1042
1238
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
1043
1239
|
return nullptr;
|
|
@@ -1059,7 +1255,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
1059
1255
|
{
|
|
1060
1256
|
try
|
|
1061
1257
|
{
|
|
1062
|
-
|
|
1258
|
+
static std::optional<bool> is_event_present{};
|
|
1259
|
+
|
|
1260
|
+
if (!is_event_present.has_value())
|
|
1261
|
+
{
|
|
1262
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectWatcher", L"Updated");
|
|
1263
|
+
}
|
|
1264
|
+
|
|
1265
|
+
if (!is_event_present.value())
|
|
1063
1266
|
{
|
|
1064
1267
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
1065
1268
|
return nullptr;
|
|
@@ -1080,7 +1283,14 @@ namespace py::cpp::Windows::Devices::Enumeration::Pnp
|
|
|
1080
1283
|
{
|
|
1081
1284
|
try
|
|
1082
1285
|
{
|
|
1083
|
-
|
|
1286
|
+
static std::optional<bool> is_event_present{};
|
|
1287
|
+
|
|
1288
|
+
if (!is_event_present.has_value())
|
|
1289
|
+
{
|
|
1290
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Devices.Enumeration.Pnp.PnpObjectWatcher", L"Updated");
|
|
1291
|
+
}
|
|
1292
|
+
|
|
1293
|
+
if (!is_event_present.value())
|
|
1084
1294
|
{
|
|
1085
1295
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
1086
1296
|
return nullptr;
|
|
@@ -1211,22 +1421,26 @@ PyMODINIT_FUNC PyInit__winrt_windows_devices_enumeration_pnp(void) noexcept
|
|
|
1211
1421
|
return nullptr;
|
|
1212
1422
|
}
|
|
1213
1423
|
|
|
1214
|
-
|
|
1424
|
+
py::pytype_handle PnpObject_type{py::register_python_type(module.get(), &type_spec_PnpObject, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_PnpObject_Static.get()))};
|
|
1425
|
+
if (!PnpObject_type)
|
|
1215
1426
|
{
|
|
1216
1427
|
return nullptr;
|
|
1217
1428
|
}
|
|
1218
1429
|
|
|
1219
|
-
|
|
1430
|
+
py::pytype_handle PnpObjectCollection_type{py::register_python_type(module.get(), &type_spec_PnpObjectCollection, object_bases.get(), nullptr)};
|
|
1431
|
+
if (!PnpObjectCollection_type)
|
|
1220
1432
|
{
|
|
1221
1433
|
return nullptr;
|
|
1222
1434
|
}
|
|
1223
1435
|
|
|
1224
|
-
|
|
1436
|
+
py::pytype_handle PnpObjectUpdate_type{py::register_python_type(module.get(), &type_spec_PnpObjectUpdate, object_bases.get(), nullptr)};
|
|
1437
|
+
if (!PnpObjectUpdate_type)
|
|
1225
1438
|
{
|
|
1226
1439
|
return nullptr;
|
|
1227
1440
|
}
|
|
1228
1441
|
|
|
1229
|
-
|
|
1442
|
+
py::pytype_handle PnpObjectWatcher_type{py::register_python_type(module.get(), &type_spec_PnpObjectWatcher, object_bases.get(), nullptr)};
|
|
1443
|
+
if (!PnpObjectWatcher_type)
|
|
1230
1444
|
{
|
|
1231
1445
|
return nullptr;
|
|
1232
1446
|
}
|
|
@@ -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.3.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.3.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.
|
|
3
|
+
winrt-runtime==2.3.0
|
|
@@ -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.3.0
|
|
2
2
|
|
|
3
3
|
import datetime
|
|
4
4
|
import sys
|
|
@@ -53,7 +53,7 @@ class PnpObjectCollection(winrt.system.Object, winrt._winrt.Sequence[PnpObject])
|
|
|
53
53
|
def _from(obj: winrt.system.Object, /) -> PnpObjectCollection: ...
|
|
54
54
|
def first(self) -> typing.Optional[windows_foundation_collections.IIterator[PnpObject]]: ...
|
|
55
55
|
def get_at(self, index: winrt.system.UInt32, /) -> typing.Optional[PnpObject]: ...
|
|
56
|
-
def get_many(self, start_index: winrt.system.UInt32, items: winrt.system.Array[PnpObject], /) -> winrt.system.UInt32: ...
|
|
56
|
+
def get_many(self, start_index: winrt.system.UInt32, items: typing.Union[winrt.system.Array[PnpObject], winrt.system.WriteableBuffer], /) -> winrt.system.UInt32: ...
|
|
57
57
|
def index_of(self, value: typing.Optional[PnpObject], /) -> typing.Tuple[bool, winrt.system.UInt32]: ...
|
|
58
58
|
@_property
|
|
59
59
|
def size(self) -> winrt.system.UInt32: ...
|
|
@@ -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.3.0
|
|
2
2
|
|
|
3
3
|
import enum
|
|
4
4
|
|
|
@@ -23,6 +23,7 @@ class PnpObjectType(enum.IntEnum):
|
|
|
23
23
|
ASSOCIATION_ENDPOINT_CONTAINER = 6
|
|
24
24
|
ASSOCIATION_ENDPOINT_SERVICE = 7
|
|
25
25
|
DEVICE_PANEL = 8
|
|
26
|
+
ASSOCIATION_ENDPOINT_PROTOCOL = 9
|
|
26
27
|
|
|
27
28
|
PnpObject = _winrt_windows_devices_enumeration_pnp.PnpObject
|
|
28
29
|
PnpObjectCollection = _winrt_windows_devices_enumeration_pnp.PnpObjectCollection
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Devices.Enumeration.Pnp
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.3.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,13 +10,13 @@ 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.
|
|
15
|
+
Requires-Dist: winrt-runtime==2.3.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Devices.Enumeration[all]==2.
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.
|
|
19
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.
|
|
17
|
+
Requires-Dist: winrt-Windows.Devices.Enumeration[all]==2.3.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.3.0; extra == "all"
|
|
20
20
|
|
|
21
21
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
22
22
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.1.0
|
|
File without changes
|
|
File without changes
|
{winrt_windows_devices_enumeration_pnp-2.1.0 → winrt_windows_devices_enumeration_pnp-2.3.0}/setup.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|