winrt-Windows.Perception.Spatial.Preview 2.0.1__tar.gz → 2.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (21) hide show
  1. {winrt_windows_perception_spatial_preview-2.0.1 → winrt_windows_perception_spatial_preview-2.2.0}/PKG-INFO +5 -5
  2. winrt_windows_perception_spatial_preview-2.2.0/all-requirements.txt +4 -0
  3. {winrt_windows_perception_spatial_preview-2.0.1 → winrt_windows_perception_spatial_preview-2.2.0}/py.Windows.Perception.Spatial.Preview.cpp +154 -90
  4. {winrt_windows_perception_spatial_preview-2.0.1 → winrt_windows_perception_spatial_preview-2.2.0}/pyproject.toml +3 -2
  5. winrt_windows_perception_spatial_preview-2.2.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_perception_spatial_preview-2.0.1 → winrt_windows_perception_spatial_preview-2.2.0}/requirements.txt +2 -2
  7. winrt_windows_perception_spatial_preview-2.2.0/winrt/_winrt_windows_perception_spatial_preview.pyi +47 -0
  8. {winrt_windows_perception_spatial_preview-2.0.1 → winrt_windows_perception_spatial_preview-2.2.0}/winrt/windows/perception/spatial/preview/__init__.py +1 -1
  9. {winrt_windows_perception_spatial_preview-2.0.1 → winrt_windows_perception_spatial_preview-2.2.0}/winrt_Windows.Perception.Spatial.Preview.egg-info/PKG-INFO +5 -5
  10. winrt_windows_perception_spatial_preview-2.2.0/winrt_Windows.Perception.Spatial.Preview.egg-info/requires.txt +5 -0
  11. winrt_windows_perception_spatial_preview-2.0.1/all-requirements.txt +0 -4
  12. winrt_windows_perception_spatial_preview-2.0.1/pywinrt-version.txt +0 -1
  13. winrt_windows_perception_spatial_preview-2.0.1/winrt/_winrt_windows_perception_spatial_preview.pyi +0 -48
  14. winrt_windows_perception_spatial_preview-2.0.1/winrt_Windows.Perception.Spatial.Preview.egg-info/requires.txt +0 -5
  15. {winrt_windows_perception_spatial_preview-2.0.1 → winrt_windows_perception_spatial_preview-2.2.0}/README.md +0 -0
  16. {winrt_windows_perception_spatial_preview-2.0.1 → winrt_windows_perception_spatial_preview-2.2.0}/setup.cfg +0 -0
  17. {winrt_windows_perception_spatial_preview-2.0.1 → winrt_windows_perception_spatial_preview-2.2.0}/setup.py +0 -0
  18. {winrt_windows_perception_spatial_preview-2.0.1 → winrt_windows_perception_spatial_preview-2.2.0}/winrt/windows/perception/spatial/preview/py.typed +0 -0
  19. {winrt_windows_perception_spatial_preview-2.0.1 → winrt_windows_perception_spatial_preview-2.2.0}/winrt_Windows.Perception.Spatial.Preview.egg-info/SOURCES.txt +0 -0
  20. {winrt_windows_perception_spatial_preview-2.0.1 → winrt_windows_perception_spatial_preview-2.2.0}/winrt_Windows.Perception.Spatial.Preview.egg-info/dependency_links.txt +0 -0
  21. {winrt_windows_perception_spatial_preview-2.0.1 → winrt_windows_perception_spatial_preview-2.2.0}/winrt_Windows.Perception.Spatial.Preview.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Perception.Spatial.Preview
3
- Version: 2.0.1
3
+ Version: 2.2.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -10,12 +10,12 @@ Classifier: Operating System :: Microsoft :: Windows
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
- Requires-Python: <3.13,>=3.9
13
+ Requires-Python: <3.14,>=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.0.1
15
+ Requires-Dist: winrt-runtime==2.2.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation.Numerics[all]==2.0.1; extra == "all"
18
- Requires-Dist: winrt-Windows.Perception.Spatial[all]==2.0.1; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation.Numerics[all]==2.2.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Perception.Spatial[all]==2.2.0; extra == "all"
19
19
 
20
20
  <!-- warning: Please don't edit this file. It was automatically generated. -->
21
21
 
@@ -0,0 +1,4 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
+
3
+ winrt-Windows.Foundation.Numerics[all]==2.2.0
4
+ winrt-Windows.Perception.Spatial[all]==2.2.0
@@ -1,8 +1,7 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
2
 
