winrt-Windows.UI.Core.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.
Files changed (20) hide show
  1. {winrt_windows_ui_core_preview-2.1.0 → winrt_windows_ui_core_preview-2.2.0}/PKG-INFO +5 -5
  2. winrt_windows_ui_core_preview-2.2.0/all-requirements.txt +4 -0
  3. {winrt_windows_ui_core_preview-2.1.0 → winrt_windows_ui_core_preview-2.2.0}/py.Windows.UI.Core.Preview.cpp +63 -11
  4. {winrt_windows_ui_core_preview-2.1.0 → winrt_windows_ui_core_preview-2.2.0}/pyproject.toml +3 -2
  5. winrt_windows_ui_core_preview-2.2.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_ui_core_preview-2.1.0 → winrt_windows_ui_core_preview-2.2.0}/requirements.txt +2 -2
  7. {winrt_windows_ui_core_preview-2.1.0 → winrt_windows_ui_core_preview-2.2.0}/winrt/_winrt_windows_ui_core_preview.pyi +1 -1
  8. {winrt_windows_ui_core_preview-2.1.0 → winrt_windows_ui_core_preview-2.2.0}/winrt/windows/ui/core/preview/__init__.py +1 -1
  9. {winrt_windows_ui_core_preview-2.1.0 → winrt_windows_ui_core_preview-2.2.0}/winrt_Windows.UI.Core.Preview.egg-info/PKG-INFO +5 -5
  10. winrt_windows_ui_core_preview-2.2.0/winrt_Windows.UI.Core.Preview.egg-info/requires.txt +5 -0
  11. winrt_windows_ui_core_preview-2.1.0/all-requirements.txt +0 -4
  12. winrt_windows_ui_core_preview-2.1.0/pywinrt-version.txt +0 -1
  13. winrt_windows_ui_core_preview-2.1.0/winrt_Windows.UI.Core.Preview.egg-info/requires.txt +0 -5
  14. {winrt_windows_ui_core_preview-2.1.0 → winrt_windows_ui_core_preview-2.2.0}/README.md +0 -0
  15. {winrt_windows_ui_core_preview-2.1.0 → winrt_windows_ui_core_preview-2.2.0}/setup.cfg +0 -0
  16. {winrt_windows_ui_core_preview-2.1.0 → winrt_windows_ui_core_preview-2.2.0}/setup.py +0 -0
  17. {winrt_windows_ui_core_preview-2.1.0 → winrt_windows_ui_core_preview-2.2.0}/winrt/windows/ui/core/preview/py.typed +0 -0
  18. {winrt_windows_ui_core_preview-2.1.0 → winrt_windows_ui_core_preview-2.2.0}/winrt_Windows.UI.Core.Preview.egg-info/SOURCES.txt +0 -0
  19. {winrt_windows_ui_core_preview-2.1.0 → winrt_windows_ui_core_preview-2.2.0}/winrt_Windows.UI.Core.Preview.egg-info/dependency_links.txt +0 -0
  20. {winrt_windows_ui_core_preview-2.1.0 → winrt_windows_ui_core_preview-2.2.0}/winrt_Windows.UI.Core.Preview.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.UI.Core.Preview
