winrt-Windows.Storage.Pickers.Provider 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_storage_pickers_provider-2.1.0 → winrt_windows_storage_pickers_provider-2.3.0}/PKG-INFO +6 -6
  2. winrt_windows_storage_pickers_provider-2.3.0/all-requirements.txt +5 -0
  3. {winrt_windows_storage_pickers_provider-2.1.0 → winrt_windows_storage_pickers_provider-2.3.0}/py.Windows.Storage.Pickers.Provider.cpp +291 -44
  4. {winrt_windows_storage_pickers_provider-2.1.0 → winrt_windows_storage_pickers_provider-2.3.0}/pyproject.toml +3 -2
  5. winrt_windows_storage_pickers_provider-2.3.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_storage_pickers_provider-2.1.0 → winrt_windows_storage_pickers_provider-2.3.0}/requirements.txt +2 -2
  7. {winrt_windows_storage_pickers_provider-2.1.0 → winrt_windows_storage_pickers_provider-2.3.0}/winrt/_winrt_windows_storage_pickers_provider.pyi +1 -1
  8. {winrt_windows_storage_pickers_provider-2.1.0 → winrt_windows_storage_pickers_provider-2.3.0}/winrt/windows/storage/pickers/provider/__init__.py +1 -1
  9. {winrt_windows_storage_pickers_provider-2.1.0 → winrt_windows_storage_pickers_provider-2.3.0}/winrt_Windows.Storage.Pickers.Provider.egg-info/PKG-INFO +6 -6
  10. winrt_windows_storage_pickers_provider-2.3.0/winrt_Windows.Storage.Pickers.Provider.egg-info/requires.txt +6 -0
  11. winrt_windows_storage_pickers_provider-2.1.0/all-requirements.txt +0 -5
  12. winrt_windows_storage_pickers_provider-2.1.0/pywinrt-version.txt +0 -1
  13. winrt_windows_storage_pickers_provider-2.1.0/winrt_Windows.Storage.Pickers.Provider.egg-info/requires.txt +0 -6
  14. {winrt_windows_storage_pickers_provider-2.1.0 → winrt_windows_storage_pickers_provider-2.3.0}/README.md +0 -0
  15. {winrt_windows_storage_pickers_provider-2.1.0 → winrt_windows_storage_pickers_provider-2.3.0}/setup.cfg +0 -0
  16. {winrt_windows_storage_pickers_provider-2.1.0 → winrt_windows_storage_pickers_provider-2.3.0}/setup.py +0 -0
  17. {winrt_windows_storage_pickers_provider-2.1.0 → winrt_windows_storage_pickers_provider-2.3.0}/winrt/windows/storage/pickers/provider/py.typed +0 -0
  18. {winrt_windows_storage_pickers_provider-2.1.0 → winrt_windows_storage_pickers_provider-2.3.0}/winrt_Windows.Storage.Pickers.Provider.egg-info/SOURCES.txt +0 -0
  19. {winrt_windows_storage_pickers_provider-2.1.0 → winrt_windows_storage_pickers_provider-2.3.0}/winrt_Windows.Storage.Pickers.Provider.egg-info/dependency_links.txt +0 -0
  20. {winrt_windows_storage_pickers_provider-2.1.0 → winrt_windows_storage_pickers_provider-2.3.0}/winrt_Windows.Storage.Pickers.Provider.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Storage.Pickers.Provider
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,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.3.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[all]==2.1.0; 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[all]==2.3.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.3.0
2
+
3
+ winrt-Windows.Foundation[all]==2.3.0
4
+ winrt-Windows.Foundation.Collections[all]==2.3.0
5
+ winrt-Windows.Storage[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.Storage.Pickers.Provider.h"
4
4
 
@@ -29,7 +29,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
29
29
  {
30
30
  try
31
31
  {
32
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Pickers.Provider.FileOpenPickerUI", L"AddFile", 2))
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.Storage.Pickers.Provider.FileOpenPickerUI", L"AddFile", 2);
37
+ }
38
+
39
+ if (!is_overload_present.value())
33
40
  {
34
41
  py::set_arg_count_version_error(2);
35
42
  return nullptr;
@@ -61,7 +68,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
61
68
  {
62
69
  try
63
70
  {
64
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Pickers.Provider.FileOpenPickerUI", L"CanAddFile", 1))
71
+ static std::optional<bool> is_overload_present{};
72
+
73
+ if (!is_overload_present.has_value())
74
+ {
75
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Pickers.Provider.FileOpenPickerUI", L"CanAddFile", 1);
76
+ }
77
+
78
+ if (!is_overload_present.value())
65
79
  {
66
80
  py::set_arg_count_version_error(1);
67
81
  return nullptr;
@@ -92,7 +106,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
92
106
  {
93
107
  try
94
108
  {
95
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Pickers.Provider.FileOpenPickerUI", L"ContainsFile", 1))
109
+ static std::optional<bool> is_overload_present{};
110
+
111
+ if (!is_overload_present.has_value())
112
+ {
113
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Pickers.Provider.FileOpenPickerUI", L"ContainsFile", 1);
114
+ }
115
+
116
+ if (!is_overload_present.value())
96
117
  {
97
118
  py::set_arg_count_version_error(1);
98
119
  return nullptr;
@@ -123,7 +144,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
123
144
  {
124
145
  try
125
146
  {
126
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Pickers.Provider.FileOpenPickerUI", L"RemoveFile", 1))
147
+ static std::optional<bool> is_overload_present{};
148
+
149
+ if (!is_overload_present.has_value())
150
+ {
151
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Pickers.Provider.FileOpenPickerUI", L"RemoveFile", 1);
152
+ }
153
+
154
+ if (!is_overload_present.value())
127
155
  {
128
156
  py::set_arg_count_version_error(1);
129
157
  return nullptr;
@@ -151,7 +179,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
151
179
  {
152
180
  try
153
181
  {
154
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.FileOpenPickerUI", L"Title"))
182
+ static std::optional<bool> is_property_present{};
183
+
184
+ if (!is_property_present.has_value())
185
+ {
186
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.FileOpenPickerUI", L"Title");
187
+ }
188
+
189
+ if (!is_property_present.value())
155
190
  {
156
191
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
157
192
  return nullptr;
@@ -176,7 +211,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
176
211
 
177
212
  try
178
213
  {
179
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.FileOpenPickerUI", L"Title"))
214
+ static std::optional<bool> is_property_present{};
215
+
216
+ if (!is_property_present.has_value())
217
+ {
218
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.FileOpenPickerUI", L"Title");
219
+ }
220
+
221
+ if (!is_property_present.value())
180
222
  {
181
223
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
182
224
  return -1;
@@ -198,7 +240,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
198
240
  {
199
241
  try
200
242
  {
201
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.FileOpenPickerUI", L"AllowedFileTypes"))
243
+ static std::optional<bool> is_property_present{};
244
+
245
+ if (!is_property_present.has_value())
246
+ {
247
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.FileOpenPickerUI", L"AllowedFileTypes");
248
+ }
249
+
250
+ if (!is_property_present.value())
202
251
  {
203
252
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
204
253
  return nullptr;
@@ -217,7 +266,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
217
266
  {
218
267
  try
219
268
  {
220
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.FileOpenPickerUI", L"SelectionMode"))
269
+ static std::optional<bool> is_property_present{};
270
+
271
+ if (!is_property_present.has_value())
272
+ {
273
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.FileOpenPickerUI", L"SelectionMode");
274
+ }
275
+
276
+ if (!is_property_present.value())
221
277
  {
222
278
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
223
279
  return nullptr;
@@ -236,7 +292,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
236
292
  {
237
293
  try
238
294
  {
239
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.FileOpenPickerUI", L"SettingsIdentifier"))
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.Storage.Pickers.Provider.FileOpenPickerUI", L"SettingsIdentifier");
300
+ }
301
+
302
+ if (!is_property_present.value())
240
303
  {
241
304
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
242
305
  return nullptr;
@@ -255,7 +318,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
255
318
  {
256
319
  try
257
320
  {
258
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Storage.Pickers.Provider.FileOpenPickerUI", L"Closing"))
321
+ static std::optional<bool> is_event_present{};
322
+
323
+ if (!is_event_present.has_value())
324
+ {
325
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Storage.Pickers.Provider.FileOpenPickerUI", L"Closing");
326
+ }
327
+
328
+ if (!is_event_present.value())
259
329
  {
260
330
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
261
331
  return nullptr;
@@ -276,7 +346,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
276
346
  {
277
347
  try
278
348
  {
279
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Storage.Pickers.Provider.FileOpenPickerUI", L"Closing"))
349
+ static std::optional<bool> is_event_present{};
350
+
351
+ if (!is_event_present.has_value())
352
+ {
353
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Storage.Pickers.Provider.FileOpenPickerUI", L"Closing");
354
+ }
355
+
356
+ if (!is_event_present.value())
280
357
  {
281
358
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
282
359
  return nullptr;
@@ -298,7 +375,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
298
375
  {
299
376
  try
300
377
  {
301
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Storage.Pickers.Provider.FileOpenPickerUI", L"FileRemoved"))
378
+ static std::optional<bool> is_event_present{};
379
+
380
+ if (!is_event_present.has_value())
381
+ {
382
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Storage.Pickers.Provider.FileOpenPickerUI", L"FileRemoved");
383
+ }
384
+
385
+ if (!is_event_present.value())
302
386
  {
303
387
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
304
388
  return nullptr;
@@ -319,7 +403,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
319
403
  {
320
404
  try
321
405
  {
322
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Storage.Pickers.Provider.FileOpenPickerUI", L"FileRemoved"))
406
+ static std::optional<bool> is_event_present{};
407
+
408
+ if (!is_event_present.has_value())
409
+ {
410
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Storage.Pickers.Provider.FileOpenPickerUI", L"FileRemoved");
411
+ }
412
+
413
+ if (!is_event_present.value())
323
414
  {
324
415
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
325
416
  return nullptr;
@@ -419,7 +510,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
419
510
  {
420
511
  try
421
512
  {
422
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.FileRemovedEventArgs", L"Id"))
513
+ static std::optional<bool> is_property_present{};
514
+
515
+ if (!is_property_present.has_value())
516
+ {
517
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.FileRemovedEventArgs", L"Id");
518
+ }
519
+
520
+ if (!is_property_present.value())
423
521
  {
424
522
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
425
523
  return nullptr;
@@ -509,7 +607,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
509
607
  {
510
608
  try
511
609
  {
512
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Pickers.Provider.FileSavePickerUI", L"TrySetFileName", 1))
610
+ static std::optional<bool> is_overload_present{};
611
+
612
+ if (!is_overload_present.has_value())
613
+ {
614
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Pickers.Provider.FileSavePickerUI", L"TrySetFileName", 1);
615
+ }
616
+
617
+ if (!is_overload_present.value())
513
618
  {
514
619
  py::set_arg_count_version_error(1);
515
620
  return nullptr;
@@ -536,7 +641,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
536
641
  {
537
642
  try
538
643
  {
539
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.FileSavePickerUI", L"Title"))
644
+ static std::optional<bool> is_property_present{};
645
+
646
+ if (!is_property_present.has_value())
647
+ {
648
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.FileSavePickerUI", L"Title");
649
+ }
650
+
651
+ if (!is_property_present.value())
540
652
  {
541
653
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
542
654
  return nullptr;
@@ -561,7 +673,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
561
673
 
562
674
  try
563
675
  {
564
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.FileSavePickerUI", L"Title"))
676
+ static std::optional<bool> is_property_present{};
677
+
678
+ if (!is_property_present.has_value())
679
+ {
680
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.FileSavePickerUI", L"Title");
681
+ }
682
+
683
+ if (!is_property_present.value())
565
684
  {
566
685
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
567
686
  return -1;
@@ -583,7 +702,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
583
702
  {
584
703
  try
585
704
  {
586
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.FileSavePickerUI", L"AllowedFileTypes"))
705
+ static std::optional<bool> is_property_present{};
706
+
707
+ if (!is_property_present.has_value())
708
+ {
709
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.FileSavePickerUI", L"AllowedFileTypes");
710
+ }
711
+
712
+ if (!is_property_present.value())
587
713
  {
588
714
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
589
715
  return nullptr;
@@ -602,7 +728,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
602
728
  {
603
729
  try
604
730
  {
605
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.FileSavePickerUI", L"FileName"))
731
+ static std::optional<bool> is_property_present{};
732
+
733
+ if (!is_property_present.has_value())
734
+ {
735
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.FileSavePickerUI", L"FileName");
736
+ }
737
+
738
+ if (!is_property_present.value())
606
739
  {
607
740
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
608
741
  return nullptr;
@@ -621,7 +754,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
621
754
  {
622
755
  try
623
756
  {
624
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.FileSavePickerUI", L"SettingsIdentifier"))
757
+ static std::optional<bool> is_property_present{};
758
+
759
+ if (!is_property_present.has_value())
760
+ {
761
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.FileSavePickerUI", L"SettingsIdentifier");
762
+ }
763
+
764
+ if (!is_property_present.value())
625
765
  {
626
766
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
627
767
  return nullptr;
@@ -640,7 +780,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
640
780
  {
641
781
  try
642
782
  {
643
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Storage.Pickers.Provider.FileSavePickerUI", L"FileNameChanged"))
783
+ static std::optional<bool> is_event_present{};
784
+
785
+ if (!is_event_present.has_value())
786
+ {
787
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Storage.Pickers.Provider.FileSavePickerUI", L"FileNameChanged");
788
+ }
789
+
790
+ if (!is_event_present.value())
644
791
  {
645
792
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
646
793
  return nullptr;
@@ -661,7 +808,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
661
808
  {
662
809
  try
663
810
  {
664
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Storage.Pickers.Provider.FileSavePickerUI", L"FileNameChanged"))
811
+ static std::optional<bool> is_event_present{};
812
+
813
+ if (!is_event_present.has_value())
814
+ {
815
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Storage.Pickers.Provider.FileSavePickerUI", L"FileNameChanged");
816
+ }
817
+
818
+ if (!is_event_present.value())
665
819
  {
666
820
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
667
821
  return nullptr;
@@ -683,7 +837,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
683
837
  {
684
838
  try
685
839
  {
686
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Storage.Pickers.Provider.FileSavePickerUI", L"TargetFileRequested"))
840
+ static std::optional<bool> is_event_present{};
841
+
842
+ if (!is_event_present.has_value())
843
+ {
844
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Storage.Pickers.Provider.FileSavePickerUI", L"TargetFileRequested");
845
+ }
846
+
847
+ if (!is_event_present.value())
687
848
  {
688
849
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
689
850
  return nullptr;
@@ -704,7 +865,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
704
865
  {
705
866
  try
706
867
  {
707
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Storage.Pickers.Provider.FileSavePickerUI", L"TargetFileRequested"))
868
+ static std::optional<bool> is_event_present{};
869
+
870
+ if (!is_event_present.has_value())
871
+ {
872
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Storage.Pickers.Provider.FileSavePickerUI", L"TargetFileRequested");
873
+ }
874
+
875
+ if (!is_event_present.value())
708
876
  {
709
877
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
710
878
  return nullptr;
@@ -805,7 +973,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
805
973
  {
806
974
  try
807
975
  {
808
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Pickers.Provider.PickerClosingDeferral", L"Complete", 0))
976
+ static std::optional<bool> is_overload_present{};
977
+
978
+ if (!is_overload_present.has_value())
979
+ {
980
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Pickers.Provider.PickerClosingDeferral", L"Complete", 0);
981
+ }
982
+
983
+ if (!is_overload_present.value())
809
984
  {
810
985
  py::set_arg_count_version_error(0);
811
986
  return nullptr;
@@ -898,7 +1073,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
898
1073
  {
899
1074
  try
900
1075
  {
901
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.PickerClosingEventArgs", L"ClosingOperation"))
1076
+ static std::optional<bool> is_property_present{};
1077
+
1078
+ if (!is_property_present.has_value())
1079
+ {
1080
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.PickerClosingEventArgs", L"ClosingOperation");
1081
+ }
1082
+
1083
+ if (!is_property_present.value())
902
1084
  {
903
1085
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
904
1086
  return nullptr;
@@ -917,7 +1099,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
917
1099
  {
918
1100
  try
919
1101
  {
920
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.PickerClosingEventArgs", L"IsCanceled"))
1102
+ static std::optional<bool> is_property_present{};
1103
+
1104
+ if (!is_property_present.has_value())
1105
+ {
1106
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.PickerClosingEventArgs", L"IsCanceled");
1107
+ }
1108
+
1109
+ if (!is_property_present.value())
921
1110
  {
922
1111
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
923
1112
  return nullptr;
@@ -1008,7 +1197,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
1008
1197
  {
1009
1198
  try
1010
1199
  {
1011
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Pickers.Provider.PickerClosingOperation", L"GetDeferral", 0))
1200
+ static std::optional<bool> is_overload_present{};
1201
+
1202
+ if (!is_overload_present.has_value())
1203
+ {
1204
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Pickers.Provider.PickerClosingOperation", L"GetDeferral", 0);
1205
+ }
1206
+
1207
+ if (!is_overload_present.value())
1012
1208
  {
1013
1209
  py::set_arg_count_version_error(0);
1014
1210
  return nullptr;
@@ -1033,7 +1229,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
1033
1229
  {
1034
1230
  try
1035
1231
  {
1036
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.PickerClosingOperation", L"Deadline"))
1232
+ static std::optional<bool> is_property_present{};
1233
+
1234
+ if (!is_property_present.has_value())
1235
+ {
1236
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.PickerClosingOperation", L"Deadline");
1237
+ }
1238
+
1239
+ if (!is_property_present.value())
1037
1240
  {
1038
1241
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1039
1242
  return nullptr;
@@ -1124,7 +1327,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
1124
1327
  {
1125
1328
  try
1126
1329
  {
1127
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Pickers.Provider.TargetFileRequest", L"GetDeferral", 0))
1330
+ static std::optional<bool> is_overload_present{};
1331
+
1332
+ if (!is_overload_present.has_value())
1333
+ {
1334
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Pickers.Provider.TargetFileRequest", L"GetDeferral", 0);
1335
+ }
1336
+
1337
+ if (!is_overload_present.value())
1128
1338
  {
1129
1339
  py::set_arg_count_version_error(0);
1130
1340
  return nullptr;
@@ -1149,7 +1359,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
1149
1359
  {
1150
1360
  try
1151
1361
  {
1152
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.TargetFileRequest", L"TargetFile"))
1362
+ static std::optional<bool> is_property_present{};
1363
+
1364
+ if (!is_property_present.has_value())
1365
+ {
1366
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.TargetFileRequest", L"TargetFile");
1367
+ }
1368
+
1369
+ if (!is_property_present.value())
1153
1370
  {
1154
1371
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1155
1372
  return nullptr;
@@ -1174,7 +1391,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
1174
1391
 
1175
1392
  try
1176
1393
  {
1177
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.TargetFileRequest", L"TargetFile"))
1394
+ static std::optional<bool> is_property_present{};
1395
+
1396
+ if (!is_property_present.has_value())
1397
+ {
1398
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.TargetFileRequest", L"TargetFile");
1399
+ }
1400
+
1401
+ if (!is_property_present.value())
1178
1402
  {
1179
1403
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1180
1404
  return -1;
@@ -1268,7 +1492,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
1268
1492
  {
1269
1493
  try
1270
1494
  {
1271
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Pickers.Provider.TargetFileRequestDeferral", L"Complete", 0))
1495
+ static std::optional<bool> is_overload_present{};
1496
+
1497
+ if (!is_overload_present.has_value())
1498
+ {
1499
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Pickers.Provider.TargetFileRequestDeferral", L"Complete", 0);
1500
+ }
1501
+
1502
+ if (!is_overload_present.value())
1272
1503
  {
1273
1504
  py::set_arg_count_version_error(0);
1274
1505
  return nullptr;
@@ -1361,7 +1592,14 @@ namespace py::cpp::Windows::Storage::Pickers::Provider
1361
1592
  {
1362
1593
  try
1363
1594
  {
1364
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.TargetFileRequestedEventArgs", L"Request"))
1595
+ static std::optional<bool> is_property_present{};
1596
+
1597
+ if (!is_property_present.has_value())
1598
+ {
1599
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Storage.Pickers.Provider.TargetFileRequestedEventArgs", L"Request");
1600
+ }
1601
+
1602
+ if (!is_property_present.value())
1365
1603
  {
1366
1604
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
1367
1605
  return nullptr;
@@ -1471,47 +1709,56 @@ PyMODINIT_FUNC PyInit__winrt_windows_storage_pickers_provider(void) noexcept
1471
1709
  return nullptr;
1472
1710
  }
1473
1711
 
1474
- if (py::register_python_type(module.get(), &type_spec_FileOpenPickerUI, object_bases.get(), nullptr) == -1)
1712
+ py::pytype_handle FileOpenPickerUI_type{py::register_python_type(module.get(), &type_spec_FileOpenPickerUI, object_bases.get(), nullptr)};
1713
+ if (!FileOpenPickerUI_type)
1475
1714
  {
1476
1715
  return nullptr;
1477
1716
  }
1478
1717
 
1479
- if (py::register_python_type(module.get(), &type_spec_FileRemovedEventArgs, object_bases.get(), nullptr) == -1)
1718
+ py::pytype_handle FileRemovedEventArgs_type{py::register_python_type(module.get(), &type_spec_FileRemovedEventArgs, object_bases.get(), nullptr)};
1719
+ if (!FileRemovedEventArgs_type)
1480
1720
  {
1481
1721
  return nullptr;
1482
1722
  }
1483
1723
 
1484
- if (py::register_python_type(module.get(), &type_spec_FileSavePickerUI, object_bases.get(), nullptr) == -1)
1724
+ py::pytype_handle FileSavePickerUI_type{py::register_python_type(module.get(), &type_spec_FileSavePickerUI, object_bases.get(), nullptr)};
1725
+ if (!FileSavePickerUI_type)
1485
1726
  {
1486
1727
  return nullptr;
1487
1728
  }
1488
1729
 
1489
- if (py::register_python_type(module.get(), &type_spec_PickerClosingDeferral, object_bases.get(), nullptr) == -1)
1730
+ py::pytype_handle PickerClosingDeferral_type{py::register_python_type(module.get(), &type_spec_PickerClosingDeferral, object_bases.get(), nullptr)};
1731
+ if (!PickerClosingDeferral_type)
1490
1732
  {
1491
1733
  return nullptr;
1492
1734
  }
1493
1735
 
1494
- if (py::register_python_type(module.get(), &type_spec_PickerClosingEventArgs, object_bases.get(), nullptr) == -1)
1736
+ py::pytype_handle PickerClosingEventArgs_type{py::register_python_type(module.get(), &type_spec_PickerClosingEventArgs, object_bases.get(), nullptr)};
1737
+ if (!PickerClosingEventArgs_type)
1495
1738
  {
1496
1739
  return nullptr;
1497
1740
  }
1498
1741
 
1499
- if (py::register_python_type(module.get(), &type_spec_PickerClosingOperation, object_bases.get(), nullptr) == -1)
1742
+ py::pytype_handle PickerClosingOperation_type{py::register_python_type(module.get(), &type_spec_PickerClosingOperation, object_bases.get(), nullptr)};
1743
+ if (!PickerClosingOperation_type)
1500
1744
  {
1501
1745
  return nullptr;
1502
1746
  }
1503
1747
 
1504
- if (py::register_python_type(module.get(), &type_spec_TargetFileRequest, object_bases.get(), nullptr) == -1)
1748
+ py::pytype_handle TargetFileRequest_type{py::register_python_type(module.get(), &type_spec_TargetFileRequest, object_bases.get(), nullptr)};
1749
+ if (!TargetFileRequest_type)
1505
1750
  {
1506
1751
  return nullptr;
1507
1752
  }
1508
1753
 
1509
- if (py::register_python_type(module.get(), &type_spec_TargetFileRequestDeferral, object_bases.get(), nullptr) == -1)
1754
+ py::pytype_handle TargetFileRequestDeferral_type{py::register_python_type(module.get(), &type_spec_TargetFileRequestDeferral, object_bases.get(), nullptr)};
1755
+ if (!TargetFileRequestDeferral_type)
1510
1756
  {
1511
1757
  return nullptr;
1512
1758
  }
1513
1759
 
1514
- if (py::register_python_type(module.get(), &type_spec_TargetFileRequestedEventArgs, object_bases.get(), nullptr) == -1)
1760
+ py::pytype_handle TargetFileRequestedEventArgs_type{py::register_python_type(module.get(), &type_spec_TargetFileRequestedEventArgs, object_bases.get(), nullptr)};
1761
+ if (!TargetFileRequestedEventArgs_type)
1515
1762
  {
1516
1763
  return nullptr;
1517
1764
  }
@@ -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.Storage.Pickers.Provider
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,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.3.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[all]==2.1.0; 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[all]==2.3.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.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[all]==2.3.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[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[all]==2.1.0