winrt-Windows.Devices.Adc 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 (20) hide show
  1. {winrt_windows_devices_adc-2.0.1 → winrt_windows_devices_adc-2.2.0}/PKG-INFO +6 -6
  2. winrt_windows_devices_adc-2.2.0/all-requirements.txt +5 -0
  3. {winrt_windows_devices_adc-2.0.1 → winrt_windows_devices_adc-2.2.0}/py.Windows.Devices.Adc.cpp +207 -115
  4. {winrt_windows_devices_adc-2.0.1 → winrt_windows_devices_adc-2.2.0}/pyproject.toml +3 -2
  5. winrt_windows_devices_adc-2.2.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_devices_adc-2.0.1 → winrt_windows_devices_adc-2.2.0}/requirements.txt +2 -2
  7. {winrt_windows_devices_adc-2.0.1 → winrt_windows_devices_adc-2.2.0}/winrt/_winrt_windows_devices_adc.pyi +6 -6
  8. {winrt_windows_devices_adc-2.0.1 → winrt_windows_devices_adc-2.2.0}/winrt/windows/devices/adc/__init__.py +1 -1
  9. {winrt_windows_devices_adc-2.0.1 → winrt_windows_devices_adc-2.2.0}/winrt_Windows.Devices.Adc.egg-info/PKG-INFO +6 -6
  10. winrt_windows_devices_adc-2.2.0/winrt_Windows.Devices.Adc.egg-info/requires.txt +6 -0
  11. winrt_windows_devices_adc-2.0.1/all-requirements.txt +0 -5
  12. winrt_windows_devices_adc-2.0.1/pywinrt-version.txt +0 -1
  13. winrt_windows_devices_adc-2.0.1/winrt_Windows.Devices.Adc.egg-info/requires.txt +0 -6
  14. {winrt_windows_devices_adc-2.0.1 → winrt_windows_devices_adc-2.2.0}/README.md +0 -0
  15. {winrt_windows_devices_adc-2.0.1 → winrt_windows_devices_adc-2.2.0}/setup.cfg +0 -0
  16. {winrt_windows_devices_adc-2.0.1 → winrt_windows_devices_adc-2.2.0}/setup.py +0 -0
  17. {winrt_windows_devices_adc-2.0.1 → winrt_windows_devices_adc-2.2.0}/winrt/windows/devices/adc/py.typed +0 -0
  18. {winrt_windows_devices_adc-2.0.1 → winrt_windows_devices_adc-2.2.0}/winrt_Windows.Devices.Adc.egg-info/SOURCES.txt +0 -0
  19. {winrt_windows_devices_adc-2.0.1 → winrt_windows_devices_adc-2.2.0}/winrt_Windows.Devices.Adc.egg-info/dependency_links.txt +0 -0
  20. {winrt_windows_devices_adc-2.0.1 → winrt_windows_devices_adc-2.2.0}/winrt_Windows.Devices.Adc.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Devices.Adc
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,13 +10,13 @@ Classifier: Operating System :: Microsoft :: Windows
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
- Requires-Python: <3.13,>=3.9
13
+ Requires-Python: <3.14,>=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.0.1
15
+ Requires-Dist: winrt-runtime==2.2.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Devices.Adc.Provider[all]==2.0.1; extra == "all"
18
- Requires-Dist: winrt-Windows.Foundation[all]==2.0.1; extra == "all"
19
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.0.1; extra == "all"
17
+ Requires-Dist: winrt-Windows.Devices.Adc.Provider[all]==2.2.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.2.0; extra == "all"
20
20
 
21
21
  <!-- warning: Please don't edit this file. It was automatically generated. -->
22
22
 
