winrt-Windows.Perception.Spatial.Surfaces 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_perception_spatial_surfaces-2.1.0 → winrt_windows_perception_spatial_surfaces-2.3.0}/PKG-INFO +9 -9
  2. winrt_windows_perception_spatial_surfaces-2.3.0/all-requirements.txt +8 -0
  3. {winrt_windows_perception_spatial_surfaces-2.1.0 → winrt_windows_perception_spatial_surfaces-2.3.0}/py.Windows.Perception.Spatial.Surfaces.cpp +277 -41
  4. {winrt_windows_perception_spatial_surfaces-2.1.0 → winrt_windows_perception_spatial_surfaces-2.3.0}/pyproject.toml +3 -2
  5. winrt_windows_perception_spatial_surfaces-2.3.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_perception_spatial_surfaces-2.1.0 → winrt_windows_perception_spatial_surfaces-2.3.0}/requirements.txt +2 -2
  7. {winrt_windows_perception_spatial_surfaces-2.1.0 → winrt_windows_perception_spatial_surfaces-2.3.0}/winrt/_winrt_windows_perception_spatial_surfaces.pyi +1 -1
  8. {winrt_windows_perception_spatial_surfaces-2.1.0 → winrt_windows_perception_spatial_surfaces-2.3.0}/winrt/windows/perception/spatial/surfaces/__init__.py +1 -1
  9. {winrt_windows_perception_spatial_surfaces-2.1.0 → winrt_windows_perception_spatial_surfaces-2.3.0}/winrt_Windows.Perception.Spatial.Surfaces.egg-info/PKG-INFO +9 -9
  10. winrt_windows_perception_spatial_surfaces-2.3.0/winrt_Windows.Perception.Spatial.Surfaces.egg-info/requires.txt +9 -0
  11. winrt_windows_perception_spatial_surfaces-2.1.0/all-requirements.txt +0 -8
  12. winrt_windows_perception_spatial_surfaces-2.1.0/pywinrt-version.txt +0 -1
  13. winrt_windows_perception_spatial_surfaces-2.1.0/winrt_Windows.Perception.Spatial.Surfaces.egg-info/requires.txt +0 -9
  14. {winrt_windows_perception_spatial_surfaces-2.1.0 → winrt_windows_perception_spatial_surfaces-2.3.0}/README.md +0 -0
  15. {winrt_windows_perception_spatial_surfaces-2.1.0 → winrt_windows_perception_spatial_surfaces-2.3.0}/setup.cfg +0 -0
  16. {winrt_windows_perception_spatial_surfaces-2.1.0 → winrt_windows_perception_spatial_surfaces-2.3.0}/setup.py +0 -0
  17. {winrt_windows_perception_spatial_surfaces-2.1.0 → winrt_windows_perception_spatial_surfaces-2.3.0}/winrt/windows/perception/spatial/surfaces/py.typed +0 -0
  18. {winrt_windows_perception_spatial_surfaces-2.1.0 → winrt_windows_perception_spatial_surfaces-2.3.0}/winrt_Windows.Perception.Spatial.Surfaces.egg-info/SOURCES.txt +0 -0
  19. {winrt_windows_perception_spatial_surfaces-2.1.0 → winrt_windows_perception_spatial_surfaces-2.3.0}/winrt_Windows.Perception.Spatial.Surfaces.egg-info/dependency_links.txt +0 -0
  20. {winrt_windows_perception_spatial_surfaces-2.1.0 → winrt_windows_perception_spatial_surfaces-2.3.0}/winrt_Windows.Perception.Spatial.Surfaces.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Perception.Spatial.Surfaces
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,16 +10,16 @@ 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.Foundation.Numerics[all]==2.1.0; extra == "all"
20
- Requires-Dist: winrt-Windows.Graphics.DirectX[all]==2.1.0; extra == "all"
21
- Requires-Dist: winrt-Windows.Perception.Spatial[all]==2.1.0; extra == "all"
22
- 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.Foundation.Collections[all]==2.3.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Foundation.Numerics[all]==2.3.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.Graphics.DirectX[all]==2.3.0; extra == "all"
21
+ Requires-Dist: winrt-Windows.Perception.Spatial[all]==2.3.0; extra == "all"
22
+ Requires-Dist: winrt-Windows.Storage.Streams[all]==2.3.0; extra == "all"
23
23
 