3
3
  #include "py.Windows.Perception.Spatial.Preview.h"
4
4
 
5
-
6
5
  namespace py::cpp::Windows::Perception::Spatial::Preview
7
6
  {
8
7
  // ----- SpatialGraphInteropFrameOfReferencePreview class --------------------
@@ -24,14 +23,21 @@ namespace py::cpp::Windows::Perception::Spatial::Preview
24
23
 
25
24
  static PyObject* SpatialGraphInteropFrameOfReferencePreview_get_CoordinateSystem(py::wrapper::Windows::Perception::Spatial::Preview::SpatialGraphInteropFrameOfReferencePreview* self, void* /*unused*/) noexcept
26
25
  {
27
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Preview.SpatialGraphInteropFrameOfReferencePreview", L"CoordinateSystem"))
28
- {
29
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
30
- return nullptr;
31
- }
32
-
33
26
  try
34
27
  {
28
+ static std::optional<bool> is_property_present{};
29
+
30
+ if (!is_property_present.has_value())
31
+ {
32
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Preview.SpatialGraphInteropFrameOfReferencePreview", L"CoordinateSystem");
33
+ }
34
+
35
+ if (!is_property_present.value())
36
+ {
37
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
38
+ return nullptr;
39
+ }
40
+
35
41
  return py::convert(self->obj.CoordinateSystem());
36
42
  }
37
43
  catch (...)
@@ -43,14 +49,21 @@ namespace py::cpp::Windows::Perception::Spatial::Preview
43
49
 
44
50
  static PyObject* SpatialGraphInteropFrameOfReferencePreview_get_CoordinateSystemToNodeTransform(py::wrapper::Windows::Perception::Spatial::Preview::SpatialGraphInteropFrameOfReferencePreview* self, void* /*unused*/) noexcept
45
51
  {
46
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Preview.SpatialGraphInteropFrameOfReferencePreview", L"CoordinateSystemToNodeTransform"))
47
- {
48
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
49
- return nullptr;
50
- }
51
-
52
52
  try
53
53
  {
54
+ static std::optional<bool> is_property_present{};
55
+
56
+ if (!is_property_present.has_value())
57
+ {
58
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Preview.SpatialGraphInteropFrameOfReferencePreview", L"CoordinateSystemToNodeTransform");
59
+ }
60
+
61
+ if (!is_property_present.value())
62
+ {
63
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
64
+ return nullptr;
65
+ }
66
+
54
67
  return py::convert(self->obj.CoordinateSystemToNodeTransform());
55
68
  }
56
69
  catch (...)
@@ -62,14 +75,21 @@ namespace py::cpp::Windows::Perception::Spatial::Preview
62
75
 
63
76
  static PyObject* SpatialGraphInteropFrameOfReferencePreview_get_NodeId(py::wrapper::Windows::Perception::Spatial::Preview::SpatialGraphInteropFrameOfReferencePreview* self, void* /*unused*/) noexcept
64
77
  {
65
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Preview.SpatialGraphInteropFrameOfReferencePreview", L"NodeId"))
66
- {
67
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
68
- return nullptr;
69
- }
70
-
71
78
  try
72
79
  {
80
+ static std::optional<bool> is_property_present{};
81
+
82
+ if (!is_property_present.has_value())
83
+ {
84
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Perception.Spatial.Preview.SpatialGraphInteropFrameOfReferencePreview", L"NodeId");
85
+ }
86
+
87
+ if (!is_property_present.value())
88
+ {
89
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
90
+ return nullptr;
91
+ }
92
+
73
93
  return py::convert(self->obj.NodeId());
74
94
  }
75
95
  catch (...)
@@ -116,23 +136,20 @@ namespace py::cpp::Windows::Perception::Spatial::Preview
116
136
  { }
117
137
  };
118
138
 
119
- static PyType_Slot _type_slots_SpatialGraphInteropFrameOfReferencePreview[] =
120
- {
139
+ static PyType_Slot _type_slots_SpatialGraphInteropFrameOfReferencePreview[] = {
121
140
  { Py_tp_new, reinterpret_cast<void*>(_new_SpatialGraphInteropFrameOfReferencePreview) },
122
141
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_SpatialGraphInteropFrameOfReferencePreview) },
123
142
  { Py_tp_methods, reinterpret_cast<void*>(_methods_SpatialGraphInteropFrameOfReferencePreview) },
124
143
  { Py_tp_getset, reinterpret_cast<void*>(_getset_SpatialGraphInteropFrameOfReferencePreview) },
125
- { },
144
+ { }
126
145
  };
127
146
 
128
- static PyType_Spec type_spec_SpatialGraphInteropFrameOfReferencePreview =
129
- {
147
+ static PyType_Spec type_spec_SpatialGraphInteropFrameOfReferencePreview = {
130
148
  "winrt._winrt_windows_perception_spatial_preview.SpatialGraphInteropFrameOfReferencePreview",
131
149
  sizeof(py::wrapper::Windows::Perception::Spatial::Preview::SpatialGraphInteropFrameOfReferencePreview),
132
150
  0,
133
151
  Py_TPFLAGS_DEFAULT,
134
- _type_slots_SpatialGraphInteropFrameOfReferencePreview
135
- };
152
+ _type_slots_SpatialGraphInteropFrameOfReferencePreview};
136
153
 
137
154
  // ----- SpatialGraphInteropPreview class --------------------
138
155
 
@@ -149,14 +166,21 @@ namespace py::cpp::Windows::Perception::Spatial::Preview
149
166
 
150
167
  if (arg_count == 1)
151
168
  {
152
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.Spatial.Preview.SpatialGraphInteropPreview", L"CreateCoordinateSystemForNode", 1))
153
- {
154
- py::set_arg_count_version_error(1);
155
- return nullptr;
156
- }
157
-
158
169
  try
159
170
  {
171
+ static std::optional<bool> is_overload_present{};
172
+
173
+ if (!is_overload_present.has_value())
174
+ {
175
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.Spatial.Preview.SpatialGraphInteropPreview", L"CreateCoordinateSystemForNode", 1);
176
+ }
177
+
178
+ if (!is_overload_present.value())
179
+ {
180
+ py::set_arg_count_version_error(1);
181
+ return nullptr;
182
+ }
183
+
160
184
  auto param0 = py::convert_to<winrt::guid>(args, 0);
161
185
 
162
186
  return py::convert(winrt::Windows::Perception::Spatial::Preview::SpatialGraphInteropPreview::CreateCoordinateSystemForNode(param0));
@@ -169,14 +193,21 @@ namespace py::cpp::Windows::Perception::Spatial::Preview
169
193
  }
170
194
  else if (arg_count == 2)
171
195
  {
172
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.Spatial.Preview.SpatialGraphInteropPreview", L"CreateCoordinateSystemForNode", 2))
173
- {
174
- py::set_arg_count_version_error(2);
175
- return nullptr;
176
- }
177
-
178
196
  try
179
197
  {
198
+ static std::optional<bool> is_overload_present{};
199
+
200
+ if (!is_overload_present.has_value())
201
+ {
202
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.Spatial.Preview.SpatialGraphInteropPreview", L"CreateCoordinateSystemForNode", 2);
203
+ }
204
+
205
+ if (!is_overload_present.value())
206
+ {
207
+ py::set_arg_count_version_error(2);
208
+ return nullptr;
209
+ }
210
+
180
211
  auto param0 = py::convert_to<winrt::guid>(args, 0);
181
212
  auto param1 = py::convert_to<winrt::Windows::Foundation::Numerics::float3>(args, 1);
182
213
 
@@ -190,14 +221,21 @@ namespace py::cpp::Windows::Perception::Spatial::Preview
190
221
  }
191
222
  else if (arg_count == 3)
192
223
  {
193
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.Spatial.Preview.SpatialGraphInteropPreview", L"CreateCoordinateSystemForNode", 3))
194
- {
195
- py::set_arg_count_version_error(3);
196
- return nullptr;
197
- }
198
-
199
224
  try
200
225
  {
226
+ static std::optional<bool> is_overload_present{};
227
+
228
+ if (!is_overload_present.has_value())
229
+ {
230
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.Spatial.Preview.SpatialGraphInteropPreview", L"CreateCoordinateSystemForNode", 3);
231
+ }
232
+
233
+ if (!is_overload_present.value())
234
+ {
235
+ py::set_arg_count_version_error(3);
236
+ return nullptr;
237
+ }
238
+
201
239
  auto param0 = py::convert_to<winrt::guid>(args, 0);
202
240
  auto param1 = py::convert_to<winrt::Windows::Foundation::Numerics::float3>(args, 1);
203
241
  auto param2 = py::convert_to<winrt::Windows::Foundation::Numerics::quaternion>(args, 2);
@@ -223,14 +261,21 @@ namespace py::cpp::Windows::Perception::Spatial::Preview
223
261
 
224
262
  if (arg_count == 1)
225
263
  {
226
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.Spatial.Preview.SpatialGraphInteropPreview", L"CreateLocatorForNode", 1))
227
- {
228
- py::set_arg_count_version_error(1);
229
- return nullptr;
230
- }
231
-
232
264
  try
233
265
  {
266
+ static std::optional<bool> is_overload_present{};
267
+
268
+ if (!is_overload_present.has_value())
269
+ {
270
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.Spatial.Preview.SpatialGraphInteropPreview", L"CreateLocatorForNode", 1);
271
+ }
272
+
273
+ if (!is_overload_present.value())
274
+ {
275
+ py::set_arg_count_version_error(1);
276
+ return nullptr;
277
+ }
278
+
234
279
  auto param0 = py::convert_to<winrt::guid>(args, 0);
235
280
 
236
281
  return py::convert(winrt::Windows::Perception::Spatial::Preview::SpatialGraphInteropPreview::CreateLocatorForNode(param0));
@@ -254,14 +299,21 @@ namespace py::cpp::Windows::Perception::Spatial::Preview
254
299
 
255
300
  if (arg_count == 1)
256
301
  {
257
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.Spatial.Preview.SpatialGraphInteropPreview", L"TryCreateFrameOfReference", 1))
258
- {
259
- py::set_arg_count_version_error(1);
260
- return nullptr;
261
- }
262
-
263
302
  try
264
303
  {
304
+ static std::optional<bool> is_overload_present{};
305
+
306
+ if (!is_overload_present.has_value())
307
+ {
308
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.Spatial.Preview.SpatialGraphInteropPreview", L"TryCreateFrameOfReference", 1);
309
+ }
310
+
311
+ if (!is_overload_present.value())
312
+ {
313
+ py::set_arg_count_version_error(1);
314
+ return nullptr;
315
+ }
316
+
265
317
  auto param0 = py::convert_to<winrt::Windows::Perception::Spatial::SpatialCoordinateSystem>(args, 0);
266
318
 
267
319
  return py::convert(winrt::Windows::Perception::Spatial::Preview::SpatialGraphInteropPreview::TryCreateFrameOfReference(param0));
@@ -274,14 +326,21 @@ namespace py::cpp::Windows::Perception::Spatial::Preview
274
326
  }
275
327
  else if (arg_count == 2)
276
328
  {
277
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.Spatial.Preview.SpatialGraphInteropPreview", L"TryCreateFrameOfReference", 2))
278
- {
279
- py::set_arg_count_version_error(2);
280
- return nullptr;
281
- }
282
-
283
329
  try
284
330
  {
331
+ static std::optional<bool> is_overload_present{};
332
+
333
+ if (!is_overload_present.has_value())
334
+ {
335
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.Spatial.Preview.SpatialGraphInteropPreview", L"TryCreateFrameOfReference", 2);
336
+ }
337
+
338
+ if (!is_overload_present.value())
339
+ {
340
+ py::set_arg_count_version_error(2);
341
+ return nullptr;
342
+ }
343
+
285
344
  auto param0 = py::convert_to<winrt::Windows::Perception::Spatial::SpatialCoordinateSystem>(args, 0);
286
345
  auto param1 = py::convert_to<winrt::Windows::Foundation::Numerics::float3>(args, 1);
287
346
 
@@ -295,14 +354,21 @@ namespace py::cpp::Windows::Perception::Spatial::Preview
295
354
  }
296
355
  else if (arg_count == 3)
297
356
  {
298
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.Spatial.Preview.SpatialGraphInteropPreview", L"TryCreateFrameOfReference", 3))
299
- {
300
- py::set_arg_count_version_error(3);
301
- return nullptr;
302
- }
303
-
304
357
  try
305
358
  {
359
+ static std::optional<bool> is_overload_present{};
360
+
361
+ if (!is_overload_present.has_value())
362
+ {
363
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Perception.Spatial.Preview.SpatialGraphInteropPreview", L"TryCreateFrameOfReference", 3);
364
+ }
365
+
366
+ if (!is_overload_present.value())
367
+ {
368
+ py::set_arg_count_version_error(3);
369
+ return nullptr;
370
+ }
371
+
306
372
  auto param0 = py::convert_to<winrt::Windows::Perception::Spatial::SpatialCoordinateSystem>(args, 0);
307
373
  auto param1 = py::convert_to<winrt::Windows::Foundation::Numerics::float3>(args, 1);
308
374
  auto param2 = py::convert_to<winrt::Windows::Foundation::Numerics::quaternion>(args, 2);
@@ -330,22 +396,19 @@ namespace py::cpp::Windows::Perception::Spatial::Preview
330
396
  { }
331
397
  };
332
398
 
333
- static PyType_Slot _type_slots_SpatialGraphInteropPreview[] =
334
- {
399
+ static PyType_Slot _type_slots_SpatialGraphInteropPreview[] = {
335
400
  { Py_tp_new, reinterpret_cast<void*>(_new_SpatialGraphInteropPreview) },
336
401
  { Py_tp_methods, reinterpret_cast<void*>(_methods_SpatialGraphInteropPreview) },
337
402
  { Py_tp_getset, reinterpret_cast<void*>(_getset_SpatialGraphInteropPreview) },
338
- { },
403
+ { }
339
404
  };
340
405
 
341
- static PyType_Spec type_spec_SpatialGraphInteropPreview =
342
- {
406
+ static PyType_Spec type_spec_SpatialGraphInteropPreview = {
343
407
  "winrt._winrt_windows_perception_spatial_preview.SpatialGraphInteropPreview",
344
408
  0,
345
409
  0,
346
410
  Py_TPFLAGS_DEFAULT,
347
- _type_slots_SpatialGraphInteropPreview
348
- };
411
+ _type_slots_SpatialGraphInteropPreview};
349
412
 
350
413
  static PyGetSetDef getset_SpatialGraphInteropPreview_Static[] = {
351
414
  { }
@@ -376,20 +439,19 @@ namespace py::cpp::Windows::Perception::Spatial::Preview
376
439
  };
377
440
 
378
441
  // ----- Windows.Perception.Spatial.Preview Initialization --------------------
379
- PyDoc_STRVAR(module_doc, "Windows::Perception::Spatial::Preview");
380
-
381
442
 
382
- static PyModuleDef module_def
383
- = {PyModuleDef_HEAD_INIT,
384
- "_winrt_windows_perception_spatial_preview",
385
- module_doc,
386
- 0,
387
- nullptr,
388
- nullptr,
389
- nullptr,
390
- nullptr,
391
- nullptr};
443
+ PyDoc_STRVAR(module_doc, "Windows.Perception.Spatial.Preview");
392
444
 
445
+ static PyModuleDef module_def = {
446
+ PyModuleDef_HEAD_INIT,
447
+ "_winrt_windows_perception_spatial_preview",
448
+ module_doc,
449
+ 0,
450
+ nullptr,
451
+ nullptr,
452
+ nullptr,
453
+ nullptr,
454
+ nullptr};
393
455
  } // py::cpp::Windows::Perception::Spatial::Preview
394
456
 
395
457
  PyMODINIT_FUNC PyInit__winrt_windows_perception_spatial_preview(void) noexcept
@@ -421,7 +483,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_perception_spatial_preview(void) noexcept
421
483
  return nullptr;
422
484
  }
423
485
 
424
- if (py::register_python_type(module.get(), &type_spec_SpatialGraphInteropFrameOfReferencePreview, object_bases.get(), nullptr) == -1)
486
+ py::pytype_handle SpatialGraphInteropFrameOfReferencePreview_type{py::register_python_type(module.get(), &type_spec_SpatialGraphInteropFrameOfReferencePreview, object_bases.get(), nullptr)};
487
+ if (!SpatialGraphInteropFrameOfReferencePreview_type)
425
488
  {
426
489
  return nullptr;
427
490
  }
@@ -432,7 +495,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_perception_spatial_preview(void) noexcept
432
495
  return nullptr;
433
496
  }
434
497
 
435
- if (py::register_python_type(module.get(), &type_spec_SpatialGraphInteropPreview, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_SpatialGraphInteropPreview_Static.get())) == -1)
498
+ py::pytype_handle SpatialGraphInteropPreview_type{py::register_python_type(module.get(), &type_spec_SpatialGraphInteropPreview, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_SpatialGraphInteropPreview_Static.get()))};
499
+ if (!SpatialGraphInteropPreview_type)
436
500
  {
437
501
  return nullptr;
438
502
  }
@@ -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.0.1
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
2
 
3
- winrt-runtime==2.0.1
3
+ winrt-runtime==2.2.0
@@ -0,0 +1,47 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
+
3
+ import datetime
4
+ import sys
5
+ import types
6
+ import typing
7
+ import uuid as _uuid
8
+ from builtins import property as _property
9
+
10
+ import winrt._winrt
11
+ import winrt.system
12
+ import winrt.windows.foundation.numerics as windows_foundation_numerics
13
+ import winrt.windows.perception.spatial as windows_perception_spatial
14
+
15
+ Self = typing.TypeVar('Self')
16
+
17
+ @typing.final
18
+ class SpatialGraphInteropFrameOfReferencePreview(winrt.system.Object):
19
+ @staticmethod
20
+ def _from(obj: winrt.system.Object, /) -> SpatialGraphInteropFrameOfReferencePreview: ...
21
+ @_property
22
+ def coordinate_system(self) -> typing.Optional[windows_perception_spatial.SpatialCoordinateSystem]: ...
23
+ @_property
24
+ def coordinate_system_to_node_transform(self) -> windows_foundation_numerics.Matrix4x4: ...
25
+ @_property
26
+ def node_id(self) -> _uuid.UUID: ...
27
+
28
+ @typing.final
29
+ class SpatialGraphInteropPreview_Static(type):
30
+ @typing.overload
31
+ def create_coordinate_system_for_node(cls, node_id: _uuid.UUID, /) -> typing.Optional[windows_perception_spatial.SpatialCoordinateSystem]: ...
32
+ @typing.overload
33
+ def create_coordinate_system_for_node(cls, node_id: _uuid.UUID, relative_position: windows_foundation_numerics.Vector3, /) -> typing.Optional[windows_perception_spatial.SpatialCoordinateSystem]: ...
34
+ @typing.overload
35
+ def create_coordinate_system_for_node(cls, node_id: _uuid.UUID, relative_position: windows_foundation_numerics.Vector3, relative_orientation: windows_foundation_numerics.Quaternion, /) -> typing.Optional[windows_perception_spatial.SpatialCoordinateSystem]: ...
36
+ def create_locator_for_node(cls, node_id: _uuid.UUID, /) -> typing.Optional[windows_perception_spatial.SpatialLocator]: ...
37
+ @typing.overload
38
+ def try_create_frame_of_reference(cls, coordinate_system: typing.Optional[windows_perception_spatial.SpatialCoordinateSystem], /) -> typing.Optional[SpatialGraphInteropFrameOfReferencePreview]: ...
39
+ @typing.overload
40
+ def try_create_frame_of_reference(cls, coordinate_system: typing.Optional[windows_perception_spatial.SpatialCoordinateSystem], relative_position: windows_foundation_numerics.Vector3, /) -> typing.Optional[SpatialGraphInteropFrameOfReferencePreview]: ...
41
+ @typing.overload
42
+ def try_create_frame_of_reference(cls, coordinate_system: typing.Optional[windows_perception_spatial.SpatialCoordinateSystem], relative_position: windows_foundation_numerics.Vector3, relative_orientation: windows_foundation_numerics.Quaternion, /) -> typing.Optional[SpatialGraphInteropFrameOfReferencePreview]: ...
43
+
44
+ @typing.final
45
+ class SpatialGraphInteropPreview(winrt.system.Object, metaclass=SpatialGraphInteropPreview_Static):
46
+ pass
47
+
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
2
 
3
3
  import winrt.system
4
4
  from winrt import _winrt_windows_perception_spatial_preview
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Perception.Spatial.Preview
3
- Version: 2.0.1
3
+ Version: 2.2.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -10,12 +10,12 @@ Classifier: Operating System :: Microsoft :: Windows
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
- Requires-Python: <3.13,>=3.9
13
+ Requires-Python: <3.14,>=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.0.1
15
+ Requires-Dist: winrt-runtime==2.2.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation.Numerics[all]==2.0.1; extra == "all"
18
- Requires-Dist: winrt-Windows.Perception.Spatial[all]==2.0.1; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation.Numerics[all]==2.2.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Perception.Spatial[all]==2.2.0; extra == "all"
19
19
 
20
20
  <!-- warning: Please don't edit this file. It was automatically generated. -->
21
21
 
@@ -0,0 +1,5 @@
1
+ winrt-runtime==2.2.0
2
+
3
+ [all]
4
+ winrt-Windows.Foundation.Numerics[all]==2.2.0
5
+ winrt-Windows.Perception.Spatial[all]==2.2.0
@@ -1,4 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
2
-
3
- winrt-Windows.Foundation.Numerics[all]==2.0.1
4
- winrt-Windows.Perception.Spatial[all]==2.0.1
@@ -1,48 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
2
-
3
- import datetime
4
- import sys
5
- import types
6
- import typing
7
- import uuid as _uuid
8
- from builtins import property as _property
9
-
10
- import winrt._winrt
11
- import winrt.system
12
- import winrt.windows.foundation.numerics
13
- import winrt.windows.perception.spatial
14
-
15
- Self = typing.TypeVar('Self')
16
-
17
- @typing.final
18
- class SpatialGraphInteropFrameOfReferencePreview(winrt.system.Object):
19
- @staticmethod
20
- def _from(obj: winrt.system.Object, /) -> SpatialGraphInteropFrameOfReferencePreview: ...
21
- @_property
22
- def coordinate_system(self) -> typing.Optional[winrt.windows.perception.spatial.SpatialCoordinateSystem]: ...
23
- @_property
24
- def coordinate_system_to_node_transform(self) -> winrt.windows.foundation.numerics.Matrix4x4: ...
25
- @_property
26
- def node_id(self) -> _uuid.UUID: ...
27
-
28
- @typing.final
29
- class SpatialGraphInteropPreview_Static(type):
30
- @typing.overload
31
- def create_coordinate_system_for_node(cls, node_id: _uuid.UUID, /) -> typing.Optional[winrt.windows.perception.spatial.SpatialCoordinateSystem]: ...
32
- @typing.overload
33
- def create_coordinate_system_for_node(cls, node_id: _uuid.UUID, relative_position: winrt.windows.foundation.numerics.Vector3, /) -> typing.Optional[winrt.windows.perception.spatial.SpatialCoordinateSystem]: ...
34
- @typing.overload
35
- def create_coordinate_system_for_node(cls, node_id: _uuid.UUID, relative_position: winrt.windows.foundation.numerics.Vector3, relative_orientation: winrt.windows.foundation.numerics.Quaternion, /) -> typing.Optional[winrt.windows.perception.spatial.SpatialCoordinateSystem]: ...
36
- def create_locator_for_node(cls, node_id: _uuid.UUID, /) -> typing.Optional[winrt.windows.perception.spatial.SpatialLocator]: ...
37
- @typing.overload
38
- def try_create_frame_of_reference(cls, coordinate_system: typing.Optional[winrt.windows.perception.spatial.SpatialCoordinateSystem], /) -> typing.Optional[SpatialGraphInteropFrameOfReferencePreview]: ...
39
- @typing.overload
40
- def try_create_frame_of_reference(cls, coordinate_system: typing.Optional[winrt.windows.perception.spatial.SpatialCoordinateSystem], relative_position: winrt.windows.foundation.numerics.Vector3, /) -> typing.Optional[SpatialGraphInteropFrameOfReferencePreview]: ...
41
- @typing.overload
42
- def try_create_frame_of_reference(cls, coordinate_system: typing.Optional[winrt.windows.perception.spatial.SpatialCoordinateSystem], relative_position: winrt.windows.foundation.numerics.Vector3, relative_orientation: winrt.windows.foundation.numerics.Quaternion, /) -> typing.Optional[SpatialGraphInteropFrameOfReferencePreview]: ...
43
-
44
- @typing.final
45
- class SpatialGraphInteropPreview(winrt.system.Object, metaclass=SpatialGraphInteropPreview_Static):
46
- @staticmethod
47
- def _from(obj: winrt.system.Object, /) -> SpatialGraphInteropPreview: ...
48
-
@@ -1,5 +0,0 @@
1
- winrt-runtime==2.0.1
2
-
3
- [all]
4
- winrt-Windows.Foundation.Numerics[all]==2.0.1
5
- winrt-Windows.Perception.Spatial[all]==2.0.1