winrt-Windows.ApplicationModel.Store.LicenseManagement 2.0.1__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_store_licensemanagement-2.0.1 → winrt_windows_applicationmodel_store_licensemanagement-2.2.0}/PKG-INFO +6 -6
- winrt_windows_applicationmodel_store_licensemanagement-2.2.0/all-requirements.txt +5 -0
- {winrt_windows_applicationmodel_store_licensemanagement-2.0.1 → winrt_windows_applicationmodel_store_licensemanagement-2.2.0}/py.Windows.ApplicationModel.Store.LicenseManagement.cpp +186 -110
- {winrt_windows_applicationmodel_store_licensemanagement-2.0.1 → winrt_windows_applicationmodel_store_licensemanagement-2.2.0}/pyproject.toml +3 -2
- winrt_windows_applicationmodel_store_licensemanagement-2.2.0/pywinrt-version.txt +1 -0
- {winrt_windows_applicationmodel_store_licensemanagement-2.0.1 → winrt_windows_applicationmodel_store_licensemanagement-2.2.0}/requirements.txt +2 -2
- {winrt_windows_applicationmodel_store_licensemanagement-2.0.1 → winrt_windows_applicationmodel_store_licensemanagement-2.2.0}/winrt/_winrt_windows_applicationmodel_store_licensemanagement.pyi +10 -11
- {winrt_windows_applicationmodel_store_licensemanagement-2.0.1 → winrt_windows_applicationmodel_store_licensemanagement-2.2.0}/winrt/windows/applicationmodel/store/licensemanagement/__init__.py +1 -1
- {winrt_windows_applicationmodel_store_licensemanagement-2.0.1 → winrt_windows_applicationmodel_store_licensemanagement-2.2.0}/winrt_Windows.ApplicationModel.Store.LicenseManagement.egg-info/PKG-INFO +6 -6
- winrt_windows_applicationmodel_store_licensemanagement-2.2.0/winrt_Windows.ApplicationModel.Store.LicenseManagement.egg-info/requires.txt +6 -0
- winrt_windows_applicationmodel_store_licensemanagement-2.0.1/all-requirements.txt +0 -5
- winrt_windows_applicationmodel_store_licensemanagement-2.0.1/pywinrt-version.txt +0 -1
- winrt_windows_applicationmodel_store_licensemanagement-2.0.1/winrt_Windows.ApplicationModel.Store.LicenseManagement.egg-info/requires.txt +0 -6
- {winrt_windows_applicationmodel_store_licensemanagement-2.0.1 → winrt_windows_applicationmodel_store_licensemanagement-2.2.0}/README.md +0 -0
- {winrt_windows_applicationmodel_store_licensemanagement-2.0.1 → winrt_windows_applicationmodel_store_licensemanagement-2.2.0}/setup.cfg +0 -0
- {winrt_windows_applicationmodel_store_licensemanagement-2.0.1 → winrt_windows_applicationmodel_store_licensemanagement-2.2.0}/setup.py +0 -0
- {winrt_windows_applicationmodel_store_licensemanagement-2.0.1 → winrt_windows_applicationmodel_store_licensemanagement-2.2.0}/winrt/windows/applicationmodel/store/licensemanagement/py.typed +0 -0
- {winrt_windows_applicationmodel_store_licensemanagement-2.0.1 → winrt_windows_applicationmodel_store_licensemanagement-2.2.0}/winrt_Windows.ApplicationModel.Store.LicenseManagement.egg-info/SOURCES.txt +0 -0
- {winrt_windows_applicationmodel_store_licensemanagement-2.0.1 → winrt_windows_applicationmodel_store_licensemanagement-2.2.0}/winrt_Windows.ApplicationModel.Store.LicenseManagement.egg-info/dependency_links.txt +0 -0
- {winrt_windows_applicationmodel_store_licensemanagement-2.0.1 → winrt_windows_applicationmodel_store_licensemanagement-2.2.0}/winrt_Windows.ApplicationModel.Store.LicenseManagement.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.ApplicationModel.Store.LicenseManagement
|
|
3
|
-
Version: 2.0
|
|
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,13 +10,13 @@ Classifier: Operating System :: Microsoft :: Windows
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python: <3.
|
|
13
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.0
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.0
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.0
|
|
19
|
-
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.0
|
|
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
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.2.0; extra == "all"
|
|
20
20
|
|
|
21
21
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
22
22
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
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.Store.LicenseManagement.h"
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
namespace py::cpp::Windows::ApplicationModel::Store::LicenseManagement
|
|
7
6
|
{
|
|
8
7
|
// ----- LicenseManager class --------------------
|
|
@@ -20,14 +19,21 @@ namespace py::cpp::Windows::ApplicationModel::Store::LicenseManagement
|
|
|
20
19
|
|
|
21
20
|
if (arg_count == 1)
|
|
22
21
|
{
|
|
23
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.LicenseManagement.LicenseManager", L"AddLicenseAsync", 1))
|
|
24
|
-
{
|
|
25
|
-
py::set_arg_count_version_error(1);
|
|
26
|
-
return nullptr;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
22
|
try
|
|
30
23
|
{
|
|
24
|
+
static std::optional<bool> is_overload_present{};
|
|
25
|
+
|
|
26
|
+
if (!is_overload_present.has_value())
|
|
27
|
+
{
|
|
28
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.LicenseManagement.LicenseManager", L"AddLicenseAsync", 1);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
if (!is_overload_present.value())
|
|
32
|
+
{
|
|
33
|
+
py::set_arg_count_version_error(1);
|
|
34
|
+
return nullptr;
|
|
35
|
+
}
|
|
36
|
+
|
|
31
37
|
auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(args, 0);
|
|
32
38
|
|
|
33
39
|
return py::convert(winrt::Windows::ApplicationModel::Store::LicenseManagement::LicenseManager::AddLicenseAsync(param0));
|
|
@@ -51,14 +57,21 @@ namespace py::cpp::Windows::ApplicationModel::Store::LicenseManagement
|
|
|
51
57
|
|
|
52
58
|
if (arg_count == 2)
|
|
53
59
|
{
|
|
54
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.LicenseManagement.LicenseManager", L"GetSatisfactionInfosAsync", 2))
|
|
55
|
-
{
|
|
56
|
-
py::set_arg_count_version_error(2);
|
|
57
|
-
return nullptr;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
60
|
try
|
|
61
61
|
{
|
|
62
|
+
static std::optional<bool> is_overload_present{};
|
|
63
|
+
|
|
64
|
+
if (!is_overload_present.has_value())
|
|
65
|
+
{
|
|
66
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.LicenseManagement.LicenseManager", L"GetSatisfactionInfosAsync", 2);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
if (!is_overload_present.value())
|
|
70
|
+
{
|
|
71
|
+
py::set_arg_count_version_error(2);
|
|
72
|
+
return nullptr;
|
|
73
|
+
}
|
|
74
|
+
|
|
62
75
|
auto param0 = py::convert_to<winrt::Windows::Foundation::Collections::IIterable<winrt::hstring>>(args, 0);
|
|
63
76
|
auto param1 = py::convert_to<winrt::Windows::Foundation::Collections::IIterable<winrt::hstring>>(args, 1);
|
|
64
77
|
|
|
@@ -83,14 +96,21 @@ namespace py::cpp::Windows::ApplicationModel::Store::LicenseManagement
|
|
|
83
96
|
|
|
84
97
|
if (arg_count == 1)
|
|
85
98
|
{
|
|
86
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.LicenseManagement.LicenseManager", L"RefreshLicensesAsync", 1))
|
|
87
|
-
{
|
|
88
|
-
py::set_arg_count_version_error(1);
|
|
89
|
-
return nullptr;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
99
|
try
|
|
93
100
|
{
|
|
101
|
+
static std::optional<bool> is_overload_present{};
|
|
102
|
+
|
|
103
|
+
if (!is_overload_present.has_value())
|
|
104
|
+
{
|
|
105
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.LicenseManagement.LicenseManager", L"RefreshLicensesAsync", 1);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
if (!is_overload_present.value())
|
|
109
|
+
{
|
|
110
|
+
py::set_arg_count_version_error(1);
|
|
111
|
+
return nullptr;
|
|
112
|
+
}
|
|
113
|
+
|
|
94
114
|
auto param0 = py::convert_to<winrt::Windows::ApplicationModel::Store::LicenseManagement::LicenseRefreshOption>(args, 0);
|
|
95
115
|
|
|
96
116
|
return py::convert(winrt::Windows::ApplicationModel::Store::LicenseManagement::LicenseManager::RefreshLicensesAsync(param0));
|
|
@@ -116,22 +136,19 @@ namespace py::cpp::Windows::ApplicationModel::Store::LicenseManagement
|
|
|
116
136
|
{ }
|
|
117
137
|
};
|
|
118
138
|
|
|
119
|
-
static PyType_Slot _type_slots_LicenseManager[] =
|
|
120
|
-
{
|
|
139
|
+
static PyType_Slot _type_slots_LicenseManager[] = {
|
|
121
140
|
{ Py_tp_new, reinterpret_cast<void*>(_new_LicenseManager) },
|
|
122
141
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_LicenseManager) },
|
|
123
142
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_LicenseManager) },
|
|
124
|
-
{ }
|
|
143
|
+
{ }
|
|
125
144
|
};
|
|
126
145
|
|
|
127
|
-
static PyType_Spec type_spec_LicenseManager =
|
|
128
|
-
{
|
|
146
|
+
static PyType_Spec type_spec_LicenseManager = {
|
|
129
147
|
"winrt._winrt_windows_applicationmodel_store_licensemanagement.LicenseManager",
|
|
130
148
|
0,
|
|
131
149
|
0,
|
|
132
150
|
Py_TPFLAGS_DEFAULT,
|
|
133
|
-
_type_slots_LicenseManager
|
|
134
|
-
};
|
|
151
|
+
_type_slots_LicenseManager};
|
|
135
152
|
|
|
136
153
|
static PyGetSetDef getset_LicenseManager_Static[] = {
|
|
137
154
|
{ }
|
|
@@ -180,14 +197,21 @@ namespace py::cpp::Windows::ApplicationModel::Store::LicenseManagement
|
|
|
180
197
|
|
|
181
198
|
static PyObject* LicenseSatisfactionInfo_get_IsSatisfied(py::wrapper::Windows::ApplicationModel::Store::LicenseManagement::LicenseSatisfactionInfo* self, void* /*unused*/) noexcept
|
|
182
199
|
{
|
|
183
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.LicenseManagement.LicenseSatisfactionInfo", L"IsSatisfied"))
|
|
184
|
-
{
|
|
185
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
186
|
-
return nullptr;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
200
|
try
|
|
190
201
|
{
|
|
202
|
+
static std::optional<bool> is_property_present{};
|
|
203
|
+
|
|
204
|
+
if (!is_property_present.has_value())
|
|
205
|
+
{
|
|
206
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.LicenseManagement.LicenseSatisfactionInfo", L"IsSatisfied");
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
if (!is_property_present.value())
|
|
210
|
+
{
|
|
211
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
212
|
+
return nullptr;
|
|
213
|
+
}
|
|
214
|
+
|
|
191
215
|
return py::convert(self->obj.IsSatisfied());
|
|
192
216
|
}
|
|
193
217
|
catch (...)
|
|
@@ -199,14 +223,21 @@ namespace py::cpp::Windows::ApplicationModel::Store::LicenseManagement
|
|
|
199
223
|
|
|
200
224
|
static PyObject* LicenseSatisfactionInfo_get_SatisfiedByDevice(py::wrapper::Windows::ApplicationModel::Store::LicenseManagement::LicenseSatisfactionInfo* self, void* /*unused*/) noexcept
|
|
201
225
|
{
|
|
202
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.LicenseManagement.LicenseSatisfactionInfo", L"SatisfiedByDevice"))
|
|
203
|
-
{
|
|
204
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
205
|
-
return nullptr;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
226
|
try
|
|
209
227
|
{
|
|
228
|
+
static std::optional<bool> is_property_present{};
|
|
229
|
+
|
|
230
|
+
if (!is_property_present.has_value())
|
|
231
|
+
{
|
|
232
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.LicenseManagement.LicenseSatisfactionInfo", L"SatisfiedByDevice");
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
if (!is_property_present.value())
|
|
236
|
+
{
|
|
237
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
238
|
+
return nullptr;
|
|
239
|
+
}
|
|
240
|
+
|
|
210
241
|
return py::convert(self->obj.SatisfiedByDevice());
|
|
211
242
|
}
|
|
212
243
|
catch (...)
|
|
@@ -218,14 +249,21 @@ namespace py::cpp::Windows::ApplicationModel::Store::LicenseManagement
|
|
|
218
249
|
|
|
219
250
|
static PyObject* LicenseSatisfactionInfo_get_SatisfiedByInstallMedia(py::wrapper::Windows::ApplicationModel::Store::LicenseManagement::LicenseSatisfactionInfo* self, void* /*unused*/) noexcept
|
|
220
251
|
{
|
|
221
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.LicenseManagement.LicenseSatisfactionInfo", L"SatisfiedByInstallMedia"))
|
|
222
|
-
{
|
|
223
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
224
|
-
return nullptr;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
252
|
try
|
|
228
253
|
{
|
|
254
|
+
static std::optional<bool> is_property_present{};
|
|
255
|
+
|
|
256
|
+
if (!is_property_present.has_value())
|
|
257
|
+
{
|
|
258
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.LicenseManagement.LicenseSatisfactionInfo", L"SatisfiedByInstallMedia");
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
if (!is_property_present.value())
|
|
262
|
+
{
|
|
263
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
264
|
+
return nullptr;
|
|
265
|
+
}
|
|
266
|
+
|
|
229
267
|
return py::convert(self->obj.SatisfiedByInstallMedia());
|
|
230
268
|
}
|
|
231
269
|
catch (...)
|
|
@@ -237,14 +275,21 @@ namespace py::cpp::Windows::ApplicationModel::Store::LicenseManagement
|
|
|
237
275
|
|
|
238
276
|
static PyObject* LicenseSatisfactionInfo_get_SatisfiedByOpenLicense(py::wrapper::Windows::ApplicationModel::Store::LicenseManagement::LicenseSatisfactionInfo* self, void* /*unused*/) noexcept
|
|
239
277
|
{
|
|
240
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.LicenseManagement.LicenseSatisfactionInfo", L"SatisfiedByOpenLicense"))
|
|
241
|
-
{
|
|
242
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
243
|
-
return nullptr;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
278
|
try
|
|
247
279
|
{
|
|
280
|
+
static std::optional<bool> is_property_present{};
|
|
281
|
+
|
|
282
|
+
if (!is_property_present.has_value())
|
|
283
|
+
{
|
|
284
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.LicenseManagement.LicenseSatisfactionInfo", L"SatisfiedByOpenLicense");
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
if (!is_property_present.value())
|
|
288
|
+
{
|
|
289
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
290
|
+
return nullptr;
|
|
291
|
+
}
|
|
292
|
+
|
|
248
293
|
return py::convert(self->obj.SatisfiedByOpenLicense());
|
|
249
294
|
}
|
|
250
295
|
catch (...)
|
|
@@ -256,14 +301,21 @@ namespace py::cpp::Windows::ApplicationModel::Store::LicenseManagement
|
|
|
256
301
|
|
|
257
302
|
static PyObject* LicenseSatisfactionInfo_get_SatisfiedByPass(py::wrapper::Windows::ApplicationModel::Store::LicenseManagement::LicenseSatisfactionInfo* self, void* /*unused*/) noexcept
|
|
258
303
|
{
|
|
259
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.LicenseManagement.LicenseSatisfactionInfo", L"SatisfiedByPass"))
|
|
260
|
-
{
|
|
261
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
262
|
-
return nullptr;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
304
|
try
|
|
266
305
|
{
|
|
306
|
+
static std::optional<bool> is_property_present{};
|
|
307
|
+
|
|
308
|
+
if (!is_property_present.has_value())
|
|
309
|
+
{
|
|
310
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.LicenseManagement.LicenseSatisfactionInfo", L"SatisfiedByPass");
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
if (!is_property_present.value())
|
|
314
|
+
{
|
|
315
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
316
|
+
return nullptr;
|
|
317
|
+
}
|
|
318
|
+
|
|
267
319
|
return py::convert(self->obj.SatisfiedByPass());
|
|
268
320
|
}
|
|
269
321
|
catch (...)
|
|
@@ -275,14 +327,21 @@ namespace py::cpp::Windows::ApplicationModel::Store::LicenseManagement
|
|
|
275
327
|
|
|
276
328
|
static PyObject* LicenseSatisfactionInfo_get_SatisfiedBySignedInUser(py::wrapper::Windows::ApplicationModel::Store::LicenseManagement::LicenseSatisfactionInfo* self, void* /*unused*/) noexcept
|
|
277
329
|
{
|
|
278
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.LicenseManagement.LicenseSatisfactionInfo", L"SatisfiedBySignedInUser"))
|
|
279
|
-
{
|
|
280
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
281
|
-
return nullptr;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
330
|
try
|
|
285
331
|
{
|
|
332
|
+
static std::optional<bool> is_property_present{};
|
|
333
|
+
|
|
334
|
+
if (!is_property_present.has_value())
|
|
335
|
+
{
|
|
336
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.LicenseManagement.LicenseSatisfactionInfo", L"SatisfiedBySignedInUser");
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
if (!is_property_present.value())
|
|
340
|
+
{
|
|
341
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
342
|
+
return nullptr;
|
|
343
|
+
}
|
|
344
|
+
|
|
286
345
|
return py::convert(self->obj.SatisfiedBySignedInUser());
|
|
287
346
|
}
|
|
288
347
|
catch (...)
|
|
@@ -294,14 +353,21 @@ namespace py::cpp::Windows::ApplicationModel::Store::LicenseManagement
|
|
|
294
353
|
|
|
295
354
|
static PyObject* LicenseSatisfactionInfo_get_SatisfiedByTrial(py::wrapper::Windows::ApplicationModel::Store::LicenseManagement::LicenseSatisfactionInfo* self, void* /*unused*/) noexcept
|
|
296
355
|
{
|
|
297
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.LicenseManagement.LicenseSatisfactionInfo", L"SatisfiedByTrial"))
|
|
298
|
-
{
|
|
299
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
300
|
-
return nullptr;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
356
|
try
|
|
304
357
|
{
|
|
358
|
+
static std::optional<bool> is_property_present{};
|
|
359
|
+
|
|
360
|
+
if (!is_property_present.has_value())
|
|
361
|
+
{
|
|
362
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.LicenseManagement.LicenseSatisfactionInfo", L"SatisfiedByTrial");
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
if (!is_property_present.value())
|
|
366
|
+
{
|
|
367
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
368
|
+
return nullptr;
|
|
369
|
+
}
|
|
370
|
+
|
|
305
371
|
return py::convert(self->obj.SatisfiedByTrial());
|
|
306
372
|
}
|
|
307
373
|
catch (...)
|
|
@@ -352,23 +418,20 @@ namespace py::cpp::Windows::ApplicationModel::Store::LicenseManagement
|
|
|
352
418
|
{ }
|
|
353
419
|
};
|
|
354
420
|
|
|
355
|
-
static PyType_Slot _type_slots_LicenseSatisfactionInfo[] =
|
|
356
|
-
{
|
|
421
|
+
static PyType_Slot _type_slots_LicenseSatisfactionInfo[] = {
|
|
357
422
|
{ Py_tp_new, reinterpret_cast<void*>(_new_LicenseSatisfactionInfo) },
|
|
358
423
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_LicenseSatisfactionInfo) },
|
|
359
424
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_LicenseSatisfactionInfo) },
|
|
360
425
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_LicenseSatisfactionInfo) },
|
|
361
|
-
{ }
|
|
426
|
+
{ }
|
|
362
427
|
};
|
|
363
428
|
|
|
364
|
-
static PyType_Spec type_spec_LicenseSatisfactionInfo =
|
|
365
|
-
{
|
|
429
|
+
static PyType_Spec type_spec_LicenseSatisfactionInfo = {
|
|
366
430
|
"winrt._winrt_windows_applicationmodel_store_licensemanagement.LicenseSatisfactionInfo",
|
|
367
431
|
sizeof(py::wrapper::Windows::ApplicationModel::Store::LicenseManagement::LicenseSatisfactionInfo),
|
|
368
432
|
0,
|
|
369
433
|
Py_TPFLAGS_DEFAULT,
|
|
370
|
-
_type_slots_LicenseSatisfactionInfo
|
|
371
|
-
};
|
|
434
|
+
_type_slots_LicenseSatisfactionInfo};
|
|
372
435
|
|
|
373
436
|
// ----- LicenseSatisfactionResult class --------------------
|
|
374
437
|
|
|
@@ -389,14 +452,21 @@ namespace py::cpp::Windows::ApplicationModel::Store::LicenseManagement
|
|
|
389
452
|
|
|
390
453
|
static PyObject* LicenseSatisfactionResult_get_ExtendedError(py::wrapper::Windows::ApplicationModel::Store::LicenseManagement::LicenseSatisfactionResult* self, void* /*unused*/) noexcept
|
|
391
454
|
{
|
|
392
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.LicenseManagement.LicenseSatisfactionResult", L"ExtendedError"))
|
|
393
|
-
{
|
|
394
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
395
|
-
return nullptr;
|
|
396
|
-
}
|
|
397
|
-
|
|
398
455
|
try
|
|
399
456
|
{
|
|
457
|
+
static std::optional<bool> is_property_present{};
|
|
458
|
+
|
|
459
|
+
if (!is_property_present.has_value())
|
|
460
|
+
{
|
|
461
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.LicenseManagement.LicenseSatisfactionResult", L"ExtendedError");
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
if (!is_property_present.value())
|
|
465
|
+
{
|
|
466
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
467
|
+
return nullptr;
|
|
468
|
+
}
|
|
469
|
+
|
|
400
470
|
return py::convert(self->obj.ExtendedError());
|
|
401
471
|
}
|
|
402
472
|
catch (...)
|
|
@@ -408,14 +478,21 @@ namespace py::cpp::Windows::ApplicationModel::Store::LicenseManagement
|
|
|
408
478
|
|
|
409
479
|
static PyObject* LicenseSatisfactionResult_get_LicenseSatisfactionInfos(py::wrapper::Windows::ApplicationModel::Store::LicenseManagement::LicenseSatisfactionResult* self, void* /*unused*/) noexcept
|
|
410
480
|
{
|
|
411
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.LicenseManagement.LicenseSatisfactionResult", L"LicenseSatisfactionInfos"))
|
|
412
|
-
{
|
|
413
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
414
|
-
return nullptr;
|
|
415
|
-
}
|
|
416
|
-
|
|
417
481
|
try
|
|
418
482
|
{
|
|
483
|
+
static std::optional<bool> is_property_present{};
|
|
484
|
+
|
|
485
|
+
if (!is_property_present.has_value())
|
|
486
|
+
{
|
|
487
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.LicenseManagement.LicenseSatisfactionResult", L"LicenseSatisfactionInfos");
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
if (!is_property_present.value())
|
|
491
|
+
{
|
|
492
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
493
|
+
return nullptr;
|
|
494
|
+
}
|
|
495
|
+
|
|
419
496
|
return py::convert(self->obj.LicenseSatisfactionInfos());
|
|
420
497
|
}
|
|
421
498
|
catch (...)
|
|
@@ -461,39 +538,35 @@ namespace py::cpp::Windows::ApplicationModel::Store::LicenseManagement
|
|
|
461
538
|
{ }
|
|
462
539
|
};
|
|
463
540
|
|
|
464
|
-
static PyType_Slot _type_slots_LicenseSatisfactionResult[] =
|
|
465
|
-
{
|
|
541
|
+
static PyType_Slot _type_slots_LicenseSatisfactionResult[] = {
|
|
466
542
|
{ Py_tp_new, reinterpret_cast<void*>(_new_LicenseSatisfactionResult) },
|
|
467
543
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_LicenseSatisfactionResult) },
|
|
468
544
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_LicenseSatisfactionResult) },
|
|
469
545
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_LicenseSatisfactionResult) },
|
|
470
|
-
{ }
|
|
546
|
+
{ }
|
|
471
547
|
};
|
|
472
548
|
|
|
473
|
-
static PyType_Spec type_spec_LicenseSatisfactionResult =
|
|
474
|
-
{
|
|
549
|
+
static PyType_Spec type_spec_LicenseSatisfactionResult = {
|
|
475
550
|
"winrt._winrt_windows_applicationmodel_store_licensemanagement.LicenseSatisfactionResult",
|
|
476
551
|
sizeof(py::wrapper::Windows::ApplicationModel::Store::LicenseManagement::LicenseSatisfactionResult),
|
|
477
552
|
0,
|
|
478
553
|
Py_TPFLAGS_DEFAULT,
|
|
479
|
-
_type_slots_LicenseSatisfactionResult
|
|
480
|
-
};
|
|
554
|
+
_type_slots_LicenseSatisfactionResult};
|
|
481
555
|
|
|
482
556
|
// ----- Windows.ApplicationModel.Store.LicenseManagement Initialization --------------------
|
|
483
|
-
PyDoc_STRVAR(module_doc, "Windows::ApplicationModel::Store::LicenseManagement");
|
|
484
557
|
|
|
558
|
+
PyDoc_STRVAR(module_doc, "Windows.ApplicationModel.Store.LicenseManagement");
|
|
485
559
|
|
|
486
|
-
static PyModuleDef module_def
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
560
|
+
static PyModuleDef module_def = {
|
|
561
|
+
PyModuleDef_HEAD_INIT,
|
|
562
|
+
"_winrt_windows_applicationmodel_store_licensemanagement",
|
|
563
|
+
module_doc,
|
|
564
|
+
0,
|
|
565
|
+
nullptr,
|
|
566
|
+
nullptr,
|
|
567
|
+
nullptr,
|
|
568
|
+
nullptr,
|
|
569
|
+
nullptr};
|
|
497
570
|
} // py::cpp::Windows::ApplicationModel::Store::LicenseManagement
|
|
498
571
|
|
|
499
572
|
PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_store_licensemanagement(void) noexcept
|
|
@@ -531,17 +604,20 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_store_licensemanagement(vo
|
|
|
531
604
|
return nullptr;
|
|
532
605
|
}
|
|
533
606
|
|
|
534
|
-
|
|
607
|
+
py::pytype_handle LicenseManager_type{py::register_python_type(module.get(), &type_spec_LicenseManager, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_LicenseManager_Static.get()))};
|
|
608
|
+
if (!LicenseManager_type)
|
|
535
609
|
{
|
|
536
610
|
return nullptr;
|
|
537
611
|
}
|
|
538
612
|
|
|
539
|
-
|
|
613
|
+
py::pytype_handle LicenseSatisfactionInfo_type{py::register_python_type(module.get(), &type_spec_LicenseSatisfactionInfo, object_bases.get(), nullptr)};
|
|
614
|
+
if (!LicenseSatisfactionInfo_type)
|
|
540
615
|
{
|
|
541
616
|
return nullptr;
|
|
542
617
|
}
|
|
543
618
|
|
|
544
|
-
|
|
619
|
+
py::pytype_handle LicenseSatisfactionResult_type{py::register_python_type(module.get(), &type_spec_LicenseSatisfactionResult, object_bases.get(), nullptr)};
|
|
620
|
+
if (!LicenseSatisfactionResult_type)
|
|
545
621
|
{
|
|
546
622
|
return nullptr;
|
|
547
623
|
}
|
|
@@ -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.0
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.0
|
|
3
|
+
winrt-runtime==2.2.0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
3
|
import datetime
|
|
4
4
|
import sys
|
|
@@ -9,9 +9,9 @@ from builtins import property as _property
|
|
|
9
9
|
|
|
10
10
|
import winrt._winrt
|
|
11
11
|
import winrt.system
|
|
12
|
-
import winrt.windows.foundation
|
|
13
|
-
import winrt.windows.foundation.collections
|
|
14
|
-
import winrt.windows.storage.streams
|
|
12
|
+
import winrt.windows.foundation as windows_foundation
|
|
13
|
+
import winrt.windows.foundation.collections as windows_foundation_collections
|
|
14
|
+
import winrt.windows.storage.streams as windows_storage_streams
|
|
15
15
|
|
|
16
16
|
from winrt.windows.applicationmodel.store.licensemanagement import LicenseRefreshOption
|
|
17
17
|
|
|
@@ -19,14 +19,13 @@ Self = typing.TypeVar('Self')
|
|
|
19
19
|
|
|
20
20
|
@typing.final
|
|
21
21
|
class LicenseManager_Static(type):
|
|
22
|
-
def add_license_async(cls, license: typing.Optional[
|
|
23
|
-
def get_satisfaction_infos_async(cls, content_ids: typing.Iterable[str], key_ids: typing.Iterable[str], /) ->
|
|
24
|
-
def refresh_licenses_async(cls, refresh_option: LicenseRefreshOption, /) ->
|
|
22
|
+
def add_license_async(cls, license: typing.Optional[windows_storage_streams.IBuffer], /) -> windows_foundation.IAsyncAction: ...
|
|
23
|
+
def get_satisfaction_infos_async(cls, content_ids: typing.Iterable[str], key_ids: typing.Iterable[str], /) -> windows_foundation.IAsyncOperation[LicenseSatisfactionResult]: ...
|
|
24
|
+
def refresh_licenses_async(cls, refresh_option: LicenseRefreshOption, /) -> windows_foundation.IAsyncAction: ...
|
|
25
25
|
|
|
26
26
|
@typing.final
|
|
27
27
|
class LicenseManager(winrt.system.Object, metaclass=LicenseManager_Static):
|
|
28
|
-
|
|
29
|
-
def _from(obj: winrt.system.Object, /) -> LicenseManager: ...
|
|
28
|
+
pass
|
|
30
29
|
|
|
31
30
|
@typing.final
|
|
32
31
|
class LicenseSatisfactionInfo(winrt.system.Object):
|
|
@@ -52,7 +51,7 @@ class LicenseSatisfactionResult(winrt.system.Object):
|
|
|
52
51
|
@staticmethod
|
|
53
52
|
def _from(obj: winrt.system.Object, /) -> LicenseSatisfactionResult: ...
|
|
54
53
|
@_property
|
|
55
|
-
def extended_error(self) ->
|
|
54
|
+
def extended_error(self) -> windows_foundation.HResult: ...
|
|
56
55
|
@_property
|
|
57
|
-
def license_satisfaction_infos(self) -> typing.Optional[
|
|
56
|
+
def license_satisfaction_infos(self) -> typing.Optional[windows_foundation_collections.IMapView[str, LicenseSatisfactionInfo]]: ...
|
|
58
57
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.ApplicationModel.Store.LicenseManagement
|
|
3
|
-
Version: 2.0
|
|
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,13 +10,13 @@ Classifier: Operating System :: Microsoft :: Windows
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python: <3.
|
|
13
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.0
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.0
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.0
|
|
19
|
-
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.0
|
|
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
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.2.0; extra == "all"
|
|
20
20
|
|
|
21
21
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
22
22
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.0.1
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|