winrt-Windows.Security.Credentials.UI 2.1.0__tar.gz → 2.3.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (20) hide show
  1. {winrt_windows_security_credentials_ui-2.1.0 → winrt_windows_security_credentials_ui-2.3.0}/PKG-INFO +5 -5
  2. winrt_windows_security_credentials_ui-2.3.0/all-requirements.txt +4 -0
  3. {winrt_windows_security_credentials_ui-2.1.0 → winrt_windows_security_credentials_ui-2.3.0}/py.Windows.Security.Credentials.UI.cpp +266 -38
  4. {winrt_windows_security_credentials_ui-2.1.0 → winrt_windows_security_credentials_ui-2.3.0}/pyproject.toml +3 -2
  5. winrt_windows_security_credentials_ui-2.3.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_security_credentials_ui-2.1.0 → winrt_windows_security_credentials_ui-2.3.0}/requirements.txt +2 -2
  7. {winrt_windows_security_credentials_ui-2.1.0 → winrt_windows_security_credentials_ui-2.3.0}/winrt/_winrt_windows_security_credentials_ui.pyi +1 -1
  8. {winrt_windows_security_credentials_ui-2.1.0 → winrt_windows_security_credentials_ui-2.3.0}/winrt/windows/security/credentials/ui/__init__.py +1 -1
  9. {winrt_windows_security_credentials_ui-2.1.0 → winrt_windows_security_credentials_ui-2.3.0}/winrt_Windows.Security.Credentials.UI.egg-info/PKG-INFO +5 -5
  10. winrt_windows_security_credentials_ui-2.3.0/winrt_Windows.Security.Credentials.UI.egg-info/requires.txt +5 -0
  11. winrt_windows_security_credentials_ui-2.1.0/all-requirements.txt +0 -4
  12. winrt_windows_security_credentials_ui-2.1.0/pywinrt-version.txt +0 -1
  13. winrt_windows_security_credentials_ui-2.1.0/winrt_Windows.Security.Credentials.UI.egg-info/requires.txt +0 -5
  14. {winrt_windows_security_credentials_ui-2.1.0 → winrt_windows_security_credentials_ui-2.3.0}/README.md +0 -0
  15. {winrt_windows_security_credentials_ui-2.1.0 → winrt_windows_security_credentials_ui-2.3.0}/setup.cfg +0 -0
  16. {winrt_windows_security_credentials_ui-2.1.0 → winrt_windows_security_credentials_ui-2.3.0}/setup.py +0 -0
  17. {winrt_windows_security_credentials_ui-2.1.0 → winrt_windows_security_credentials_ui-2.3.0}/winrt/windows/security/credentials/ui/py.typed +0 -0
  18. {winrt_windows_security_credentials_ui-2.1.0 → winrt_windows_security_credentials_ui-2.3.0}/winrt_Windows.Security.Credentials.UI.egg-info/SOURCES.txt +0 -0
  19. {winrt_windows_security_credentials_ui-2.1.0 → winrt_windows_security_credentials_ui-2.3.0}/winrt_Windows.Security.Credentials.UI.egg-info/dependency_links.txt +0 -0
  20. {winrt_windows_security_credentials_ui-2.1.0 → winrt_windows_security_credentials_ui-2.3.0}/winrt_Windows.Security.Credentials.UI.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Security.Credentials.UI
3
- Version: 2.1.0
3
+ Version: 2.3.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -10,12 +10,12 @@ 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.3.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Storage.Streams[all]==2.1.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Storage.Streams[all]==2.3.0; extra == "all"
19
19
 
20
20
  <!-- warning: Please don't edit this file. It was automatically generated. -->
21
21
 
@@ -0,0 +1,4 @@
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.Storage.Streams[all]==2.3.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.3.0
2
2
 
3
3
  #include "py.Windows.Security.Credentials.UI.h"
4
4
 
