winrt-Windows.ApplicationModel.AppExtensions 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_applicationmodel_appextensions-2.1.0 → winrt_windows_applicationmodel_appextensions-2.2.0}/PKG-INFO +7 -7
- winrt_windows_applicationmodel_appextensions-2.2.0/all-requirements.txt +6 -0
- {winrt_windows_applicationmodel_appextensions-2.1.0 → winrt_windows_applicationmodel_appextensions-2.2.0}/py.Windows.ApplicationModel.AppExtensions.cpp +279 -41
- {winrt_windows_applicationmodel_appextensions-2.1.0 → winrt_windows_applicationmodel_appextensions-2.2.0}/pyproject.toml +3 -2
- winrt_windows_applicationmodel_appextensions-2.2.0/pywinrt-version.txt +1 -0
- {winrt_windows_applicationmodel_appextensions-2.1.0 → winrt_windows_applicationmodel_appextensions-2.2.0}/requirements.txt +2 -2
- {winrt_windows_applicationmodel_appextensions-2.1.0 → winrt_windows_applicationmodel_appextensions-2.2.0}/winrt/_winrt_windows_applicationmodel_appextensions.pyi +1 -1
- {winrt_windows_applicationmodel_appextensions-2.1.0 → winrt_windows_applicationmodel_appextensions-2.2.0}/winrt/windows/applicationmodel/appextensions/__init__.py +1 -1
- {winrt_windows_applicationmodel_appextensions-2.1.0 → winrt_windows_applicationmodel_appextensions-2.2.0}/winrt_Windows.ApplicationModel.AppExtensions.egg-info/PKG-INFO +7 -7
- winrt_windows_applicationmodel_appextensions-2.2.0/winrt_Windows.ApplicationModel.AppExtensions.egg-info/requires.txt +7 -0
- winrt_windows_applicationmodel_appextensions-2.1.0/all-requirements.txt +0 -6
- winrt_windows_applicationmodel_appextensions-2.1.0/pywinrt-version.txt +0 -1
- winrt_windows_applicationmodel_appextensions-2.1.0/winrt_Windows.ApplicationModel.AppExtensions.egg-info/requires.txt +0 -7
- {winrt_windows_applicationmodel_appextensions-2.1.0 → winrt_windows_applicationmodel_appextensions-2.2.0}/README.md +0 -0
- {winrt_windows_applicationmodel_appextensions-2.1.0 → winrt_windows_applicationmodel_appextensions-2.2.0}/setup.cfg +0 -0
- {winrt_windows_applicationmodel_appextensions-2.1.0 → winrt_windows_applicationmodel_appextensions-2.2.0}/setup.py +0 -0
- {winrt_windows_applicationmodel_appextensions-2.1.0 → winrt_windows_applicationmodel_appextensions-2.2.0}/winrt/windows/applicationmodel/appextensions/py.typed +0 -0
- {winrt_windows_applicationmodel_appextensions-2.1.0 → winrt_windows_applicationmodel_appextensions-2.2.0}/winrt_Windows.ApplicationModel.AppExtensions.egg-info/SOURCES.txt +0 -0
- {winrt_windows_applicationmodel_appextensions-2.1.0 → winrt_windows_applicationmodel_appextensions-2.2.0}/winrt_Windows.ApplicationModel.AppExtensions.egg-info/dependency_links.txt +0 -0
- {winrt_windows_applicationmodel_appextensions-2.1.0 → winrt_windows_applicationmodel_appextensions-2.2.0}/winrt_Windows.ApplicationModel.AppExtensions.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.ApplicationModel.AppExtensions
|
|
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,14 +10,14 @@ 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.ApplicationModel[all]==2.
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.
|
|
19
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.
|
|
20
|
-
Requires-Dist: winrt-Windows.Storage[all]==2.
|
|
17
|
+
Requires-Dist: winrt-Windows.ApplicationModel[all]==2.2.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.2.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.Storage[all]==2.2.0; extra == "all"
|
|
21
21
|
|
|
22
22
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
23
23
|
|
|
@@ -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.ApplicationModel.AppExtensions.h"
|
|
4
4
|
|
|
@@ -29,7 +29,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
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.ApplicationModel.AppExtensions.AppExtension", L"GetExtensionPropertiesAsync", 0);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if (!is_overload_present.value())
|
|
33
40
|
{
|
|
34
41
|
py::set_arg_count_version_error(0);
|
|
35
42
|
return nullptr;
|
|
@@ -58,7 +65,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
58
65
|
{
|
|
59
66
|
try
|
|
60
67
|
{
|
|
61
|
-
|
|
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.ApplicationModel.AppExtensions.AppExtension", L"GetPublicFolderAsync", 0);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if (!is_overload_present.value())
|
|
62
76
|
{
|
|
63
77
|
py::set_arg_count_version_error(0);
|
|
64
78
|
return nullptr;
|
|
@@ -83,7 +97,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
83
97
|
{
|
|
84
98
|
try
|
|
85
99
|
{
|
|
86
|
-
|
|
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.ApplicationModel.AppExtensions.AppExtension", L"AppInfo");
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
if (!is_property_present.value())
|
|
87
108
|
{
|
|
88
109
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
89
110
|
return nullptr;
|
|
@@ -102,7 +123,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
102
123
|
{
|
|
103
124
|
try
|
|
104
125
|
{
|
|
105
|
-
|
|
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.ApplicationModel.AppExtensions.AppExtension", L"Description");
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
if (!is_property_present.value())
|
|
106
134
|
{
|
|
107
135
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
108
136
|
return nullptr;
|
|
@@ -121,7 +149,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
121
149
|
{
|
|
122
150
|
try
|
|
123
151
|
{
|
|
124
|
-
|
|
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.ApplicationModel.AppExtensions.AppExtension", L"DisplayName");
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
if (!is_property_present.value())
|
|
125
160
|
{
|
|
126
161
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
127
162
|
return nullptr;
|
|
@@ -140,7 +175,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
140
175
|
{
|
|
141
176
|
try
|
|
142
177
|
{
|
|
143
|
-
|
|
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.ApplicationModel.AppExtensions.AppExtension", L"Id");
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
if (!is_property_present.value())
|
|
144
186
|
{
|
|
145
187
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
146
188
|
return nullptr;
|
|
@@ -159,7 +201,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
159
201
|
{
|
|
160
202
|
try
|
|
161
203
|
{
|
|
162
|
-
|
|
204
|
+
static std::optional<bool> is_property_present{};
|
|
205
|
+
|
|
206
|
+
if (!is_property_present.has_value())
|
|
207
|
+
{
|
|
208
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.AppExtensions.AppExtension", L"Package");
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
if (!is_property_present.value())
|
|
163
212
|
{
|
|
164
213
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
165
214
|
return nullptr;
|
|
@@ -178,7 +227,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
178
227
|
{
|
|
179
228
|
try
|
|
180
229
|
{
|
|
181
|
-
|
|
230
|
+
static std::optional<bool> is_property_present{};
|
|
231
|
+
|
|
232
|
+
if (!is_property_present.has_value())
|
|
233
|
+
{
|
|
234
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.AppExtensions.AppExtension", L"AppUserModelId");
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
if (!is_property_present.value())
|
|
182
238
|
{
|
|
183
239
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
184
240
|
return nullptr;
|
|
@@ -275,7 +331,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
275
331
|
{
|
|
276
332
|
try
|
|
277
333
|
{
|
|
278
|
-
|
|
334
|
+
static std::optional<bool> is_overload_present{};
|
|
335
|
+
|
|
336
|
+
if (!is_overload_present.has_value())
|
|
337
|
+
{
|
|
338
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.AppExtensions.AppExtensionCatalog", L"FindAllAsync", 0);
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
if (!is_overload_present.value())
|
|
279
342
|
{
|
|
280
343
|
py::set_arg_count_version_error(0);
|
|
281
344
|
return nullptr;
|
|
@@ -304,7 +367,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
304
367
|
{
|
|
305
368
|
try
|
|
306
369
|
{
|
|
307
|
-
|
|
370
|
+
static std::optional<bool> is_overload_present{};
|
|
371
|
+
|
|
372
|
+
if (!is_overload_present.has_value())
|
|
373
|
+
{
|
|
374
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.AppExtensions.AppExtensionCatalog", L"Open", 1);
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
if (!is_overload_present.value())
|
|
308
378
|
{
|
|
309
379
|
py::set_arg_count_version_error(1);
|
|
310
380
|
return nullptr;
|
|
@@ -335,7 +405,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
335
405
|
{
|
|
336
406
|
try
|
|
337
407
|
{
|
|
338
|
-
|
|
408
|
+
static std::optional<bool> is_overload_present{};
|
|
409
|
+
|
|
410
|
+
if (!is_overload_present.has_value())
|
|
411
|
+
{
|
|
412
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.AppExtensions.AppExtensionCatalog", L"RequestRemovePackageAsync", 1);
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
if (!is_overload_present.value())
|
|
339
416
|
{
|
|
340
417
|
py::set_arg_count_version_error(1);
|
|
341
418
|
return nullptr;
|
|
@@ -362,7 +439,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
362
439
|
{
|
|
363
440
|
try
|
|
364
441
|
{
|
|
365
|
-
|
|
442
|
+
static std::optional<bool> is_event_present{};
|
|
443
|
+
|
|
444
|
+
if (!is_event_present.has_value())
|
|
445
|
+
{
|
|
446
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.AppExtensions.AppExtensionCatalog", L"PackageInstalled");
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
if (!is_event_present.value())
|
|
366
450
|
{
|
|
367
451
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
368
452
|
return nullptr;
|
|
@@ -383,7 +467,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
383
467
|
{
|
|
384
468
|
try
|
|
385
469
|
{
|
|
386
|
-
|
|
470
|
+
static std::optional<bool> is_event_present{};
|
|
471
|
+
|
|
472
|
+
if (!is_event_present.has_value())
|
|
473
|
+
{
|
|
474
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.AppExtensions.AppExtensionCatalog", L"PackageInstalled");
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
if (!is_event_present.value())
|
|
387
478
|
{
|
|
388
479
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
389
480
|
return nullptr;
|
|
@@ -405,7 +496,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
405
496
|
{
|
|
406
497
|
try
|
|
407
498
|
{
|
|
408
|
-
|
|
499
|
+
static std::optional<bool> is_event_present{};
|
|
500
|
+
|
|
501
|
+
if (!is_event_present.has_value())
|
|
502
|
+
{
|
|
503
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.AppExtensions.AppExtensionCatalog", L"PackageStatusChanged");
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
if (!is_event_present.value())
|
|
409
507
|
{
|
|
410
508
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
411
509
|
return nullptr;
|
|
@@ -426,7 +524,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
426
524
|
{
|
|
427
525
|
try
|
|
428
526
|
{
|
|
429
|
-
|
|
527
|
+
static std::optional<bool> is_event_present{};
|
|
528
|
+
|
|
529
|
+
if (!is_event_present.has_value())
|
|
530
|
+
{
|
|
531
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.AppExtensions.AppExtensionCatalog", L"PackageStatusChanged");
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
if (!is_event_present.value())
|
|
430
535
|
{
|
|
431
536
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
432
537
|
return nullptr;
|
|
@@ -448,7 +553,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
448
553
|
{
|
|
449
554
|
try
|
|
450
555
|
{
|
|
451
|
-
|
|
556
|
+
static std::optional<bool> is_event_present{};
|
|
557
|
+
|
|
558
|
+
if (!is_event_present.has_value())
|
|
559
|
+
{
|
|
560
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.AppExtensions.AppExtensionCatalog", L"PackageUninstalling");
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
if (!is_event_present.value())
|
|
452
564
|
{
|
|
453
565
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
454
566
|
return nullptr;
|
|
@@ -469,7 +581,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
469
581
|
{
|
|
470
582
|
try
|
|
471
583
|
{
|
|
472
|
-
|
|
584
|
+
static std::optional<bool> is_event_present{};
|
|
585
|
+
|
|
586
|
+
if (!is_event_present.has_value())
|
|
587
|
+
{
|
|
588
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.AppExtensions.AppExtensionCatalog", L"PackageUninstalling");
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
if (!is_event_present.value())
|
|
473
592
|
{
|
|
474
593
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
475
594
|
return nullptr;
|
|
@@ -491,7 +610,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
491
610
|
{
|
|
492
611
|
try
|
|
493
612
|
{
|
|
494
|
-
|
|
613
|
+
static std::optional<bool> is_event_present{};
|
|
614
|
+
|
|
615
|
+
if (!is_event_present.has_value())
|
|
616
|
+
{
|
|
617
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.AppExtensions.AppExtensionCatalog", L"PackageUpdated");
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
if (!is_event_present.value())
|
|
495
621
|
{
|
|
496
622
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
497
623
|
return nullptr;
|
|
@@ -512,7 +638,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
512
638
|
{
|
|
513
639
|
try
|
|
514
640
|
{
|
|
515
|
-
|
|
641
|
+
static std::optional<bool> is_event_present{};
|
|
642
|
+
|
|
643
|
+
if (!is_event_present.has_value())
|
|
644
|
+
{
|
|
645
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.AppExtensions.AppExtensionCatalog", L"PackageUpdated");
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
if (!is_event_present.value())
|
|
516
649
|
{
|
|
517
650
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
518
651
|
return nullptr;
|
|
@@ -534,7 +667,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
534
667
|
{
|
|
535
668
|
try
|
|
536
669
|
{
|
|
537
|
-
|
|
670
|
+
static std::optional<bool> is_event_present{};
|
|
671
|
+
|
|
672
|
+
if (!is_event_present.has_value())
|
|
673
|
+
{
|
|
674
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.AppExtensions.AppExtensionCatalog", L"PackageUpdating");
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
if (!is_event_present.value())
|
|
538
678
|
{
|
|
539
679
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
540
680
|
return nullptr;
|
|
@@ -555,7 +695,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
555
695
|
{
|
|
556
696
|
try
|
|
557
697
|
{
|
|
558
|
-
|
|
698
|
+
static std::optional<bool> is_event_present{};
|
|
699
|
+
|
|
700
|
+
if (!is_event_present.has_value())
|
|
701
|
+
{
|
|
702
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.AppExtensions.AppExtensionCatalog", L"PackageUpdating");
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
if (!is_event_present.value())
|
|
559
706
|
{
|
|
560
707
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
561
708
|
return nullptr;
|
|
@@ -681,7 +828,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
681
828
|
{
|
|
682
829
|
try
|
|
683
830
|
{
|
|
684
|
-
|
|
831
|
+
static std::optional<bool> is_property_present{};
|
|
832
|
+
|
|
833
|
+
if (!is_property_present.has_value())
|
|
834
|
+
{
|
|
835
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.AppExtensions.AppExtensionPackageInstalledEventArgs", L"AppExtensionName");
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
if (!is_property_present.value())
|
|
685
839
|
{
|
|
686
840
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
687
841
|
return nullptr;
|
|
@@ -700,7 +854,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
700
854
|
{
|
|
701
855
|
try
|
|
702
856
|
{
|
|
703
|
-
|
|
857
|
+
static std::optional<bool> is_property_present{};
|
|
858
|
+
|
|
859
|
+
if (!is_property_present.has_value())
|
|
860
|
+
{
|
|
861
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.AppExtensions.AppExtensionPackageInstalledEventArgs", L"Extensions");
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
if (!is_property_present.value())
|
|
704
865
|
{
|
|
705
866
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
706
867
|
return nullptr;
|
|
@@ -719,7 +880,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
719
880
|
{
|
|
720
881
|
try
|
|
721
882
|
{
|
|
722
|
-
|
|
883
|
+
static std::optional<bool> is_property_present{};
|
|
884
|
+
|
|
885
|
+
if (!is_property_present.has_value())
|
|
886
|
+
{
|
|
887
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.AppExtensions.AppExtensionPackageInstalledEventArgs", L"Package");
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
if (!is_property_present.value())
|
|
723
891
|
{
|
|
724
892
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
725
893
|
return nullptr;
|
|
@@ -807,7 +975,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
807
975
|
{
|
|
808
976
|
try
|
|
809
977
|
{
|
|
810
|
-
|
|
978
|
+
static std::optional<bool> is_property_present{};
|
|
979
|
+
|
|
980
|
+
if (!is_property_present.has_value())
|
|
981
|
+
{
|
|
982
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.AppExtensions.AppExtensionPackageStatusChangedEventArgs", L"AppExtensionName");
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
if (!is_property_present.value())
|
|
811
986
|
{
|
|
812
987
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
813
988
|
return nullptr;
|
|
@@ -826,7 +1001,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
826
1001
|
{
|
|
827
1002
|
try
|
|
828
1003
|
{
|
|
829
|
-
|
|
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.ApplicationModel.AppExtensions.AppExtensionPackageStatusChangedEventArgs", L"Package");
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
if (!is_property_present.value())
|
|
830
1012
|
{
|
|
831
1013
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
832
1014
|
return nullptr;
|
|
@@ -913,7 +1095,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
913
1095
|
{
|
|
914
1096
|
try
|
|
915
1097
|
{
|
|
916
|
-
|
|
1098
|
+
static std::optional<bool> is_property_present{};
|
|
1099
|
+
|
|
1100
|
+
if (!is_property_present.has_value())
|
|
1101
|
+
{
|
|
1102
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.AppExtensions.AppExtensionPackageUninstallingEventArgs", L"AppExtensionName");
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
if (!is_property_present.value())
|
|
917
1106
|
{
|
|
918
1107
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
919
1108
|
return nullptr;
|
|
@@ -932,7 +1121,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
932
1121
|
{
|
|
933
1122
|
try
|
|
934
1123
|
{
|
|
935
|
-
|
|
1124
|
+
static std::optional<bool> is_property_present{};
|
|
1125
|
+
|
|
1126
|
+
if (!is_property_present.has_value())
|
|
1127
|
+
{
|
|
1128
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.AppExtensions.AppExtensionPackageUninstallingEventArgs", L"Package");
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1131
|
+
if (!is_property_present.value())
|
|
936
1132
|
{
|
|
937
1133
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
938
1134
|
return nullptr;
|
|
@@ -1019,7 +1215,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
1019
1215
|
{
|
|
1020
1216
|
try
|
|
1021
1217
|
{
|
|
1022
|
-
|
|
1218
|
+
static std::optional<bool> is_property_present{};
|
|
1219
|
+
|
|
1220
|
+
if (!is_property_present.has_value())
|
|
1221
|
+
{
|
|
1222
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.AppExtensions.AppExtensionPackageUpdatedEventArgs", L"AppExtensionName");
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1225
|
+
if (!is_property_present.value())
|
|
1023
1226
|
{
|
|
1024
1227
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1025
1228
|
return nullptr;
|
|
@@ -1038,7 +1241,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
1038
1241
|
{
|
|
1039
1242
|
try
|
|
1040
1243
|
{
|
|
1041
|
-
|
|
1244
|
+
static std::optional<bool> is_property_present{};
|
|
1245
|
+
|
|
1246
|
+
if (!is_property_present.has_value())
|
|
1247
|
+
{
|
|
1248
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.AppExtensions.AppExtensionPackageUpdatedEventArgs", L"Extensions");
|
|
1249
|
+
}
|
|
1250
|
+
|
|
1251
|
+
if (!is_property_present.value())
|
|
1042
1252
|
{
|
|
1043
1253
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1044
1254
|
return nullptr;
|
|
@@ -1057,7 +1267,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
1057
1267
|
{
|
|
1058
1268
|
try
|
|
1059
1269
|
{
|
|
1060
|
-
|
|
1270
|
+
static std::optional<bool> is_property_present{};
|
|
1271
|
+
|
|
1272
|
+
if (!is_property_present.has_value())
|
|
1273
|
+
{
|
|
1274
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.AppExtensions.AppExtensionPackageUpdatedEventArgs", L"Package");
|
|
1275
|
+
}
|
|
1276
|
+
|
|
1277
|
+
if (!is_property_present.value())
|
|
1061
1278
|
{
|
|
1062
1279
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1063
1280
|
return nullptr;
|
|
@@ -1145,7 +1362,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
1145
1362
|
{
|
|
1146
1363
|
try
|
|
1147
1364
|
{
|
|
1148
|
-
|
|
1365
|
+
static std::optional<bool> is_property_present{};
|
|
1366
|
+
|
|
1367
|
+
if (!is_property_present.has_value())
|
|
1368
|
+
{
|
|
1369
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.AppExtensions.AppExtensionPackageUpdatingEventArgs", L"AppExtensionName");
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1372
|
+
if (!is_property_present.value())
|
|
1149
1373
|
{
|
|
1150
1374
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1151
1375
|
return nullptr;
|
|
@@ -1164,7 +1388,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
1164
1388
|
{
|
|
1165
1389
|
try
|
|
1166
1390
|
{
|
|
1167
|
-
|
|
1391
|
+
static std::optional<bool> is_property_present{};
|
|
1392
|
+
|
|
1393
|
+
if (!is_property_present.has_value())
|
|
1394
|
+
{
|
|
1395
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.AppExtensions.AppExtensionPackageUpdatingEventArgs", L"Package");
|
|
1396
|
+
}
|
|
1397
|
+
|
|
1398
|
+
if (!is_property_present.value())
|
|
1168
1399
|
{
|
|
1169
1400
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1170
1401
|
return nullptr;
|
|
@@ -1275,7 +1506,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_appextensions(void) noexce
|
|
|
1275
1506
|
return nullptr;
|
|
1276
1507
|
}
|
|
1277
1508
|
|
|
1278
|
-
|
|
1509
|
+
py::pytype_handle AppExtension_type{py::register_python_type(module.get(), &type_spec_AppExtension, object_bases.get(), nullptr)};
|
|
1510
|
+
if (!AppExtension_type)
|
|
1279
1511
|
{
|
|
1280
1512
|
return nullptr;
|
|
1281
1513
|
}
|
|
@@ -1286,32 +1518,38 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_appextensions(void) noexce
|
|
|
1286
1518
|
return nullptr;
|
|
1287
1519
|
}
|
|
1288
1520
|
|
|
1289
|
-
|
|
1521
|
+
py::pytype_handle AppExtensionCatalog_type{py::register_python_type(module.get(), &type_spec_AppExtensionCatalog, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_AppExtensionCatalog_Static.get()))};
|
|
1522
|
+
if (!AppExtensionCatalog_type)
|
|
1290
1523
|
{
|
|
1291
1524
|
return nullptr;
|
|
1292
1525
|
}
|
|
1293
1526
|
|
|
1294
|
-
|
|
1527
|
+
py::pytype_handle AppExtensionPackageInstalledEventArgs_type{py::register_python_type(module.get(), &type_spec_AppExtensionPackageInstalledEventArgs, object_bases.get(), nullptr)};
|
|
1528
|
+
if (!AppExtensionPackageInstalledEventArgs_type)
|
|
1295
1529
|
{
|
|
1296
1530
|
return nullptr;
|
|
1297
1531
|
}
|
|
1298
1532
|
|
|
1299
|
-
|
|
1533
|
+
py::pytype_handle AppExtensionPackageStatusChangedEventArgs_type{py::register_python_type(module.get(), &type_spec_AppExtensionPackageStatusChangedEventArgs, object_bases.get(), nullptr)};
|
|
1534
|
+
if (!AppExtensionPackageStatusChangedEventArgs_type)
|
|
1300
1535
|
{
|
|
1301
1536
|
return nullptr;
|
|
1302
1537
|
}
|
|
1303
1538
|
|
|
1304
|
-
|
|
1539
|
+
py::pytype_handle AppExtensionPackageUninstallingEventArgs_type{py::register_python_type(module.get(), &type_spec_AppExtensionPackageUninstallingEventArgs, object_bases.get(), nullptr)};
|
|
1540
|
+
if (!AppExtensionPackageUninstallingEventArgs_type)
|
|
1305
1541
|
{
|
|
1306
1542
|
return nullptr;
|
|
1307
1543
|
}
|
|
1308
1544
|
|
|
1309
|
-
|
|
1545
|
+
py::pytype_handle AppExtensionPackageUpdatedEventArgs_type{py::register_python_type(module.get(), &type_spec_AppExtensionPackageUpdatedEventArgs, object_bases.get(), nullptr)};
|
|
1546
|
+
if (!AppExtensionPackageUpdatedEventArgs_type)
|
|
1310
1547
|
{
|
|
1311
1548
|
return nullptr;
|
|
1312
1549
|
}
|
|
1313
1550
|
|
|
1314
|
-
|
|
1551
|
+
py::pytype_handle AppExtensionPackageUpdatingEventArgs_type{py::register_python_type(module.get(), &type_spec_AppExtensionPackageUpdatingEventArgs, object_bases.get(), nullptr)};
|
|
1552
|
+
if (!AppExtensionPackageUpdatingEventArgs_type)
|
|
1315
1553
|
{
|
|
1316
1554
|
return nullptr;
|
|
1317
1555
|
}
|
|
@@ -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.ApplicationModel.AppExtensions
|
|
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,14 +10,14 @@ 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.ApplicationModel[all]==2.
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.
|
|
19
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.
|
|
20
|
-
Requires-Dist: winrt-Windows.Storage[all]==2.
|
|
17
|
+
Requires-Dist: winrt-Windows.ApplicationModel[all]==2.2.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.2.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.Storage[all]==2.2.0; extra == "all"
|
|
21
21
|
|
|
22
22
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
23
23
|
|
|
@@ -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
|