winrt-Windows.ApplicationModel.LockScreen 2.1.0__tar.gz → 2.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (20) hide show
  1. {winrt_windows_applicationmodel_lockscreen-2.1.0 → winrt_windows_applicationmodel_lockscreen-2.2.0}/PKG-INFO +6 -6
  2. winrt_windows_applicationmodel_lockscreen-2.2.0/all-requirements.txt +5 -0
  3. {winrt_windows_applicationmodel_lockscreen-2.1.0 → winrt_windows_applicationmodel_lockscreen-2.2.0}/py.Windows.ApplicationModel.LockScreen.cpp +203 -30
  4. {winrt_windows_applicationmodel_lockscreen-2.1.0 → winrt_windows_applicationmodel_lockscreen-2.2.0}/pyproject.toml +3 -2
  5. winrt_windows_applicationmodel_lockscreen-2.2.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_applicationmodel_lockscreen-2.1.0 → winrt_windows_applicationmodel_lockscreen-2.2.0}/requirements.txt +2 -2
  7. {winrt_windows_applicationmodel_lockscreen-2.1.0 → winrt_windows_applicationmodel_lockscreen-2.2.0}/winrt/_winrt_windows_applicationmodel_lockscreen.pyi +1 -1
  8. {winrt_windows_applicationmodel_lockscreen-2.1.0 → winrt_windows_applicationmodel_lockscreen-2.2.0}/winrt/windows/applicationmodel/lockscreen/__init__.py +1 -1
  9. {winrt_windows_applicationmodel_lockscreen-2.1.0 → winrt_windows_applicationmodel_lockscreen-2.2.0}/winrt_Windows.ApplicationModel.LockScreen.egg-info/PKG-INFO +6 -6
  10. winrt_windows_applicationmodel_lockscreen-2.2.0/winrt_Windows.ApplicationModel.LockScreen.egg-info/requires.txt +6 -0
  11. winrt_windows_applicationmodel_lockscreen-2.1.0/all-requirements.txt +0 -5
  12. winrt_windows_applicationmodel_lockscreen-2.1.0/pywinrt-version.txt +0 -1
  13. winrt_windows_applicationmodel_lockscreen-2.1.0/winrt_Windows.ApplicationModel.LockScreen.egg-info/requires.txt +0 -6
  14. {winrt_windows_applicationmodel_lockscreen-2.1.0 → winrt_windows_applicationmodel_lockscreen-2.2.0}/README.md +0 -0
  15. {winrt_windows_applicationmodel_lockscreen-2.1.0 → winrt_windows_applicationmodel_lockscreen-2.2.0}/setup.cfg +0 -0
  16. {winrt_windows_applicationmodel_lockscreen-2.1.0 → winrt_windows_applicationmodel_lockscreen-2.2.0}/setup.py +0 -0
  17. {winrt_windows_applicationmodel_lockscreen-2.1.0 → winrt_windows_applicationmodel_lockscreen-2.2.0}/winrt/windows/applicationmodel/lockscreen/py.typed +0 -0
  18. {winrt_windows_applicationmodel_lockscreen-2.1.0 → winrt_windows_applicationmodel_lockscreen-2.2.0}/winrt_Windows.ApplicationModel.LockScreen.egg-info/SOURCES.txt +0 -0
  19. {winrt_windows_applicationmodel_lockscreen-2.1.0 → winrt_windows_applicationmodel_lockscreen-2.2.0}/winrt_Windows.ApplicationModel.LockScreen.egg-info/dependency_links.txt +0 -0
  20. {winrt_windows_applicationmodel_lockscreen-2.1.0 → winrt_windows_applicationmodel_lockscreen-2.2.0}/winrt_Windows.ApplicationModel.LockScreen.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.ApplicationModel.LockScreen
3
- Version: 2.1.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,>=3.9
13
+ Requires-Python: <3.14,>=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.1.0
15
+ Requires-Dist: winrt-runtime==2.2.0
16
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"
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
 
@@ -0,0 +1,5 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
+
3
+ winrt-Windows.Foundation[all]==2.2.0
4
+ winrt-Windows.Foundation.Collections[all]==2.2.0
5
+ winrt-Windows.Storage.Streams[all]==2.2.0
@@ -1,4 +1,4 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.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.LockScreen.h"
4
4
 