@@ -0,0 +1,5 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
+
3
+ winrt-Windows.Devices.Adc.Provider[all]==2.2.0
4
+ winrt-Windows.Foundation[all]==2.2.0
5
+ winrt-Windows.Foundation.Collections[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.Devices.Adc.h"
4
4
 
5
-
6
5
  namespace py::cpp::Windows::Devices::Adc
7
6
  {
8
7
  // ----- AdcChannel class --------------------
@@ -28,14 +27,21 @@ namespace py::cpp::Windows::Devices::Adc
28
27
 
29
28
  if (arg_count == 0)
30
29
  {
31
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Adc.AdcChannel", L"Close", 0))
32
- {
33
- py::set_arg_count_version_error(0);
34
- return nullptr;
35
- }
36
-
37
30
  try
38
31
  {
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.Devices.Adc.AdcChannel", L"Close", 0);
37
+ }
38
+
39
+ if (!is_overload_present.value())
40
+ {
41
+ py::set_arg_count_version_error(0);
42
+ return nullptr;
43
+ }
44
+
39
45
  self->obj.Close();
40
46
  Py_RETURN_NONE;
41
47
  }
@@ -58,14 +64,21 @@ namespace py::cpp::Windows::Devices::Adc
58
64
 
59
65
  if (arg_count == 0)
60
66
  {
61
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Adc.AdcChannel", L"ReadRatio", 0))
62
- {
63
- py::set_arg_count_version_error(0);
64
- return nullptr;
65
- }
66
-
67
67
  try
68
68
  {
69
+ static std::optional<bool> is_overload_present{};
70
+
71
+ if (!is_overload_present.has_value())
72
+ {
73
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Adc.AdcChannel", L"ReadRatio", 0);
74
+ }
75
+
76
+ if (!is_overload_present.value())
77
+ {
78
+ py::set_arg_count_version_error(0);
79
+ return nullptr;
80
+ }
81
+
69
82
  return py::convert(self->obj.ReadRatio());
70
83
  }
71
84
  catch (...)
@@ -87,14 +100,21 @@ namespace py::cpp::Windows::Devices::Adc
87
100
 
88
101
  if (arg_count == 0)
89
102
  {
90
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Adc.AdcChannel", L"ReadValue", 0))
91
- {
92
- py::set_arg_count_version_error(0);
93
- return nullptr;
94
- }
95
-
96
103
  try
97
104
  {
105
+ static std::optional<bool> is_overload_present{};
106
+
107
+ if (!is_overload_present.has_value())
108
+ {
109
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Adc.AdcChannel", L"ReadValue", 0);
110
+ }
111
+
112
+ if (!is_overload_present.value())
113
+ {
114
+ py::set_arg_count_version_error(0);
115
+ return nullptr;
116
+ }
117
+
98
118
  return py::convert(self->obj.ReadValue());
99
119
  }
100
120
  catch (...)
@@ -112,14 +132,21 @@ namespace py::cpp::Windows::Devices::Adc
112
132
 
113
133
  static PyObject* AdcChannel_get_Controller(py::wrapper::Windows::Devices::Adc::AdcChannel* self, void* /*unused*/) noexcept
114
134
  {
115
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Adc.AdcChannel", L"Controller"))
116
- {
117
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
118
- return nullptr;
119
- }
120
-
121
135
  try
122
136
  {
137
+ static std::optional<bool> is_property_present{};
138
+
139
+ if (!is_property_present.has_value())
140
+ {
141
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Adc.AdcChannel", L"Controller");
142
+ }
143
+
144
+ if (!is_property_present.value())
145
+ {
146
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
147
+ return nullptr;
148
+ }
149
+
123
150
  return py::convert(self->obj.Controller());
124
151
  }
125
152
  catch (...)
@@ -179,7 +206,7 @@ namespace py::cpp::Windows::Devices::Adc
179
206
  { "_assign_array_", _assign_array_AdcChannel, METH_O | METH_STATIC, nullptr },
180
207
  { "_from", reinterpret_cast<PyCFunction>(_from_AdcChannel), METH_O | METH_STATIC, nullptr },
181
208
  { "__enter__", reinterpret_cast<PyCFunction>(_enter_AdcChannel), METH_NOARGS, nullptr },
182
- { "__exit__", reinterpret_cast<PyCFunction>(_exit_AdcChannel), METH_VARARGS, nullptr },
209
+ { "__exit__", reinterpret_cast<PyCFunction>(_exit_AdcChannel), METH_VARARGS, nullptr },
183
210
  { }
184
211
  };
185
212
 
@@ -188,23 +215,20 @@ namespace py::cpp::Windows::Devices::Adc
188
215
  { }
189
216
  };
190
217
 
191
- static PyType_Slot _type_slots_AdcChannel[] =
192
- {
218
+ static PyType_Slot _type_slots_AdcChannel[] = {
193
219
  { Py_tp_new, reinterpret_cast<void*>(_new_AdcChannel) },
194
220
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_AdcChannel) },
195
221
  { Py_tp_methods, reinterpret_cast<void*>(_methods_AdcChannel) },
196
222
  { Py_tp_getset, reinterpret_cast<void*>(_getset_AdcChannel) },
197
- { },
223
+ { }
198
224
  };
199
225
 
200
- static PyType_Spec type_spec_AdcChannel =
201
- {
226
+ static PyType_Spec type_spec_AdcChannel = {
202
227
  "winrt._winrt_windows_devices_adc.AdcChannel",
203
228
  sizeof(py::wrapper::Windows::Devices::Adc::AdcChannel),
204
229
  0,
205
230
  Py_TPFLAGS_DEFAULT,
206
- _type_slots_AdcChannel
207
- };
231
+ _type_slots_AdcChannel};
208
232
 
209
233
  // ----- AdcController class --------------------
210
234
 
@@ -229,14 +253,21 @@ namespace py::cpp::Windows::Devices::Adc
229
253
 
230
254
  if (arg_count == 1)
231
255
  {
232
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Adc.AdcController", L"GetControllersAsync", 1))
233
- {
234
- py::set_arg_count_version_error(1);
235
- return nullptr;
236
- }
237
-
238
256
  try
239
257
  {
258
+ static std::optional<bool> is_overload_present{};
259
+
260
+ if (!is_overload_present.has_value())
261
+ {
262
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Adc.AdcController", L"GetControllersAsync", 1);
263
+ }
264
+
265
+ if (!is_overload_present.value())
266
+ {
267
+ py::set_arg_count_version_error(1);
268
+ return nullptr;
269
+ }
270
+
240
271
  auto param0 = py::convert_to<winrt::Windows::Devices::Adc::Provider::IAdcProvider>(args, 0);
241
272
 
242
273
  return py::convert(winrt::Windows::Devices::Adc::AdcController::GetControllersAsync(param0));
@@ -260,14 +291,21 @@ namespace py::cpp::Windows::Devices::Adc
260
291
 
261
292
  if (arg_count == 0)
262
293
  {
263
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Adc.AdcController", L"GetDefaultAsync", 0))
264
- {
265
- py::set_arg_count_version_error(0);
266
- return nullptr;
267
- }
268
-
269
294
  try
270
295
  {
296
+ static std::optional<bool> is_overload_present{};
297
+
298
+ if (!is_overload_present.has_value())
299
+ {
300
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Adc.AdcController", L"GetDefaultAsync", 0);
301
+ }
302
+
303
+ if (!is_overload_present.value())
304
+ {
305
+ py::set_arg_count_version_error(0);
306
+ return nullptr;
307
+ }
308
+
271
309
  return py::convert(winrt::Windows::Devices::Adc::AdcController::GetDefaultAsync());
272
310
  }
273
311
  catch (...)
@@ -289,14 +327,21 @@ namespace py::cpp::Windows::Devices::Adc
289
327
 
290
328
  if (arg_count == 1)
291
329
  {
292
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Adc.AdcController", L"IsChannelModeSupported", 1))
293
- {
294
- py::set_arg_count_version_error(1);
295
- return nullptr;
296
- }
297
-
298
330
  try
299
331
  {
332
+ static std::optional<bool> is_overload_present{};
333
+
334
+ if (!is_overload_present.has_value())
335
+ {
336
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Adc.AdcController", L"IsChannelModeSupported", 1);
337
+ }
338
+
339
+ if (!is_overload_present.value())
340
+ {
341
+ py::set_arg_count_version_error(1);
342
+ return nullptr;
343
+ }
344
+
300
345
  auto param0 = py::convert_to<winrt::Windows::Devices::Adc::AdcChannelMode>(args, 0);
301
346
 
302
347
  return py::convert(self->obj.IsChannelModeSupported(param0));
@@ -320,14 +365,21 @@ namespace py::cpp::Windows::Devices::Adc
320
365
 
321
366
  if (arg_count == 1)
322
367
  {
323
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Adc.AdcController", L"OpenChannel", 1))
324
- {
325
- py::set_arg_count_version_error(1);
326
- return nullptr;
327
- }
328
-
329
368
  try
330
369
  {
370
+ static std::optional<bool> is_overload_present{};
371
+
372
+ if (!is_overload_present.has_value())
373
+ {
374
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Devices.Adc.AdcController", L"OpenChannel", 1);
375
+ }
376
+
377
+ if (!is_overload_present.value())
378
+ {
379
+ py::set_arg_count_version_error(1);
380
+ return nullptr;
381
+ }
382
+
331
383
  auto param0 = py::convert_to<int32_t>(args, 0);
332
384
 
333
385
  return py::convert(self->obj.OpenChannel(param0));
@@ -347,14 +399,21 @@ namespace py::cpp::Windows::Devices::Adc
347
399
 
348
400
  static PyObject* AdcController_get_ChannelMode(py::wrapper::Windows::Devices::Adc::AdcController* self, void* /*unused*/) noexcept
349
401
  {
350
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Adc.AdcController", L"ChannelMode"))
351
- {
352
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
353
- return nullptr;
354
- }
355
-
356
402
  try
357
403
  {
404
+ static std::optional<bool> is_property_present{};
405
+
406
+ if (!is_property_present.has_value())
407
+ {
408
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Adc.AdcController", L"ChannelMode");
409
+ }
410
+
411
+ if (!is_property_present.value())
412
+ {
413
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
414
+ return nullptr;
415
+ }
416
+
358
417
  return py::convert(self->obj.ChannelMode());
359
418
  }
360
419
  catch (...)
@@ -366,12 +425,6 @@ namespace py::cpp::Windows::Devices::Adc
366
425
 
367
426
  static int AdcController_put_ChannelMode(py::wrapper::Windows::Devices::Adc::AdcController* self, PyObject* arg, void* /*unused*/) noexcept
368
427
  {
369
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Adc.AdcController", L"ChannelMode"))
370
- {
371
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
372
- return -1;
373
- }
374
-
375
428
  if (arg == nullptr)
376
429
  {
377
430
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
@@ -380,6 +433,19 @@ namespace py::cpp::Windows::Devices::Adc
380
433
 
381
434
  try
382
435
  {
436
+ static std::optional<bool> is_property_present{};
437
+
438
+ if (!is_property_present.has_value())
439
+ {
440
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Adc.AdcController", L"ChannelMode");
441
+ }
442
+
443
+ if (!is_property_present.value())
444
+ {
445
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
446
+ return -1;
447
+ }
448
+
383
449
  auto param0 = py::convert_to<winrt::Windows::Devices::Adc::AdcChannelMode>(arg);
384
450
 
385
451
  self->obj.ChannelMode(param0);
@@ -394,14 +460,21 @@ namespace py::cpp::Windows::Devices::Adc
394
460
 
395
461
  static PyObject* AdcController_get_ChannelCount(py::wrapper::Windows::Devices::Adc::AdcController* self, void* /*unused*/) noexcept
396
462
  {
397
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Adc.AdcController", L"ChannelCount"))
398
- {
399
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
400
- return nullptr;
401
- }
402
-
403
463
  try
404
464
  {
465
+ static std::optional<bool> is_property_present{};
466
+
467
+ if (!is_property_present.has_value())
468
+ {
469
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Adc.AdcController", L"ChannelCount");
470
+ }
471
+
472
+ if (!is_property_present.value())
473
+ {
474
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
475
+ return nullptr;
476
+ }
477
+
405
478
  return py::convert(self->obj.ChannelCount());
406
479
  }
407
480
  catch (...)
@@ -413,14 +486,21 @@ namespace py::cpp::Windows::Devices::Adc
413
486
 
414
487
  static PyObject* AdcController_get_MaxValue(py::wrapper::Windows::Devices::Adc::AdcController* self, void* /*unused*/) noexcept
415
488
  {
416
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Adc.AdcController", L"MaxValue"))
417
- {
418
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
419
- return nullptr;
420
- }
421
-
422
489
  try
423
490
  {
491
+ static std::optional<bool> is_property_present{};
492
+
493
+ if (!is_property_present.has_value())
494
+ {
495
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Adc.AdcController", L"MaxValue");
496
+ }
497
+
498
+ if (!is_property_present.value())
499
+ {
500
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
501
+ return nullptr;
502
+ }
503
+
424
504
  return py::convert(self->obj.MaxValue());
425
505
  }
426
506
  catch (...)
@@ -432,14 +512,21 @@ namespace py::cpp::Windows::Devices::Adc
432
512
 
433
513
  static PyObject* AdcController_get_MinValue(py::wrapper::Windows::Devices::Adc::AdcController* self, void* /*unused*/) noexcept
434
514
  {
435
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Adc.AdcController", L"MinValue"))
436
- {
437
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
438
- return nullptr;
439
- }
440
-
441
515
  try
442
516
  {
517
+ static std::optional<bool> is_property_present{};
518
+
519
+ if (!is_property_present.has_value())
520
+ {
521
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Adc.AdcController", L"MinValue");
522
+ }
523
+
524
+ if (!is_property_present.value())
525
+ {
526
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
527
+ return nullptr;
528
+ }
529
+
443
530
  return py::convert(self->obj.MinValue());
444
531
  }
445
532
  catch (...)
@@ -451,14 +538,21 @@ namespace py::cpp::Windows::Devices::Adc
451
538
 
452
539
  static PyObject* AdcController_get_ResolutionInBits(py::wrapper::Windows::Devices::Adc::AdcController* self, void* /*unused*/) noexcept
453
540
  {
454
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Adc.AdcController", L"ResolutionInBits"))
455
- {
456
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
457
- return nullptr;
458
- }
459
-
460
541
  try
461
542
  {
543
+ static std::optional<bool> is_property_present{};
544
+
545
+ if (!is_property_present.has_value())
546
+ {
547
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Adc.AdcController", L"ResolutionInBits");
548
+ }
549
+
550
+ if (!is_property_present.value())
551
+ {
552
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
553
+ return nullptr;
554
+ }
555
+
462
556
  return py::convert(self->obj.ResolutionInBits());
463
557
  }
464
558
  catch (...)
@@ -509,23 +603,20 @@ namespace py::cpp::Windows::Devices::Adc
509
603
  { }
510
604
  };
511
605
 
512
- static PyType_Slot _type_slots_AdcController[] =
513
- {
606
+ static PyType_Slot _type_slots_AdcController[] = {
514
607
  { Py_tp_new, reinterpret_cast<void*>(_new_AdcController) },
515
608
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_AdcController) },
516
609
  { Py_tp_methods, reinterpret_cast<void*>(_methods_AdcController) },
517
610
  { Py_tp_getset, reinterpret_cast<void*>(_getset_AdcController) },
518
- { },
611
+ { }
519
612
  };
520
613
 
521
- static PyType_Spec type_spec_AdcController =
522
- {
614
+ static PyType_Spec type_spec_AdcController = {
523
615
  "winrt._winrt_windows_devices_adc.AdcController",
524
616
  sizeof(py::wrapper::Windows::Devices::Adc::AdcController),
525
617
  0,
526
618
  Py_TPFLAGS_DEFAULT,
527
- _type_slots_AdcController
528
- };
619
+ _type_slots_AdcController};
529
620
 
530
621
  static PyGetSetDef getset_AdcController_Static[] = {
531
622
  { }
@@ -555,20 +646,19 @@ namespace py::cpp::Windows::Devices::Adc
555
646
  };
556
647
 
557
648
  // ----- Windows.Devices.Adc Initialization --------------------
558
- PyDoc_STRVAR(module_doc, "Windows::Devices::Adc");
559
649
 
650
+ PyDoc_STRVAR(module_doc, "Windows.Devices.Adc");
560
651
 
561
- static PyModuleDef module_def
562
- = {PyModuleDef_HEAD_INIT,
563
- "_winrt_windows_devices_adc",
564
- module_doc,
565
- 0,
566
- nullptr,
567
- nullptr,
568
- nullptr,
569
- nullptr,
570
- nullptr};
571
-
652
+ static PyModuleDef module_def = {
653
+ PyModuleDef_HEAD_INIT,
654
+ "_winrt_windows_devices_adc",
655
+ module_doc,
656
+ 0,
657
+ nullptr,
658
+ nullptr,
659
+ nullptr,
660
+ nullptr,
661
+ nullptr};
572
662
  } // py::cpp::Windows::Devices::Adc
573
663
 
574
664
  PyMODINIT_FUNC PyInit__winrt_windows_devices_adc(void) noexcept
@@ -600,7 +690,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_devices_adc(void) noexcept
600
690
  return nullptr;
601
691
  }
602
692
 
603
- if (py::register_python_type(module.get(), &type_spec_AdcChannel, object_bases.get(), nullptr) == -1)
693
+ py::pytype_handle AdcChannel_type{py::register_python_type(module.get(), &type_spec_AdcChannel, object_bases.get(), nullptr)};
694
+ if (!AdcChannel_type)
604
695
  {
605
696
  return nullptr;
606
697
  }
@@ -611,7 +702,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_devices_adc(void) noexcept
611
702
  return nullptr;
612
703
  }
613
704
 
614
- if (py::register_python_type(module.get(), &type_spec_AdcController, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_AdcController_Static.get())) == -1)
705
+ py::pytype_handle AdcController_type{py::register_python_type(module.get(), &type_spec_AdcController, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_AdcController_Static.get()))};
706
+ if (!AdcController_type)
615
707
  {
616
708
  return nullptr;
617
709
  }
@@ -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
@@ -0,0 +1 @@
1
+ 2.2.0
@@ -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
@@ -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 datetime
4
4
  import sys
@@ -9,9 +9,9 @@ from builtins import property as _property
9
9
 
10
10
  import winrt._winrt
11
11
  import winrt.system
12
- import winrt.windows.devices.adc.provider
13
- import winrt.windows.foundation
14
- import winrt.windows.foundation.collections
12
+ import winrt.windows.devices.adc.provider as windows_devices_adc_provider
13
+ import winrt.windows.foundation as windows_foundation
14
+ import winrt.windows.foundation.collections as windows_foundation_collections
15
15
 
16
16
  from winrt.windows.devices.adc import AdcChannelMode
17
17
 
@@ -31,8 +31,8 @@ class AdcChannel(winrt.system.Object):
31
31
 
32
32
  @typing.final
33
33
  class AdcController_Static(type):
34
- def get_controllers_async(cls, provider: typing.Optional[winrt.windows.devices.adc.provider.IAdcProvider], /) -> winrt.windows.foundation.IAsyncOperation[winrt.windows.foundation.collections.IVectorView[AdcController]]: ...
35
- def get_default_async(cls) -> winrt.windows.foundation.IAsyncOperation[AdcController]: ...
34
+ def get_controllers_async(cls, provider: typing.Optional[windows_devices_adc_provider.IAdcProvider], /) -> windows_foundation.IAsyncOperation[windows_foundation_collections.IVectorView[AdcController]]: ...
35
+ def get_default_async(cls) -> windows_foundation.IAsyncOperation[AdcController]: ...
36
36
 
37
37
  @typing.final
38
38
  class AdcController(winrt.system.Object, metaclass=AdcController_Static):
@@ -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 enum
4
4
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Devices.Adc
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,13 +10,13 @@ Classifier: Operating System :: Microsoft :: Windows
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
- Requires-Python: <3.13,>=3.9
13
+ Requires-Python: <3.14,>=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.0.1
15
+ Requires-Dist: winrt-runtime==2.2.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Devices.Adc.Provider[all]==2.0.1; extra == "all"
18
- Requires-Dist: winrt-Windows.Foundation[all]==2.0.1; extra == "all"
19
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.0.1; extra == "all"
17
+ Requires-Dist: winrt-Windows.Devices.Adc.Provider[all]==2.2.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.2.0; extra == "all"
20
20
 
21
21
  <!-- warning: Please don't edit this file. It was automatically generated. -->
22
22
 
@@ -0,0 +1,6 @@
1
+ winrt-runtime==2.2.0
2
+
3
+ [all]
4
+ winrt-Windows.Devices.Adc.Provider[all]==2.2.0
5
+ winrt-Windows.Foundation[all]==2.2.0
6
+ winrt-Windows.Foundation.Collections[all]==2.2.0
@@ -1,5 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
2
-
3
- winrt-Windows.Devices.Adc.Provider[all]==2.0.1
4
- winrt-Windows.Foundation[all]==2.0.1
5
- winrt-Windows.Foundation.Collections[all]==2.0.1
@@ -1 +0,0 @@
1
- 2.0.1
@@ -1,6 +0,0 @@
1
- winrt-runtime==2.0.1
2
-
3
- [all]
4
- winrt-Windows.Devices.Adc.Provider[all]==2.0.1
5
- winrt-Windows.Foundation[all]==2.0.1
6
- winrt-Windows.Foundation.Collections[all]==2.0.1