winrt-Windows.ApplicationModel.AppExtensions 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_applicationmodel_appextensions-2.1.0 → winrt_windows_applicationmodel_appextensions-2.3.0}/PKG-INFO +7 -7
- winrt_windows_applicationmodel_appextensions-2.3.0/all-requirements.txt +6 -0
- {winrt_windows_applicationmodel_appextensions-2.1.0 → winrt_windows_applicationmodel_appextensions-2.3.0}/py.Windows.ApplicationModel.AppExtensions.cpp +427 -41
- {winrt_windows_applicationmodel_appextensions-2.1.0 → winrt_windows_applicationmodel_appextensions-2.3.0}/pyproject.toml +3 -2
- winrt_windows_applicationmodel_appextensions-2.3.0/pywinrt-version.txt +1 -0
- {winrt_windows_applicationmodel_appextensions-2.1.0 → winrt_windows_applicationmodel_appextensions-2.3.0}/requirements.txt +2 -2
- {winrt_windows_applicationmodel_appextensions-2.1.0 → winrt_windows_applicationmodel_appextensions-2.3.0}/winrt/_winrt_windows_applicationmodel_appextensions.pyi +5 -1
- {winrt_windows_applicationmodel_appextensions-2.1.0 → winrt_windows_applicationmodel_appextensions-2.3.0}/winrt/windows/applicationmodel/appextensions/__init__.py +1 -1
- {winrt_windows_applicationmodel_appextensions-2.1.0 → winrt_windows_applicationmodel_appextensions-2.3.0}/winrt_Windows.ApplicationModel.AppExtensions.egg-info/PKG-INFO +7 -7
- winrt_windows_applicationmodel_appextensions-2.3.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.3.0}/README.md +0 -0
- {winrt_windows_applicationmodel_appextensions-2.1.0 → winrt_windows_applicationmodel_appextensions-2.3.0}/setup.cfg +0 -0
- {winrt_windows_applicationmodel_appextensions-2.1.0 → winrt_windows_applicationmodel_appextensions-2.3.0}/setup.py +0 -0
- {winrt_windows_applicationmodel_appextensions-2.1.0 → winrt_windows_applicationmodel_appextensions-2.3.0}/winrt/windows/applicationmodel/appextensions/py.typed +0 -0
- {winrt_windows_applicationmodel_appextensions-2.1.0 → winrt_windows_applicationmodel_appextensions-2.3.0}/winrt_Windows.ApplicationModel.AppExtensions.egg-info/SOURCES.txt +0 -0
- {winrt_windows_applicationmodel_appextensions-2.1.0 → winrt_windows_applicationmodel_appextensions-2.3.0}/winrt_Windows.ApplicationModel.AppExtensions.egg-info/dependency_links.txt +0 -0
- {winrt_windows_applicationmodel_appextensions-2.1.0 → winrt_windows_applicationmodel_appextensions-2.3.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.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,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.3.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.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
|
+
Requires-Dist: winrt-Windows.Storage[all]==2.3.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.3.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.ApplicationModel.AppExtensions.h"
|
|
4
4
|
|
|
@@ -21,6 +21,42 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
21
21
|
Py_DECREF(tp);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
static PyObject* AppExtension_GetExtensionProperties(py::wrapper::Windows::ApplicationModel::AppExtensions::AppExtension* self, PyObject* args) noexcept
|
|
25
|
+
{
|
|
26
|
+
auto arg_count = PyTuple_Size(args);
|
|
27
|
+
|
|
28
|
+
if (arg_count == 0)
|
|
29
|
+
{
|
|
30
|
+
try
|
|
31
|
+
{
|
|
32
|
+
static std::optional<bool> is_overload_present{};
|
|
33
|
+
|
|
34
|
+
if (!is_overload_present.has_value())
|
|
35
|
+
{
|
|
36
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.AppExtensions.AppExtension", L"GetExtensionProperties", 0);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if (!is_overload_present.value())
|
|
40
|
+
{
|
|
41
|
+
py::set_arg_count_version_error(0);
|
|
42
|
+
return nullptr;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
return py::convert(self->obj.GetExtensionProperties());
|
|
46
|
+
}
|
|
47
|
+
catch (...)
|
|
48
|
+
{
|
|
49
|
+
py::to_PyErr();
|
|
50
|
+
return nullptr;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
else
|
|
54
|
+
{
|
|
55
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
56
|
+
return nullptr;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
24
60
|
static PyObject* AppExtension_GetExtensionPropertiesAsync(py::wrapper::Windows::ApplicationModel::AppExtensions::AppExtension* self, PyObject* args) noexcept
|
|
25
61
|
{
|
|
26
62
|
auto arg_count = PyTuple_Size(args);
|
|
@@ -29,7 +65,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
29
65
|
{
|
|
30
66
|
try
|
|
31
67
|
{
|
|
32
|
-
|
|
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"GetExtensionPropertiesAsync", 0);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if (!is_overload_present.value())
|
|
33
76
|
{
|
|
34
77
|
py::set_arg_count_version_error(0);
|
|
35
78
|
return nullptr;
|
|
@@ -50,6 +93,42 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
50
93
|
}
|
|
51
94
|
}
|
|
52
95
|
|
|
96
|
+
static PyObject* AppExtension_GetPublicFolder(py::wrapper::Windows::ApplicationModel::AppExtensions::AppExtension* self, PyObject* args) noexcept
|
|
97
|
+
{
|
|
98
|
+
auto arg_count = PyTuple_Size(args);
|
|
99
|
+
|
|
100
|
+
if (arg_count == 0)
|
|
101
|
+
{
|
|
102
|
+
try
|
|
103
|
+
{
|
|
104
|
+
static std::optional<bool> is_overload_present{};
|
|
105
|
+
|
|
106
|
+
if (!is_overload_present.has_value())
|
|
107
|
+
{
|
|
108
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.AppExtensions.AppExtension", L"GetPublicFolder", 0);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
if (!is_overload_present.value())
|
|
112
|
+
{
|
|
113
|
+
py::set_arg_count_version_error(0);
|
|
114
|
+
return nullptr;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
return py::convert(self->obj.GetPublicFolder());
|
|
118
|
+
}
|
|
119
|
+
catch (...)
|
|
120
|
+
{
|
|
121
|
+
py::to_PyErr();
|
|
122
|
+
return nullptr;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
else
|
|
126
|
+
{
|
|
127
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
128
|
+
return nullptr;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
53
132
|
static PyObject* AppExtension_GetPublicFolderAsync(py::wrapper::Windows::ApplicationModel::AppExtensions::AppExtension* self, PyObject* args) noexcept
|
|
54
133
|
{
|
|
55
134
|
auto arg_count = PyTuple_Size(args);
|
|
@@ -58,7 +137,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
58
137
|
{
|
|
59
138
|
try
|
|
60
139
|
{
|
|
61
|
-
|
|
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.ApplicationModel.AppExtensions.AppExtension", L"GetPublicFolderAsync", 0);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
if (!is_overload_present.value())
|
|
62
148
|
{
|
|
63
149
|
py::set_arg_count_version_error(0);
|
|
64
150
|
return nullptr;
|
|
@@ -79,11 +165,54 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
79
165
|
}
|
|
80
166
|
}
|
|
81
167
|
|
|
168
|
+
static PyObject* AppExtension_GetPublicPath(py::wrapper::Windows::ApplicationModel::AppExtensions::AppExtension* self, PyObject* args) noexcept
|
|
169
|
+
{
|
|
170
|
+
auto arg_count = PyTuple_Size(args);
|
|
171
|
+
|
|
172
|
+
if (arg_count == 0)
|
|
173
|
+
{
|
|
174
|
+
try
|
|
175
|
+
{
|
|
176
|
+
static std::optional<bool> is_overload_present{};
|
|
177
|
+
|
|
178
|
+
if (!is_overload_present.has_value())
|
|
179
|
+
{
|
|
180
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.AppExtensions.AppExtension", L"GetPublicPath", 0);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
if (!is_overload_present.value())
|
|
184
|
+
{
|
|
185
|
+
py::set_arg_count_version_error(0);
|
|
186
|
+
return nullptr;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
return py::convert(self->obj.GetPublicPath());
|
|
190
|
+
}
|
|
191
|
+
catch (...)
|
|
192
|
+
{
|
|
193
|
+
py::to_PyErr();
|
|
194
|
+
return nullptr;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
else
|
|
198
|
+
{
|
|
199
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
200
|
+
return nullptr;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
82
204
|
static PyObject* AppExtension_get_AppInfo(py::wrapper::Windows::ApplicationModel::AppExtensions::AppExtension* self, void* /*unused*/) noexcept
|
|
83
205
|
{
|
|
84
206
|
try
|
|
85
207
|
{
|
|
86
|
-
|
|
208
|
+
static std::optional<bool> is_property_present{};
|
|
209
|
+
|
|
210
|
+
if (!is_property_present.has_value())
|
|
211
|
+
{
|
|
212
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.AppExtensions.AppExtension", L"AppInfo");
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
if (!is_property_present.value())
|
|
87
216
|
{
|
|
88
217
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
89
218
|
return nullptr;
|
|
@@ -102,7 +231,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
102
231
|
{
|
|
103
232
|
try
|
|
104
233
|
{
|
|
105
|
-
|
|
234
|
+
static std::optional<bool> is_property_present{};
|
|
235
|
+
|
|
236
|
+
if (!is_property_present.has_value())
|
|
237
|
+
{
|
|
238
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.AppExtensions.AppExtension", L"Description");
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
if (!is_property_present.value())
|
|
106
242
|
{
|
|
107
243
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
108
244
|
return nullptr;
|
|
@@ -121,7 +257,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
121
257
|
{
|
|
122
258
|
try
|
|
123
259
|
{
|
|
124
|
-
|
|
260
|
+
static std::optional<bool> is_property_present{};
|
|
261
|
+
|
|
262
|
+
if (!is_property_present.has_value())
|
|
263
|
+
{
|
|
264
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.AppExtensions.AppExtension", L"DisplayName");
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
if (!is_property_present.value())
|
|
125
268
|
{
|
|
126
269
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
127
270
|
return nullptr;
|
|
@@ -140,7 +283,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
140
283
|
{
|
|
141
284
|
try
|
|
142
285
|
{
|
|
143
|
-
|
|
286
|
+
static std::optional<bool> is_property_present{};
|
|
287
|
+
|
|
288
|
+
if (!is_property_present.has_value())
|
|
289
|
+
{
|
|
290
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.AppExtensions.AppExtension", L"Id");
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
if (!is_property_present.value())
|
|
144
294
|
{
|
|
145
295
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
146
296
|
return nullptr;
|
|
@@ -159,7 +309,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
159
309
|
{
|
|
160
310
|
try
|
|
161
311
|
{
|
|
162
|
-
|
|
312
|
+
static std::optional<bool> is_property_present{};
|
|
313
|
+
|
|
314
|
+
if (!is_property_present.has_value())
|
|
315
|
+
{
|
|
316
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.AppExtensions.AppExtension", L"Package");
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
if (!is_property_present.value())
|
|
163
320
|
{
|
|
164
321
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
165
322
|
return nullptr;
|
|
@@ -178,7 +335,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
178
335
|
{
|
|
179
336
|
try
|
|
180
337
|
{
|
|
181
|
-
|
|
338
|
+
static std::optional<bool> is_property_present{};
|
|
339
|
+
|
|
340
|
+
if (!is_property_present.has_value())
|
|
341
|
+
{
|
|
342
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.AppExtensions.AppExtension", L"AppUserModelId");
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
if (!is_property_present.value())
|
|
182
346
|
{
|
|
183
347
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
184
348
|
return nullptr;
|
|
@@ -218,8 +382,11 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
218
382
|
}
|
|
219
383
|
|
|
220
384
|
static PyMethodDef _methods_AppExtension[] = {
|
|
385
|
+
{ "get_extension_properties", reinterpret_cast<PyCFunction>(AppExtension_GetExtensionProperties), METH_VARARGS, nullptr },
|
|
221
386
|
{ "get_extension_properties_async", reinterpret_cast<PyCFunction>(AppExtension_GetExtensionPropertiesAsync), METH_VARARGS, nullptr },
|
|
387
|
+
{ "get_public_folder", reinterpret_cast<PyCFunction>(AppExtension_GetPublicFolder), METH_VARARGS, nullptr },
|
|
222
388
|
{ "get_public_folder_async", reinterpret_cast<PyCFunction>(AppExtension_GetPublicFolderAsync), METH_VARARGS, nullptr },
|
|
389
|
+
{ "get_public_path", reinterpret_cast<PyCFunction>(AppExtension_GetPublicPath), METH_VARARGS, nullptr },
|
|
223
390
|
{ "_assign_array_", _assign_array_AppExtension, METH_O | METH_STATIC, nullptr },
|
|
224
391
|
{ "_from", reinterpret_cast<PyCFunction>(_from_AppExtension), METH_O | METH_STATIC, nullptr },
|
|
225
392
|
{ }
|
|
@@ -267,6 +434,42 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
267
434
|
Py_DECREF(tp);
|
|
268
435
|
}
|
|
269
436
|
|
|
437
|
+
static PyObject* AppExtensionCatalog_FindAll(py::wrapper::Windows::ApplicationModel::AppExtensions::AppExtensionCatalog* self, PyObject* args) noexcept
|
|
438
|
+
{
|
|
439
|
+
auto arg_count = PyTuple_Size(args);
|
|
440
|
+
|
|
441
|
+
if (arg_count == 0)
|
|
442
|
+
{
|
|
443
|
+
try
|
|
444
|
+
{
|
|
445
|
+
static std::optional<bool> is_overload_present{};
|
|
446
|
+
|
|
447
|
+
if (!is_overload_present.has_value())
|
|
448
|
+
{
|
|
449
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.AppExtensions.AppExtensionCatalog", L"FindAll", 0);
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
if (!is_overload_present.value())
|
|
453
|
+
{
|
|
454
|
+
py::set_arg_count_version_error(0);
|
|
455
|
+
return nullptr;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
return py::convert(self->obj.FindAll());
|
|
459
|
+
}
|
|
460
|
+
catch (...)
|
|
461
|
+
{
|
|
462
|
+
py::to_PyErr();
|
|
463
|
+
return nullptr;
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
else
|
|
467
|
+
{
|
|
468
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
469
|
+
return nullptr;
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
|
|
270
473
|
static PyObject* AppExtensionCatalog_FindAllAsync(py::wrapper::Windows::ApplicationModel::AppExtensions::AppExtensionCatalog* self, PyObject* args) noexcept
|
|
271
474
|
{
|
|
272
475
|
auto arg_count = PyTuple_Size(args);
|
|
@@ -275,7 +478,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
275
478
|
{
|
|
276
479
|
try
|
|
277
480
|
{
|
|
278
|
-
|
|
481
|
+
static std::optional<bool> is_overload_present{};
|
|
482
|
+
|
|
483
|
+
if (!is_overload_present.has_value())
|
|
484
|
+
{
|
|
485
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.AppExtensions.AppExtensionCatalog", L"FindAllAsync", 0);
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
if (!is_overload_present.value())
|
|
279
489
|
{
|
|
280
490
|
py::set_arg_count_version_error(0);
|
|
281
491
|
return nullptr;
|
|
@@ -304,7 +514,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
304
514
|
{
|
|
305
515
|
try
|
|
306
516
|
{
|
|
307
|
-
|
|
517
|
+
static std::optional<bool> is_overload_present{};
|
|
518
|
+
|
|
519
|
+
if (!is_overload_present.has_value())
|
|
520
|
+
{
|
|
521
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.AppExtensions.AppExtensionCatalog", L"Open", 1);
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
if (!is_overload_present.value())
|
|
308
525
|
{
|
|
309
526
|
py::set_arg_count_version_error(1);
|
|
310
527
|
return nullptr;
|
|
@@ -335,7 +552,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
335
552
|
{
|
|
336
553
|
try
|
|
337
554
|
{
|
|
338
|
-
|
|
555
|
+
static std::optional<bool> is_overload_present{};
|
|
556
|
+
|
|
557
|
+
if (!is_overload_present.has_value())
|
|
558
|
+
{
|
|
559
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.AppExtensions.AppExtensionCatalog", L"RequestRemovePackageAsync", 1);
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
if (!is_overload_present.value())
|
|
339
563
|
{
|
|
340
564
|
py::set_arg_count_version_error(1);
|
|
341
565
|
return nullptr;
|
|
@@ -362,7 +586,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
362
586
|
{
|
|
363
587
|
try
|
|
364
588
|
{
|
|
365
|
-
|
|
589
|
+
static std::optional<bool> is_event_present{};
|
|
590
|
+
|
|
591
|
+
if (!is_event_present.has_value())
|
|
592
|
+
{
|
|
593
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.AppExtensions.AppExtensionCatalog", L"PackageInstalled");
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
if (!is_event_present.value())
|
|
366
597
|
{
|
|
367
598
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
368
599
|
return nullptr;
|
|
@@ -383,7 +614,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
383
614
|
{
|
|
384
615
|
try
|
|
385
616
|
{
|
|
386
|
-
|
|
617
|
+
static std::optional<bool> is_event_present{};
|
|
618
|
+
|
|
619
|
+
if (!is_event_present.has_value())
|
|
620
|
+
{
|
|
621
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.AppExtensions.AppExtensionCatalog", L"PackageInstalled");
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
if (!is_event_present.value())
|
|
387
625
|
{
|
|
388
626
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
389
627
|
return nullptr;
|
|
@@ -405,7 +643,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
405
643
|
{
|
|
406
644
|
try
|
|
407
645
|
{
|
|
408
|
-
|
|
646
|
+
static std::optional<bool> is_event_present{};
|
|
647
|
+
|
|
648
|
+
if (!is_event_present.has_value())
|
|
649
|
+
{
|
|
650
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.AppExtensions.AppExtensionCatalog", L"PackageStatusChanged");
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
if (!is_event_present.value())
|
|
409
654
|
{
|
|
410
655
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
411
656
|
return nullptr;
|
|
@@ -426,7 +671,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
426
671
|
{
|
|
427
672
|
try
|
|
428
673
|
{
|
|
429
|
-
|
|
674
|
+
static std::optional<bool> is_event_present{};
|
|
675
|
+
|
|
676
|
+
if (!is_event_present.has_value())
|
|
677
|
+
{
|
|
678
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.AppExtensions.AppExtensionCatalog", L"PackageStatusChanged");
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
if (!is_event_present.value())
|
|
430
682
|
{
|
|
431
683
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
432
684
|
return nullptr;
|
|
@@ -448,7 +700,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
448
700
|
{
|
|
449
701
|
try
|
|
450
702
|
{
|
|
451
|
-
|
|
703
|
+
static std::optional<bool> is_event_present{};
|
|
704
|
+
|
|
705
|
+
if (!is_event_present.has_value())
|
|
706
|
+
{
|
|
707
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.AppExtensions.AppExtensionCatalog", L"PackageUninstalling");
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
if (!is_event_present.value())
|
|
452
711
|
{
|
|
453
712
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
454
713
|
return nullptr;
|
|
@@ -469,7 +728,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
469
728
|
{
|
|
470
729
|
try
|
|
471
730
|
{
|
|
472
|
-
|
|
731
|
+
static std::optional<bool> is_event_present{};
|
|
732
|
+
|
|
733
|
+
if (!is_event_present.has_value())
|
|
734
|
+
{
|
|
735
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.AppExtensions.AppExtensionCatalog", L"PackageUninstalling");
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
if (!is_event_present.value())
|
|
473
739
|
{
|
|
474
740
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
475
741
|
return nullptr;
|
|
@@ -491,7 +757,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
491
757
|
{
|
|
492
758
|
try
|
|
493
759
|
{
|
|
494
|
-
|
|
760
|
+
static std::optional<bool> is_event_present{};
|
|
761
|
+
|
|
762
|
+
if (!is_event_present.has_value())
|
|
763
|
+
{
|
|
764
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.AppExtensions.AppExtensionCatalog", L"PackageUpdated");
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
if (!is_event_present.value())
|
|
495
768
|
{
|
|
496
769
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
497
770
|
return nullptr;
|
|
@@ -512,7 +785,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
512
785
|
{
|
|
513
786
|
try
|
|
514
787
|
{
|
|
515
|
-
|
|
788
|
+
static std::optional<bool> is_event_present{};
|
|
789
|
+
|
|
790
|
+
if (!is_event_present.has_value())
|
|
791
|
+
{
|
|
792
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.AppExtensions.AppExtensionCatalog", L"PackageUpdated");
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
if (!is_event_present.value())
|
|
516
796
|
{
|
|
517
797
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
518
798
|
return nullptr;
|
|
@@ -534,7 +814,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
534
814
|
{
|
|
535
815
|
try
|
|
536
816
|
{
|
|
537
|
-
|
|
817
|
+
static std::optional<bool> is_event_present{};
|
|
818
|
+
|
|
819
|
+
if (!is_event_present.has_value())
|
|
820
|
+
{
|
|
821
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.AppExtensions.AppExtensionCatalog", L"PackageUpdating");
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
if (!is_event_present.value())
|
|
538
825
|
{
|
|
539
826
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
540
827
|
return nullptr;
|
|
@@ -555,7 +842,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
555
842
|
{
|
|
556
843
|
try
|
|
557
844
|
{
|
|
558
|
-
|
|
845
|
+
static std::optional<bool> is_event_present{};
|
|
846
|
+
|
|
847
|
+
if (!is_event_present.has_value())
|
|
848
|
+
{
|
|
849
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.AppExtensions.AppExtensionCatalog", L"PackageUpdating");
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
if (!is_event_present.value())
|
|
559
853
|
{
|
|
560
854
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
561
855
|
return nullptr;
|
|
@@ -598,6 +892,7 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
598
892
|
}
|
|
599
893
|
|
|
600
894
|
static PyMethodDef _methods_AppExtensionCatalog[] = {
|
|
895
|
+
{ "find_all", reinterpret_cast<PyCFunction>(AppExtensionCatalog_FindAll), METH_VARARGS, nullptr },
|
|
601
896
|
{ "find_all_async", reinterpret_cast<PyCFunction>(AppExtensionCatalog_FindAllAsync), METH_VARARGS, nullptr },
|
|
602
897
|
{ "request_remove_package_async", reinterpret_cast<PyCFunction>(AppExtensionCatalog_RequestRemovePackageAsync), METH_VARARGS, nullptr },
|
|
603
898
|
{ "add_package_installed", reinterpret_cast<PyCFunction>(AppExtensionCatalog_add_PackageInstalled), METH_O, nullptr },
|
|
@@ -681,7 +976,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
681
976
|
{
|
|
682
977
|
try
|
|
683
978
|
{
|
|
684
|
-
|
|
979
|
+
static std::optional<bool> is_property_present{};
|
|
980
|
+
|
|
981
|
+
if (!is_property_present.has_value())
|
|
982
|
+
{
|
|
983
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.AppExtensions.AppExtensionPackageInstalledEventArgs", L"AppExtensionName");
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
if (!is_property_present.value())
|
|
685
987
|
{
|
|
686
988
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
687
989
|
return nullptr;
|
|
@@ -700,7 +1002,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
700
1002
|
{
|
|
701
1003
|
try
|
|
702
1004
|
{
|
|
703
|
-
|
|
1005
|
+
static std::optional<bool> is_property_present{};
|
|
1006
|
+
|
|
1007
|
+
if (!is_property_present.has_value())
|
|
1008
|
+
{
|
|
1009
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.AppExtensions.AppExtensionPackageInstalledEventArgs", L"Extensions");
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
if (!is_property_present.value())
|
|
704
1013
|
{
|
|
705
1014
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
706
1015
|
return nullptr;
|
|
@@ -719,7 +1028,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
719
1028
|
{
|
|
720
1029
|
try
|
|
721
1030
|
{
|
|
722
|
-
|
|
1031
|
+
static std::optional<bool> is_property_present{};
|
|
1032
|
+
|
|
1033
|
+
if (!is_property_present.has_value())
|
|
1034
|
+
{
|
|
1035
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.AppExtensions.AppExtensionPackageInstalledEventArgs", L"Package");
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
if (!is_property_present.value())
|
|
723
1039
|
{
|
|
724
1040
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
725
1041
|
return nullptr;
|
|
@@ -807,7 +1123,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
807
1123
|
{
|
|
808
1124
|
try
|
|
809
1125
|
{
|
|
810
|
-
|
|
1126
|
+
static std::optional<bool> is_property_present{};
|
|
1127
|
+
|
|
1128
|
+
if (!is_property_present.has_value())
|
|
1129
|
+
{
|
|
1130
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.AppExtensions.AppExtensionPackageStatusChangedEventArgs", L"AppExtensionName");
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
if (!is_property_present.value())
|
|
811
1134
|
{
|
|
812
1135
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
813
1136
|
return nullptr;
|
|
@@ -826,7 +1149,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
826
1149
|
{
|
|
827
1150
|
try
|
|
828
1151
|
{
|
|
829
|
-
|
|
1152
|
+
static std::optional<bool> is_property_present{};
|
|
1153
|
+
|
|
1154
|
+
if (!is_property_present.has_value())
|
|
1155
|
+
{
|
|
1156
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.AppExtensions.AppExtensionPackageStatusChangedEventArgs", L"Package");
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
if (!is_property_present.value())
|
|
830
1160
|
{
|
|
831
1161
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
832
1162
|
return nullptr;
|
|
@@ -913,7 +1243,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
913
1243
|
{
|
|
914
1244
|
try
|
|
915
1245
|
{
|
|
916
|
-
|
|
1246
|
+
static std::optional<bool> is_property_present{};
|
|
1247
|
+
|
|
1248
|
+
if (!is_property_present.has_value())
|
|
1249
|
+
{
|
|
1250
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.AppExtensions.AppExtensionPackageUninstallingEventArgs", L"AppExtensionName");
|
|
1251
|
+
}
|
|
1252
|
+
|
|
1253
|
+
if (!is_property_present.value())
|
|
917
1254
|
{
|
|
918
1255
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
919
1256
|
return nullptr;
|
|
@@ -932,7 +1269,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
932
1269
|
{
|
|
933
1270
|
try
|
|
934
1271
|
{
|
|
935
|
-
|
|
1272
|
+
static std::optional<bool> is_property_present{};
|
|
1273
|
+
|
|
1274
|
+
if (!is_property_present.has_value())
|
|
1275
|
+
{
|
|
1276
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.AppExtensions.AppExtensionPackageUninstallingEventArgs", L"Package");
|
|
1277
|
+
}
|
|
1278
|
+
|
|
1279
|
+
if (!is_property_present.value())
|
|
936
1280
|
{
|
|
937
1281
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
938
1282
|
return nullptr;
|
|
@@ -1019,7 +1363,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
1019
1363
|
{
|
|
1020
1364
|
try
|
|
1021
1365
|
{
|
|
1022
|
-
|
|
1366
|
+
static std::optional<bool> is_property_present{};
|
|
1367
|
+
|
|
1368
|
+
if (!is_property_present.has_value())
|
|
1369
|
+
{
|
|
1370
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.AppExtensions.AppExtensionPackageUpdatedEventArgs", L"AppExtensionName");
|
|
1371
|
+
}
|
|
1372
|
+
|
|
1373
|
+
if (!is_property_present.value())
|
|
1023
1374
|
{
|
|
1024
1375
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1025
1376
|
return nullptr;
|
|
@@ -1038,7 +1389,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
1038
1389
|
{
|
|
1039
1390
|
try
|
|
1040
1391
|
{
|
|
1041
|
-
|
|
1392
|
+
static std::optional<bool> is_property_present{};
|
|
1393
|
+
|
|
1394
|
+
if (!is_property_present.has_value())
|
|
1395
|
+
{
|
|
1396
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.AppExtensions.AppExtensionPackageUpdatedEventArgs", L"Extensions");
|
|
1397
|
+
}
|
|
1398
|
+
|
|
1399
|
+
if (!is_property_present.value())
|
|
1042
1400
|
{
|
|
1043
1401
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1044
1402
|
return nullptr;
|
|
@@ -1057,7 +1415,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
1057
1415
|
{
|
|
1058
1416
|
try
|
|
1059
1417
|
{
|
|
1060
|
-
|
|
1418
|
+
static std::optional<bool> is_property_present{};
|
|
1419
|
+
|
|
1420
|
+
if (!is_property_present.has_value())
|
|
1421
|
+
{
|
|
1422
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.AppExtensions.AppExtensionPackageUpdatedEventArgs", L"Package");
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1425
|
+
if (!is_property_present.value())
|
|
1061
1426
|
{
|
|
1062
1427
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1063
1428
|
return nullptr;
|
|
@@ -1145,7 +1510,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
1145
1510
|
{
|
|
1146
1511
|
try
|
|
1147
1512
|
{
|
|
1148
|
-
|
|
1513
|
+
static std::optional<bool> is_property_present{};
|
|
1514
|
+
|
|
1515
|
+
if (!is_property_present.has_value())
|
|
1516
|
+
{
|
|
1517
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.AppExtensions.AppExtensionPackageUpdatingEventArgs", L"AppExtensionName");
|
|
1518
|
+
}
|
|
1519
|
+
|
|
1520
|
+
if (!is_property_present.value())
|
|
1149
1521
|
{
|
|
1150
1522
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1151
1523
|
return nullptr;
|
|
@@ -1164,7 +1536,14 @@ namespace py::cpp::Windows::ApplicationModel::AppExtensions
|
|
|
1164
1536
|
{
|
|
1165
1537
|
try
|
|
1166
1538
|
{
|
|
1167
|
-
|
|
1539
|
+
static std::optional<bool> is_property_present{};
|
|
1540
|
+
|
|
1541
|
+
if (!is_property_present.has_value())
|
|
1542
|
+
{
|
|
1543
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.AppExtensions.AppExtensionPackageUpdatingEventArgs", L"Package");
|
|
1544
|
+
}
|
|
1545
|
+
|
|
1546
|
+
if (!is_property_present.value())
|
|
1168
1547
|
{
|
|
1169
1548
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1170
1549
|
return nullptr;
|
|
@@ -1275,7 +1654,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_appextensions(void) noexce
|
|
|
1275
1654
|
return nullptr;
|
|
1276
1655
|
}
|
|
1277
1656
|
|
|
1278
|
-
|
|
1657
|
+
py::pytype_handle AppExtension_type{py::register_python_type(module.get(), &type_spec_AppExtension, object_bases.get(), nullptr)};
|
|
1658
|
+
if (!AppExtension_type)
|
|
1279
1659
|
{
|
|
1280
1660
|
return nullptr;
|
|
1281
1661
|
}
|
|
@@ -1286,32 +1666,38 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_appextensions(void) noexce
|
|
|
1286
1666
|
return nullptr;
|
|
1287
1667
|
}
|
|
1288
1668
|
|
|
1289
|
-
|
|
1669
|
+
py::pytype_handle AppExtensionCatalog_type{py::register_python_type(module.get(), &type_spec_AppExtensionCatalog, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_AppExtensionCatalog_Static.get()))};
|
|
1670
|
+
if (!AppExtensionCatalog_type)
|
|
1290
1671
|
{
|
|
1291
1672
|
return nullptr;
|
|
1292
1673
|
}
|
|
1293
1674
|
|
|
1294
|
-
|
|
1675
|
+
py::pytype_handle AppExtensionPackageInstalledEventArgs_type{py::register_python_type(module.get(), &type_spec_AppExtensionPackageInstalledEventArgs, object_bases.get(), nullptr)};
|
|
1676
|
+
if (!AppExtensionPackageInstalledEventArgs_type)
|
|
1295
1677
|
{
|
|
1296
1678
|
return nullptr;
|
|
1297
1679
|
}
|
|
1298
1680
|
|
|
1299
|
-
|
|
1681
|
+
py::pytype_handle AppExtensionPackageStatusChangedEventArgs_type{py::register_python_type(module.get(), &type_spec_AppExtensionPackageStatusChangedEventArgs, object_bases.get(), nullptr)};
|
|
1682
|
+
if (!AppExtensionPackageStatusChangedEventArgs_type)
|
|
1300
1683
|
{
|
|
1301
1684
|
return nullptr;
|
|
1302
1685
|
}
|
|
1303
1686
|
|
|
1304
|
-
|
|
1687
|
+
py::pytype_handle AppExtensionPackageUninstallingEventArgs_type{py::register_python_type(module.get(), &type_spec_AppExtensionPackageUninstallingEventArgs, object_bases.get(), nullptr)};
|
|
1688
|
+
if (!AppExtensionPackageUninstallingEventArgs_type)
|
|
1305
1689
|
{
|
|
1306
1690
|
return nullptr;
|
|
1307
1691
|
}
|
|
1308
1692
|
|
|
1309
|
-
|
|
1693
|
+
py::pytype_handle AppExtensionPackageUpdatedEventArgs_type{py::register_python_type(module.get(), &type_spec_AppExtensionPackageUpdatedEventArgs, object_bases.get(), nullptr)};
|
|
1694
|
+
if (!AppExtensionPackageUpdatedEventArgs_type)
|
|
1310
1695
|
{
|
|
1311
1696
|
return nullptr;
|
|
1312
1697
|
}
|
|
1313
1698
|
|
|
1314
|
-
|
|
1699
|
+
py::pytype_handle AppExtensionPackageUpdatingEventArgs_type{py::register_python_type(module.get(), &type_spec_AppExtensionPackageUpdatingEventArgs, object_bases.get(), nullptr)};
|
|
1700
|
+
if (!AppExtensionPackageUpdatingEventArgs_type)
|
|
1315
1701
|
{
|
|
1316
1702
|
return nullptr;
|
|
1317
1703
|
}
|
|
@@ -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
|
|
@@ -20,8 +20,11 @@ Self = typing.TypeVar('Self')
|
|
|
20
20
|
class AppExtension(winrt.system.Object):
|
|
21
21
|
@staticmethod
|
|
22
22
|
def _from(obj: winrt.system.Object, /) -> AppExtension: ...
|
|
23
|
+
def get_extension_properties(self) -> typing.Optional[windows_foundation_collections.IPropertySet]: ...
|
|
23
24
|
def get_extension_properties_async(self) -> windows_foundation.IAsyncOperation[windows_foundation_collections.IPropertySet]: ...
|
|
25
|
+
def get_public_folder(self) -> typing.Optional[windows_storage.StorageFolder]: ...
|
|
24
26
|
def get_public_folder_async(self) -> windows_foundation.IAsyncOperation[windows_storage.StorageFolder]: ...
|
|
27
|
+
def get_public_path(self) -> str: ...
|
|
25
28
|
@_property
|
|
26
29
|
def app_info(self) -> typing.Optional[windows_applicationmodel.AppInfo]: ...
|
|
27
30
|
@_property
|
|
@@ -43,6 +46,7 @@ class AppExtensionCatalog_Static(type):
|
|
|
43
46
|
class AppExtensionCatalog(winrt.system.Object, metaclass=AppExtensionCatalog_Static):
|
|
44
47
|
@staticmethod
|
|
45
48
|
def _from(obj: winrt.system.Object, /) -> AppExtensionCatalog: ...
|
|
49
|
+
def find_all(self) -> typing.Optional[windows_foundation_collections.IVectorView[AppExtension]]: ...
|
|
46
50
|
def find_all_async(self) -> windows_foundation.IAsyncOperation[windows_foundation_collections.IVectorView[AppExtension]]: ...
|
|
47
51
|
def request_remove_package_async(self, package_full_name: str, /) -> windows_foundation.IAsyncOperation[bool]: ...
|
|
48
52
|
def add_package_installed(self, handler: windows_foundation.TypedEventHandler[AppExtensionCatalog, AppExtensionPackageInstalledEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.ApplicationModel.AppExtensions
|
|
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,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.3.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.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
|
+
Requires-Dist: winrt-Windows.Storage[all]==2.3.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
|