winrt-Windows.Devices 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_devices-2.1.0 → winrt_windows_devices-2.3.0}/PKG-INFO +8 -8
  2. winrt_windows_devices-2.3.0/all-requirements.txt +7 -0
  3. {winrt_windows_devices-2.1.0 → winrt_windows_devices-2.3.0}/py.Windows.Devices.cpp +104 -17
  4. {winrt_windows_devices-2.1.0 → winrt_windows_devices-2.3.0}/pyproject.toml +3 -2
  5. winrt_windows_devices-2.3.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_devices-2.1.0 → winrt_windows_devices-2.3.0}/requirements.txt +2 -2
  7. {winrt_windows_devices-2.1.0 → winrt_windows_devices-2.3.0}/winrt/_winrt_windows_devices.pyi +1 -1
  8. {winrt_windows_devices-2.1.0 → winrt_windows_devices-2.3.0}/winrt/windows/devices/__init__.py +1 -1
  9. {winrt_windows_devices-2.1.0 → winrt_windows_devices-2.3.0}/winrt_Windows.Devices.egg-info/PKG-INFO +8 -8
  10. winrt_windows_devices-2.3.0/winrt_Windows.Devices.egg-info/requires.txt +8 -0
  11. winrt_windows_devices-2.1.0/all-requirements.txt +0 -7
  12. winrt_windows_devices-2.1.0/pywinrt-version.txt +0 -1
  13. winrt_windows_devices-2.1.0/winrt_Windows.Devices.egg-info/requires.txt +0 -8
  14. {winrt_windows_devices-2.1.0 → winrt_windows_devices-2.3.0}/README.md +0 -0
  15. {winrt_windows_devices-2.1.0 → winrt_windows_devices-2.3.0}/setup.cfg +0 -0
  16. {winrt_windows_devices-2.1.0 → winrt_windows_devices-2.3.0}/setup.py +0 -0
  17. {winrt_windows_devices-2.1.0 → winrt_windows_devices-2.3.0}/winrt/windows/devices/py.typed +0 -0
  18. {winrt_windows_devices-2.1.0 → winrt_windows_devices-2.3.0}/winrt_Windows.Devices.egg-info/SOURCES.txt +0 -0
  19. {winrt_windows_devices-2.1.0 → winrt_windows_devices-2.3.0}/winrt_Windows.Devices.egg-info/dependency_links.txt +0 -0
  20. {winrt_windows_devices-2.1.0 → winrt_windows_devices-2.3.0}/winrt_Windows.Devices.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Devices
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,15 +10,15 @@ 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.Devices.Adc.Provider[all]==2.1.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Devices.Gpio.Provider[all]==2.1.0; extra == "all"
19
- Requires-Dist: winrt-Windows.Devices.I2c.Provider[all]==2.1.0; extra == "all"
20
- Requires-Dist: winrt-Windows.Devices.Pwm.Provider[all]==2.1.0; extra == "all"
21
- Requires-Dist: winrt-Windows.Devices.Spi.Provider[all]==2.1.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Devices.Adc.Provider[all]==2.3.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Devices.Gpio.Provider[all]==2.3.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Devices.I2c.Provider[all]==2.3.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.Devices.Pwm.Provider[all]==2.3.0; extra == "all"
21
+ Requires-Dist: winrt-Windows.Devices.Spi.Provider[all]==2.3.0; extra == "all"
22
22
 
23
23
  <!-- warning: Please don't edit this file. It was automatically generated. -->
24
24
 
