winrt-Windows.ApplicationModel.Store.LicenseManagement 2.3.0__tar.gz → 3.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.
Files changed (22) hide show
  1. {winrt_windows_applicationmodel_store_licensemanagement-2.3.0 → winrt_windows_applicationmodel_store_licensemanagement-3.1.0}/PKG-INFO +8 -8
  2. winrt_windows_applicationmodel_store_licensemanagement-3.1.0/all-requirements.txt +5 -0
  3. {winrt_windows_applicationmodel_store_licensemanagement-2.3.0 → winrt_windows_applicationmodel_store_licensemanagement-3.1.0}/py.Windows.ApplicationModel.Store.LicenseManagement.cpp +92 -45
  4. {winrt_windows_applicationmodel_store_licensemanagement-2.3.0 → winrt_windows_applicationmodel_store_licensemanagement-3.1.0}/pyproject.toml +4 -4
  5. winrt_windows_applicationmodel_store_licensemanagement-3.1.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_applicationmodel_store_licensemanagement-2.3.0 → winrt_windows_applicationmodel_store_licensemanagement-3.1.0}/requirements.txt +2 -2
  7. {winrt_windows_applicationmodel_store_licensemanagement-2.3.0 → winrt_windows_applicationmodel_store_licensemanagement-3.1.0}/setup.py +1 -1
  8. winrt_windows_applicationmodel_store_licensemanagement-3.1.0/winrt/_winrt_windows_applicationmodel_store_licensemanagement.pyi +65 -0
  9. winrt_windows_applicationmodel_store_licensemanagement-3.1.0/winrt/windows/applicationmodel/store/licensemanagement/__init__.py +22 -0
  10. {winrt_windows_applicationmodel_store_licensemanagement-2.3.0 → winrt_windows_applicationmodel_store_licensemanagement-3.1.0}/winrt_Windows.ApplicationModel.Store.LicenseManagement.egg-info/PKG-INFO +8 -8
  11. winrt_windows_applicationmodel_store_licensemanagement-3.1.0/winrt_Windows.ApplicationModel.Store.LicenseManagement.egg-info/requires.txt +6 -0
  12. winrt_windows_applicationmodel_store_licensemanagement-2.3.0/all-requirements.txt +0 -5
  13. winrt_windows_applicationmodel_store_licensemanagement-2.3.0/pywinrt-version.txt +0 -1
  14. winrt_windows_applicationmodel_store_licensemanagement-2.3.0/winrt/_winrt_windows_applicationmodel_store_licensemanagement.pyi +0 -57
  15. winrt_windows_applicationmodel_store_licensemanagement-2.3.0/winrt/windows/applicationmodel/store/licensemanagement/__init__.py +0 -21
  16. winrt_windows_applicationmodel_store_licensemanagement-2.3.0/winrt_Windows.ApplicationModel.Store.LicenseManagement.egg-info/requires.txt +0 -6
  17. {winrt_windows_applicationmodel_store_licensemanagement-2.3.0 → winrt_windows_applicationmodel_store_licensemanagement-3.1.0}/README.md +0 -0
  18. {winrt_windows_applicationmodel_store_licensemanagement-2.3.0 → winrt_windows_applicationmodel_store_licensemanagement-3.1.0}/setup.cfg +0 -0
  19. {winrt_windows_applicationmodel_store_licensemanagement-2.3.0 → winrt_windows_applicationmodel_store_licensemanagement-3.1.0}/winrt/windows/applicationmodel/store/licensemanagement/py.typed +0 -0
  20. {winrt_windows_applicationmodel_store_licensemanagement-2.3.0 → winrt_windows_applicationmodel_store_licensemanagement-3.1.0}/winrt_Windows.ApplicationModel.Store.LicenseManagement.egg-info/SOURCES.txt +0 -0
  21. {winrt_windows_applicationmodel_store_licensemanagement-2.3.0 → winrt_windows_applicationmodel_store_licensemanagement-3.1.0}/winrt_Windows.ApplicationModel.Store.LicenseManagement.egg-info/dependency_links.txt +0 -0
  22. {winrt_windows_applicationmodel_store_licensemanagement-2.3.0 → winrt_windows_applicationmodel_store_licensemanagement-3.1.0}/winrt_Windows.ApplicationModel.Store.LicenseManagement.egg-info/top_level.txt +0 -0