@@ -29,7 +29,14 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
29
29
  {
30
30
  try
31
31
  {
32
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.LockScreen.LockApplicationHost", L"GetForCurrentView", 0))
32
+ static std::optional<bool> is_overload_present{};
33
+
34
+ if (!is_overload_present.has_value())
35
+ {
36
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.LockScreen.LockApplicationHost", L"GetForCurrentView", 0);
37
+ }
38
+
39
+ if (!is_overload_present.value())
33
40
  {
34
41
  py::set_arg_count_version_error(0);
35
42
  return nullptr;
@@ -58,7 +65,14 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
58
65
  {
59
66
  try
60
67
  {
61
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.LockScreen.LockApplicationHost", L"RequestUnlock", 0))
68
+ static std::optional<bool> is_overload_present{};
69
+
70
+ if (!is_overload_present.has_value())
71
+ {
72
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.LockScreen.LockApplicationHost", L"RequestUnlock", 0);
73
+ }
74
+
75
+ if (!is_overload_present.value())
62
76
  {
63
77
  py::set_arg_count_version_error(0);
64
78
  return nullptr;
@@ -84,7 +98,14 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
84
98
  {
85
99
  try
86
100
  {
87
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockApplicationHost", L"Unlocking"))
101
+ static std::optional<bool> is_event_present{};
102
+
103
+ if (!is_event_present.has_value())
104
+ {
105
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockApplicationHost", L"Unlocking");
106
+ }
107
+
108
+ if (!is_event_present.value())
88
109
  {
89
110
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
90
111
  return nullptr;
@@ -105,7 +126,14 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
105
126
  {
106
127
  try
107
128
  {
108
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockApplicationHost", L"Unlocking"))
129
+ static std::optional<bool> is_event_present{};
130
+
131
+ if (!is_event_present.has_value())
132
+ {
133
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockApplicationHost", L"Unlocking");
134
+ }
135
+
136
+ if (!is_event_present.value())
109
137
  {
110
138
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
111
139
  return nullptr;
@@ -226,7 +254,14 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
226
254
  {
227
255
  try
228
256
  {
229
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.LockScreen.LockScreenBadge", L"LaunchApp", 0))
257
+ static std::optional<bool> is_overload_present{};
258
+
259
+ if (!is_overload_present.has_value())
260
+ {
261
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.LockScreen.LockScreenBadge", L"LaunchApp", 0);
262
+ }
263
+
264
+ if (!is_overload_present.value())
230
265
  {
231
266
  py::set_arg_count_version_error(0);
232
267
  return nullptr;
@@ -252,7 +287,14 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
252
287
  {
253
288
  try
254
289
  {
255
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenBadge", L"AutomationName"))
290
+ static std::optional<bool> is_property_present{};
291
+
292
+ if (!is_property_present.has_value())
293
+ {
294
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenBadge", L"AutomationName");
295
+ }
296
+
297
+ if (!is_property_present.value())
256
298
  {
257
299
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
258
300
  return nullptr;
@@ -271,7 +313,14 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
271
313
  {
272
314
  try
273
315
  {
274
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenBadge", L"Glyph"))
316
+ static std::optional<bool> is_property_present{};
317
+
318
+ if (!is_property_present.has_value())
319
+ {
320
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenBadge", L"Glyph");
321
+ }
322
+
323
+ if (!is_property_present.value())
275
324
  {
276
325
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
277
326
  return nullptr;
@@ -290,7 +339,14 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
290
339
  {
291
340
  try
292
341
  {
293
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenBadge", L"Logo"))
342
+ static std::optional<bool> is_property_present{};
343
+
344
+ if (!is_property_present.has_value())
345
+ {
346
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenBadge", L"Logo");
347
+ }
348
+
349
+ if (!is_property_present.value())
294
350
  {
295
351
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
296
352
  return nullptr;
@@ -309,7 +365,14 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
309
365
  {
310
366
  try
311
367
  {
312
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenBadge", L"Number"))
368
+ static std::optional<bool> is_property_present{};
369
+
370
+ if (!is_property_present.has_value())
371
+ {
372
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenBadge", L"Number");
373
+ }
374
+
375
+ if (!is_property_present.value())
313
376
  {
314
377
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
315
378
  return nullptr;
@@ -399,7 +462,14 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
399
462
  {
400
463
  try
401
464
  {
402
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"AlarmIcon"))
465
+ static std::optional<bool> is_property_present{};
466
+
467
+ if (!is_property_present.has_value())
468
+ {
469
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"AlarmIcon");
470
+ }
471
+
472
+ if (!is_property_present.value())
403
473
  {
404
474
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
405
475
  return nullptr;
@@ -418,7 +488,14 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
418
488
  {
419
489
  try
420
490
  {
421
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"Badges"))
491
+ static std::optional<bool> is_property_present{};
492
+
493
+ if (!is_property_present.has_value())
494
+ {
495
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"Badges");
496
+ }
497
+
498
+ if (!is_property_present.value())
422
499
  {
423
500
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
424
501
  return nullptr;
@@ -437,7 +514,14 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
437
514
  {
438
515
  try
439
516
  {
440
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"DetailText"))
517
+ static std::optional<bool> is_property_present{};
518
+
519
+ if (!is_property_present.has_value())
520
+ {
521
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"DetailText");
522
+ }
523
+
524
+ if (!is_property_present.value())
441
525
  {
442
526
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
443
527
  return nullptr;
@@ -456,7 +540,14 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
456
540
  {
457
541
  try
458
542
  {
459
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"LockScreenImage"))
543
+ static std::optional<bool> is_property_present{};
544
+
545
+ if (!is_property_present.has_value())
546
+ {
547
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"LockScreenImage");
548
+ }
549
+
550
+ if (!is_property_present.value())
460
551
  {
461
552
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
462
553
  return nullptr;
@@ -475,7 +566,14 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
475
566
  {
476
567
  try
477
568
  {
478
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"AlarmIconChanged"))
569
+ static std::optional<bool> is_event_present{};
570
+
571
+ if (!is_event_present.has_value())
572
+ {
573
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"AlarmIconChanged");
574
+ }
575
+
576
+ if (!is_event_present.value())
479
577
  {
480
578
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
481
579
  return nullptr;
@@ -496,7 +594,14 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
496
594
  {
497
595
  try
498
596
  {
499
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"AlarmIconChanged"))
597
+ static std::optional<bool> is_event_present{};
598
+
599
+ if (!is_event_present.has_value())
600
+ {
601
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"AlarmIconChanged");
602
+ }
603
+
604
+ if (!is_event_present.value())
500
605
  {
501
606
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
502
607
  return nullptr;
@@ -518,7 +623,14 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
518
623
  {
519
624
  try
520
625
  {
521
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"BadgesChanged"))
626
+ static std::optional<bool> is_event_present{};
627
+
628
+ if (!is_event_present.has_value())
629
+ {
630
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"BadgesChanged");
631
+ }
632
+
633
+ if (!is_event_present.value())
522
634
  {
523
635
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
524
636
  return nullptr;
@@ -539,7 +651,14 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
539
651
  {
540
652
  try
541
653
  {
542
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"BadgesChanged"))
654
+ static std::optional<bool> is_event_present{};
655
+
656
+ if (!is_event_present.has_value())
657
+ {
658
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"BadgesChanged");
659
+ }
660
+
661
+ if (!is_event_present.value())
543
662
  {
544
663
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
545
664
  return nullptr;
@@ -561,7 +680,14 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
561
680
  {
562
681
  try
563
682
  {
564
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"DetailTextChanged"))
683
+ static std::optional<bool> is_event_present{};
684
+
685
+ if (!is_event_present.has_value())
686
+ {
687
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"DetailTextChanged");
688
+ }
689
+
690
+ if (!is_event_present.value())
565
691
  {
566
692
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
567
693
  return nullptr;
@@ -582,7 +708,14 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
582
708
  {
583
709
  try
584
710
  {
585
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"DetailTextChanged"))
711
+ static std::optional<bool> is_event_present{};
712
+
713
+ if (!is_event_present.has_value())
714
+ {
715
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"DetailTextChanged");
716
+ }
717
+
718
+ if (!is_event_present.value())
586
719
  {
587
720
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
588
721
  return nullptr;
@@ -604,7 +737,14 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
604
737
  {
605
738
  try
606
739
  {
607
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"LockScreenImageChanged"))
740
+ static std::optional<bool> is_event_present{};
741
+
742
+ if (!is_event_present.has_value())
743
+ {
744
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"LockScreenImageChanged");
745
+ }
746
+
747
+ if (!is_event_present.value())
608
748
  {
609
749
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
610
750
  return nullptr;
@@ -625,7 +765,14 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
625
765
  {
626
766
  try
627
767
  {
628
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"LockScreenImageChanged"))
768
+ static std::optional<bool> is_event_present{};
769
+
770
+ if (!is_event_present.has_value())
771
+ {
772
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.LockScreen.LockScreenInfo", L"LockScreenImageChanged");
773
+ }
774
+
775
+ if (!is_event_present.value())
629
776
  {
630
777
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
631
778
  return nullptr;
@@ -729,7 +876,14 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
729
876
  {
730
877
  try
731
878
  {
732
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.LockScreen.LockScreenUnlockingDeferral", L"Complete", 0))
879
+ static std::optional<bool> is_overload_present{};
880
+
881
+ if (!is_overload_present.has_value())
882
+ {
883
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.LockScreen.LockScreenUnlockingDeferral", L"Complete", 0);
884
+ }
885
+
886
+ if (!is_overload_present.value())
733
887
  {
734
888
  py::set_arg_count_version_error(0);
735
889
  return nullptr;
@@ -826,7 +980,14 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
826
980
  {
827
981
  try
828
982
  {
829
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.LockScreen.LockScreenUnlockingEventArgs", L"GetDeferral", 0))
983
+ static std::optional<bool> is_overload_present{};
984
+
985
+ if (!is_overload_present.has_value())
986
+ {
987
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.LockScreen.LockScreenUnlockingEventArgs", L"GetDeferral", 0);
988
+ }
989
+
990
+ if (!is_overload_present.value())
830
991
  {
831
992
  py::set_arg_count_version_error(0);
832
993
  return nullptr;
@@ -851,7 +1012,14 @@ namespace py::cpp::Windows::ApplicationModel::LockScreen
851
1012
  {
852
1013
  try
853
1014
  {
854
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenUnlockingEventArgs", L"Deadline"))
1015
+ static std::optional<bool> is_property_present{};
1016
+
1017
+ if (!is_property_present.has_value())
1018
+ {
1019
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.LockScreen.LockScreenUnlockingEventArgs", L"Deadline");
1020
+ }
1021
+
1022
+ if (!is_property_present.value())
855
1023
  {
856
1024
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
857
1025
  return nullptr;
@@ -968,27 +1136,32 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_lockscreen(void) noexcept
968
1136
  return nullptr;
969
1137
  }
970
1138
 
971
- if (py::register_python_type(module.get(), &type_spec_LockApplicationHost, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_LockApplicationHost_Static.get())) == -1)
1139
+ py::pytype_handle LockApplicationHost_type{py::register_python_type(module.get(), &type_spec_LockApplicationHost, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_LockApplicationHost_Static.get()))};
1140
+ if (!LockApplicationHost_type)
972
1141
  {
973
1142
  return nullptr;
974
1143
  }
975
1144
 
976
- if (py::register_python_type(module.get(), &type_spec_LockScreenBadge, object_bases.get(), nullptr) == -1)
1145
+ py::pytype_handle LockScreenBadge_type{py::register_python_type(module.get(), &type_spec_LockScreenBadge, object_bases.get(), nullptr)};
1146
+ if (!LockScreenBadge_type)
977
1147
  {
978
1148
  return nullptr;
979
1149
  }
980
1150
 
981
- if (py::register_python_type(module.get(), &type_spec_LockScreenInfo, object_bases.get(), nullptr) == -1)
1151
+ py::pytype_handle LockScreenInfo_type{py::register_python_type(module.get(), &type_spec_LockScreenInfo, object_bases.get(), nullptr)};
1152
+ if (!LockScreenInfo_type)
982
1153
  {
983
1154
  return nullptr;
984
1155
  }
985
1156
 
986
- if (py::register_python_type(module.get(), &type_spec_LockScreenUnlockingDeferral, object_bases.get(), nullptr) == -1)
1157
+ py::pytype_handle LockScreenUnlockingDeferral_type{py::register_python_type(module.get(), &type_spec_LockScreenUnlockingDeferral, object_bases.get(), nullptr)};
1158
+ if (!LockScreenUnlockingDeferral_type)
987
1159
  {
988
1160
  return nullptr;
989
1161
  }
990
1162
 
991
- if (py::register_python_type(module.get(), &type_spec_LockScreenUnlockingEventArgs, object_bases.get(), nullptr) == -1)
1163
+ py::pytype_handle LockScreenUnlockingEventArgs_type{py::register_python_type(module.get(), &type_spec_LockScreenUnlockingEventArgs, object_bases.get(), nullptr)};
1164
+ if (!LockScreenUnlockingEventArgs_type)
992
1165
  {
993
1166
  return nullptr;
994
1167
  }
@@ -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.13"
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
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
2
 
3
- winrt-runtime==2.1.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.1.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
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
2
 
3
3
  import winrt.system
4
4
  from winrt import _winrt_windows_applicationmodel_lockscreen
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.ApplicationModel.LockScreen
3
- Version: 2.1.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,>=3.9
13
+ Requires-Python: <3.14,>=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.1.0
15
+ Requires-Dist: winrt-runtime==2.2.0
16
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"
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
 
@@ -0,0 +1,6 @@
1
+ winrt-runtime==2.2.0
2
+
3
+ [all]
4
+ winrt-Windows.Foundation[all]==2.2.0
5
+ winrt-Windows.Foundation.Collections[all]==2.2.0
6
+ winrt-Windows.Storage.Streams[all]==2.2.0
@@ -1,5 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
-
3
- winrt-Windows.Foundation[all]==2.1.0
4
- winrt-Windows.Foundation.Collections[all]==2.1.0
5
- winrt-Windows.Storage.Streams[all]==2.1.0
@@ -1,6 +0,0 @@
1
- winrt-runtime==2.1.0
2
-
3
- [all]
4
- winrt-Windows.Foundation[all]==2.1.0
5
- winrt-Windows.Foundation.Collections[all]==2.1.0
6
- winrt-Windows.Storage.Streams[all]==2.1.0