winrt-Windows.ApplicationModel.Store.LicenseManagement 2.0.0b2__tar.gz → 2.1.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.0b2 → winrt_windows_applicationmodel_store_licensemanagement-2.1.0}/PKG-INFO +5 -1
- winrt_windows_applicationmodel_store_licensemanagement-2.1.0/all-requirements.txt +5 -0
- {winrt-Windows.ApplicationModel.Store.LicenseManagement-2.0.0b2 → winrt_windows_applicationmodel_store_licensemanagement-2.1.0}/py.Windows.ApplicationModel.Store.LicenseManagement.cpp +96 -107
- {winrt-Windows.ApplicationModel.Store.LicenseManagement-2.0.0b2 → winrt_windows_applicationmodel_store_licensemanagement-2.1.0}/pyproject.toml +2 -2
- winrt_windows_applicationmodel_store_licensemanagement-2.1.0/pywinrt-version.txt +1 -0
- {winrt-Windows.ApplicationModel.Store.LicenseManagement-2.0.0b2 → winrt_windows_applicationmodel_store_licensemanagement-2.1.0}/requirements.txt +2 -2
- winrt_windows_applicationmodel_store_licensemanagement-2.1.0/setup.py +31 -0
- {winrt-Windows.ApplicationModel.Store.LicenseManagement-2.0.0b2 → winrt_windows_applicationmodel_store_licensemanagement-2.1.0}/winrt/_winrt_windows_applicationmodel_store_licensemanagement.pyi +10 -11
- {winrt-Windows.ApplicationModel.Store.LicenseManagement-2.0.0b2 → winrt_windows_applicationmodel_store_licensemanagement-2.1.0}/winrt/windows/applicationmodel/store/licensemanagement/__init__.py +1 -1
- winrt_windows_applicationmodel_store_licensemanagement-2.1.0/winrt/windows/applicationmodel/store/licensemanagement/py.typed +0 -0
- {winrt-Windows.ApplicationModel.Store.LicenseManagement-2.0.0b2 → winrt_windows_applicationmodel_store_licensemanagement-2.1.0}/winrt_Windows.ApplicationModel.Store.LicenseManagement.egg-info/PKG-INFO +5 -1
- {winrt-Windows.ApplicationModel.Store.LicenseManagement-2.0.0b2 → winrt_windows_applicationmodel_store_licensemanagement-2.1.0}/winrt_Windows.ApplicationModel.Store.LicenseManagement.egg-info/SOURCES.txt +1 -0
- winrt_windows_applicationmodel_store_licensemanagement-2.1.0/winrt_Windows.ApplicationModel.Store.LicenseManagement.egg-info/requires.txt +6 -0
- winrt-Windows.ApplicationModel.Store.LicenseManagement-2.0.0b2/all-requirements.txt +0 -5
- winrt-Windows.ApplicationModel.Store.LicenseManagement-2.0.0b2/pywinrt-version.txt +0 -1
- winrt-Windows.ApplicationModel.Store.LicenseManagement-2.0.0b2/setup.py +0 -16
- winrt-Windows.ApplicationModel.Store.LicenseManagement-2.0.0b2/winrt_Windows.ApplicationModel.Store.LicenseManagement.egg-info/requires.txt +0 -6
- {winrt-Windows.ApplicationModel.Store.LicenseManagement-2.0.0b2 → winrt_windows_applicationmodel_store_licensemanagement-2.1.0}/README.md +0 -0
- {winrt-Windows.ApplicationModel.Store.LicenseManagement-2.0.0b2 → winrt_windows_applicationmodel_store_licensemanagement-2.1.0}/setup.cfg +0 -0
- {winrt-Windows.ApplicationModel.Store.LicenseManagement-2.0.0b2 → winrt_windows_applicationmodel_store_licensemanagement-2.1.0}/winrt_Windows.ApplicationModel.Store.LicenseManagement.egg-info/dependency_links.txt +0 -0
- {winrt-Windows.ApplicationModel.Store.LicenseManagement-2.0.0b2 → winrt_windows_applicationmodel_store_licensemanagement-2.1.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.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -12,7 +12,11 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
13
|
Requires-Python: <3.13,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
+
Requires-Dist: winrt-runtime==2.1.0
|
|
15
16
|
Provides-Extra: all
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.1.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.1.0; extra == "all"
|
|
16
20
|
|
|
17
21
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
18
22
|
|
|
@@ -1,8 +1,7 @@
|
|
|
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.1.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,14 @@ 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
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.LicenseManagement.LicenseManager", L"AddLicenseAsync", 1))
|
|
25
|
+
{
|
|
26
|
+
py::set_arg_count_version_error(1);
|
|
27
|
+
return nullptr;
|
|
28
|
+
}
|
|
29
|
+
|
|
31
30
|
auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(args, 0);
|
|
32
31
|
|
|
33
32
|
return py::convert(winrt::Windows::ApplicationModel::Store::LicenseManagement::LicenseManager::AddLicenseAsync(param0));
|
|
@@ -51,14 +50,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::LicenseManagement
|
|
|
51
50
|
|
|
52
51
|
if (arg_count == 2)
|
|
53
52
|
{
|
|
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
53
|
try
|
|
61
54
|
{
|
|
55
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.LicenseManagement.LicenseManager", L"GetSatisfactionInfosAsync", 2))
|
|
56
|
+
{
|
|
57
|
+
py::set_arg_count_version_error(2);
|
|
58
|
+
return nullptr;
|
|
59
|
+
}
|
|
60
|
+
|
|
62
61
|
auto param0 = py::convert_to<winrt::Windows::Foundation::Collections::IIterable<winrt::hstring>>(args, 0);
|
|
63
62
|
auto param1 = py::convert_to<winrt::Windows::Foundation::Collections::IIterable<winrt::hstring>>(args, 1);
|
|
64
63
|
|
|
@@ -83,14 +82,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::LicenseManagement
|
|
|
83
82
|
|
|
84
83
|
if (arg_count == 1)
|
|
85
84
|
{
|
|
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
85
|
try
|
|
93
86
|
{
|
|
87
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Store.LicenseManagement.LicenseManager", L"RefreshLicensesAsync", 1))
|
|
88
|
+
{
|
|
89
|
+
py::set_arg_count_version_error(1);
|
|
90
|
+
return nullptr;
|
|
91
|
+
}
|
|
92
|
+
|
|
94
93
|
auto param0 = py::convert_to<winrt::Windows::ApplicationModel::Store::LicenseManagement::LicenseRefreshOption>(args, 0);
|
|
95
94
|
|
|
96
95
|
return py::convert(winrt::Windows::ApplicationModel::Store::LicenseManagement::LicenseManager::RefreshLicensesAsync(param0));
|
|
@@ -116,22 +115,19 @@ namespace py::cpp::Windows::ApplicationModel::Store::LicenseManagement
|
|
|
116
115
|
{ }
|
|
117
116
|
};
|
|
118
117
|
|
|
119
|
-
static PyType_Slot _type_slots_LicenseManager[] =
|
|
120
|
-
{
|
|
118
|
+
static PyType_Slot _type_slots_LicenseManager[] = {
|
|
121
119
|
{ Py_tp_new, reinterpret_cast<void*>(_new_LicenseManager) },
|
|
122
120
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_LicenseManager) },
|
|
123
121
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_LicenseManager) },
|
|
124
|
-
{ }
|
|
122
|
+
{ }
|
|
125
123
|
};
|
|
126
124
|
|
|
127
|
-
static PyType_Spec type_spec_LicenseManager =
|
|
128
|
-
{
|
|
125
|
+
static PyType_Spec type_spec_LicenseManager = {
|
|
129
126
|
"winrt._winrt_windows_applicationmodel_store_licensemanagement.LicenseManager",
|
|
130
127
|
0,
|
|
131
128
|
0,
|
|
132
129
|
Py_TPFLAGS_DEFAULT,
|
|
133
|
-
_type_slots_LicenseManager
|
|
134
|
-
};
|
|
130
|
+
_type_slots_LicenseManager};
|
|
135
131
|
|
|
136
132
|
static PyGetSetDef getset_LicenseManager_Static[] = {
|
|
137
133
|
{ }
|
|
@@ -180,14 +176,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::LicenseManagement
|
|
|
180
176
|
|
|
181
177
|
static PyObject* LicenseSatisfactionInfo_get_IsSatisfied(py::wrapper::Windows::ApplicationModel::Store::LicenseManagement::LicenseSatisfactionInfo* self, void* /*unused*/) noexcept
|
|
182
178
|
{
|
|
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
179
|
try
|
|
190
180
|
{
|
|
181
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.LicenseManagement.LicenseSatisfactionInfo", L"IsSatisfied"))
|
|
182
|
+
{
|
|
183
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
184
|
+
return nullptr;
|
|
185
|
+
}
|
|
186
|
+
|
|
191
187
|
return py::convert(self->obj.IsSatisfied());
|
|
192
188
|
}
|
|
193
189
|
catch (...)
|
|
@@ -199,14 +195,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::LicenseManagement
|
|
|
199
195
|
|
|
200
196
|
static PyObject* LicenseSatisfactionInfo_get_SatisfiedByDevice(py::wrapper::Windows::ApplicationModel::Store::LicenseManagement::LicenseSatisfactionInfo* self, void* /*unused*/) noexcept
|
|
201
197
|
{
|
|
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
198
|
try
|
|
209
199
|
{
|
|
200
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.LicenseManagement.LicenseSatisfactionInfo", L"SatisfiedByDevice"))
|
|
201
|
+
{
|
|
202
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
203
|
+
return nullptr;
|
|
204
|
+
}
|
|
205
|
+
|
|
210
206
|
return py::convert(self->obj.SatisfiedByDevice());
|
|
211
207
|
}
|
|
212
208
|
catch (...)
|
|
@@ -218,14 +214,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::LicenseManagement
|
|
|
218
214
|
|
|
219
215
|
static PyObject* LicenseSatisfactionInfo_get_SatisfiedByInstallMedia(py::wrapper::Windows::ApplicationModel::Store::LicenseManagement::LicenseSatisfactionInfo* self, void* /*unused*/) noexcept
|
|
220
216
|
{
|
|
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
217
|
try
|
|
228
218
|
{
|
|
219
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.LicenseManagement.LicenseSatisfactionInfo", L"SatisfiedByInstallMedia"))
|
|
220
|
+
{
|
|
221
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
222
|
+
return nullptr;
|
|
223
|
+
}
|
|
224
|
+
|
|
229
225
|
return py::convert(self->obj.SatisfiedByInstallMedia());
|
|
230
226
|
}
|
|
231
227
|
catch (...)
|
|
@@ -237,14 +233,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::LicenseManagement
|
|
|
237
233
|
|
|
238
234
|
static PyObject* LicenseSatisfactionInfo_get_SatisfiedByOpenLicense(py::wrapper::Windows::ApplicationModel::Store::LicenseManagement::LicenseSatisfactionInfo* self, void* /*unused*/) noexcept
|
|
239
235
|
{
|
|
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
236
|
try
|
|
247
237
|
{
|
|
238
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.LicenseManagement.LicenseSatisfactionInfo", L"SatisfiedByOpenLicense"))
|
|
239
|
+
{
|
|
240
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
241
|
+
return nullptr;
|
|
242
|
+
}
|
|
243
|
+
|
|
248
244
|
return py::convert(self->obj.SatisfiedByOpenLicense());
|
|
249
245
|
}
|
|
250
246
|
catch (...)
|
|
@@ -256,14 +252,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::LicenseManagement
|
|
|
256
252
|
|
|
257
253
|
static PyObject* LicenseSatisfactionInfo_get_SatisfiedByPass(py::wrapper::Windows::ApplicationModel::Store::LicenseManagement::LicenseSatisfactionInfo* self, void* /*unused*/) noexcept
|
|
258
254
|
{
|
|
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
255
|
try
|
|
266
256
|
{
|
|
257
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.LicenseManagement.LicenseSatisfactionInfo", L"SatisfiedByPass"))
|
|
258
|
+
{
|
|
259
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
260
|
+
return nullptr;
|
|
261
|
+
}
|
|
262
|
+
|
|
267
263
|
return py::convert(self->obj.SatisfiedByPass());
|
|
268
264
|
}
|
|
269
265
|
catch (...)
|
|
@@ -275,14 +271,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::LicenseManagement
|
|
|
275
271
|
|
|
276
272
|
static PyObject* LicenseSatisfactionInfo_get_SatisfiedBySignedInUser(py::wrapper::Windows::ApplicationModel::Store::LicenseManagement::LicenseSatisfactionInfo* self, void* /*unused*/) noexcept
|
|
277
273
|
{
|
|
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
274
|
try
|
|
285
275
|
{
|
|
276
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.LicenseManagement.LicenseSatisfactionInfo", L"SatisfiedBySignedInUser"))
|
|
277
|
+
{
|
|
278
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
279
|
+
return nullptr;
|
|
280
|
+
}
|
|
281
|
+
|
|
286
282
|
return py::convert(self->obj.SatisfiedBySignedInUser());
|
|
287
283
|
}
|
|
288
284
|
catch (...)
|
|
@@ -294,14 +290,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::LicenseManagement
|
|
|
294
290
|
|
|
295
291
|
static PyObject* LicenseSatisfactionInfo_get_SatisfiedByTrial(py::wrapper::Windows::ApplicationModel::Store::LicenseManagement::LicenseSatisfactionInfo* self, void* /*unused*/) noexcept
|
|
296
292
|
{
|
|
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
293
|
try
|
|
304
294
|
{
|
|
295
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.LicenseManagement.LicenseSatisfactionInfo", L"SatisfiedByTrial"))
|
|
296
|
+
{
|
|
297
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
298
|
+
return nullptr;
|
|
299
|
+
}
|
|
300
|
+
|
|
305
301
|
return py::convert(self->obj.SatisfiedByTrial());
|
|
306
302
|
}
|
|
307
303
|
catch (...)
|
|
@@ -352,23 +348,20 @@ namespace py::cpp::Windows::ApplicationModel::Store::LicenseManagement
|
|
|
352
348
|
{ }
|
|
353
349
|
};
|
|
354
350
|
|
|
355
|
-
static PyType_Slot _type_slots_LicenseSatisfactionInfo[] =
|
|
356
|
-
{
|
|
351
|
+
static PyType_Slot _type_slots_LicenseSatisfactionInfo[] = {
|
|
357
352
|
{ Py_tp_new, reinterpret_cast<void*>(_new_LicenseSatisfactionInfo) },
|
|
358
353
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_LicenseSatisfactionInfo) },
|
|
359
354
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_LicenseSatisfactionInfo) },
|
|
360
355
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_LicenseSatisfactionInfo) },
|
|
361
|
-
{ }
|
|
356
|
+
{ }
|
|
362
357
|
};
|
|
363
358
|
|
|
364
|
-
static PyType_Spec type_spec_LicenseSatisfactionInfo =
|
|
365
|
-
{
|
|
359
|
+
static PyType_Spec type_spec_LicenseSatisfactionInfo = {
|
|
366
360
|
"winrt._winrt_windows_applicationmodel_store_licensemanagement.LicenseSatisfactionInfo",
|
|
367
361
|
sizeof(py::wrapper::Windows::ApplicationModel::Store::LicenseManagement::LicenseSatisfactionInfo),
|
|
368
362
|
0,
|
|
369
363
|
Py_TPFLAGS_DEFAULT,
|
|
370
|
-
_type_slots_LicenseSatisfactionInfo
|
|
371
|
-
};
|
|
364
|
+
_type_slots_LicenseSatisfactionInfo};
|
|
372
365
|
|
|
373
366
|
// ----- LicenseSatisfactionResult class --------------------
|
|
374
367
|
|
|
@@ -389,14 +382,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::LicenseManagement
|
|
|
389
382
|
|
|
390
383
|
static PyObject* LicenseSatisfactionResult_get_ExtendedError(py::wrapper::Windows::ApplicationModel::Store::LicenseManagement::LicenseSatisfactionResult* self, void* /*unused*/) noexcept
|
|
391
384
|
{
|
|
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
385
|
try
|
|
399
386
|
{
|
|
387
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.LicenseManagement.LicenseSatisfactionResult", L"ExtendedError"))
|
|
388
|
+
{
|
|
389
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
390
|
+
return nullptr;
|
|
391
|
+
}
|
|
392
|
+
|
|
400
393
|
return py::convert(self->obj.ExtendedError());
|
|
401
394
|
}
|
|
402
395
|
catch (...)
|
|
@@ -408,14 +401,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::LicenseManagement
|
|
|
408
401
|
|
|
409
402
|
static PyObject* LicenseSatisfactionResult_get_LicenseSatisfactionInfos(py::wrapper::Windows::ApplicationModel::Store::LicenseManagement::LicenseSatisfactionResult* self, void* /*unused*/) noexcept
|
|
410
403
|
{
|
|
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
404
|
try
|
|
418
405
|
{
|
|
406
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Store.LicenseManagement.LicenseSatisfactionResult", L"LicenseSatisfactionInfos"))
|
|
407
|
+
{
|
|
408
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
409
|
+
return nullptr;
|
|
410
|
+
}
|
|
411
|
+
|
|
419
412
|
return py::convert(self->obj.LicenseSatisfactionInfos());
|
|
420
413
|
}
|
|
421
414
|
catch (...)
|
|
@@ -461,39 +454,35 @@ namespace py::cpp::Windows::ApplicationModel::Store::LicenseManagement
|
|
|
461
454
|
{ }
|
|
462
455
|
};
|
|
463
456
|
|
|
464
|
-
static PyType_Slot _type_slots_LicenseSatisfactionResult[] =
|
|
465
|
-
{
|
|
457
|
+
static PyType_Slot _type_slots_LicenseSatisfactionResult[] = {
|
|
466
458
|
{ Py_tp_new, reinterpret_cast<void*>(_new_LicenseSatisfactionResult) },
|
|
467
459
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_LicenseSatisfactionResult) },
|
|
468
460
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_LicenseSatisfactionResult) },
|
|
469
461
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_LicenseSatisfactionResult) },
|
|
470
|
-
{ }
|
|
462
|
+
{ }
|
|
471
463
|
};
|
|
472
464
|
|
|
473
|
-
static PyType_Spec type_spec_LicenseSatisfactionResult =
|
|
474
|
-
{
|
|
465
|
+
static PyType_Spec type_spec_LicenseSatisfactionResult = {
|
|
475
466
|
"winrt._winrt_windows_applicationmodel_store_licensemanagement.LicenseSatisfactionResult",
|
|
476
467
|
sizeof(py::wrapper::Windows::ApplicationModel::Store::LicenseManagement::LicenseSatisfactionResult),
|
|
477
468
|
0,
|
|
478
469
|
Py_TPFLAGS_DEFAULT,
|
|
479
|
-
_type_slots_LicenseSatisfactionResult
|
|
480
|
-
};
|
|
470
|
+
_type_slots_LicenseSatisfactionResult};
|
|
481
471
|
|
|
482
472
|
// ----- Windows.ApplicationModel.Store.LicenseManagement Initialization --------------------
|
|
483
|
-
PyDoc_STRVAR(module_doc, "Windows::ApplicationModel::Store::LicenseManagement");
|
|
484
|
-
|
|
485
473
|
|
|
486
|
-
|
|
487
|
-
= {PyModuleDef_HEAD_INIT,
|
|
488
|
-
"_winrt_windows_applicationmodel_store_licensemanagement",
|
|
489
|
-
module_doc,
|
|
490
|
-
0,
|
|
491
|
-
nullptr,
|
|
492
|
-
nullptr,
|
|
493
|
-
nullptr,
|
|
494
|
-
nullptr,
|
|
495
|
-
nullptr};
|
|
474
|
+
PyDoc_STRVAR(module_doc, "Windows.ApplicationModel.Store.LicenseManagement");
|
|
496
475
|
|
|
476
|
+
static PyModuleDef module_def = {
|
|
477
|
+
PyModuleDef_HEAD_INIT,
|
|
478
|
+
"_winrt_windows_applicationmodel_store_licensemanagement",
|
|
479
|
+
module_doc,
|
|
480
|
+
0,
|
|
481
|
+
nullptr,
|
|
482
|
+
nullptr,
|
|
483
|
+
nullptr,
|
|
484
|
+
nullptr,
|
|
485
|
+
nullptr};
|
|
497
486
|
} // py::cpp::Windows::ApplicationModel::Store::LicenseManagement
|
|
498
487
|
|
|
499
488
|
PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_store_licensemanagement(void) noexcept
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
2
|
|
|
3
3
|
[build-system]
|
|
4
|
-
requires = ["setuptools", "
|
|
4
|
+
requires = ["setuptools", "winrt-sdk"]
|
|
5
5
|
build-backend = "setuptools.build_meta"
|
|
6
6
|
|
|
7
7
|
[project]
|
|
@@ -30,7 +30,7 @@ dependencies = { file = "requirements.txt" }
|
|
|
30
30
|
optional-dependencies.all = { file = "all-requirements.txt" }
|
|
31
31
|
|
|
32
32
|
[tool.setuptools.package-data]
|
|
33
|
-
|
|
33
|
+
"*" = ["*.pyi", "py.typed"]
|
|
34
34
|
|
|
35
35
|
[tool.cibuildwheel]
|
|
36
36
|
# use local winrt-sdk build dependency
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.1.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.1.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.
|
|
3
|
+
winrt-runtime==2.1.0
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
+
|
|
3
|
+
from setuptools import Extension, setup
|
|
4
|
+
from setuptools.command.build_ext import build_ext
|
|
5
|
+
from winrt_sdk import get_include_dirs
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class build_ext_ex(build_ext):
|
|
9
|
+
def build_extension(self, ext):
|
|
10
|
+
if self.compiler.compiler_type == "msvc":
|
|
11
|
+
ext.extra_compile_args = ["/std:c++20", "/permissive-"]
|
|
12
|
+
elif self.compiler.compiler_type == "mingw32":
|
|
13
|
+
ext.extra_compile_args = ["-std=c++20", "-D_WIN32_WINNT=_WIN32_WINNT_WIN10"]
|
|
14
|
+
ext.extra_link_args = ["-loleaut32"]
|
|
15
|
+
else:
|
|
16
|
+
raise ValueError(f"Unsupported compiler: {self.compiler.compiler_type}")
|
|
17
|
+
|
|
18
|
+
build_ext.build_extension(self, ext)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
setup(
|
|
22
|
+
cmdclass = {'build_ext': build_ext_ex},
|
|
23
|
+
ext_modules=[
|
|
24
|
+
Extension(
|
|
25
|
+
"winrt._winrt_windows_applicationmodel_store_licensemanagement",
|
|
26
|
+
sources=["py.Windows.ApplicationModel.Store.LicenseManagement.cpp"],
|
|
27
|
+
include_dirs=get_include_dirs(),
|
|
28
|
+
libraries=["windowsapp"],
|
|
29
|
+
)
|
|
30
|
+
],
|
|
31
|
+
)
|
|
@@ -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.1.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
|
|
|
File without changes
|
|
@@ -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.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -12,7 +12,11 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
13
|
Requires-Python: <3.13,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
+
Requires-Dist: winrt-runtime==2.1.0
|
|
15
16
|
Provides-Extra: all
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.1.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.1.0; extra == "all"
|
|
16
20
|
|
|
17
21
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
18
22
|
|
|
@@ -7,6 +7,7 @@ requirements.txt
|
|
|
7
7
|
setup.py
|
|
8
8
|
winrt/_winrt_windows_applicationmodel_store_licensemanagement.pyi
|
|
9
9
|
winrt/windows/applicationmodel/store/licensemanagement/__init__.py
|
|
10
|
+
winrt/windows/applicationmodel/store/licensemanagement/py.typed
|
|
10
11
|
winrt_Windows.ApplicationModel.Store.LicenseManagement.egg-info/PKG-INFO
|
|
11
12
|
winrt_Windows.ApplicationModel.Store.LicenseManagement.egg-info/SOURCES.txt
|
|
12
13
|
winrt_Windows.ApplicationModel.Store.LicenseManagement.egg-info/dependency_links.txt
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.0.0-beta.2
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
-
|
|
3
|
-
from setuptools import Extension, setup
|
|
4
|
-
from winrt_sdk import get_include_dirs
|
|
5
|
-
|
|
6
|
-
setup(
|
|
7
|
-
ext_modules=[
|
|
8
|
-
Extension(
|
|
9
|
-
"winrt._winrt_windows_applicationmodel_store_licensemanagement",
|
|
10
|
-
sources=["py.Windows.ApplicationModel.Store.LicenseManagement.cpp"],
|
|
11
|
-
include_dirs=get_include_dirs(),
|
|
12
|
-
extra_compile_args=["/std:c++20", "/permissive-"],
|
|
13
|
-
libraries=["windowsapp"],
|
|
14
|
-
)
|
|
15
|
-
],
|
|
16
|
-
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|