winrt-Windows.System.Preview 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_system_preview-2.1.0 → winrt_windows_system_preview-2.2.0}/PKG-INFO +5 -5
- winrt_windows_system_preview-2.2.0/all-requirements.txt +4 -0
- {winrt_windows_system_preview-2.1.0 → winrt_windows_system_preview-2.2.0}/py.Windows.System.Preview.cpp +95 -15
- {winrt_windows_system_preview-2.1.0 → winrt_windows_system_preview-2.2.0}/pyproject.toml +3 -2
- winrt_windows_system_preview-2.2.0/pywinrt-version.txt +1 -0
- {winrt_windows_system_preview-2.1.0 → winrt_windows_system_preview-2.2.0}/requirements.txt +2 -2
- {winrt_windows_system_preview-2.1.0 → winrt_windows_system_preview-2.2.0}/winrt/_winrt_windows_system_preview.pyi +1 -1
- {winrt_windows_system_preview-2.1.0 → winrt_windows_system_preview-2.2.0}/winrt/windows/system/preview/__init__.py +1 -1
- {winrt_windows_system_preview-2.1.0 → winrt_windows_system_preview-2.2.0}/winrt_Windows.System.Preview.egg-info/PKG-INFO +5 -5
- winrt_windows_system_preview-2.2.0/winrt_Windows.System.Preview.egg-info/requires.txt +5 -0
- winrt_windows_system_preview-2.1.0/all-requirements.txt +0 -4
- winrt_windows_system_preview-2.1.0/pywinrt-version.txt +0 -1
- winrt_windows_system_preview-2.1.0/winrt_Windows.System.Preview.egg-info/requires.txt +0 -5
- {winrt_windows_system_preview-2.1.0 → winrt_windows_system_preview-2.2.0}/README.md +0 -0
- {winrt_windows_system_preview-2.1.0 → winrt_windows_system_preview-2.2.0}/setup.cfg +0 -0
- {winrt_windows_system_preview-2.1.0 → winrt_windows_system_preview-2.2.0}/setup.py +0 -0
- {winrt_windows_system_preview-2.1.0 → winrt_windows_system_preview-2.2.0}/winrt/windows/system/preview/py.typed +0 -0
- {winrt_windows_system_preview-2.1.0 → winrt_windows_system_preview-2.2.0}/winrt_Windows.System.Preview.egg-info/SOURCES.txt +0 -0
- {winrt_windows_system_preview-2.1.0 → winrt_windows_system_preview-2.2.0}/winrt_Windows.System.Preview.egg-info/dependency_links.txt +0 -0
- {winrt_windows_system_preview-2.1.0 → winrt_windows_system_preview-2.2.0}/winrt_Windows.System.Preview.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.System.Preview
|
|
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,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
|
+
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.Sensors[all]==2.
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.
|
|
17
|
+
Requires-Dist: winrt-Windows.Devices.Sensors[all]==2.2.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
|
|
19
19
|
|
|
20
20
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
21
21
|
|
|
@@ -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.System.Preview.h"
|
|
4
4
|
|
|
@@ -29,7 +29,14 @@ namespace py::cpp::Windows::System::Preview
|
|
|
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.System.Preview.TwoPanelHingedDevicePosturePreview", L"GetCurrentPostureAsync", 0);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if (!is_overload_present.value())
|
|
33
40
|
{
|
|
34
41
|
py::set_arg_count_version_error(0);
|
|
35
42
|
return nullptr;
|
|
@@ -58,7 +65,14 @@ namespace py::cpp::Windows::System::Preview
|
|
|
58
65
|
{
|
|
59
66
|
try
|
|
60
67
|
{
|
|
61
|
-
|
|
68
|
+
static std::optional<bool> is_overload_present{};
|
|
69
|
+
|
|
70
|
+
if (!is_overload_present.has_value())
|
|
71
|
+
{
|
|
72
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Preview.TwoPanelHingedDevicePosturePreview", L"GetDefaultAsync", 0);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if (!is_overload_present.value())
|
|
62
76
|
{
|
|
63
77
|
py::set_arg_count_version_error(0);
|
|
64
78
|
return nullptr;
|
|
@@ -83,7 +97,14 @@ namespace py::cpp::Windows::System::Preview
|
|
|
83
97
|
{
|
|
84
98
|
try
|
|
85
99
|
{
|
|
86
|
-
|
|
100
|
+
static std::optional<bool> is_event_present{};
|
|
101
|
+
|
|
102
|
+
if (!is_event_present.has_value())
|
|
103
|
+
{
|
|
104
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.System.Preview.TwoPanelHingedDevicePosturePreview", L"PostureChanged");
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
if (!is_event_present.value())
|
|
87
108
|
{
|
|
88
109
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
89
110
|
return nullptr;
|
|
@@ -104,7 +125,14 @@ namespace py::cpp::Windows::System::Preview
|
|
|
104
125
|
{
|
|
105
126
|
try
|
|
106
127
|
{
|
|
107
|
-
|
|
128
|
+
static std::optional<bool> is_event_present{};
|
|
129
|
+
|
|
130
|
+
if (!is_event_present.has_value())
|
|
131
|
+
{
|
|
132
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.System.Preview.TwoPanelHingedDevicePosturePreview", L"PostureChanged");
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
if (!is_event_present.value())
|
|
108
136
|
{
|
|
109
137
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
110
138
|
return nullptr;
|
|
@@ -221,7 +249,14 @@ namespace py::cpp::Windows::System::Preview
|
|
|
221
249
|
{
|
|
222
250
|
try
|
|
223
251
|
{
|
|
224
|
-
|
|
252
|
+
static std::optional<bool> is_property_present{};
|
|
253
|
+
|
|
254
|
+
if (!is_property_present.has_value())
|
|
255
|
+
{
|
|
256
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Preview.TwoPanelHingedDevicePosturePreviewReading", L"HingeState");
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
if (!is_property_present.value())
|
|
225
260
|
{
|
|
226
261
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
227
262
|
return nullptr;
|
|
@@ -240,7 +275,14 @@ namespace py::cpp::Windows::System::Preview
|
|
|
240
275
|
{
|
|
241
276
|
try
|
|
242
277
|
{
|
|
243
|
-
|
|
278
|
+
static std::optional<bool> is_property_present{};
|
|
279
|
+
|
|
280
|
+
if (!is_property_present.has_value())
|
|
281
|
+
{
|
|
282
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Preview.TwoPanelHingedDevicePosturePreviewReading", L"Panel1Id");
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
if (!is_property_present.value())
|
|
244
286
|
{
|
|
245
287
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
246
288
|
return nullptr;
|
|
@@ -259,7 +301,14 @@ namespace py::cpp::Windows::System::Preview
|
|
|
259
301
|
{
|
|
260
302
|
try
|
|
261
303
|
{
|
|
262
|
-
|
|
304
|
+
static std::optional<bool> is_property_present{};
|
|
305
|
+
|
|
306
|
+
if (!is_property_present.has_value())
|
|
307
|
+
{
|
|
308
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Preview.TwoPanelHingedDevicePosturePreviewReading", L"Panel1Orientation");
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
if (!is_property_present.value())
|
|
263
312
|
{
|
|
264
313
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
265
314
|
return nullptr;
|
|
@@ -278,7 +327,14 @@ namespace py::cpp::Windows::System::Preview
|
|
|
278
327
|
{
|
|
279
328
|
try
|
|
280
329
|
{
|
|
281
|
-
|
|
330
|
+
static std::optional<bool> is_property_present{};
|
|
331
|
+
|
|
332
|
+
if (!is_property_present.has_value())
|
|
333
|
+
{
|
|
334
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Preview.TwoPanelHingedDevicePosturePreviewReading", L"Panel2Id");
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
if (!is_property_present.value())
|
|
282
338
|
{
|
|
283
339
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
284
340
|
return nullptr;
|
|
@@ -297,7 +353,14 @@ namespace py::cpp::Windows::System::Preview
|
|
|
297
353
|
{
|
|
298
354
|
try
|
|
299
355
|
{
|
|
300
|
-
|
|
356
|
+
static std::optional<bool> is_property_present{};
|
|
357
|
+
|
|
358
|
+
if (!is_property_present.has_value())
|
|
359
|
+
{
|
|
360
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Preview.TwoPanelHingedDevicePosturePreviewReading", L"Panel2Orientation");
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
if (!is_property_present.value())
|
|
301
364
|
{
|
|
302
365
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
303
366
|
return nullptr;
|
|
@@ -316,7 +379,14 @@ namespace py::cpp::Windows::System::Preview
|
|
|
316
379
|
{
|
|
317
380
|
try
|
|
318
381
|
{
|
|
319
|
-
|
|
382
|
+
static std::optional<bool> is_property_present{};
|
|
383
|
+
|
|
384
|
+
if (!is_property_present.has_value())
|
|
385
|
+
{
|
|
386
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Preview.TwoPanelHingedDevicePosturePreviewReading", L"Timestamp");
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
if (!is_property_present.value())
|
|
320
390
|
{
|
|
321
391
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
322
392
|
return nullptr;
|
|
@@ -407,7 +477,14 @@ namespace py::cpp::Windows::System::Preview
|
|
|
407
477
|
{
|
|
408
478
|
try
|
|
409
479
|
{
|
|
410
|
-
|
|
480
|
+
static std::optional<bool> is_property_present{};
|
|
481
|
+
|
|
482
|
+
if (!is_property_present.has_value())
|
|
483
|
+
{
|
|
484
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Preview.TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs", L"Reading");
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
if (!is_property_present.value())
|
|
411
488
|
{
|
|
412
489
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
413
490
|
return nullptr;
|
|
@@ -523,17 +600,20 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_preview(void) noexcept
|
|
|
523
600
|
return nullptr;
|
|
524
601
|
}
|
|
525
602
|
|
|
526
|
-
|
|
603
|
+
py::pytype_handle TwoPanelHingedDevicePosturePreview_type{py::register_python_type(module.get(), &type_spec_TwoPanelHingedDevicePosturePreview, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_TwoPanelHingedDevicePosturePreview_Static.get()))};
|
|
604
|
+
if (!TwoPanelHingedDevicePosturePreview_type)
|
|
527
605
|
{
|
|
528
606
|
return nullptr;
|
|
529
607
|
}
|
|
530
608
|
|
|
531
|
-
|
|
609
|
+
py::pytype_handle TwoPanelHingedDevicePosturePreviewReading_type{py::register_python_type(module.get(), &type_spec_TwoPanelHingedDevicePosturePreviewReading, object_bases.get(), nullptr)};
|
|
610
|
+
if (!TwoPanelHingedDevicePosturePreviewReading_type)
|
|
532
611
|
{
|
|
533
612
|
return nullptr;
|
|
534
613
|
}
|
|
535
614
|
|
|
536
|
-
|
|
615
|
+
py::pytype_handle TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs_type{py::register_python_type(module.get(), &type_spec_TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs, object_bases.get(), nullptr)};
|
|
616
|
+
if (!TwoPanelHingedDevicePosturePreviewReadingChangedEventArgs_type)
|
|
537
617
|
{
|
|
538
618
|
return nullptr;
|
|
539
619
|
}
|
|
@@ -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.System.Preview
|
|
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,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
|
+
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.Sensors[all]==2.
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.
|
|
17
|
+
Requires-Dist: winrt-Windows.Devices.Sensors[all]==2.2.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
|
|
19
19
|
|
|
20
20
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
21
21
|
|
|
@@ -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
|