winrt-Windows.System.Update 2.1.0__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_update-2.1.0 → winrt_windows_system_update-2.2.0}/PKG-INFO +5 -5
- winrt_windows_system_update-2.2.0/all-requirements.txt +4 -0
- {winrt_windows_system_update-2.1.0 → winrt_windows_system_update-2.2.0}/py.Windows.System.Update.cpp +287 -39
- {winrt_windows_system_update-2.1.0 → winrt_windows_system_update-2.2.0}/pyproject.toml +3 -2
- winrt_windows_system_update-2.2.0/pywinrt-version.txt +1 -0
- {winrt_windows_system_update-2.1.0 → winrt_windows_system_update-2.2.0}/requirements.txt +2 -2
- {winrt_windows_system_update-2.1.0 → winrt_windows_system_update-2.2.0}/winrt/_winrt_windows_system_update.pyi +1 -1
- {winrt_windows_system_update-2.1.0 → winrt_windows_system_update-2.2.0}/winrt/windows/system/update/__init__.py +1 -1
- {winrt_windows_system_update-2.1.0 → winrt_windows_system_update-2.2.0}/winrt_Windows.System.Update.egg-info/PKG-INFO +5 -5
- winrt_windows_system_update-2.2.0/winrt_Windows.System.Update.egg-info/requires.txt +5 -0
- winrt_windows_system_update-2.1.0/all-requirements.txt +0 -4
- winrt_windows_system_update-2.1.0/pywinrt-version.txt +0 -1
- winrt_windows_system_update-2.1.0/winrt_Windows.System.Update.egg-info/requires.txt +0 -5
- {winrt_windows_system_update-2.1.0 → winrt_windows_system_update-2.2.0}/README.md +0 -0
- {winrt_windows_system_update-2.1.0 → winrt_windows_system_update-2.2.0}/setup.cfg +0 -0
- {winrt_windows_system_update-2.1.0 → winrt_windows_system_update-2.2.0}/setup.py +0 -0
- {winrt_windows_system_update-2.1.0 → winrt_windows_system_update-2.2.0}/winrt/windows/system/update/py.typed +0 -0
- {winrt_windows_system_update-2.1.0 → winrt_windows_system_update-2.2.0}/winrt_Windows.System.Update.egg-info/SOURCES.txt +0 -0
- {winrt_windows_system_update-2.1.0 → winrt_windows_system_update-2.2.0}/winrt_Windows.System.Update.egg-info/dependency_links.txt +0 -0
- {winrt_windows_system_update-2.1.0 → winrt_windows_system_update-2.2.0}/winrt_Windows.System.Update.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.System.Update
|
|
3
|
-
Version: 2.
|
|
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.
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.
|
|
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
|
|
{winrt_windows_system_update-2.1.0 → winrt_windows_system_update-2.2.0}/py.Windows.System.Update.cpp
RENAMED
|
@@ -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.2.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.System.Update.h"
|
|
4
4
|
|
|
@@ -25,7 +25,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
25
25
|
{
|
|
26
26
|
try
|
|
27
27
|
{
|
|
28
|
-
|
|
28
|
+
static std::optional<bool> is_property_present{};
|
|
29
|
+
|
|
30
|
+
if (!is_property_present.has_value())
|
|
31
|
+
{
|
|
32
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateItem", L"Description");
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
if (!is_property_present.value())
|
|
29
36
|
{
|
|
30
37
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
31
38
|
return nullptr;
|
|
@@ -44,7 +51,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
44
51
|
{
|
|
45
52
|
try
|
|
46
53
|
{
|
|
47
|
-
|
|
54
|
+
static std::optional<bool> is_property_present{};
|
|
55
|
+
|
|
56
|
+
if (!is_property_present.has_value())
|
|
57
|
+
{
|
|
58
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateItem", L"DownloadProgress");
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
if (!is_property_present.value())
|
|
48
62
|
{
|
|
49
63
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
50
64
|
return nullptr;
|
|
@@ -63,7 +77,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
63
77
|
{
|
|
64
78
|
try
|
|
65
79
|
{
|
|
66
|
-
|
|
80
|
+
static std::optional<bool> is_property_present{};
|
|
81
|
+
|
|
82
|
+
if (!is_property_present.has_value())
|
|
83
|
+
{
|
|
84
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateItem", L"ExtendedError");
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
if (!is_property_present.value())
|
|
67
88
|
{
|
|
68
89
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
69
90
|
return nullptr;
|
|
@@ -82,7 +103,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
82
103
|
{
|
|
83
104
|
try
|
|
84
105
|
{
|
|
85
|
-
|
|
106
|
+
static std::optional<bool> is_property_present{};
|
|
107
|
+
|
|
108
|
+
if (!is_property_present.has_value())
|
|
109
|
+
{
|
|
110
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateItem", L"Id");
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
if (!is_property_present.value())
|
|
86
114
|
{
|
|
87
115
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
88
116
|
return nullptr;
|
|
@@ -101,7 +129,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
101
129
|
{
|
|
102
130
|
try
|
|
103
131
|
{
|
|
104
|
-
|
|
132
|
+
static std::optional<bool> is_property_present{};
|
|
133
|
+
|
|
134
|
+
if (!is_property_present.has_value())
|
|
135
|
+
{
|
|
136
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateItem", L"InstallProgress");
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
if (!is_property_present.value())
|
|
105
140
|
{
|
|
106
141
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
107
142
|
return nullptr;
|
|
@@ -120,7 +155,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
120
155
|
{
|
|
121
156
|
try
|
|
122
157
|
{
|
|
123
|
-
|
|
158
|
+
static std::optional<bool> is_property_present{};
|
|
159
|
+
|
|
160
|
+
if (!is_property_present.has_value())
|
|
161
|
+
{
|
|
162
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateItem", L"Revision");
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
if (!is_property_present.value())
|
|
124
166
|
{
|
|
125
167
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
126
168
|
return nullptr;
|
|
@@ -139,7 +181,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
139
181
|
{
|
|
140
182
|
try
|
|
141
183
|
{
|
|
142
|
-
|
|
184
|
+
static std::optional<bool> is_property_present{};
|
|
185
|
+
|
|
186
|
+
if (!is_property_present.has_value())
|
|
187
|
+
{
|
|
188
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateItem", L"State");
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
if (!is_property_present.value())
|
|
143
192
|
{
|
|
144
193
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
145
194
|
return nullptr;
|
|
@@ -158,7 +207,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
158
207
|
{
|
|
159
208
|
try
|
|
160
209
|
{
|
|
161
|
-
|
|
210
|
+
static std::optional<bool> is_property_present{};
|
|
211
|
+
|
|
212
|
+
if (!is_property_present.has_value())
|
|
213
|
+
{
|
|
214
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateItem", L"Title");
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
if (!is_property_present.value())
|
|
162
218
|
{
|
|
163
219
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
164
220
|
return nullptr;
|
|
@@ -251,7 +307,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
251
307
|
{
|
|
252
308
|
try
|
|
253
309
|
{
|
|
254
|
-
|
|
310
|
+
static std::optional<bool> is_property_present{};
|
|
311
|
+
|
|
312
|
+
if (!is_property_present.has_value())
|
|
313
|
+
{
|
|
314
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateLastErrorInfo", L"ExtendedError");
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
if (!is_property_present.value())
|
|
255
318
|
{
|
|
256
319
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
257
320
|
return nullptr;
|
|
@@ -270,7 +333,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
270
333
|
{
|
|
271
334
|
try
|
|
272
335
|
{
|
|
273
|
-
|
|
336
|
+
static std::optional<bool> is_property_present{};
|
|
337
|
+
|
|
338
|
+
if (!is_property_present.has_value())
|
|
339
|
+
{
|
|
340
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateLastErrorInfo", L"IsInteractive");
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
if (!is_property_present.value())
|
|
274
344
|
{
|
|
275
345
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
276
346
|
return nullptr;
|
|
@@ -289,7 +359,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
289
359
|
{
|
|
290
360
|
try
|
|
291
361
|
{
|
|
292
|
-
|
|
362
|
+
static std::optional<bool> is_property_present{};
|
|
363
|
+
|
|
364
|
+
if (!is_property_present.has_value())
|
|
365
|
+
{
|
|
366
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateLastErrorInfo", L"State");
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
if (!is_property_present.value())
|
|
293
370
|
{
|
|
294
371
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
295
372
|
return nullptr;
|
|
@@ -373,7 +450,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
373
450
|
{
|
|
374
451
|
try
|
|
375
452
|
{
|
|
376
|
-
|
|
453
|
+
static std::optional<bool> is_overload_present{};
|
|
454
|
+
|
|
455
|
+
if (!is_overload_present.has_value())
|
|
456
|
+
{
|
|
457
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Update.SystemUpdateManager", L"BlockAutomaticRebootAsync", 1);
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
if (!is_overload_present.value())
|
|
377
461
|
{
|
|
378
462
|
py::set_arg_count_version_error(1);
|
|
379
463
|
return nullptr;
|
|
@@ -404,7 +488,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
404
488
|
{
|
|
405
489
|
try
|
|
406
490
|
{
|
|
407
|
-
|
|
491
|
+
static std::optional<bool> is_overload_present{};
|
|
492
|
+
|
|
493
|
+
if (!is_overload_present.has_value())
|
|
494
|
+
{
|
|
495
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Update.SystemUpdateManager", L"GetAutomaticRebootBlockIds", 0);
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
if (!is_overload_present.value())
|
|
408
499
|
{
|
|
409
500
|
py::set_arg_count_version_error(0);
|
|
410
501
|
return nullptr;
|
|
@@ -433,7 +524,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
433
524
|
{
|
|
434
525
|
try
|
|
435
526
|
{
|
|
436
|
-
|
|
527
|
+
static std::optional<bool> is_overload_present{};
|
|
528
|
+
|
|
529
|
+
if (!is_overload_present.has_value())
|
|
530
|
+
{
|
|
531
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Update.SystemUpdateManager", L"GetFlightRing", 0);
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
if (!is_overload_present.value())
|
|
437
535
|
{
|
|
438
536
|
py::set_arg_count_version_error(0);
|
|
439
537
|
return nullptr;
|
|
@@ -462,7 +560,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
462
560
|
{
|
|
463
561
|
try
|
|
464
562
|
{
|
|
465
|
-
|
|
563
|
+
static std::optional<bool> is_overload_present{};
|
|
564
|
+
|
|
565
|
+
if (!is_overload_present.has_value())
|
|
566
|
+
{
|
|
567
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Update.SystemUpdateManager", L"GetUpdateItems", 0);
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
if (!is_overload_present.value())
|
|
466
571
|
{
|
|
467
572
|
py::set_arg_count_version_error(0);
|
|
468
573
|
return nullptr;
|
|
@@ -491,7 +596,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
491
596
|
{
|
|
492
597
|
try
|
|
493
598
|
{
|
|
494
|
-
|
|
599
|
+
static std::optional<bool> is_overload_present{};
|
|
600
|
+
|
|
601
|
+
if (!is_overload_present.has_value())
|
|
602
|
+
{
|
|
603
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Update.SystemUpdateManager", L"IsSupported", 0);
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
if (!is_overload_present.value())
|
|
495
607
|
{
|
|
496
608
|
py::set_arg_count_version_error(0);
|
|
497
609
|
return nullptr;
|
|
@@ -520,7 +632,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
520
632
|
{
|
|
521
633
|
try
|
|
522
634
|
{
|
|
523
|
-
|
|
635
|
+
static std::optional<bool> is_overload_present{};
|
|
636
|
+
|
|
637
|
+
if (!is_overload_present.has_value())
|
|
638
|
+
{
|
|
639
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Update.SystemUpdateManager", L"RebootToCompleteInstall", 0);
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
if (!is_overload_present.value())
|
|
524
643
|
{
|
|
525
644
|
py::set_arg_count_version_error(0);
|
|
526
645
|
return nullptr;
|
|
@@ -550,7 +669,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
550
669
|
{
|
|
551
670
|
try
|
|
552
671
|
{
|
|
553
|
-
|
|
672
|
+
static std::optional<bool> is_overload_present{};
|
|
673
|
+
|
|
674
|
+
if (!is_overload_present.has_value())
|
|
675
|
+
{
|
|
676
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Update.SystemUpdateManager", L"SetFlightRing", 1);
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
if (!is_overload_present.value())
|
|
554
680
|
{
|
|
555
681
|
py::set_arg_count_version_error(1);
|
|
556
682
|
return nullptr;
|
|
@@ -581,7 +707,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
581
707
|
{
|
|
582
708
|
try
|
|
583
709
|
{
|
|
584
|
-
|
|
710
|
+
static std::optional<bool> is_overload_present{};
|
|
711
|
+
|
|
712
|
+
if (!is_overload_present.has_value())
|
|
713
|
+
{
|
|
714
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Update.SystemUpdateManager", L"StartCancelUpdates", 0);
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
if (!is_overload_present.value())
|
|
585
718
|
{
|
|
586
719
|
py::set_arg_count_version_error(0);
|
|
587
720
|
return nullptr;
|
|
@@ -611,7 +744,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
611
744
|
{
|
|
612
745
|
try
|
|
613
746
|
{
|
|
614
|
-
|
|
747
|
+
static std::optional<bool> is_overload_present{};
|
|
748
|
+
|
|
749
|
+
if (!is_overload_present.has_value())
|
|
750
|
+
{
|
|
751
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Update.SystemUpdateManager", L"StartInstall", 1);
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
if (!is_overload_present.value())
|
|
615
755
|
{
|
|
616
756
|
py::set_arg_count_version_error(1);
|
|
617
757
|
return nullptr;
|
|
@@ -643,7 +783,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
643
783
|
{
|
|
644
784
|
try
|
|
645
785
|
{
|
|
646
|
-
|
|
786
|
+
static std::optional<bool> is_overload_present{};
|
|
787
|
+
|
|
788
|
+
if (!is_overload_present.has_value())
|
|
789
|
+
{
|
|
790
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Update.SystemUpdateManager", L"TrySetUserActiveHours", 2);
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
if (!is_overload_present.value())
|
|
647
794
|
{
|
|
648
795
|
py::set_arg_count_version_error(2);
|
|
649
796
|
return nullptr;
|
|
@@ -675,7 +822,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
675
822
|
{
|
|
676
823
|
try
|
|
677
824
|
{
|
|
678
|
-
|
|
825
|
+
static std::optional<bool> is_overload_present{};
|
|
826
|
+
|
|
827
|
+
if (!is_overload_present.has_value())
|
|
828
|
+
{
|
|
829
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Update.SystemUpdateManager", L"UnblockAutomaticRebootAsync", 1);
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
if (!is_overload_present.value())
|
|
679
833
|
{
|
|
680
834
|
py::set_arg_count_version_error(1);
|
|
681
835
|
return nullptr;
|
|
@@ -702,7 +856,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
702
856
|
{
|
|
703
857
|
try
|
|
704
858
|
{
|
|
705
|
-
|
|
859
|
+
static std::optional<bool> is_property_present{};
|
|
860
|
+
|
|
861
|
+
if (!is_property_present.has_value())
|
|
862
|
+
{
|
|
863
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateManager", L"AttentionRequiredReason");
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
if (!is_property_present.value())
|
|
706
867
|
{
|
|
707
868
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
708
869
|
return nullptr;
|
|
@@ -721,7 +882,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
721
882
|
{
|
|
722
883
|
try
|
|
723
884
|
{
|
|
724
|
-
|
|
885
|
+
static std::optional<bool> is_property_present{};
|
|
886
|
+
|
|
887
|
+
if (!is_property_present.has_value())
|
|
888
|
+
{
|
|
889
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateManager", L"DownloadProgress");
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
if (!is_property_present.value())
|
|
725
893
|
{
|
|
726
894
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
727
895
|
return nullptr;
|
|
@@ -740,7 +908,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
740
908
|
{
|
|
741
909
|
try
|
|
742
910
|
{
|
|
743
|
-
|
|
911
|
+
static std::optional<bool> is_property_present{};
|
|
912
|
+
|
|
913
|
+
if (!is_property_present.has_value())
|
|
914
|
+
{
|
|
915
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateManager", L"ExtendedError");
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
if (!is_property_present.value())
|
|
744
919
|
{
|
|
745
920
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
746
921
|
return nullptr;
|
|
@@ -759,7 +934,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
759
934
|
{
|
|
760
935
|
try
|
|
761
936
|
{
|
|
762
|
-
|
|
937
|
+
static std::optional<bool> is_property_present{};
|
|
938
|
+
|
|
939
|
+
if (!is_property_present.has_value())
|
|
940
|
+
{
|
|
941
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateManager", L"InstallProgress");
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
if (!is_property_present.value())
|
|
763
945
|
{
|
|
764
946
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
765
947
|
return nullptr;
|
|
@@ -778,7 +960,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
778
960
|
{
|
|
779
961
|
try
|
|
780
962
|
{
|
|
781
|
-
|
|
963
|
+
static std::optional<bool> is_property_present{};
|
|
964
|
+
|
|
965
|
+
if (!is_property_present.has_value())
|
|
966
|
+
{
|
|
967
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateManager", L"LastErrorInfo");
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
if (!is_property_present.value())
|
|
782
971
|
{
|
|
783
972
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
784
973
|
return nullptr;
|
|
@@ -797,7 +986,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
797
986
|
{
|
|
798
987
|
try
|
|
799
988
|
{
|
|
800
|
-
|
|
989
|
+
static std::optional<bool> is_property_present{};
|
|
990
|
+
|
|
991
|
+
if (!is_property_present.has_value())
|
|
992
|
+
{
|
|
993
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateManager", L"LastUpdateCheckTime");
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
if (!is_property_present.value())
|
|
801
997
|
{
|
|
802
998
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
803
999
|
return nullptr;
|
|
@@ -816,7 +1012,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
816
1012
|
{
|
|
817
1013
|
try
|
|
818
1014
|
{
|
|
819
|
-
|
|
1015
|
+
static std::optional<bool> is_property_present{};
|
|
1016
|
+
|
|
1017
|
+
if (!is_property_present.has_value())
|
|
1018
|
+
{
|
|
1019
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateManager", L"LastUpdateInstallTime");
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
if (!is_property_present.value())
|
|
820
1023
|
{
|
|
821
1024
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
822
1025
|
return nullptr;
|
|
@@ -835,7 +1038,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
835
1038
|
{
|
|
836
1039
|
try
|
|
837
1040
|
{
|
|
838
|
-
|
|
1041
|
+
static std::optional<bool> is_property_present{};
|
|
1042
|
+
|
|
1043
|
+
if (!is_property_present.has_value())
|
|
1044
|
+
{
|
|
1045
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateManager", L"State");
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
if (!is_property_present.value())
|
|
839
1049
|
{
|
|
840
1050
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
841
1051
|
return nullptr;
|
|
@@ -854,7 +1064,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
854
1064
|
{
|
|
855
1065
|
try
|
|
856
1066
|
{
|
|
857
|
-
|
|
1067
|
+
static std::optional<bool> is_property_present{};
|
|
1068
|
+
|
|
1069
|
+
if (!is_property_present.has_value())
|
|
1070
|
+
{
|
|
1071
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateManager", L"UserActiveHoursEnd");
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
if (!is_property_present.value())
|
|
858
1075
|
{
|
|
859
1076
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
860
1077
|
return nullptr;
|
|
@@ -873,7 +1090,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
873
1090
|
{
|
|
874
1091
|
try
|
|
875
1092
|
{
|
|
876
|
-
|
|
1093
|
+
static std::optional<bool> is_property_present{};
|
|
1094
|
+
|
|
1095
|
+
if (!is_property_present.has_value())
|
|
1096
|
+
{
|
|
1097
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateManager", L"UserActiveHoursMax");
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
if (!is_property_present.value())
|
|
877
1101
|
{
|
|
878
1102
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
879
1103
|
return nullptr;
|
|
@@ -892,7 +1116,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
892
1116
|
{
|
|
893
1117
|
try
|
|
894
1118
|
{
|
|
895
|
-
|
|
1119
|
+
static std::optional<bool> is_property_present{};
|
|
1120
|
+
|
|
1121
|
+
if (!is_property_present.has_value())
|
|
1122
|
+
{
|
|
1123
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Update.SystemUpdateManager", L"UserActiveHoursStart");
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
if (!is_property_present.value())
|
|
896
1127
|
{
|
|
897
1128
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
898
1129
|
return nullptr;
|
|
@@ -911,7 +1142,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
911
1142
|
{
|
|
912
1143
|
try
|
|
913
1144
|
{
|
|
914
|
-
|
|
1145
|
+
static std::optional<bool> is_event_present{};
|
|
1146
|
+
|
|
1147
|
+
if (!is_event_present.has_value())
|
|
1148
|
+
{
|
|
1149
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.System.Update.SystemUpdateManager", L"StateChanged");
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
if (!is_event_present.value())
|
|
915
1153
|
{
|
|
916
1154
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
917
1155
|
return nullptr;
|
|
@@ -932,7 +1170,14 @@ namespace py::cpp::Windows::System::Update
|
|
|
932
1170
|
{
|
|
933
1171
|
try
|
|
934
1172
|
{
|
|
935
|
-
|
|
1173
|
+
static std::optional<bool> is_event_present{};
|
|
1174
|
+
|
|
1175
|
+
if (!is_event_present.has_value())
|
|
1176
|
+
{
|
|
1177
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.System.Update.SystemUpdateManager", L"StateChanged");
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
if (!is_event_present.value())
|
|
936
1181
|
{
|
|
937
1182
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
938
1183
|
return nullptr;
|
|
@@ -1066,12 +1311,14 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_update(void) noexcept
|
|
|
1066
1311
|
return nullptr;
|
|
1067
1312
|
}
|
|
1068
1313
|
|
|
1069
|
-
|
|
1314
|
+
py::pytype_handle SystemUpdateItem_type{py::register_python_type(module.get(), &type_spec_SystemUpdateItem, object_bases.get(), nullptr)};
|
|
1315
|
+
if (!SystemUpdateItem_type)
|
|
1070
1316
|
{
|
|
1071
1317
|
return nullptr;
|
|
1072
1318
|
}
|
|
1073
1319
|
|
|
1074
|
-
|
|
1320
|
+
py::pytype_handle SystemUpdateLastErrorInfo_type{py::register_python_type(module.get(), &type_spec_SystemUpdateLastErrorInfo, object_bases.get(), nullptr)};
|
|
1321
|
+
if (!SystemUpdateLastErrorInfo_type)
|
|
1075
1322
|
{
|
|
1076
1323
|
return nullptr;
|
|
1077
1324
|
}
|
|
@@ -1082,7 +1329,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_update(void) noexcept
|
|
|
1082
1329
|
return nullptr;
|
|
1083
1330
|
}
|
|
1084
1331
|
|
|
1085
|
-
|
|
1332
|
+
py::pytype_handle SystemUpdateManager_type{py::register_python_type(module.get(), &type_spec_SystemUpdateManager, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_SystemUpdateManager_Static.get()))};
|
|
1333
|
+
if (!SystemUpdateManager_type)
|
|
1086
1334
|
{
|
|
1087
1335
|
return nullptr;
|
|
1088
1336
|
}
|
|
@@ -16,7 +16,7 @@ classifiers = [
|
|
|
16
16
|
"Intended Audience :: Developers",
|
|
17
17
|
]
|
|
18
18
|
dynamic = ["version", "dependencies", "optional-dependencies"]
|
|
19
|
-
requires-python = ">=3.9,<3.
|
|
19
|
+
requires-python = ">=3.9,<3.14"
|
|
20
20
|
|
|
21
21
|
[project.urls]
|
|
22
22
|
# Homepage = "https://github.com/pywinrt/pywinrt"
|
|
@@ -36,7 +36,8 @@ optional-dependencies.all = { file = "all-requirements.txt" }
|
|
|
36
36
|
# use local winrt-sdk build dependency
|
|
37
37
|
environment = { PYTHONPATH="../winrt-sdk/src" }
|
|
38
38
|
# don't install winrt-sdk from PyPI
|
|
39
|
-
build-frontend = { name = "build", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
39
|
+
build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
40
|
+
before-build = "uv pip install setuptools"
|
|
40
41
|
# don't build for PyPy
|
|
41
42
|
skip = "pp*"
|
|
42
43
|
# suppress warnings about ARM64 testing
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.2.0
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.
|
|
3
|
+
winrt-runtime==2.2.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.System.Update
|
|
3
|
-
Version: 2.
|
|
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.
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.
|
|
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.1.0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|