@@ -1,8 +1,8 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: winrt-Windows.ApplicationModel.Store.LicenseManagement
3
- Version: 2.3.0
3
+ Version: 3.1.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
- License: MIT
5
+ License-Expression: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
7
7
  Project-URL: Repository, https://github.com/pywinrt/pywinrt
8
8
  Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
@@ -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.14,>=3.9
13
+ Requires-Python: >=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.3.0
15
+ Requires-Dist: winrt-runtime==3.1.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.3.0; extra == "all"
19
- Requires-Dist: winrt-Windows.Storage.Streams[all]==2.3.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==3.1.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.1.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Storage.Streams[all]==3.1.0; extra == "all"
20
20
 
21
21
  <!-- warning: Please don't edit this file. It was automatically generated. -->
22
22
 
@@ -0,0 +1,5 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
2
+
3
+ winrt-Windows.Foundation[all]==3.1.0
4
+ winrt-Windows.Foundation.Collections[all]==3.1.0
5
+ winrt-Windows.Storage.Streams[all]==3.1.0
@@ -1,4 +1,4 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
2
2
 
3
3
  #include "py.Windows.ApplicationModel.Store.LicenseManagement.h"
4
4
 
@@ -15,7 +15,7 @@ namespace py::cpp::Windows::ApplicationModel::Store::LicenseManagement
15
15
 
16
16
  static PyObject* LicenseManager_AddLicenseAsync(PyObject* /*unused*/, PyObject* args) noexcept
17
17
  {
18
- auto arg_count = PyTuple_Size(args);
18
+ auto arg_count = PyTuple_GET_SIZE(args);
19
19
 
20
20
  if (arg_count == 1)
21
21
  {
@@ -36,7 +36,11 @@ namespace py::cpp::Windows::ApplicationModel::Store::LicenseManagement
36
36
 
37
37
  auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(args, 0);
38
38
 
39
- return py::convert(winrt::Windows::ApplicationModel::Store::LicenseManagement::LicenseManager::AddLicenseAsync(param0));
39
+ return py::convert([&]()
40
+ {
41
+ auto _gil = release_gil();
42
+ return winrt::Windows::ApplicationModel::Store::LicenseManagement::LicenseManager::AddLicenseAsync(param0);
43
+ }());
40
44
  }
41
45
  catch (...)
42
46
  {
@@ -53,7 +57,7 @@ namespace py::cpp::Windows::ApplicationModel::Store::LicenseManagement
53
57
 
54
58
  static PyObject* LicenseManager_GetSatisfactionInfosAsync(PyObject* /*unused*/, PyObject* args) noexcept
55
59
  {
56
- auto arg_count = PyTuple_Size(args);
60
+ auto arg_count = PyTuple_GET_SIZE(args);
57
61
 
58
62
  if (arg_count == 2)
59
63
  {
@@ -75,7 +79,11 @@ namespace py::cpp::Windows::ApplicationModel::Store::LicenseManagement
75
79
  auto param0 = py::convert_to<winrt::Windows::Foundation::Collections::IIterable<winrt::hstring>>(args, 0);
76
80
  auto param1 = py::convert_to<winrt::Windows::Foundation::Collections::IIterable<winrt::hstring>>(args, 1);
77
81
 
78
- return py::convert(winrt::Windows::ApplicationModel::Store::LicenseManagement::LicenseManager::GetSatisfactionInfosAsync(param0, param1));
82
+ return py::convert([&]()
83
+ {
84
+ auto _gil = release_gil();
85
+ return winrt::Windows::ApplicationModel::Store::LicenseManagement::LicenseManager::GetSatisfactionInfosAsync(param0, param1);
86
+ }());
79
87
  }
80
88
  catch (...)
81
89
  {
@@ -92,7 +100,7 @@ namespace py::cpp::Windows::ApplicationModel::Store::LicenseManagement
92
100
 
93
101
  static PyObject* LicenseManager_RefreshLicensesAsync(PyObject* /*unused*/, PyObject* args) noexcept
94
102
  {
95
- auto arg_count = PyTuple_Size(args);
103
+ auto arg_count = PyTuple_GET_SIZE(args);
96
104
 
97
105
  if (arg_count == 1)
98
106
  {
@@ -113,7 +121,11 @@ namespace py::cpp::Windows::ApplicationModel::Store::LicenseManagement
113
121
 
114
122
  auto param0 = py::convert_to<winrt::Windows::ApplicationModel::Store::LicenseManagement::LicenseRefreshOption>(args, 0);
115
123
 
116
- return py::convert(winrt::Windows::ApplicationModel::Store::LicenseManagement::LicenseManager::RefreshLicensesAsync(param0));
124
+ return py::convert([&]()
125
+ {
126
+ auto _gil = release_gil();
127
+ return winrt::Windows::ApplicationModel::Store::LicenseManagement::LicenseManager::RefreshLicensesAsync(param0);
128
+ }());
117
129
  }
118
130
  catch (...)
119
131
  {
@@ -129,19 +141,16 @@ namespace py::cpp::Windows::ApplicationModel::Store::LicenseManagement
129
141
  }
130
142
 
131
143
  static PyMethodDef _methods_LicenseManager[] = {
132
- { }
133
- };
144
+ { }};
134
145
 
135
146
  static PyGetSetDef _getset_LicenseManager[] = {
136
- { }
137
- };
147
+ { }};
138
148
 
139
149
  static PyType_Slot _type_slots_LicenseManager[] = {
140
150
  { Py_tp_new, reinterpret_cast<void*>(_new_LicenseManager) },
141
151
  { Py_tp_methods, reinterpret_cast<void*>(_methods_LicenseManager) },
142
152
  { Py_tp_getset, reinterpret_cast<void*>(_getset_LicenseManager) },
143
- { }
144
- };
153
+ { }};
145
154
 
146
155
  static PyType_Spec type_spec_LicenseManager = {
147
156
  "winrt._winrt_windows_applicationmodel_store_licensemanagement.LicenseManager",
@@ -151,15 +160,13 @@ namespace py::cpp::Windows::ApplicationModel::Store::LicenseManagement
151
160
  _type_slots_LicenseManager};
152
161
 
153
162
  static PyGetSetDef getset_LicenseManager_Static[] = {
154
- { }
155
- };
163
+ { }};
156
164
 
157
165
  static PyMethodDef methods_LicenseManager_Static[] = {
158
166
  { "add_license_async", reinterpret_cast<PyCFunction>(LicenseManager_AddLicenseAsync), METH_VARARGS, nullptr },
159
167
  { "get_satisfaction_infos_async", reinterpret_cast<PyCFunction>(LicenseManager_GetSatisfactionInfosAsync), METH_VARARGS, nullptr },
160
168
  { "refresh_licenses_async", reinterpret_cast<PyCFunction>(LicenseManager_RefreshLicensesAsync), METH_VARARGS, nullptr },
161
- { }
162
- };
169
+ { }};
163
170
 