@@ -0,0 +1,7 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
+
3
+ winrt-Windows.Devices.Adc.Provider[all]==2.3.0
4
+ winrt-Windows.Devices.Gpio.Provider[all]==2.3.0
5
+ winrt-Windows.Devices.I2c.Provider[all]==2.3.0
6
+ winrt-Windows.Devices.Pwm.Provider[all]==2.3.0
7
+ winrt-Windows.Devices.Spi.Provider[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.Devices.h"
4
4
 
@@ -25,7 +25,7 @@ namespace py::cpp::Windows::Devices
25
25
  auto param3 = py::convert_to<winrt::Windows::Devices::I2c::Provider::II2cControllerProvider>(args, 3);
26
26
  auto param4 = py::convert_to<winrt::Windows::Devices::Spi::Provider::ISpiControllerProvider>(args, 4);
27
27
 
28
- winrt::Windows::Devices::LowLevelDevicesAggregateProvider instance{ param0, param1, param2, param3, param4 };
28
+ winrt::Windows::Devices::LowLevelDevicesAggregateProvider instance{param0, param1, param2, param3, param4};
29
29
  return py::wrap(instance, type);
30
30
  }
31
31
  catch (...)
@@ -53,7 +53,14 @@ namespace py::cpp::Windows::Devices
53
53
  {
54
54
  try
55
55
  {
56
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.LowLevelDevicesAggregateProvider", L"AdcControllerProvider"))
56
+ static std::optional<bool> is_property_present{};
57
+
58
+ if (!is_property_present.has_value())
59
+ {
60
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.LowLevelDevicesAggregateProvider", L"AdcControllerProvider");
61
+ }
62
+
63
+ if (!is_property_present.value())
57
64
  {
58
65
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
59
66
  return nullptr;
@@ -72,7 +79,14 @@ namespace py::cpp::Windows::Devices
72
79
  {
73
80
  try
74
81
  {
75
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.LowLevelDevicesAggregateProvider", L"GpioControllerProvider"))
82
+ static std::optional<bool> is_property_present{};
83
+
84
+ if (!is_property_present.has_value())
85
+ {
86
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.LowLevelDevicesAggregateProvider", L"GpioControllerProvider");
87
+ }
88
+
89
+ if (!is_property_present.value())
76
90
  {
77
91
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
78
92
  return nullptr;
@@ -91,7 +105,14 @@ namespace py::cpp::Windows::Devices
91
105
  {
92
106
  try
93
107
  {
94
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.LowLevelDevicesAggregateProvider", L"I2cControllerProvider"))
108
+ static std::optional<bool> is_property_present{};
109
+
110
+ if (!is_property_present.has_value())
111
+ {
112
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.LowLevelDevicesAggregateProvider", L"I2cControllerProvider");
113
+ }
114
+
115
+ if (!is_property_present.value())
95
116
  {
96
117
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
97
118
  return nullptr;
@@ -110,7 +131,14 @@ namespace py::cpp::Windows::Devices
110
131
  {
111
132
  try
112
133
  {
113
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.LowLevelDevicesAggregateProvider", L"PwmControllerProvider"))
134
+ static std::optional<bool> is_property_present{};
135
+
136
+ if (!is_property_present.has_value())
137
+ {
138
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.LowLevelDevicesAggregateProvider", L"PwmControllerProvider");
139
+ }
140
+
141
+ if (!is_property_present.value())
114
142
  {
115
143
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
116
144
  return nullptr;
@@ -129,7 +157,14 @@ namespace py::cpp::Windows::Devices
129
157
  {
130
158
  try
131
159
  {
132
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.LowLevelDevicesAggregateProvider", L"SpiControllerProvider"))
160
+ static std::optional<bool> is_property_present{};
161
+
162
+ if (!is_property_present.has_value())
163
+ {
164
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.LowLevelDevicesAggregateProvider", L"SpiControllerProvider");
165
+ }
166
+
167
+ if (!is_property_present.value())
133
168
  {
134
169
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
135
170
  return nullptr;
@@ -219,7 +254,14 @@ namespace py::cpp::Windows::Devices
219
254
  {
220
255
  try
221
256
  {
222
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.LowLevelDevicesController", L"DefaultProvider"))
257
+ static std::optional<bool> is_property_present{};
258
+
259
+ if (!is_property_present.has_value())
260
+ {
261
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.LowLevelDevicesController", L"DefaultProvider");
262
+ }
263
+
264
+ if (!is_property_present.value())
223
265
  {
224
266
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
225
267
  return nullptr;
@@ -244,7 +286,14 @@ namespace py::cpp::Windows::Devices
244
286
 
245
287
  try
246
288
  {
247
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.LowLevelDevicesController", L"DefaultProvider"))
289
+ static std::optional<bool> is_property_present{};
290
+
291
+ if (!is_property_present.has_value())
292
+ {
293
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.LowLevelDevicesController", L"DefaultProvider");
294
+ }
295
+
296
+ if (!is_property_present.value())
248
297
  {
249
298
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
250
299
  return -1;
@@ -358,7 +407,14 @@ namespace py::cpp::Windows::Devices
358
407
  {
359
408
  try
360
409
  {
361
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.ILowLevelDevicesAggregateProvider", L"AdcControllerProvider"))
410
+ static std::optional<bool> is_property_present{};
411
+
412
+ if (!is_property_present.has_value())
413
+ {
414
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.ILowLevelDevicesAggregateProvider", L"AdcControllerProvider");
415
+ }
416
+
417
+ if (!is_property_present.value())
362
418
  {
363
419
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
364
420
  return nullptr;
@@ -377,7 +433,14 @@ namespace py::cpp::Windows::Devices
377
433
  {
378
434
  try
379
435
  {
380
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.ILowLevelDevicesAggregateProvider", L"GpioControllerProvider"))
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.ILowLevelDevicesAggregateProvider", L"GpioControllerProvider");
441
+ }
442
+
443
+ if (!is_property_present.value())
381
444
  {
382
445
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
383
446
  return nullptr;
@@ -396,7 +459,14 @@ namespace py::cpp::Windows::Devices
396
459
  {
397
460
  try
398
461
  {
399
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.ILowLevelDevicesAggregateProvider", L"I2cControllerProvider"))
462
+ static std::optional<bool> is_property_present{};
463
+
464
+ if (!is_property_present.has_value())
465
+ {
466
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.ILowLevelDevicesAggregateProvider", L"I2cControllerProvider");
467
+ }
468
+
469
+ if (!is_property_present.value())
400
470
  {
401
471
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
402
472
  return nullptr;
@@ -415,7 +485,14 @@ namespace py::cpp::Windows::Devices
415
485
  {
416
486
  try
417
487
  {
418
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.ILowLevelDevicesAggregateProvider", L"PwmControllerProvider"))
488
+ static std::optional<bool> is_property_present{};
489
+
490
+ if (!is_property_present.has_value())
491
+ {
492
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.ILowLevelDevicesAggregateProvider", L"PwmControllerProvider");
493
+ }
494
+
495
+ if (!is_property_present.value())
419
496
  {
420
497
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
421
498
  return nullptr;
@@ -434,7 +511,14 @@ namespace py::cpp::Windows::Devices
434
511
  {
435
512
  try
436
513
  {
437
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.ILowLevelDevicesAggregateProvider", L"SpiControllerProvider"))
514
+ static std::optional<bool> is_property_present{};
515
+
516
+ if (!is_property_present.has_value())
517
+ {
518
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.ILowLevelDevicesAggregateProvider", L"SpiControllerProvider");
519
+ }
520
+
521
+ if (!is_property_present.value())
438
522
  {
439
523
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
440
524
  return nullptr;
@@ -548,7 +632,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_devices(void) noexcept
548
632
  return nullptr;
549
633
  }
550
634
 
551
- if (py::register_python_type(module.get(), &type_spec_LowLevelDevicesAggregateProvider, object_bases.get(), nullptr) == -1)
635
+ py::pytype_handle LowLevelDevicesAggregateProvider_type{py::register_python_type(module.get(), &type_spec_LowLevelDevicesAggregateProvider, object_bases.get(), nullptr)};
636
+ if (!LowLevelDevicesAggregateProvider_type)
552
637
  {
553
638
  return nullptr;
554
639
  }
@@ -559,12 +644,14 @@ PyMODINIT_FUNC PyInit__winrt_windows_devices(void) noexcept
559
644
  return nullptr;
560
645
  }
561
646
 
562
- if (py::register_python_type(module.get(), &type_spec_LowLevelDevicesController, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_LowLevelDevicesController_Static.get())) == -1)
647
+ py::pytype_handle LowLevelDevicesController_type{py::register_python_type(module.get(), &type_spec_LowLevelDevicesController, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_LowLevelDevicesController_Static.get()))};
648
+ if (!LowLevelDevicesController_type)
563
649
  {
564
650
  return nullptr;
565
651
  }
566
652
 
567
- if (py::register_python_type(module.get(), &type_spec_ILowLevelDevicesAggregateProvider, object_bases.get(), nullptr) == -1)
653
+ py::pytype_handle ILowLevelDevicesAggregateProvider_type{py::register_python_type(module.get(), &type_spec_ILowLevelDevicesAggregateProvider, object_bases.get(), nullptr)};
654
+ if (!ILowLevelDevicesAggregateProvider_type)
568
655
  {
569
656
  return nullptr;
570
657
  }
@@ -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.3.0
@@ -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_devices
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Devices
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,15 +10,15 @@ 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.Devices.Adc.Provider[all]==2.1.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Devices.Gpio.Provider[all]==2.1.0; extra == "all"
19
- Requires-Dist: winrt-Windows.Devices.I2c.Provider[all]==2.1.0; extra == "all"
20
- Requires-Dist: winrt-Windows.Devices.Pwm.Provider[all]==2.1.0; extra == "all"
21
- Requires-Dist: winrt-Windows.Devices.Spi.Provider[all]==2.1.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Devices.Adc.Provider[all]==2.3.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Devices.Gpio.Provider[all]==2.3.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Devices.I2c.Provider[all]==2.3.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.Devices.Pwm.Provider[all]==2.3.0; extra == "all"
21
+ Requires-Dist: winrt-Windows.Devices.Spi.Provider[all]==2.3.0; extra == "all"
22
22
 
23
23
  <!-- warning: Please don't edit this file. It was automatically generated. -->
24
24
 
@@ -0,0 +1,8 @@
1
+ winrt-runtime==2.3.0
2
+
3
+ [all]
4
+ winrt-Windows.Devices.Adc.Provider[all]==2.3.0
5
+ winrt-Windows.Devices.Gpio.Provider[all]==2.3.0
6
+ winrt-Windows.Devices.I2c.Provider[all]==2.3.0
7
+ winrt-Windows.Devices.Pwm.Provider[all]==2.3.0
8
+ winrt-Windows.Devices.Spi.Provider[all]==2.3.0
@@ -1,7 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
-
3
- winrt-Windows.Devices.Adc.Provider[all]==2.1.0
4
- winrt-Windows.Devices.Gpio.Provider[all]==2.1.0
5
- winrt-Windows.Devices.I2c.Provider[all]==2.1.0
6
- winrt-Windows.Devices.Pwm.Provider[all]==2.1.0
7
- winrt-Windows.Devices.Spi.Provider[all]==2.1.0
@@ -1 +0,0 @@
1
- 2.1.0
@@ -1,8 +0,0 @@
1
- winrt-runtime==2.1.0
2
-
3
- [all]
4
- winrt-Windows.Devices.Adc.Provider[all]==2.1.0
5
- winrt-Windows.Devices.Gpio.Provider[all]==2.1.0
6
- winrt-Windows.Devices.I2c.Provider[all]==2.1.0
7
- winrt-Windows.Devices.Pwm.Provider[all]==2.1.0
8
- winrt-Windows.Devices.Spi.Provider[all]==2.1.0