@@ -21,7 +21,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
21
21
  {
22
22
  try
23
23
  {
24
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Credentials.UI.CredentialPicker", L"PickAsync", 1))
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.Security.Credentials.UI.CredentialPicker", L"PickAsync", 1);
29
+ }
30
+
31
+ if (!is_overload_present.value())
25
32
  {
26
33
  py::set_arg_count_version_error(1);
27
34
  return nullptr;
@@ -41,7 +48,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
41
48
  {
42
49
  try
43
50
  {
44
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Credentials.UI.CredentialPicker", L"PickAsync", 2))
51
+ static std::optional<bool> is_overload_present{};
52
+
53
+ if (!is_overload_present.has_value())
54
+ {
55
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Credentials.UI.CredentialPicker", L"PickAsync", 2);
56
+ }
57
+
58
+ if (!is_overload_present.value())
45
59
  {
46
60
  py::set_arg_count_version_error(2);
47
61
  return nullptr;
@@ -62,7 +76,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
62
76
  {
63
77
  try
64
78
  {
65
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Credentials.UI.CredentialPicker", L"PickAsync", 3))
79
+ static std::optional<bool> is_overload_present{};
80
+
81
+ if (!is_overload_present.has_value())
82
+ {
83
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Credentials.UI.CredentialPicker", L"PickAsync", 3);
84
+ }
85
+
86
+ if (!is_overload_present.value())
66
87
  {
67
88
  py::set_arg_count_version_error(3);
68
89
  return nullptr;
@@ -150,7 +171,7 @@ namespace py::cpp::Windows::Security::Credentials::UI
150
171
  {
151
172
  try
152
173
  {
153
- winrt::Windows::Security::Credentials::UI::CredentialPickerOptions instance{ };
174
+ winrt::Windows::Security::Credentials::UI::CredentialPickerOptions instance{};
154
175
  return py::wrap(instance, type);
155
176
  }
156
177
  catch (...)
@@ -178,7 +199,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
178
199
  {
179
200
  try
180
201
  {
181
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"TargetName"))
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.Security.Credentials.UI.CredentialPickerOptions", L"TargetName");
207
+ }
208
+
209
+ if (!is_property_present.value())
182
210
  {
183
211
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
184
212
  return nullptr;
@@ -203,7 +231,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
203
231
 
204
232
  try
205
233
  {
206
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"TargetName"))
234
+ static std::optional<bool> is_property_present{};
235
+
236
+ if (!is_property_present.has_value())
237
+ {
238
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"TargetName");
239
+ }
240
+
241
+ if (!is_property_present.value())
207
242
  {
208
243
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
209
244
  return -1;
@@ -225,7 +260,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
225
260
  {
226
261
  try
227
262
  {
228
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"PreviousCredential"))
263
+ static std::optional<bool> is_property_present{};
264
+
265
+ if (!is_property_present.has_value())
266
+ {
267
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"PreviousCredential");
268
+ }
269
+
270
+ if (!is_property_present.value())
229
271
  {
230
272
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
231
273
  return nullptr;
@@ -250,7 +292,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
250
292
 
251
293
  try
252
294
  {
253
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"PreviousCredential"))
295
+ static std::optional<bool> is_property_present{};
296
+
297
+ if (!is_property_present.has_value())
298
+ {
299
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"PreviousCredential");
300
+ }
301
+
302
+ if (!is_property_present.value())
254
303
  {
255
304
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
256
305
  return -1;
@@ -272,7 +321,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
272
321
  {
273
322
  try
274
323
  {
275
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"Message"))
324
+ static std::optional<bool> is_property_present{};
325
+
326
+ if (!is_property_present.has_value())
327
+ {
328
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"Message");
329
+ }
330
+
331
+ if (!is_property_present.value())
276
332
  {
277
333
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
278
334
  return nullptr;
@@ -297,7 +353,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
297
353
 
298
354
  try
299
355
  {
300
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"Message"))
356
+ static std::optional<bool> is_property_present{};
357
+
358
+ if (!is_property_present.has_value())
359
+ {
360
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"Message");
361
+ }
362
+
363
+ if (!is_property_present.value())
301
364
  {
302
365
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
303
366
  return -1;
@@ -319,7 +382,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
319
382
  {
320
383
  try
321
384
  {
322
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"ErrorCode"))
385
+ static std::optional<bool> is_property_present{};
386
+
387
+ if (!is_property_present.has_value())
388
+ {
389
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"ErrorCode");
390
+ }
391
+
392
+ if (!is_property_present.value())
323
393
  {
324
394
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
325
395
  return nullptr;
@@ -344,7 +414,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
344
414
 
345
415
  try
346
416
  {
347
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"ErrorCode"))
417
+ static std::optional<bool> is_property_present{};
418
+
419
+ if (!is_property_present.has_value())
420
+ {
421
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"ErrorCode");
422
+ }
423
+
424
+ if (!is_property_present.value())
348
425
  {
349
426
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
350
427
  return -1;
@@ -366,7 +443,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
366
443
  {
367
444
  try
368
445
  {
369
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"CustomAuthenticationProtocol"))
446
+ static std::optional<bool> is_property_present{};
447
+
448
+ if (!is_property_present.has_value())
449
+ {
450
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"CustomAuthenticationProtocol");
451
+ }
452
+
453
+ if (!is_property_present.value())
370
454
  {
371
455
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
372
456
  return nullptr;
@@ -391,7 +475,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
391
475
 
392
476
  try
393
477
  {
394
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"CustomAuthenticationProtocol"))
478
+ static std::optional<bool> is_property_present{};
479
+
480
+ if (!is_property_present.has_value())
481
+ {
482
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"CustomAuthenticationProtocol");
483
+ }
484
+
485
+ if (!is_property_present.value())
395
486
  {
396
487
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
397
488
  return -1;
@@ -413,7 +504,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
413
504
  {
414
505
  try
415
506
  {
416
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"CredentialSaveOption"))
507
+ static std::optional<bool> is_property_present{};
508
+
509
+ if (!is_property_present.has_value())
510
+ {
511
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"CredentialSaveOption");
512
+ }
513
+
514
+ if (!is_property_present.value())
417
515
  {
418
516
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
419
517
  return nullptr;
@@ -438,7 +536,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
438
536
 
439
537
  try
440
538
  {
441
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"CredentialSaveOption"))
539
+ static std::optional<bool> is_property_present{};
540
+
541
+ if (!is_property_present.has_value())
542
+ {
543
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"CredentialSaveOption");
544
+ }
545
+
546
+ if (!is_property_present.value())
442
547
  {
443
548
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
444
549
  return -1;
@@ -460,7 +565,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
460
565
  {
461
566
  try
462
567
  {
463
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"Caption"))
568
+ static std::optional<bool> is_property_present{};
569
+
570
+ if (!is_property_present.has_value())
571
+ {
572
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"Caption");
573
+ }
574
+
575
+ if (!is_property_present.value())
464
576
  {
465
577
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
466
578
  return nullptr;
@@ -485,7 +597,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
485
597
 
486
598
  try
487
599
  {
488
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"Caption"))
600
+ static std::optional<bool> is_property_present{};
601
+
602
+ if (!is_property_present.has_value())
603
+ {
604
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"Caption");
605
+ }
606
+
607
+ if (!is_property_present.value())
489
608
  {
490
609
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
491
610
  return -1;
@@ -507,7 +626,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
507
626
  {
508
627
  try
509
628
  {
510
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"CallerSavesCredential"))
629
+ static std::optional<bool> is_property_present{};
630
+
631
+ if (!is_property_present.has_value())
632
+ {
633
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"CallerSavesCredential");
634
+ }
635
+
636
+ if (!is_property_present.value())
511
637
  {
512
638
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
513
639
  return nullptr;
@@ -532,7 +658,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
532
658
 
533
659
  try
534
660
  {
535
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"CallerSavesCredential"))
661
+ static std::optional<bool> is_property_present{};
662
+
663
+ if (!is_property_present.has_value())
664
+ {
665
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"CallerSavesCredential");
666
+ }
667
+
668
+ if (!is_property_present.value())
536
669
  {
537
670
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
538
671
  return -1;
@@ -554,7 +687,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
554
687
  {
555
688
  try
556
689
  {
557
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"AuthenticationProtocol"))
690
+ static std::optional<bool> is_property_present{};
691
+
692
+ if (!is_property_present.has_value())
693
+ {
694
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"AuthenticationProtocol");
695
+ }
696
+
697
+ if (!is_property_present.value())
558
698
  {
559
699
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
560
700
  return nullptr;
@@ -579,7 +719,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
579
719
 
580
720
  try
581
721
  {
582
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"AuthenticationProtocol"))
722
+ static std::optional<bool> is_property_present{};
723
+
724
+ if (!is_property_present.has_value())
725
+ {
726
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"AuthenticationProtocol");
727
+ }
728
+
729
+ if (!is_property_present.value())
583
730
  {
584
731
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
585
732
  return -1;
@@ -601,7 +748,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
601
748
  {
602
749
  try
603
750
  {
604
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"AlwaysDisplayDialog"))
751
+ static std::optional<bool> is_property_present{};
752
+
753
+ if (!is_property_present.has_value())
754
+ {
755
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"AlwaysDisplayDialog");
756
+ }
757
+
758
+ if (!is_property_present.value())
605
759
  {
606
760
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
607
761
  return nullptr;
@@ -626,7 +780,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
626
780
 
627
781
  try
628
782
  {
629
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"AlwaysDisplayDialog"))
783
+ static std::optional<bool> is_property_present{};
784
+
785
+ if (!is_property_present.has_value())
786
+ {
787
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerOptions", L"AlwaysDisplayDialog");
788
+ }
789
+
790
+ if (!is_property_present.value())
630
791
  {
631
792
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
632
793
  return -1;
@@ -724,7 +885,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
724
885
  {
725
886
  try
726
887
  {
727
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerResults", L"Credential"))
888
+ static std::optional<bool> is_property_present{};
889
+
890
+ if (!is_property_present.has_value())
891
+ {
892
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerResults", L"Credential");
893
+ }
894
+
895
+ if (!is_property_present.value())
728
896
  {
729
897
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
730
898
  return nullptr;
@@ -743,7 +911,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
743
911
  {
744
912
  try
745
913
  {
746
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerResults", L"CredentialDomainName"))
914
+ static std::optional<bool> is_property_present{};
915
+
916
+ if (!is_property_present.has_value())
917
+ {
918
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerResults", L"CredentialDomainName");
919
+ }
920
+
921
+ if (!is_property_present.value())
747
922
  {
748
923
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
749
924
  return nullptr;
@@ -762,7 +937,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
762
937
  {
763
938
  try
764
939
  {
765
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerResults", L"CredentialPassword"))
940
+ static std::optional<bool> is_property_present{};
941
+
942
+ if (!is_property_present.has_value())
943
+ {
944
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerResults", L"CredentialPassword");
945
+ }
946
+
947
+ if (!is_property_present.value())
766
948
  {
767
949
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
768
950
  return nullptr;
@@ -781,7 +963,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
781
963
  {
782
964
  try
783
965
  {
784
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerResults", L"CredentialSaveOption"))
966
+ static std::optional<bool> is_property_present{};
967
+
968
+ if (!is_property_present.has_value())
969
+ {
970
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerResults", L"CredentialSaveOption");
971
+ }
972
+
973
+ if (!is_property_present.value())
785
974
  {
786
975
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
787
976
  return nullptr;
@@ -800,7 +989,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
800
989
  {
801
990
  try
802
991
  {
803
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerResults", L"CredentialSaved"))
992
+ static std::optional<bool> is_property_present{};
993
+
994
+ if (!is_property_present.has_value())
995
+ {
996
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerResults", L"CredentialSaved");
997
+ }
998
+
999
+ if (!is_property_present.value())
804
1000
  {
805
1001
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
806
1002
  return nullptr;
@@ -819,7 +1015,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
819
1015
  {
820
1016
  try
821
1017
  {
822
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerResults", L"CredentialUserName"))
1018
+ static std::optional<bool> is_property_present{};
1019
+
1020
+ if (!is_property_present.has_value())
1021
+ {
1022
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerResults", L"CredentialUserName");
1023
+ }
1024
+
1025
+ if (!is_property_present.value())
823
1026
  {
824
1027
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
825
1028
  return nullptr;
@@ -838,7 +1041,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
838
1041
  {
839
1042
  try
840
1043
  {
841
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerResults", L"ErrorCode"))
1044
+ static std::optional<bool> is_property_present{};
1045
+
1046
+ if (!is_property_present.has_value())
1047
+ {
1048
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Credentials.UI.CredentialPickerResults", L"ErrorCode");
1049
+ }
1050
+
1051
+ if (!is_property_present.value())
842
1052
  {
843
1053
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
844
1054
  return nullptr;
@@ -926,7 +1136,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
926
1136
  {
927
1137
  try
928
1138
  {
929
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Credentials.UI.UserConsentVerifier", L"CheckAvailabilityAsync", 0))
1139
+ static std::optional<bool> is_overload_present{};
1140
+
1141
+ if (!is_overload_present.has_value())
1142
+ {
1143
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Credentials.UI.UserConsentVerifier", L"CheckAvailabilityAsync", 0);
1144
+ }
1145
+
1146
+ if (!is_overload_present.value())
930
1147
  {
931
1148
  py::set_arg_count_version_error(0);
932
1149
  return nullptr;
@@ -955,7 +1172,14 @@ namespace py::cpp::Windows::Security::Credentials::UI
955
1172
  {
956
1173
  try
957
1174
  {
958
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Credentials.UI.UserConsentVerifier", L"RequestVerificationAsync", 1))
1175
+ static std::optional<bool> is_overload_present{};
1176
+
1177
+ if (!is_overload_present.has_value())
1178
+ {
1179
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Credentials.UI.UserConsentVerifier", L"RequestVerificationAsync", 1);
1180
+ }
1181
+
1182
+ if (!is_overload_present.value())
959
1183
  {
960
1184
  py::set_arg_count_version_error(1);
961
1185
  return nullptr;
@@ -1078,17 +1302,20 @@ PyMODINIT_FUNC PyInit__winrt_windows_security_credentials_ui(void) noexcept
1078
1302
  return nullptr;
1079
1303
  }
1080
1304
 
1081
- if (py::register_python_type(module.get(), &type_spec_CredentialPicker, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_CredentialPicker_Static.get())) == -1)
1305
+ py::pytype_handle CredentialPicker_type{py::register_python_type(module.get(), &type_spec_CredentialPicker, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_CredentialPicker_Static.get()))};
1306
+ if (!CredentialPicker_type)
1082
1307
  {
1083
1308
  return nullptr;
1084
1309
  }
1085
1310
 
1086
- if (py::register_python_type(module.get(), &type_spec_CredentialPickerOptions, object_bases.get(), nullptr) == -1)
1311
+ py::pytype_handle CredentialPickerOptions_type{py::register_python_type(module.get(), &type_spec_CredentialPickerOptions, object_bases.get(), nullptr)};
1312
+ if (!CredentialPickerOptions_type)
1087
1313
  {
1088
1314
  return nullptr;
1089
1315
  }
1090
1316
 
1091
- if (py::register_python_type(module.get(), &type_spec_CredentialPickerResults, object_bases.get(), nullptr) == -1)
1317
+ py::pytype_handle CredentialPickerResults_type{py::register_python_type(module.get(), &type_spec_CredentialPickerResults, object_bases.get(), nullptr)};
1318
+ if (!CredentialPickerResults_type)
1092
1319
  {
1093
1320
  return nullptr;
1094
1321
  }
@@ -1099,7 +1326,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_security_credentials_ui(void) noexcept
1099
1326
  return nullptr;
1100
1327
  }
1101
1328
 
1102
- if (py::register_python_type(module.get(), &type_spec_UserConsentVerifier, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_UserConsentVerifier_Static.get())) == -1)
1329
+ py::pytype_handle UserConsentVerifier_type{py::register_python_type(module.get(), &type_spec_UserConsentVerifier, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_UserConsentVerifier_Static.get()))};
1330
+ if (!UserConsentVerifier_type)
1103
1331
  {
1104
1332
  return nullptr;
1105
1333
  }
@@ -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.3.0
2
2
 
3
- winrt-runtime==2.1.0
3
+ winrt-runtime==2.3.0
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
2
 
3
3
  import datetime
4
4
  import sys
@@ -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.3.0
2
2
 
3
3
  import enum
4
4
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Security.Credentials.UI
3
- Version: 2.1.0
3
+ Version: 2.3.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -10,12 +10,12 @@ 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.3.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Storage.Streams[all]==2.1.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Storage.Streams[all]==2.3.0; extra == "all"
19
19
 
20
20
  <!-- warning: Please don't edit this file. It was automatically generated. -->
21
21
 
@@ -0,0 +1,5 @@
1
+ winrt-runtime==2.3.0
2
+
3
+ [all]
4
+ winrt-Windows.Foundation[all]==2.3.0
5
+ winrt-Windows.Storage.Streams[all]==2.3.0
@@ -1,4 +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.Storage.Streams[all]==2.1.0
@@ -1,5 +0,0 @@
1
- winrt-runtime==2.1.0
2
-
3
- [all]
4
- winrt-Windows.Foundation[all]==2.1.0
5
- winrt-Windows.Storage.Streams[all]==2.1.0