164
171
  static PyType_Slot type_slots_LicenseManager_Static[] =
165
172
  {
@@ -169,14 +176,12 @@ namespace py::cpp::Windows::ApplicationModel::Store::LicenseManagement
169
176
  { }
170
177
  };
171
178
 
172
- static PyType_Spec type_spec_LicenseManager_Static =
173
- {
179
+ static PyType_Spec type_spec_LicenseManager_Static = {
174
180
  "winrt._winrt_windows_applicationmodel_store_licensemanagement.LicenseManager_Static",
175
181
  static_cast<int>(PyType_Type.tp_basicsize),
176
182
  static_cast<int>(PyType_Type.tp_itemsize),
177
183
  Py_TPFLAGS_DEFAULT,
178
- type_slots_LicenseManager_Static
179
- };
184
+ type_slots_LicenseManager_Static};
180
185
 
181
186
  // ----- LicenseSatisfactionInfo class --------------------
182
187
 
@@ -212,7 +217,11 @@ namespace py::cpp::Windows::ApplicationModel::Store::LicenseManagement
212
217
  return nullptr;
213
218
  }
214
219
 
215
- return py::convert(self->obj.IsSatisfied());
220
+ return py::convert([&]()
221
+ {
222
+ auto _gil = release_gil();
223
+ return self->obj.IsSatisfied();
224
+ }());
216
225
  }
217
226
  catch (...)
218
227
  {
@@ -238,7 +247,11 @@ namespace py::cpp::Windows::ApplicationModel::Store::LicenseManagement
238
247
  return nullptr;
239
248
  }
240
249
 
241
- return py::convert(self->obj.SatisfiedByDevice());
250
+ return py::convert([&]()
251
+ {
252
+ auto _gil = release_gil();
253
+ return self->obj.SatisfiedByDevice();
254
+ }());
242
255
  }
