winrt-Windows.ApplicationModel.Search.Core 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_applicationmodel_search_core-2.1.0 → winrt_windows_applicationmodel_search_core-2.3.0}/PKG-INFO +7 -7
  2. winrt_windows_applicationmodel_search_core-2.3.0/all-requirements.txt +6 -0
  3. {winrt_windows_applicationmodel_search_core-2.1.0 → winrt_windows_applicationmodel_search_core-2.3.0}/py.Windows.ApplicationModel.Search.Core.cpp +218 -32
  4. {winrt_windows_applicationmodel_search_core-2.1.0 → winrt_windows_applicationmodel_search_core-2.3.0}/pyproject.toml +3 -2
  5. winrt_windows_applicationmodel_search_core-2.3.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_applicationmodel_search_core-2.1.0 → winrt_windows_applicationmodel_search_core-2.3.0}/requirements.txt +2 -2
  7. {winrt_windows_applicationmodel_search_core-2.1.0 → winrt_windows_applicationmodel_search_core-2.3.0}/winrt/_winrt_windows_applicationmodel_search_core.pyi +1 -1
  8. {winrt_windows_applicationmodel_search_core-2.1.0 → winrt_windows_applicationmodel_search_core-2.3.0}/winrt/windows/applicationmodel/search/core/__init__.py +1 -1
  9. {winrt_windows_applicationmodel_search_core-2.1.0 → winrt_windows_applicationmodel_search_core-2.3.0}/winrt_Windows.ApplicationModel.Search.Core.egg-info/PKG-INFO +7 -7
  10. winrt_windows_applicationmodel_search_core-2.3.0/winrt_Windows.ApplicationModel.Search.Core.egg-info/requires.txt +7 -0
  11. winrt_windows_applicationmodel_search_core-2.1.0/all-requirements.txt +0 -6
  12. winrt_windows_applicationmodel_search_core-2.1.0/pywinrt-version.txt +0 -1
  13. winrt_windows_applicationmodel_search_core-2.1.0/winrt_Windows.ApplicationModel.Search.Core.egg-info/requires.txt +0 -7
  14. {winrt_windows_applicationmodel_search_core-2.1.0 → winrt_windows_applicationmodel_search_core-2.3.0}/README.md +0 -0
  15. {winrt_windows_applicationmodel_search_core-2.1.0 → winrt_windows_applicationmodel_search_core-2.3.0}/setup.cfg +0 -0
  16. {winrt_windows_applicationmodel_search_core-2.1.0 → winrt_windows_applicationmodel_search_core-2.3.0}/setup.py +0 -0
  17. {winrt_windows_applicationmodel_search_core-2.1.0 → winrt_windows_applicationmodel_search_core-2.3.0}/winrt/windows/applicationmodel/search/core/py.typed +0 -0
  18. {winrt_windows_applicationmodel_search_core-2.1.0 → winrt_windows_applicationmodel_search_core-2.3.0}/winrt_Windows.ApplicationModel.Search.Core.egg-info/SOURCES.txt +0 -0
  19. {winrt_windows_applicationmodel_search_core-2.1.0 → winrt_windows_applicationmodel_search_core-2.3.0}/winrt_Windows.ApplicationModel.Search.Core.egg-info/dependency_links.txt +0 -0
  20. {winrt_windows_applicationmodel_search_core-2.1.0 → winrt_windows_applicationmodel_search_core-2.3.0}/winrt_Windows.ApplicationModel.Search.Core.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.ApplicationModel.Search.Core
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,14 +10,14 @@ 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.ApplicationModel.Search[all]==2.1.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
19
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.1.0; extra == "all"
20
- Requires-Dist: winrt-Windows.Storage.Streams[all]==2.1.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.ApplicationModel.Search[all]==2.3.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.3.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.Storage.Streams[all]==2.3.0; extra == "all"
21
21
 
22
22
  <!-- warning: Please don't edit this file. It was automatically generated. -->
23
23
 