24
24
  <!-- warning: Please don't edit this file. It was automatically generated. -->
25
25
 
@@ -0,0 +1,8 @@
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.Foundation.Numerics[all]==2.3.0
6
+ winrt-Windows.Graphics.DirectX[all]==2.3.0
7
+ winrt-Windows.Perception.Spatial[all]==2.3.0
8
+ 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.Perception.Spatial.Surfaces.h"
4
4
 
@@ -29,7 +29,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
29
29
  {
30
30
  try
31
31
  {
32
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceInfo", L"TryComputeLatestMeshAsync", 1))
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.Perception.Spatial.Surfaces.SpatialSurfaceInfo", L"TryComputeLatestMeshAsync", 1);
37
+ }
38
+
39
+ if (!is_overload_present.value())
33
40
  {
34
41
  py::set_arg_count_version_error(1);
35
42
  return nullptr;
@@ -49,7 +56,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
49
56
  {
50
57
  try
51
58
  {
52
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceInfo", L"TryComputeLatestMeshAsync", 2))
59
+ static std::optional<bool> is_overload_present{};
60
+
61
+ if (!is_overload_present.has_value())
62
+ {
63
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceInfo", L"TryComputeLatestMeshAsync", 2);
64
+ }
65
+
66
+ if (!is_overload_present.value())
53
67
  {
54
68
  py::set_arg_count_version_error(2);
55
69
  return nullptr;
@@ -81,7 +95,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
81
95
  {
82
96
  try
83
97
  {
84
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceInfo", L"TryGetBounds", 1))
98
+ static std::optional<bool> is_overload_present{};
99
+
100
+ if (!is_overload_present.has_value())
101
+ {
102
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceInfo", L"TryGetBounds", 1);
103
+ }
104
+
105
+ if (!is_overload_present.value())
85
106
  {
86
107
  py::set_arg_count_version_error(1);
87
108
  return nullptr;
@@ -108,7 +129,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
108
129
  {
109
130
  try
110
131
  {
111
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceInfo", L"Id"))
132
+ static std::optional<bool> is_property_present{};
133
+
134
+ if (!is_property_present.has_value())
135
+ {
136
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceInfo", L"Id");
137
+ }
138
+
139
+ if (!is_property_present.value())
112
140
  {
113
141
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
114
142
  return nullptr;
@@ -127,7 +155,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
127
155
  {
128
156
  try
129
157
  {
130
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceInfo", L"UpdateTime"))
158
+ static std::optional<bool> is_property_present{};
159
+
160
+ if (!is_property_present.has_value())
161
+ {
162
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceInfo", L"UpdateTime");
163
+ }
164
+
165
+ if (!is_property_present.value())
131
166
  {
132
167
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
133
168
  return nullptr;
@@ -216,7 +251,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
216
251
  {
217
252
  try
218
253
  {
219
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMesh", L"CoordinateSystem"))
254
+ static std::optional<bool> is_property_present{};
255
+
256
+ if (!is_property_present.has_value())
257
+ {
258
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMesh", L"CoordinateSystem");
259
+ }
260
+
261
+ if (!is_property_present.value())
220
262
  {
221
263
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
222
264
  return nullptr;
@@ -235,7 +277,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
235
277
  {
236
278
  try
237
279
  {
238
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMesh", L"SurfaceInfo"))
280
+ static std::optional<bool> is_property_present{};
281
+
282
+ if (!is_property_present.has_value())
283
+ {
284
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMesh", L"SurfaceInfo");
285
+ }
286
+
287
+ if (!is_property_present.value())
239
288
  {
240
289
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
241
290
  return nullptr;
@@ -254,7 +303,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
254
303
  {
255
304
  try
256
305
  {
257
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMesh", L"TriangleIndices"))
306
+ static std::optional<bool> is_property_present{};
307
+
308
+ if (!is_property_present.has_value())
309
+ {
310
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMesh", L"TriangleIndices");
311
+ }
312
+
313
+ if (!is_property_present.value())
258
314
  {
259
315
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
260
316
  return nullptr;
@@ -273,7 +329,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
273
329
  {
274
330
  try
275
331
  {
276
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMesh", L"VertexNormals"))
332
+ static std::optional<bool> is_property_present{};
333
+
334
+ if (!is_property_present.has_value())
335
+ {
336
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMesh", L"VertexNormals");
337
+ }
338
+
339
+ if (!is_property_present.value())
277
340
  {
278
341
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
279
342
  return nullptr;
@@ -292,7 +355,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
292
355
  {
293
356
  try
294
357
  {
295
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMesh", L"VertexPositionScale"))
358
+ static std::optional<bool> is_property_present{};
359
+
360
+ if (!is_property_present.has_value())
361
+ {
362
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMesh", L"VertexPositionScale");
363
+ }
364
+
365
+ if (!is_property_present.value())
296
366
  {
297
367
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
298
368
  return nullptr;
@@ -311,7 +381,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
311
381
  {
312
382
  try
313
383
  {
314
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMesh", L"VertexPositions"))
384
+ static std::optional<bool> is_property_present{};
385
+
386
+ if (!is_property_present.has_value())
387
+ {
388
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMesh", L"VertexPositions");
389
+ }
390
+
391
+ if (!is_property_present.value())
315
392
  {
316
393
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
317
394
  return nullptr;
@@ -402,7 +479,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
402
479
  {
403
480
  try
404
481
  {
405
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshBuffer", L"Data"))
482
+ static std::optional<bool> is_property_present{};
483
+
484
+ if (!is_property_present.has_value())
485
+ {
486
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshBuffer", L"Data");
487
+ }
488
+
489
+ if (!is_property_present.value())
406
490
  {
407
491
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
408
492
  return nullptr;
@@ -421,7 +505,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
421
505
  {
422
506
  try
423
507
  {
424
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshBuffer", L"ElementCount"))
508
+ static std::optional<bool> is_property_present{};
509
+
510
+ if (!is_property_present.has_value())
511
+ {
512
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshBuffer", L"ElementCount");
513
+ }
514
+
515
+ if (!is_property_present.value())
425
516
  {
426
517
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
427
518
  return nullptr;
@@ -440,7 +531,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
440
531
  {
441
532
  try
442
533
  {
443
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshBuffer", L"Format"))
534
+ static std::optional<bool> is_property_present{};
535
+
536
+ if (!is_property_present.has_value())
537
+ {
538
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshBuffer", L"Format");
539
+ }
540
+
541
+ if (!is_property_present.value())
444
542
  {
445
543
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
446
544
  return nullptr;
@@ -459,7 +557,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
459
557
  {
460
558
  try
461
559
  {
462
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshBuffer", L"Stride"))
560
+ static std::optional<bool> is_property_present{};
561
+
562
+ if (!is_property_present.has_value())
563
+ {
564
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshBuffer", L"Stride");
565
+ }
566
+
567
+ if (!is_property_present.value())
463
568
  {
464
569
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
465
570
  return nullptr;
@@ -542,7 +647,7 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
542
647
  {
543
648
  try
544
649
  {
545
- winrt::Windows::Perception::Spatial::Surfaces::SpatialSurfaceMeshOptions instance{ };
650
+ winrt::Windows::Perception::Spatial::Surfaces::SpatialSurfaceMeshOptions instance{};
546
651
  return py::wrap(instance, type);
547
652
  }
548
653
  catch (...)
@@ -570,7 +675,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
570
675
  {
571
676
  try
572
677
  {
573
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions", L"VertexPositionFormat"))
678
+ static std::optional<bool> is_property_present{};
679
+
680
+ if (!is_property_present.has_value())
681
+ {
682
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions", L"VertexPositionFormat");
683
+ }
684
+
685
+ if (!is_property_present.value())
574
686
  {
575
687
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
576
688
  return nullptr;
@@ -595,7 +707,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
595
707
 
596
708
  try
597
709
  {
598
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions", L"VertexPositionFormat"))
710
+ static std::optional<bool> is_property_present{};
711
+
712
+ if (!is_property_present.has_value())
713
+ {
714
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions", L"VertexPositionFormat");
715
+ }
716
+
717
+ if (!is_property_present.value())
599
718
  {
600
719
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
601
720
  return -1;
@@ -617,7 +736,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
617
736
  {
618
737
  try
619
738
  {
620
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions", L"VertexNormalFormat"))
739
+ static std::optional<bool> is_property_present{};
740
+
741
+ if (!is_property_present.has_value())
742
+ {
743
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions", L"VertexNormalFormat");
744
+ }
745
+
746
+ if (!is_property_present.value())
621
747
  {
622
748
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
623
749
  return nullptr;
@@ -642,7 +768,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
642
768
 
643
769
  try
644
770
  {
645
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions", L"VertexNormalFormat"))
771
+ static std::optional<bool> is_property_present{};
772
+
773
+ if (!is_property_present.has_value())
774
+ {
775
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions", L"VertexNormalFormat");
776
+ }
777
+
778
+ if (!is_property_present.value())
646
779
  {
647
780
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
648
781
  return -1;
@@ -664,7 +797,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
664
797
  {
665
798
  try
666
799
  {
667
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions", L"TriangleIndexFormat"))
800
+ static std::optional<bool> is_property_present{};
801
+
802
+ if (!is_property_present.has_value())
803
+ {
804
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions", L"TriangleIndexFormat");
805
+ }
806
+
807
+ if (!is_property_present.value())
668
808
  {
669
809
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
670
810
  return nullptr;
@@ -689,7 +829,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
689
829
 
690
830
  try
691
831
  {
692
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions", L"TriangleIndexFormat"))
832
+ static std::optional<bool> is_property_present{};
833
+
834
+ if (!is_property_present.has_value())
835
+ {
836
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions", L"TriangleIndexFormat");
837
+ }
838
+
839
+ if (!is_property_present.value())
693
840
  {
694
841
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
695
842
  return -1;
@@ -711,7 +858,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
711
858
  {
712
859
  try
713
860
  {
714
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions", L"IncludeVertexNormals"))
861
+ static std::optional<bool> is_property_present{};
862
+
863
+ if (!is_property_present.has_value())
864
+ {
865
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions", L"IncludeVertexNormals");
866
+ }
867
+
868
+ if (!is_property_present.value())
715
869
  {
716
870
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
717
871
  return nullptr;
@@ -736,7 +890,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
736
890
 
737
891
  try
738
892
  {
739
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions", L"IncludeVertexNormals"))
893
+ static std::optional<bool> is_property_present{};
894
+
895
+ if (!is_property_present.has_value())
896
+ {
897
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions", L"IncludeVertexNormals");
898
+ }
899
+
900
+ if (!is_property_present.value())
740
901
  {
741
902
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
742
903
  return -1;
@@ -758,7 +919,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
758
919
  {
759
920
  try
760
921
  {
761
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions", L"SupportedTriangleIndexFormats"))
922
+ static std::optional<bool> is_property_present{};
923
+
924
+ if (!is_property_present.has_value())
925
+ {
926
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions", L"SupportedTriangleIndexFormats");
927
+ }
928
+
929
+ if (!is_property_present.value())
762
930
  {
763
931
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
764
932
  return nullptr;
@@ -777,7 +945,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
777
945
  {
778
946
  try
779
947
  {
780
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions", L"SupportedVertexNormalFormats"))
948
+ static std::optional<bool> is_property_present{};
949
+
950
+ if (!is_property_present.has_value())
951
+ {
952
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions", L"SupportedVertexNormalFormats");
953
+ }
954
+
955
+ if (!is_property_present.value())
781
956
  {
782
957
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
783
958
  return nullptr;
@@ -796,7 +971,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
796
971
  {
797
972
  try
798
973
  {
799
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions", L"SupportedVertexPositionFormats"))
974
+ static std::optional<bool> is_property_present{};
975
+
976
+ if (!is_property_present.has_value())
977
+ {
978
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceMeshOptions", L"SupportedVertexPositionFormats");
979
+ }
980
+
981
+ if (!is_property_present.value())
800
982
  {
801
983
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
802
984
  return nullptr;
@@ -907,7 +1089,7 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
907
1089
  {
908
1090
  try
909
1091
  {
910
- winrt::Windows::Perception::Spatial::Surfaces::SpatialSurfaceObserver instance{ };
1092
+ winrt::Windows::Perception::Spatial::Surfaces::SpatialSurfaceObserver instance{};
911
1093
  return py::wrap(instance, type);
912
1094
  }
913
1095
  catch (...)
@@ -939,7 +1121,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
939
1121
  {
940
1122
  try
941
1123
  {
942
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceObserver", L"GetObservedSurfaces", 0))
1124
+ static std::optional<bool> is_overload_present{};
1125
+
1126
+ if (!is_overload_present.has_value())
1127
+ {
1128
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceObserver", L"GetObservedSurfaces", 0);
1129
+ }
1130
+
1131
+ if (!is_overload_present.value())
943
1132
  {
944
1133
  py::set_arg_count_version_error(0);
945
1134
  return nullptr;
@@ -968,7 +1157,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
968
1157
  {
969
1158
  try
970
1159
  {
971
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceObserver", L"IsSupported", 0))
1160
+ static std::optional<bool> is_overload_present{};
1161
+
1162
+ if (!is_overload_present.has_value())
1163
+ {
1164
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceObserver", L"IsSupported", 0);
1165
+ }
1166
+
1167
+ if (!is_overload_present.value())
972
1168
  {
973
1169
  py::set_arg_count_version_error(0);
974
1170
  return nullptr;
@@ -997,7 +1193,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
997
1193
  {
998
1194
  try
999
1195
  {
1000
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceObserver", L"RequestAccessAsync", 0))
1196
+ static std::optional<bool> is_overload_present{};
1197
+
1198
+ if (!is_overload_present.has_value())
1199
+ {
1200
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceObserver", L"RequestAccessAsync", 0);
1201
+ }
1202
+
1203
+ if (!is_overload_present.value())
1001
1204
  {
1002
1205
  py::set_arg_count_version_error(0);
1003
1206
  return nullptr;
@@ -1026,7 +1229,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
1026
1229
  {
1027
1230
  try
1028
1231
  {
1029
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceObserver", L"SetBoundingVolume", 1))
1232
+ static std::optional<bool> is_overload_present{};
1233
+
1234
+ if (!is_overload_present.has_value())
1235
+ {
1236
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceObserver", L"SetBoundingVolume", 1);
1237
+ }
1238
+
1239
+ if (!is_overload_present.value())
1030
1240
  {
1031
1241
  py::set_arg_count_version_error(1);
1032
1242
  return nullptr;
@@ -1058,7 +1268,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
1058
1268
  {
1059
1269
  try
1060
1270
  {
1061
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceObserver", L"SetBoundingVolumes", 1))
1271
+ static std::optional<bool> is_overload_present{};
1272
+
1273
+ if (!is_overload_present.has_value())
1274
+ {
1275
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceObserver", L"SetBoundingVolumes", 1);
1276
+ }
1277
+
1278
+ if (!is_overload_present.value())
1062
1279
  {
1063
1280
  py::set_arg_count_version_error(1);
1064
1281
  return nullptr;
@@ -1086,7 +1303,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
1086
1303
  {
1087
1304
  try
1088
1305
  {
1089
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceObserver", L"ObservedSurfacesChanged"))
1306
+ static std::optional<bool> is_event_present{};
1307
+
1308
+ if (!is_event_present.has_value())
1309
+ {
1310
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceObserver", L"ObservedSurfacesChanged");
1311
+ }
1312
+
1313
+ if (!is_event_present.value())
1090
1314
  {
1091
1315
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
1092
1316
  return nullptr;
@@ -1107,7 +1331,14 @@ namespace py::cpp::Windows::Perception::Spatial::Surfaces
1107
1331
  {
1108
1332
  try
1109
1333
  {
1110
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceObserver", L"ObservedSurfacesChanged"))
1334
+ static std::optional<bool> is_event_present{};
1335
+
1336
+ if (!is_event_present.has_value())
1337
+ {
1338
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Perception.Spatial.Surfaces.SpatialSurfaceObserver", L"ObservedSurfacesChanged");
1339
+ }
1340
+
1341
+ if (!is_event_present.value())
1111
1342
  {
1112
1343
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
1113
1344
  return nullptr;
@@ -1251,17 +1482,20 @@ PyMODINIT_FUNC PyInit__winrt_windows_perception_spatial_surfaces(void) noexcept
1251
1482
  return nullptr;
1252
1483
  }
1253
1484
 
1254
- if (py::register_python_type(module.get(), &type_spec_SpatialSurfaceInfo, object_bases.get(), nullptr) == -1)
1485
+ py::pytype_handle SpatialSurfaceInfo_type{py::register_python_type(module.get(), &type_spec_SpatialSurfaceInfo, object_bases.get(), nullptr)};
1486
+ if (!SpatialSurfaceInfo_type)
1255
1487
  {
1256
1488
  return nullptr;
1257
1489
  }
1258
1490
 
1259
- if (py::register_python_type(module.get(), &type_spec_SpatialSurfaceMesh, object_bases.get(), nullptr) == -1)
1491
+ py::pytype_handle SpatialSurfaceMesh_type{py::register_python_type(module.get(), &type_spec_SpatialSurfaceMesh, object_bases.get(), nullptr)};
1492
+ if (!SpatialSurfaceMesh_type)
1260
1493
  {
1261
1494
  return nullptr;
1262
1495
  }
1263
1496
 
1264
- if (py::register_python_type(module.get(), &type_spec_SpatialSurfaceMeshBuffer, object_bases.get(), nullptr) == -1)
1497
+ py::pytype_handle SpatialSurfaceMeshBuffer_type{py::register_python_type(module.get(), &type_spec_SpatialSurfaceMeshBuffer, object_bases.get(), nullptr)};
1498
+ if (!SpatialSurfaceMeshBuffer_type)
1265
1499
  {
1266
1500
  return nullptr;
1267
1501
  }
@@ -1272,7 +1506,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_perception_spatial_surfaces(void) noexcept
1272
1506
  return nullptr;
1273
1507
  }
1274
1508
 
1275
- if (py::register_python_type(module.get(), &type_spec_SpatialSurfaceMeshOptions, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_SpatialSurfaceMeshOptions_Static.get())) == -1)
1509
+ py::pytype_handle SpatialSurfaceMeshOptions_type{py::register_python_type(module.get(), &type_spec_SpatialSurfaceMeshOptions, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_SpatialSurfaceMeshOptions_Static.get()))};
1510
+ if (!SpatialSurfaceMeshOptions_type)
1276
1511
  {
1277
1512
  return nullptr;
1278
1513
  }
@@ -1283,7 +1518,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_perception_spatial_surfaces(void) noexcept
1283
1518
  return nullptr;
1284
1519
  }
1285
1520
 
1286
- if (py::register_python_type(module.get(), &type_spec_SpatialSurfaceObserver, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_SpatialSurfaceObserver_Static.get())) == -1)
1521
+ py::pytype_handle SpatialSurfaceObserver_type{py::register_python_type(module.get(), &type_spec_SpatialSurfaceObserver, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_SpatialSurfaceObserver_Static.get()))};
1522
+ if (!SpatialSurfaceObserver_type)
1287
1523
  {
1288
1524
  return nullptr;
1289
1525
  }
@@ -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 winrt.system
4
4
  from winrt import _winrt_windows_perception_spatial_surfaces
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Perception.Spatial.Surfaces
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,16 +10,16 @@ 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.Foundation.Numerics[all]==2.1.0; extra == "all"
20
- Requires-Dist: winrt-Windows.Graphics.DirectX[all]==2.1.0; extra == "all"
21
- Requires-Dist: winrt-Windows.Perception.Spatial[all]==2.1.0; extra == "all"
22
- 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.Foundation.Collections[all]==2.3.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Foundation.Numerics[all]==2.3.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.Graphics.DirectX[all]==2.3.0; extra == "all"
21
+ Requires-Dist: winrt-Windows.Perception.Spatial[all]==2.3.0; extra == "all"
22
+ Requires-Dist: winrt-Windows.Storage.Streams[all]==2.3.0; extra == "all"
23
23
 
24
24
  <!-- warning: Please don't edit this file. It was automatically generated. -->
25
25
 
@@ -0,0 +1,9 @@
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.Foundation.Numerics[all]==2.3.0
7
+ winrt-Windows.Graphics.DirectX[all]==2.3.0
8
+ winrt-Windows.Perception.Spatial[all]==2.3.0
9
+ winrt-Windows.Storage.Streams[all]==2.3.0
@@ -1,8 +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.Foundation.Numerics[all]==2.1.0
6
- winrt-Windows.Graphics.DirectX[all]==2.1.0
7
- winrt-Windows.Perception.Spatial[all]==2.1.0
8
- winrt-Windows.Storage.Streams[all]==2.1.0
@@ -1,9 +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.Foundation.Numerics[all]==2.1.0
7
- winrt-Windows.Graphics.DirectX[all]==2.1.0
8
- winrt-Windows.Perception.Spatial[all]==2.1.0
9
- winrt-Windows.Storage.Streams[all]==2.1.0