243
256
  catch (...)
244
257
  {
@@ -264,7 +277,11 @@ namespace py::cpp::Windows::ApplicationModel::Store::LicenseManagement
264
277
  return nullptr;
265
278
  }
266
279
 
267
- return py::convert(self->obj.SatisfiedByInstallMedia());
280
+ return py::convert([&]()
281
+ {
282
+ auto _gil = release_gil();
283
+ return self->obj.SatisfiedByInstallMedia();
284
+ }());
268
285
  }
269
286
  catch (...)
270
287
  {
@@ -290,7 +307,11 @@ namespace py::cpp::Windows::ApplicationModel::Store::LicenseManagement
290
307
  return nullptr;
291
308
  }
292
309
 
293
- return py::convert(self->obj.SatisfiedByOpenLicense());
310
+ return py::convert([&]()
311
+ {
312
+ auto _gil = release_gil();
313
+ return self->obj.SatisfiedByOpenLicense();
314
+ }());
294
315
  }
295
316
  catch (...)
296
317
  {
@@ -316,7 +337,11 @@ namespace py::cpp::Windows::ApplicationModel::Store::LicenseManagement
316
337
  return nullptr;
317
338
  }
318
339
 
319
- return py::convert(self->obj.SatisfiedByPass());
340
+ return py::convert([&]()
341
+ {
342
+ auto _gil = release_gil();
343
+ return self->obj.SatisfiedByPass();
344
+ }());
320
345
  }
321
346
  catch (...)
322
347
  {
@@ -342,7 +367,11 @@ namespace py::cpp::Windows::ApplicationModel::Store::LicenseManagement
342
367
  return nullptr;
343
368
  }
344
369
 
345
- return py::convert(self->obj.SatisfiedBySignedInUser());
370
+ return py::convert([&]()
371
+ {
372
+ auto _gil = release_gil();
373
+ return self->obj.SatisfiedBySignedInUser();
374
+ }());
346
375
  }
347
376
  catch (...)
348
377
  {
@@ -368,7 +397,11 @@ namespace py::cpp::Windows::ApplicationModel::Store::LicenseManagement
368
397
  return nullptr;
369
398
  }
370
399
 
371
- return py::convert(self->obj.SatisfiedByTrial());
400
+ return py::convert([&]()
401
+ {
402
+ auto _gil = release_gil();
403
+ return self->obj.SatisfiedByTrial();
404
+ }());
372
405
  }
373
406
  catch (...)
374
407
  {
@@ -404,8 +437,7 @@ namespace py::cpp::Windows::ApplicationModel::Store::LicenseManagement
404
437
  static PyMethodDef _methods_LicenseSatisfactionInfo[] = {
405
438
  { "_assign_array_", _assign_array_LicenseSatisfactionInfo, METH_O | METH_STATIC, nullptr },
406
439
  { "_from", reinterpret_cast<PyCFunction>(_from_LicenseSatisfactionInfo), METH_O | METH_STATIC, nullptr },
407
- { }
408
- };
440
+ { }};
409
441
 
410
442
  static PyGetSetDef _getset_LicenseSatisfactionInfo[] = {
411
443
  { "is_satisfied", reinterpret_cast<getter>(LicenseSatisfactionInfo_get_IsSatisfied), nullptr, nullptr, nullptr },
@@ -415,16 +447,14 @@ namespace py::cpp::Windows::ApplicationModel::Store::LicenseManagement
415
447
  { "satisfied_by_pass", reinterpret_cast<getter>(LicenseSatisfactionInfo_get_SatisfiedByPass), nullptr, nullptr, nullptr },
416
448
  { "satisfied_by_signed_in_user", reinterpret_cast<getter>(LicenseSatisfactionInfo_get_SatisfiedBySignedInUser), nullptr, nullptr, nullptr },
417
449
  { "satisfied_by_trial", reinterpret_cast<getter>(LicenseSatisfactionInfo_get_SatisfiedByTrial), nullptr, nullptr, nullptr },
418
- { }
419
- };
450
+ { }};
420
451
 
421
452
  static PyType_Slot _type_slots_LicenseSatisfactionInfo[] = {
422
453
  { Py_tp_new, reinterpret_cast<void*>(_new_LicenseSatisfactionInfo) },
423
454
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_LicenseSatisfactionInfo) },
424
455
  { Py_tp_methods, reinterpret_cast<void*>(_methods_LicenseSatisfactionInfo) },