@@ -0,0 +1,6 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
+
3
+ winrt-Windows.ApplicationModel.Search[all]==2.3.0
4
+ winrt-Windows.Foundation[all]==2.3.0
5
+ winrt-Windows.Foundation.Collections[all]==2.3.0
6
+ winrt-Windows.Storage.Streams[all]==2.3.0
@@ -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.ApplicationModel.Search.Core.h"
4
4
 
@@ -91,7 +91,14 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
91
91
  {
92
92
  try
93
93
  {
94
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestion", L"DetailText"))
94
+ static std::optional<bool> is_property_present{};
95
+
96
+ if (!is_property_present.has_value())
97
+ {
98
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestion", L"DetailText");
99
+ }
100
+
101
+ if (!is_property_present.value())
95
102
  {
96
103
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
97
104
  return nullptr;
@@ -110,7 +117,14 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
110
117
  {
111
118
  try
112
119
  {
113
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestion", L"Image"))
120
+ static std::optional<bool> is_property_present{};
121
+
122
+ if (!is_property_present.has_value())
123
+ {
124
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestion", L"Image");
125
+ }
126
+
127
+ if (!is_property_present.value())
114
128
  {
115
129
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
116
130
  return nullptr;
@@ -129,7 +143,14 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
129
143
  {
130
144
  try
131
145
  {
132
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestion", L"ImageAlternateText"))
146
+ static std::optional<bool> is_property_present{};
147
+
148
+ if (!is_property_present.has_value())
149
+ {
150
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestion", L"ImageAlternateText");
151
+ }
152
+
153
+ if (!is_property_present.value())
133
154
  {
134
155
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
135
156
  return nullptr;
@@ -148,7 +169,14 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
148
169
  {
149
170
  try
150
171
  {
151
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestion", L"Kind"))
172
+ static std::optional<bool> is_property_present{};
173
+
174
+ if (!is_property_present.has_value())
175
+ {
176
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestion", L"Kind");
177
+ }
178
+
179
+ if (!is_property_present.value())
152
180
  {
153
181
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
154
182
  return nullptr;
@@ -167,7 +195,14 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
167
195
  {
168
196
  try
169
197
  {
170
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestion", L"Tag"))
198
+ static std::optional<bool> is_property_present{};
199
+
200
+ if (!is_property_present.has_value())
201
+ {
202
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestion", L"Tag");
203
+ }
204
+
205
+ if (!is_property_present.value())
171
206
  {
172
207
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
173
208
  return nullptr;
@@ -186,7 +221,14 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
186
221
  {
187
222
  try
188
223
  {
189
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestion", L"Text"))
224
+ static std::optional<bool> is_property_present{};
225
+
226
+ if (!is_property_present.has_value())
227
+ {
228
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestion", L"Text");
229
+ }
230
+
231
+ if (!is_property_present.value())
190
232
  {
191
233
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
192
234
  return nullptr;
@@ -271,7 +313,7 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
271
313
  {
272
314
  try
273
315
  {
274
- winrt::Windows::ApplicationModel::Search::Core::SearchSuggestionManager instance{ };
316
+ winrt::Windows::ApplicationModel::Search::Core::SearchSuggestionManager instance{};
275
317
  return py::wrap(instance, type);
276
318
  }
277
319
  catch (...)
@@ -303,7 +345,14 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
303
345
  {
304
346
  try
305
347
  {
306
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"AddToHistory", 1))
348
+ static std::optional<bool> is_overload_present{};
349
+
350
+ if (!is_overload_present.has_value())
351
+ {
352
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"AddToHistory", 1);
353
+ }
354
+
355
+ if (!is_overload_present.value())
307
356
  {
308
357
  py::set_arg_count_version_error(1);
309
358
  return nullptr;
@@ -324,7 +373,14 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
324
373
  {
325
374
  try
326
375
  {
327
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"AddToHistory", 2))
376
+ static std::optional<bool> is_overload_present{};
377
+
378
+ if (!is_overload_present.has_value())
379
+ {
380
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"AddToHistory", 2);
381
+ }
382
+
383
+ if (!is_overload_present.value())
328
384
  {
329
385
  py::set_arg_count_version_error(2);
330
386
  return nullptr;
@@ -357,7 +413,14 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
357
413
  {
358
414
  try
359
415
  {
360
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"ClearHistory", 0))
416
+ static std::optional<bool> is_overload_present{};
417
+
418
+ if (!is_overload_present.has_value())
419
+ {
420
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"ClearHistory", 0);
421
+ }
422
+
423
+ if (!is_overload_present.value())
361
424
  {
362
425
  py::set_arg_count_version_error(0);
363
426
  return nullptr;
@@ -387,7 +450,14 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
387
450
  {
388
451
  try
389
452
  {
390
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"SetLocalContentSuggestionSettings", 1))
453
+ static std::optional<bool> is_overload_present{};
454
+
455
+ if (!is_overload_present.has_value())
456
+ {
457
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"SetLocalContentSuggestionSettings", 1);
458
+ }
459
+
460
+ if (!is_overload_present.value())
391
461
  {
392
462
  py::set_arg_count_version_error(1);
393
463
  return nullptr;
@@ -419,7 +489,14 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
419
489
  {
420
490
  try
421
491
  {
422
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"SetQuery", 1))
492
+ static std::optional<bool> is_overload_present{};
493
+
494
+ if (!is_overload_present.has_value())
495
+ {
496
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"SetQuery", 1);
497
+ }
498
+
499
+ if (!is_overload_present.value())
423
500
  {
424
501
  py::set_arg_count_version_error(1);
425
502
  return nullptr;
@@ -440,7 +517,14 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
440
517
  {
441
518
  try
442
519
  {
443
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"SetQuery", 2))
520
+ static std::optional<bool> is_overload_present{};
521
+
522
+ if (!is_overload_present.has_value())
523
+ {
524
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"SetQuery", 2);
525
+ }
526
+
527
+ if (!is_overload_present.value())
444
528
  {
445
529
  py::set_arg_count_version_error(2);
446
530
  return nullptr;
@@ -462,7 +546,14 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
462
546
  {
463
547
  try
464
548
  {
465
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"SetQuery", 3))
549
+ static std::optional<bool> is_overload_present{};
550
+
551
+ if (!is_overload_present.has_value())
552
+ {
553
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"SetQuery", 3);
554
+ }
555
+
556
+ if (!is_overload_present.value())
466
557
  {
467
558
  py::set_arg_count_version_error(3);
468
559
  return nullptr;
@@ -492,7 +583,14 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
492
583
  {
493
584
  try
494
585
  {
495
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"SearchHistoryEnabled"))
586
+ static std::optional<bool> is_property_present{};
587
+
588
+ if (!is_property_present.has_value())
589
+ {
590
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"SearchHistoryEnabled");
591
+ }
592
+
593
+ if (!is_property_present.value())
496
594
  {
497
595
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
498
596
  return nullptr;
@@ -517,7 +615,14 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
517
615
 
518
616
  try
519
617
  {
520
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"SearchHistoryEnabled"))
618
+ static std::optional<bool> is_property_present{};
619
+
620
+ if (!is_property_present.has_value())
621
+ {
622
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"SearchHistoryEnabled");
623
+ }
624
+
625
+ if (!is_property_present.value())
521
626
  {
522
627
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
523
628
  return -1;
@@ -539,7 +644,14 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
539
644
  {
540
645
  try
541
646
  {
542
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"SearchHistoryContext"))
647
+ static std::optional<bool> is_property_present{};
648
+
649
+ if (!is_property_present.has_value())
650
+ {
651
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"SearchHistoryContext");
652
+ }
653
+
654
+ if (!is_property_present.value())
543
655
  {
544
656
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
545
657
  return nullptr;
@@ -564,7 +676,14 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
564
676
 
565
677
  try
566
678
  {
567
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"SearchHistoryContext"))
679
+ static std::optional<bool> is_property_present{};
680
+
681
+ if (!is_property_present.has_value())
682
+ {
683
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"SearchHistoryContext");
684
+ }
685
+
686
+ if (!is_property_present.value())
568
687
  {
569
688
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
570
689
  return -1;
@@ -586,7 +705,14 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
586
705
  {
587
706
  try
588
707
  {
589
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"Suggestions"))
708
+ static std::optional<bool> is_property_present{};
709
+
710
+ if (!is_property_present.has_value())
711
+ {
712
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"Suggestions");
713
+ }
714
+
715
+ if (!is_property_present.value())
590
716
  {
591
717
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
592
718
  return nullptr;
@@ -605,7 +731,14 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
605
731
  {
606
732
  try
607
733
  {
608
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"RequestingFocusOnKeyboardInput"))
734
+ static std::optional<bool> is_event_present{};
735
+
736
+ if (!is_event_present.has_value())
737
+ {
738
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"RequestingFocusOnKeyboardInput");
739
+ }
740
+
741
+ if (!is_event_present.value())
609
742
  {
610
743
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
611
744
  return nullptr;
@@ -626,7 +759,14 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
626
759
  {
627
760
  try
628
761
  {
629
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"RequestingFocusOnKeyboardInput"))
762
+ static std::optional<bool> is_event_present{};
763
+
764
+ if (!is_event_present.has_value())
765
+ {
766
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"RequestingFocusOnKeyboardInput");
767
+ }
768
+
769
+ if (!is_event_present.value())
630
770
  {
631
771
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
632
772
  return nullptr;
@@ -648,7 +788,14 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
648
788
  {
649
789
  try
650
790
  {
651
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"SuggestionsRequested"))
791
+ static std::optional<bool> is_event_present{};
792
+
793
+ if (!is_event_present.has_value())
794
+ {
795
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"SuggestionsRequested");
796
+ }
797
+
798
+ if (!is_event_present.value())
652
799
  {
653
800
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
654
801
  return nullptr;
@@ -669,7 +816,14 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
669
816
  {
670
817
  try
671
818
  {
672
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"SuggestionsRequested"))
819
+ static std::optional<bool> is_event_present{};
820
+
821
+ if (!is_event_present.has_value())
822
+ {
823
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager", L"SuggestionsRequested");
824
+ }
825
+
826
+ if (!is_event_present.value())
673
827
  {
674
828
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
675
829
  return nullptr;
@@ -768,7 +922,14 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
768
922
  {
769
923
  try
770
924
  {
771
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionsRequestedEventArgs", L"Language"))
925
+ static std::optional<bool> is_property_present{};
926
+
927
+ if (!is_property_present.has_value())
928
+ {
929
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionsRequestedEventArgs", L"Language");
930
+ }
931
+
932
+ if (!is_property_present.value())
772
933
  {
773
934
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
774
935
  return nullptr;
@@ -787,7 +948,14 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
787
948
  {
788
949
  try
789
950
  {
790
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionsRequestedEventArgs", L"LinguisticDetails"))
951
+ static std::optional<bool> is_property_present{};
952
+
953
+ if (!is_property_present.has_value())
954
+ {
955
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionsRequestedEventArgs", L"LinguisticDetails");
956
+ }
957
+
958
+ if (!is_property_present.value())
791
959
  {
792
960
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
793
961
  return nullptr;
@@ -806,7 +974,14 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
806
974
  {
807
975
  try
808
976
  {
809
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionsRequestedEventArgs", L"QueryText"))
977
+ static std::optional<bool> is_property_present{};
978
+
979
+ if (!is_property_present.has_value())
980
+ {
981
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionsRequestedEventArgs", L"QueryText");
982
+ }
983
+
984
+ if (!is_property_present.value())
810
985
  {
811
986
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
812
987
  return nullptr;
@@ -825,7 +1000,14 @@ namespace py::cpp::Windows::ApplicationModel::Search::Core
825
1000
  {
826
1001
  try
827
1002
  {
828
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionsRequestedEventArgs", L"Request"))
1003
+ static std::optional<bool> is_property_present{};
1004
+
1005
+ if (!is_property_present.has_value())
1006
+ {
1007
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Search.Core.SearchSuggestionsRequestedEventArgs", L"Request");
1008
+ }
1009
+
1010
+ if (!is_property_present.value())
829
1011
  {
830
1012
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
831
1013
  return nullptr;
@@ -938,22 +1120,26 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_search_core(void) noexcept
938
1120
  return nullptr;
939
1121
  }
940
1122
 
941
- if (py::register_python_type(module.get(), &type_spec_RequestingFocusOnKeyboardInputEventArgs, object_bases.get(), nullptr) == -1)
1123
+ py::pytype_handle RequestingFocusOnKeyboardInputEventArgs_type{py::register_python_type(module.get(), &type_spec_RequestingFocusOnKeyboardInputEventArgs, object_bases.get(), nullptr)};
1124
+ if (!RequestingFocusOnKeyboardInputEventArgs_type)
942
1125
  {
943
1126
  return nullptr;
944
1127
  }
945
1128
 
946
- if (py::register_python_type(module.get(), &type_spec_SearchSuggestion, object_bases.get(), nullptr) == -1)
1129
+ py::pytype_handle SearchSuggestion_type{py::register_python_type(module.get(), &type_spec_SearchSuggestion, object_bases.get(), nullptr)};
1130
+ if (!SearchSuggestion_type)
947
1131
  {
948
1132
  return nullptr;
949
1133
  }
950
1134
 
951
- if (py::register_python_type(module.get(), &type_spec_SearchSuggestionManager, object_bases.get(), nullptr) == -1)
1135
+ py::pytype_handle SearchSuggestionManager_type{py::register_python_type(module.get(), &type_spec_SearchSuggestionManager, object_bases.get(), nullptr)};
1136
+ if (!SearchSuggestionManager_type)
952
1137
  {
953
1138
  return nullptr;
954
1139
  }
955
1140
 
956
- if (py::register_python_type(module.get(), &type_spec_SearchSuggestionsRequestedEventArgs, object_bases.get(), nullptr) == -1)
1141
+ py::pytype_handle SearchSuggestionsRequestedEventArgs_type{py::register_python_type(module.get(), &type_spec_SearchSuggestionsRequestedEventArgs, object_bases.get(), nullptr)};
1142
+ if (!SearchSuggestionsRequestedEventArgs_type)
957
1143
  {
958
1144
  return nullptr;
959
1145
  }
@@ -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.ApplicationModel.Search.Core
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,14 +10,14 @@ 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.ApplicationModel.Search[all]==2.1.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
19
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.1.0; extra == "all"
20
- Requires-Dist: winrt-Windows.Storage.Streams[all]==2.1.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.ApplicationModel.Search[all]==2.3.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.3.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.Storage.Streams[all]==2.3.0; extra == "all"
21
21
 
22
22
  <!-- warning: Please don't edit this file. It was automatically generated. -->
23
23
 
@@ -0,0 +1,7 @@
1
+ winrt-runtime==2.3.0
2
+
3
+ [all]
4
+ winrt-Windows.ApplicationModel.Search[all]==2.3.0
5
+ winrt-Windows.Foundation[all]==2.3.0
6
+ winrt-Windows.Foundation.Collections[all]==2.3.0
7
+ winrt-Windows.Storage.Streams[all]==2.3.0
@@ -1,6 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
-
3
- winrt-Windows.ApplicationModel.Search[all]==2.1.0
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
@@ -1,7 +0,0 @@
1
- winrt-runtime==2.1.0
2
-
3
- [all]
4
- winrt-Windows.ApplicationModel.Search[all]==2.1.0
5
- winrt-Windows.Foundation[all]==2.1.0
6
- winrt-Windows.Foundation.Collections[all]==2.1.0
7
- winrt-Windows.Storage.Streams[all]==2.1.0