3
- Version: 2.1.0
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.1.0
15
+ Requires-Dist: winrt-runtime==2.2.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
18
- Requires-Dist: winrt-Windows.UI.WindowManagement[all]==2.1.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.UI.WindowManagement[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[all]==2.2.0
4
+ winrt-Windows.UI.WindowManagement[all]==2.2.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.2.0
2
2
 
3
3
  #include "py.Windows.UI.Core.Preview.h"
4
4
 
@@ -29,7 +29,14 @@ namespace py::cpp::Windows::UI::Core::Preview
29
29
  {
30
30
  try
31
31
  {
32
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Core.Preview.CoreAppWindowPreview", L"GetIdFromWindow", 1))
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.UI.Core.Preview.CoreAppWindowPreview", L"GetIdFromWindow", 1);
37
+ }
38
+
39
+ if (!is_overload_present.value())
33
40
  {
34
41
  py::set_arg_count_version_error(1);
35
42
  return nullptr;
@@ -152,7 +159,14 @@ namespace py::cpp::Windows::UI::Core::Preview
152
159
  {
153
160
  try
154
161
  {
155
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Core.Preview.SystemNavigationCloseRequestedPreviewEventArgs", L"GetDeferral", 0))
162
+ static std::optional<bool> is_overload_present{};
163
+
164
+ if (!is_overload_present.has_value())
165
+ {
166
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Core.Preview.SystemNavigationCloseRequestedPreviewEventArgs", L"GetDeferral", 0);
167
+ }
168
+
169
+ if (!is_overload_present.value())
156
170
  {
157
171
  py::set_arg_count_version_error(0);
158
172
  return nullptr;
@@ -177,7 +191,14 @@ namespace py::cpp::Windows::UI::Core::Preview
177
191
  {
178
192
  try
179
193
  {
180
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Core.Preview.SystemNavigationCloseRequestedPreviewEventArgs", L"Handled"))
194
+ static std::optional<bool> is_property_present{};
195
+
196
+ if (!is_property_present.has_value())
197
+ {
198
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Core.Preview.SystemNavigationCloseRequestedPreviewEventArgs", L"Handled");
199
+ }
200
+
201
+ if (!is_property_present.value())
181
202
  {
182
203
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
183
204
  return nullptr;
@@ -202,7 +223,14 @@ namespace py::cpp::Windows::UI::Core::Preview
202
223
 
203
224
  try
204
225
  {
205
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Core.Preview.SystemNavigationCloseRequestedPreviewEventArgs", L"Handled"))
226
+ static std::optional<bool> is_property_present{};
227
+
228
+ if (!is_property_present.has_value())
229
+ {
230
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Core.Preview.SystemNavigationCloseRequestedPreviewEventArgs", L"Handled");
231
+ }
232
+
233
+ if (!is_property_present.value())
206
234
  {
207
235
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
208
236
  return -1;
@@ -296,7 +324,14 @@ namespace py::cpp::Windows::UI::Core::Preview
296
324
  {
297
325
  try
298
326
  {
299
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Core.Preview.SystemNavigationManagerPreview", L"GetForCurrentView", 0))
327
+ static std::optional<bool> is_overload_present{};
328
+
329
+ if (!is_overload_present.has_value())
330
+ {
331
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Core.Preview.SystemNavigationManagerPreview", L"GetForCurrentView", 0);
332
+ }
333
+
334
+ if (!is_overload_present.value())
300
335
  {
301
336
  py::set_arg_count_version_error(0);
302
337
  return nullptr;
@@ -321,7 +356,14 @@ namespace py::cpp::Windows::UI::Core::Preview
321
356
  {
322
357
  try
323
358
  {
324
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.Core.Preview.SystemNavigationManagerPreview", L"CloseRequested"))
359
+ static std::optional<bool> is_event_present{};
360
+
361
+ if (!is_event_present.has_value())
362
+ {
363
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.Core.Preview.SystemNavigationManagerPreview", L"CloseRequested");
364
+ }
365
+
366
+ if (!is_event_present.value())
325
367
  {
326
368
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
327
369
  return nullptr;
@@ -342,7 +384,14 @@ namespace py::cpp::Windows::UI::Core::Preview
342
384
  {
343
385
  try
344
386
  {
345
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.Core.Preview.SystemNavigationManagerPreview", L"CloseRequested"))
387
+ static std::optional<bool> is_event_present{};
388
+
389
+ if (!is_event_present.has_value())
390
+ {
391
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.Core.Preview.SystemNavigationManagerPreview", L"CloseRequested");
392
+ }
393
+
394
+ if (!is_event_present.value())
346
395
  {
347
396
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
348
397
  return nullptr;
@@ -488,12 +537,14 @@ PyMODINIT_FUNC PyInit__winrt_windows_ui_core_preview(void) noexcept
488
537
  return nullptr;
489
538
  }
490
539
 
491
- if (py::register_python_type(module.get(), &type_spec_CoreAppWindowPreview, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_CoreAppWindowPreview_Static.get())) == -1)
540
+ py::pytype_handle CoreAppWindowPreview_type{py::register_python_type(module.get(), &type_spec_CoreAppWindowPreview, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_CoreAppWindowPreview_Static.get()))};
541
+ if (!CoreAppWindowPreview_type)
492
542
  {
493
543
  return nullptr;
494
544
  }
495
545
 
496
- if (py::register_python_type(module.get(), &type_spec_SystemNavigationCloseRequestedPreviewEventArgs, object_bases.get(), nullptr) == -1)
546
+ py::pytype_handle SystemNavigationCloseRequestedPreviewEventArgs_type{py::register_python_type(module.get(), &type_spec_SystemNavigationCloseRequestedPreviewEventArgs, object_bases.get(), nullptr)};
547
+ if (!SystemNavigationCloseRequestedPreviewEventArgs_type)
497
548
  {
498
549
  return nullptr;
499
550
  }
@@ -504,7 +555,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_ui_core_preview(void) noexcept
504
555
  return nullptr;
505
556
  }
506
557
 
507
- if (py::register_python_type(module.get(), &type_spec_SystemNavigationManagerPreview, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_SystemNavigationManagerPreview_Static.get())) == -1)
558
+ py::pytype_handle SystemNavigationManagerPreview_type{py::register_python_type(module.get(), &type_spec_SystemNavigationManagerPreview, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_SystemNavigationManagerPreview_Static.get()))};
559
+ if (!SystemNavigationManagerPreview_type)
508
560
  {
509
561
  return nullptr;
510
562
  }
@@ -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.1.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
2
 
3
- winrt-runtime==2.1.0
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.1.0
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
@@ -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.2.0
2
2
 
3
3
  import winrt.system
4
4
  from winrt import _winrt_windows_ui_core_preview
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.UI.Core.Preview
3
- Version: 2.1.0
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.1.0
15
+ Requires-Dist: winrt-runtime==2.2.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
18
- Requires-Dist: winrt-Windows.UI.WindowManagement[all]==2.1.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.UI.WindowManagement[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[all]==2.2.0
5
+ winrt-Windows.UI.WindowManagement[all]==2.2.0
@@ -1,4 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
-
3
- winrt-Windows.Foundation[all]==2.1.0
4
- winrt-Windows.UI.WindowManagement[all]==2.1.0
@@ -1,5 +0,0 @@
1
- winrt-runtime==2.1.0
2
-
3
- [all]
4
- winrt-Windows.Foundation[all]==2.1.0
5
- winrt-Windows.UI.WindowManagement[all]==2.1.0