425
456
  { Py_tp_getset, reinterpret_cast<void*>(_getset_LicenseSatisfactionInfo) },
426
- { }
427
- };
457
+ { }};
428
458
 
429
459
  static PyType_Spec type_spec_LicenseSatisfactionInfo = {
430
460
  "winrt._winrt_windows_applicationmodel_store_licensemanagement.LicenseSatisfactionInfo",
@@ -467,7 +497,11 @@ namespace py::cpp::Windows::ApplicationModel::Store::LicenseManagement
467
497
  return nullptr;
468
498
  }
469
499
 
470
- return py::convert(self->obj.ExtendedError());
500
+ return py::convert([&]()
501
+ {
502
+ auto _gil = release_gil();
503
+ return self->obj.ExtendedError();
504
+ }());
471
505
  }
472
506
  catch (...)
473
507
  {
@@ -493,7 +527,11 @@ namespace py::cpp::Windows::ApplicationModel::Store::LicenseManagement
493
527
  return nullptr;
494
528
  }
495
529
 
496
- return py::convert(self->obj.LicenseSatisfactionInfos());
530
+ return py::convert([&]()
531
+ {
532
+ auto _gil = release_gil();
533
+ return self->obj.LicenseSatisfactionInfos();
534
+ }());
497
535
  }
498
536
  catch (...)
499
537
  {
@@ -529,22 +567,19 @@ namespace py::cpp::Windows::ApplicationModel::Store::LicenseManagement
529
567
  static PyMethodDef _methods_LicenseSatisfactionResult[] = {
530
568
  { "_assign_array_", _assign_array_LicenseSatisfactionResult, METH_O | METH_STATIC, nullptr },
531
569
  { "_from", reinterpret_cast<PyCFunction>(_from_LicenseSatisfactionResult), METH_O | METH_STATIC, nullptr },
532
- { }
533
- };
570
+ { }};
534
571
 
535
572
  static PyGetSetDef _getset_LicenseSatisfactionResult[] = {
536
573
  { "extended_error", reinterpret_cast<getter>(LicenseSatisfactionResult_get_ExtendedError), nullptr, nullptr, nullptr },
537
574
  { "license_satisfaction_infos", reinterpret_cast<getter>(LicenseSatisfactionResult_get_LicenseSatisfactionInfos), nullptr, nullptr, nullptr },
538
- { }
539
- };
575
+ { }};
540
576
 
541
577
  static PyType_Slot _type_slots_LicenseSatisfactionResult[] = {
542
578
  { Py_tp_new, reinterpret_cast<void*>(_new_LicenseSatisfactionResult) },
543
579
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_LicenseSatisfactionResult) },
544
580
  { Py_tp_methods, reinterpret_cast<void*>(_methods_LicenseSatisfactionResult) },
545
581
  { Py_tp_getset, reinterpret_cast<void*>(_getset_LicenseSatisfactionResult) },
546
- { }
547
- };
582
+ { }};
548
583
 
