winrt-Windows.Devices.Adc 2.1.0__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.
- {winrt_windows_devices_adc-2.1.0 → winrt_windows_devices_adc-2.2.0}/PKG-INFO +6 -6
- winrt_windows_devices_adc-2.2.0/all-requirements.txt +5 -0
- {winrt_windows_devices_adc-2.1.0 → winrt_windows_devices_adc-2.2.0}/py.Windows.Devices.Adc.cpp +117 -17
- {winrt_windows_devices_adc-2.1.0 → winrt_windows_devices_adc-2.2.0}/pyproject.toml +3 -2
- winrt_windows_devices_adc-2.2.0/pywinrt-version.txt +1 -0
- {winrt_windows_devices_adc-2.1.0 → winrt_windows_devices_adc-2.2.0}/requirements.txt +2 -2
- {winrt_windows_devices_adc-2.1.0 → winrt_windows_devices_adc-2.2.0}/winrt/_winrt_windows_devices_adc.pyi +1 -1
- {winrt_windows_devices_adc-2.1.0 → winrt_windows_devices_adc-2.2.0}/winrt/windows/devices/adc/__init__.py +1 -1
- {winrt_windows_devices_adc-2.1.0 → winrt_windows_devices_adc-2.2.0}/winrt_Windows.Devices.Adc.egg-info/PKG-INFO +6 -6
- winrt_windows_devices_adc-2.2.0/winrt_Windows.Devices.Adc.egg-info/requires.txt +6 -0
- winrt_windows_devices_adc-2.1.0/all-requirements.txt +0 -5
- winrt_windows_devices_adc-2.1.0/pywinrt-version.txt +0 -1
- winrt_windows_devices_adc-2.1.0/winrt_Windows.Devices.Adc.egg-info/requires.txt +0 -6
- {winrt_windows_devices_adc-2.1.0 → winrt_windows_devices_adc-2.2.0}/README.md +0 -0
- {winrt_windows_devices_adc-2.1.0 → winrt_windows_devices_adc-2.2.0}/setup.cfg +0 -0
- {winrt_windows_devices_adc-2.1.0 → winrt_windows_devices_adc-2.2.0}/setup.py +0 -0
- {winrt_windows_devices_adc-2.1.0 → winrt_windows_devices_adc-2.2.0}/winrt/windows/devices/adc/py.typed +0 -0
- {winrt_windows_devices_adc-2.1.0 → winrt_windows_devices_adc-2.2.0}/winrt_Windows.Devices.Adc.egg-info/SOURCES.txt +0 -0
- {winrt_windows_devices_adc-2.1.0 → winrt_windows_devices_adc-2.2.0}/winrt_Windows.Devices.Adc.egg-info/dependency_links.txt +0 -0
- {winrt_windows_devices_adc-2.1.0 → 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.
|
|
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
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Devices.Adc.Provider[all]==2.
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.
|
|
19
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.
|
|
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
|
|
{winrt_windows_devices_adc-2.1.0 → winrt_windows_devices_adc-2.2.0}/py.Windows.Devices.Adc.cpp
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
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
|
|
|
@@ -29,7 +29,14 @@ namespace py::cpp::Windows::Devices::Adc
|
|
|
29
29
|
{
|
|
30
30
|
try
|
|
31
31
|
{
|
|
32
|
-
|
|
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())
|
|
33
40
|
{
|
|
34
41
|
py::set_arg_count_version_error(0);
|
|
35
42
|
return nullptr;
|
|
@@ -59,7 +66,14 @@ namespace py::cpp::Windows::Devices::Adc
|
|
|
59
66
|
{
|
|
60
67
|
try
|
|
61
68
|
{
|
|
62
|
-
|
|
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())
|
|
63
77
|
{
|
|
64
78
|
py::set_arg_count_version_error(0);
|
|
65
79
|
return nullptr;
|
|
@@ -88,7 +102,14 @@ namespace py::cpp::Windows::Devices::Adc
|
|
|
88
102
|
{
|
|
89
103
|
try
|
|
90
104
|
{
|
|
91
|
-
|
|
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())
|
|
92
113
|
{
|
|
93
114
|
py::set_arg_count_version_error(0);
|
|
94
115
|
return nullptr;
|
|
@@ -113,7 +134,14 @@ namespace py::cpp::Windows::Devices::Adc
|
|
|
113
134
|
{
|
|
114
135
|
try
|
|
115
136
|
{
|
|
116
|
-
|
|
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())
|
|
117
145
|
{
|
|
118
146
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
119
147
|
return nullptr;
|
|
@@ -227,7 +255,14 @@ namespace py::cpp::Windows::Devices::Adc
|
|
|
227
255
|
{
|
|
228
256
|
try
|
|
229
257
|
{
|
|
230
|
-
|
|
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())
|
|
231
266
|
{
|
|
232
267
|
py::set_arg_count_version_error(1);
|
|
233
268
|
return nullptr;
|
|
@@ -258,7 +293,14 @@ namespace py::cpp::Windows::Devices::Adc
|
|
|
258
293
|
{
|
|
259
294
|
try
|
|
260
295
|
{
|
|
261
|
-
|
|
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())
|
|
262
304
|
{
|
|
263
305
|
py::set_arg_count_version_error(0);
|
|
264
306
|
return nullptr;
|
|
@@ -287,7 +329,14 @@ namespace py::cpp::Windows::Devices::Adc
|
|
|
287
329
|
{
|
|
288
330
|
try
|
|
289
331
|
{
|
|
290
|
-
|
|
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())
|
|
291
340
|
{
|
|
292
341
|
py::set_arg_count_version_error(1);
|
|
293
342
|
return nullptr;
|
|
@@ -318,7 +367,14 @@ namespace py::cpp::Windows::Devices::Adc
|
|
|
318
367
|
{
|
|
319
368
|
try
|
|
320
369
|
{
|
|
321
|
-
|
|
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())
|
|
322
378
|
{
|
|
323
379
|
py::set_arg_count_version_error(1);
|
|
324
380
|
return nullptr;
|
|
@@ -345,7 +401,14 @@ namespace py::cpp::Windows::Devices::Adc
|
|
|
345
401
|
{
|
|
346
402
|
try
|
|
347
403
|
{
|
|
348
|
-
|
|
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())
|
|
349
412
|
{
|
|
350
413
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
351
414
|
return nullptr;
|
|
@@ -370,7 +433,14 @@ namespace py::cpp::Windows::Devices::Adc
|
|
|
370
433
|
|
|
371
434
|
try
|
|
372
435
|
{
|
|
373
|
-
|
|
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())
|
|
374
444
|
{
|
|
375
445
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
376
446
|
return -1;
|
|
@@ -392,7 +462,14 @@ namespace py::cpp::Windows::Devices::Adc
|
|
|
392
462
|
{
|
|
393
463
|
try
|
|
394
464
|
{
|
|
395
|
-
|
|
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())
|
|
396
473
|
{
|
|
397
474
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
398
475
|
return nullptr;
|
|
@@ -411,7 +488,14 @@ namespace py::cpp::Windows::Devices::Adc
|
|
|
411
488
|
{
|
|
412
489
|
try
|
|
413
490
|
{
|
|
414
|
-
|
|
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())
|
|
415
499
|
{
|
|
416
500
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
417
501
|
return nullptr;
|
|
@@ -430,7 +514,14 @@ namespace py::cpp::Windows::Devices::Adc
|
|
|
430
514
|
{
|
|
431
515
|
try
|
|
432
516
|
{
|
|
433
|
-
|
|
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())
|
|
434
525
|
{
|
|
435
526
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
436
527
|
return nullptr;
|
|
@@ -449,7 +540,14 @@ namespace py::cpp::Windows::Devices::Adc
|
|
|
449
540
|
{
|
|
450
541
|
try
|
|
451
542
|
{
|
|
452
|
-
|
|
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())
|
|
453
551
|
{
|
|
454
552
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
455
553
|
return nullptr;
|
|
@@ -592,7 +690,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_devices_adc(void) noexcept
|
|
|
592
690
|
return nullptr;
|
|
593
691
|
}
|
|
594
692
|
|
|
595
|
-
|
|
693
|
+
py::pytype_handle AdcChannel_type{py::register_python_type(module.get(), &type_spec_AdcChannel, object_bases.get(), nullptr)};
|
|
694
|
+
if (!AdcChannel_type)
|
|
596
695
|
{
|
|
597
696
|
return nullptr;
|
|
598
697
|
}
|
|
@@ -603,7 +702,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_devices_adc(void) noexcept
|
|
|
603
702
|
return nullptr;
|
|
604
703
|
}
|
|
605
704
|
|
|
606
|
-
|
|
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)
|
|
607
707
|
{
|
|
608
708
|
return nullptr;
|
|
609
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.
|
|
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.
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.
|
|
3
|
+
winrt-runtime==2.2.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Devices.Adc
|
|
3
|
-
Version: 2.
|
|
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
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Devices.Adc.Provider[all]==2.
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.
|
|
19
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.
|
|
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
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.1.0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|