549
584
  static PyType_Spec type_spec_LicenseSatisfactionResult = {
550
585
  "winrt._winrt_windows_applicationmodel_store_licensemanagement.LicenseSatisfactionResult",
@@ -585,6 +620,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_store_licensemanagement(vo
585
620
  return nullptr;
586
621
  }
587
622
 
623
+ auto inspectable_meta_type = py::get_inspectable_meta_type();
624
+ if (!inspectable_meta_type)
625
+ {
626
+ return nullptr;
627
+ }
628
+
588
629
  auto object_type = py::get_object_type();
589
630
  if (!object_type)
590
631
  {
@@ -598,7 +639,13 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_store_licensemanagement(vo
598
639
  return nullptr;
599
640
  }
600
641
 
601
- py::pyobj_handle type_LicenseManager_Static{PyType_FromSpec(&type_spec_LicenseManager_Static)};
642
+ py::pyobj_handle LicenseManager_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
643
+ if (!LicenseManager_Static_bases)
644
+ {
645
+ return nullptr;
646
+ }
647
+
648
+ py::pyobj_handle type_LicenseManager_Static{PyType_FromSpecWithBases(&type_spec_LicenseManager_Static, LicenseManager_Static_bases.get())};
602
649
  if (!type_LicenseManager_Static)
603
650
  {
604
651
  return nullptr;
@@ -610,13 +657,13 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_store_licensemanagement(vo
610
657
  return nullptr;
611
658
  }
612
659
 
613
- py::pytype_handle LicenseSatisfactionInfo_type{py::register_python_type(module.get(), &type_spec_LicenseSatisfactionInfo, object_bases.get(), nullptr)};
660
+ py::pytype_handle LicenseSatisfactionInfo_type{py::register_python_type(module.get(), &type_spec_LicenseSatisfactionInfo, object_bases.get(), inspectable_meta_type)};
614
661
  if (!LicenseSatisfactionInfo_type)
615
662
  {
616
663
  return nullptr;
617
664
  }
618
665
 
619
- py::pytype_handle LicenseSatisfactionResult_type{py::register_python_type(module.get(), &type_spec_LicenseSatisfactionResult, object_bases.get(), nullptr)};
666
+ py::pytype_handle LicenseSatisfactionResult_type{py::register_python_type(module.get(), &type_spec_LicenseSatisfactionResult, object_bases.get(), inspectable_meta_type)};
620
667
  if (!LicenseSatisfactionResult_type)
621
668
  {
622
669
  return nullptr;
@@ -1,14 +1,14 @@
1
1
  # WARNING: Please don't edit this file. It was automatically generated.
2
2
 
3
3
  [build-system]
4
- requires = ["setuptools", "winrt-sdk"]
4
+ requires = ["setuptools>=78", "winrt-sdk"]
5
5
  build-backend = "setuptools.build_meta"
6
6
 
7
7
  [project]
8
8
  name = "winrt-Windows.ApplicationModel.Store.LicenseManagement"
9
9
  description = "Python projection of Windows Runtime (WinRT) APIs"
10
10
  readme = "README.md"
11
- license = { text = "MIT" }
11
+ license = "MIT"
12
12
  classifiers = [
13
13
  "Operating System :: Microsoft :: Windows",
14
14
  "Programming Language :: Python :: 3",
@@ -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.14"
19
+ requires-python = ">=3.9"
20
20
 
21
21
  [project.urls]
22
22
  # Homepage = "https://github.com/pywinrt/pywinrt"
@@ -34,7 +34,7 @@ optional-dependencies.all = { file = "all-requirements.txt" }
34
34
 
35
35
  [tool.cibuildwheel]
36
36
  # use local winrt-sdk build dependency
37
- environment = { PYTHONPATH="../winrt-sdk/src" }
37
+ environment = { PYTHONPATH="../../winrt-sdk/src" }
38
38
  # don't install winrt-sdk from PyPI
39
39
  build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
40
40
  before-build = "uv pip install setuptools"
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
2
2
 
3
- winrt-runtime==2.3.0
3
+ winrt-runtime==3.1.0
@@ -19,7 +19,7 @@ class build_ext_ex(build_ext):
19
19
 
20
20
 
21
21
  setup(
22
- cmdclass = {'build_ext': build_ext_ex},
22
+ cmdclass={"build_ext": build_ext_ex},
23
23
  ext_modules=[
24
24
  Extension(
25
25
  "winrt._winrt_windows_applicationmodel_store_licensemanagement",
@@ -0,0 +1,65 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
2
+
3
+ import datetime
4
+ import sys
5
+ import types
6
+ import typing
7
+ import uuid as _uuid
8
+ from builtins import property as _property
9
+
10
+ import winrt._winrt
11
+ import winrt.system
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
+
16
+ from winrt.windows.applicationmodel.store.licensemanagement import LicenseRefreshOption
17
+
18
+ Self = typing.TypeVar('Self')
19
+
20
+ @typing.final
21
+ class LicenseManager_Static(winrt._winrt.IInspectable_Static):
22
+ # Windows.Foundation.IAsyncAction Windows.ApplicationModel.Store.LicenseManagement.LicenseManager::AddLicenseAsync(Windows.Storage.Streams.IBuffer)
23
+ def add_license_async(cls, license: windows_storage_streams.IBuffer, /) -> windows_foundation.IAsyncAction: ...
24
+ # Windows.Foundation.IAsyncOperation`1<Windows.ApplicationModel.Store.LicenseManagement.LicenseSatisfactionResult> Windows.ApplicationModel.Store.LicenseManagement.LicenseManager::GetSatisfactionInfosAsync(Windows.Foundation.Collections.IIterable`1<System.String>,Windows.Foundation.Collections.IIterable`1<System.String>)
25
+ def get_satisfaction_infos_async(cls, content_ids: typing.Iterable[str], key_ids: typing.Iterable[str], /) -> windows_foundation.IAsyncOperation[LicenseSatisfactionResult]: ...
26
+ # Windows.Foundation.IAsyncAction Windows.ApplicationModel.Store.LicenseManagement.LicenseManager::RefreshLicensesAsync(Windows.ApplicationModel.Store.LicenseManagement.LicenseRefreshOption)
27
+ def refresh_licenses_async(cls, refresh_option: LicenseRefreshOption, /) -> windows_foundation.IAsyncAction: ...
28
+
29
+ @typing.final
30
+ class LicenseManager(winrt.system.Object, metaclass=LicenseManager_Static):
31
+ pass
32
+
33
+ @typing.final
34
+ class LicenseSatisfactionInfo(winrt.system.Object):
35
+ # System.Boolean Windows.ApplicationModel.Store.LicenseManagement.LicenseSatisfactionInfo::get_IsSatisfied()
36
+ @_property
37
+ def is_satisfied(self) -> bool: ...
38
+ # System.Boolean Windows.ApplicationModel.Store.LicenseManagement.LicenseSatisfactionInfo::get_SatisfiedByDevice()
39
+ @_property
40
+ def satisfied_by_device(self) -> bool: ...
41
+ # System.Boolean Windows.ApplicationModel.Store.LicenseManagement.LicenseSatisfactionInfo::get_SatisfiedByInstallMedia()
42
+ @_property
43
+ def satisfied_by_install_media(self) -> bool: ...
44
+ # System.Boolean Windows.ApplicationModel.Store.LicenseManagement.LicenseSatisfactionInfo::get_SatisfiedByOpenLicense()
45
+ @_property
46
+ def satisfied_by_open_license(self) -> bool: ...
47
+ # System.Boolean Windows.ApplicationModel.Store.LicenseManagement.LicenseSatisfactionInfo::get_SatisfiedByPass()
48
+ @_property
49
+ def satisfied_by_pass(self) -> bool: ...
50
+ # System.Boolean Windows.ApplicationModel.Store.LicenseManagement.LicenseSatisfactionInfo::get_SatisfiedBySignedInUser()
51
+ @_property
52
+ def satisfied_by_signed_in_user(self) -> bool: ...
53
+ # System.Boolean Windows.ApplicationModel.Store.LicenseManagement.LicenseSatisfactionInfo::get_SatisfiedByTrial()
54
+ @_property
55
+ def satisfied_by_trial(self) -> bool: ...
56
+
57
+ @typing.final
58
+ class LicenseSatisfactionResult(winrt.system.Object):
59
+ # Windows.Foundation.HResult Windows.ApplicationModel.Store.LicenseManagement.LicenseSatisfactionResult::get_ExtendedError()
60
+ @_property
61
+ def extended_error(self) -> windows_foundation.HResult: ...
62
+ # Windows.Foundation.Collections.IMapView`2<System.String,Windows.ApplicationModel.Store.LicenseManagement.LicenseSatisfactionInfo> Windows.ApplicationModel.Store.LicenseManagement.LicenseSatisfactionResult::get_LicenseSatisfactionInfos()
63
+ @_property
64
+ def license_satisfaction_infos(self) -> typing.Mapping[str, LicenseSatisfactionInfo]: ...
65
+
@@ -0,0 +1,22 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
2
+
3
+ import enum
4
+
5
+ import winrt.system
6
+ from winrt._winrt_windows_applicationmodel_store_licensemanagement import (
7
+ LicenseManager,
8
+ LicenseSatisfactionInfo,
9
+ LicenseSatisfactionResult,
10
+ )
11
+
12
+ __all__ = [
13
+ "LicenseRefreshOption",
14
+ "LicenseManager",
15
+ "LicenseSatisfactionInfo",
16
+ "LicenseSatisfactionResult",
17
+ ]
18
+
19
+ class LicenseRefreshOption(enum.IntEnum):
20
+ RUNNING_LICENSES = 0
21
+ ALL_LICENSES = 1
22
+
@@ -1,8 +1,8 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: winrt-Windows.ApplicationModel.Store.LicenseManagement
3
- Version: 2.3.0
3
+ Version: 3.1.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
- License: MIT
5
+ License-Expression: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
7
7
  Project-URL: Repository, https://github.com/pywinrt/pywinrt
8
8
  Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
@@ -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.14,>=3.9
13
+ Requires-Python: >=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.3.0
15
+ Requires-Dist: winrt-runtime==3.1.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.3.0; extra == "all"
19
- Requires-Dist: winrt-Windows.Storage.Streams[all]==2.3.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==3.1.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.1.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Storage.Streams[all]==3.1.0; extra == "all"
20
20
 
21
21
  <!-- warning: Please don't edit this file. It was automatically generated. -->
22
22
 
@@ -0,0 +1,6 @@
1
+ winrt-runtime==3.1.0
2
+
3
+ [all]
4
+ winrt-Windows.Foundation[all]==3.1.0
5
+ winrt-Windows.Foundation.Collections[all]==3.1.0
6
+ winrt-Windows.Storage.Streams[all]==3.1.0
@@ -1,5 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
-
3
- winrt-Windows.Foundation[all]==2.3.0
4
- winrt-Windows.Foundation.Collections[all]==2.3.0
5
- winrt-Windows.Storage.Streams[all]==2.3.0
@@ -1,57 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
-
3
- import datetime
4
- import sys
5
- import types
6
- import typing
7
- import uuid as _uuid
8
- from builtins import property as _property
9
-
10
- import winrt._winrt
11
- import winrt.system
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
-
16
- from winrt.windows.applicationmodel.store.licensemanagement import LicenseRefreshOption
17
-
18
- Self = typing.TypeVar('Self')
19
-
20
- @typing.final
21
- class LicenseManager_Static(type):
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
-
26
- @typing.final
27
- class LicenseManager(winrt.system.Object, metaclass=LicenseManager_Static):
28
- pass
29
-
30
- @typing.final
31
- class LicenseSatisfactionInfo(winrt.system.Object):
32
- @staticmethod
33
- def _from(obj: winrt.system.Object, /) -> LicenseSatisfactionInfo: ...
34
- @_property
35
- def is_satisfied(self) -> bool: ...
36
- @_property
37
- def satisfied_by_device(self) -> bool: ...
38
- @_property
39
- def satisfied_by_install_media(self) -> bool: ...
40
- @_property
41
- def satisfied_by_open_license(self) -> bool: ...
42
- @_property
43
- def satisfied_by_pass(self) -> bool: ...
44
- @_property
45
- def satisfied_by_signed_in_user(self) -> bool: ...
46
- @_property
47
- def satisfied_by_trial(self) -> bool: ...
48
-
49
- @typing.final
50
- class LicenseSatisfactionResult(winrt.system.Object):
51
- @staticmethod
52
- def _from(obj: winrt.system.Object, /) -> LicenseSatisfactionResult: ...
53
- @_property
54
- def extended_error(self) -> windows_foundation.HResult: ...
55
- @_property
56
- def license_satisfaction_infos(self) -> typing.Optional[windows_foundation_collections.IMapView[str, LicenseSatisfactionInfo]]: ...
57
-
@@ -1,21 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
-
3
- import enum
4
-
5
- import winrt.system
6
- from winrt import _winrt_windows_applicationmodel_store_licensemanagement
7
-
8
- __all__ = [
9
- "LicenseRefreshOption",
10
- "LicenseManager",
11
- "LicenseSatisfactionInfo",
12
- "LicenseSatisfactionResult",
13
- ]
14
-
15
- class LicenseRefreshOption(enum.IntEnum):
16
- RUNNING_LICENSES = 0
17
- ALL_LICENSES = 1
18
-
19
- LicenseManager = _winrt_windows_applicationmodel_store_licensemanagement.LicenseManager
20
- LicenseSatisfactionInfo = _winrt_windows_applicationmodel_store_licensemanagement.LicenseSatisfactionInfo
21
- LicenseSatisfactionResult = _winrt_windows_applicationmodel_store_licensemanagement.LicenseSatisfactionResult
@@ -1,6 +0,0 @@
1
- winrt-runtime==2.3.0
2
-
3
- [all]
4
- winrt-Windows.Foundation[all]==2.3.0
5
- winrt-Windows.Foundation.Collections[all]==2.3.0
6
- winrt-Windows.Storage.Streams[all]==2.3.0