winrt-Windows.UI.Input.Preview 2.2.0__tar.gz → 3.0.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 (21) hide show
  1. {winrt_windows_ui_input_preview-2.2.0 → winrt_windows_ui_input_preview-3.0.0}/PKG-INFO +5 -5
  2. winrt_windows_ui_input_preview-3.0.0/all-requirements.txt +4 -0
  3. {winrt_windows_ui_input_preview-2.2.0 → winrt_windows_ui_input_preview-3.0.0}/py.Windows.UI.Input.Preview.cpp +27 -18
  4. {winrt_windows_ui_input_preview-2.2.0 → winrt_windows_ui_input_preview-3.0.0}/pyproject.toml +2 -2
  5. winrt_windows_ui_input_preview-3.0.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_ui_input_preview-2.2.0 → winrt_windows_ui_input_preview-3.0.0}/requirements.txt +2 -2
  7. {winrt_windows_ui_input_preview-2.2.0 → winrt_windows_ui_input_preview-3.0.0}/setup.py +1 -1
  8. {winrt_windows_ui_input_preview-2.2.0 → winrt_windows_ui_input_preview-3.0.0}/winrt/_winrt_windows_ui_input_preview.pyi +4 -3
  9. winrt_windows_ui_input_preview-3.0.0/winrt/windows/ui/input/preview/__init__.py +11 -0
  10. {winrt_windows_ui_input_preview-2.2.0 → winrt_windows_ui_input_preview-3.0.0}/winrt_Windows.UI.Input.Preview.egg-info/PKG-INFO +5 -5
  11. winrt_windows_ui_input_preview-3.0.0/winrt_Windows.UI.Input.Preview.egg-info/requires.txt +5 -0
  12. winrt_windows_ui_input_preview-2.2.0/all-requirements.txt +0 -4
  13. winrt_windows_ui_input_preview-2.2.0/pywinrt-version.txt +0 -1
  14. winrt_windows_ui_input_preview-2.2.0/winrt/windows/ui/input/preview/__init__.py +0 -10
  15. winrt_windows_ui_input_preview-2.2.0/winrt_Windows.UI.Input.Preview.egg-info/requires.txt +0 -5
  16. {winrt_windows_ui_input_preview-2.2.0 → winrt_windows_ui_input_preview-3.0.0}/README.md +0 -0
  17. {winrt_windows_ui_input_preview-2.2.0 → winrt_windows_ui_input_preview-3.0.0}/setup.cfg +0 -0
  18. {winrt_windows_ui_input_preview-2.2.0 → winrt_windows_ui_input_preview-3.0.0}/winrt/windows/ui/input/preview/py.typed +0 -0
  19. {winrt_windows_ui_input_preview-2.2.0 → winrt_windows_ui_input_preview-3.0.0}/winrt_Windows.UI.Input.Preview.egg-info/SOURCES.txt +0 -0
  20. {winrt_windows_ui_input_preview-2.2.0 → winrt_windows_ui_input_preview-3.0.0}/winrt_Windows.UI.Input.Preview.egg-info/dependency_links.txt +0 -0
  21. {winrt_windows_ui_input_preview-2.2.0 → winrt_windows_ui_input_preview-3.0.0}/winrt_Windows.UI.Input.Preview.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.UI.Input.Preview
3
- Version: 2.2.0
3
+ Version: 3.0.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.14,>=3.9
13
+ Requires-Python: >=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.2.0
15
+ Requires-Dist: winrt-runtime==3.0.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.UI.Input[all]==2.2.0; extra == "all"
18
- Requires-Dist: winrt-Windows.UI.WindowManagement[all]==2.2.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.UI.Input[all]==3.0.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.UI.WindowManagement[all]==3.0.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 v3.0.0
2
+
3
+ winrt-Windows.UI.Input[all]==3.0.0
4
+ winrt-Windows.UI.WindowManagement[all]==3.0.0
@@ -1,4 +1,4 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
2
 
3
3
  #include "py.Windows.UI.Input.Preview.h"
4
4
 
@@ -15,7 +15,7 @@ namespace py::cpp::Windows::UI::Input::Preview
15
15
 
16
16
  static PyObject* InputActivationListenerPreview_CreateForApplicationWindow(PyObject* /*unused*/, PyObject* args) noexcept
17
17
  {
18
- auto arg_count = PyTuple_Size(args);
18
+ auto arg_count = PyTuple_GET_SIZE(args);
19
19
 
20
20
  if (arg_count == 1)
21
21
  {
@@ -36,7 +36,11 @@ namespace py::cpp::Windows::UI::Input::Preview
36
36
 
37
37
  auto param0 = py::convert_to<winrt::Windows::UI::WindowManagement::AppWindow>(args, 0);
38
38
 
39
- return py::convert(winrt::Windows::UI::Input::Preview::InputActivationListenerPreview::CreateForApplicationWindow(param0));
39
+ return py::convert([&]()
40
+ {
41
+ auto _gil = release_gil();
42
+ return winrt::Windows::UI::Input::Preview::InputActivationListenerPreview::CreateForApplicationWindow(param0);
43
+ }());
40
44
  }
41
45
  catch (...)
42
46
  {
@@ -52,19 +56,16 @@ namespace py::cpp::Windows::UI::Input::Preview
52
56
  }
53
57
 
54
58
  static PyMethodDef _methods_InputActivationListenerPreview[] = {
55
- { }
56
- };
59
+ { }};
57
60
 
58
61
  static PyGetSetDef _getset_InputActivationListenerPreview[] = {
59
- { }
60
- };
62
+ { }};
61
63
 
62
64
  static PyType_Slot _type_slots_InputActivationListenerPreview[] = {
63
65
  { Py_tp_new, reinterpret_cast<void*>(_new_InputActivationListenerPreview) },
64
66
  { Py_tp_methods, reinterpret_cast<void*>(_methods_InputActivationListenerPreview) },
65
67
  { Py_tp_getset, reinterpret_cast<void*>(_getset_InputActivationListenerPreview) },
66
- { }
67
- };
68
+ { }};
68
69
 
69
70
  static PyType_Spec type_spec_InputActivationListenerPreview = {
70
71
  "winrt._winrt_windows_ui_input_preview.InputActivationListenerPreview",
@@ -74,13 +75,11 @@ namespace py::cpp::Windows::UI::Input::Preview
74
75
  _type_slots_InputActivationListenerPreview};
75
76
 
76
77
  static PyGetSetDef getset_InputActivationListenerPreview_Static[] = {
77
- { }
78
- };
78
+ { }};
79
79
 
80
80
  static PyMethodDef methods_InputActivationListenerPreview_Static[] = {
81
81
  { "create_for_application_window", reinterpret_cast<PyCFunction>(InputActivationListenerPreview_CreateForApplicationWindow), METH_VARARGS, nullptr },
82
- { }
83
- };
82
+ { }};
84
83
 
85
84
  static PyType_Slot type_slots_InputActivationListenerPreview_Static[] =
86
85
  {
@@ -90,14 +89,12 @@ namespace py::cpp::Windows::UI::Input::Preview
90
89
  { }
91
90
  };
92
91
 
93
- static PyType_Spec type_spec_InputActivationListenerPreview_Static =
94
- {
92
+ static PyType_Spec type_spec_InputActivationListenerPreview_Static = {
95
93
  "winrt._winrt_windows_ui_input_preview.InputActivationListenerPreview_Static",
96
94
  static_cast<int>(PyType_Type.tp_basicsize),
97
95
  static_cast<int>(PyType_Type.tp_itemsize),
98
96
  Py_TPFLAGS_DEFAULT,
99
- type_slots_InputActivationListenerPreview_Static
100
- };
97
+ type_slots_InputActivationListenerPreview_Static};
101
98
 
102
99
  // ----- Windows.UI.Input.Preview Initialization --------------------
103
100
 
@@ -131,6 +128,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_ui_input_preview(void) noexcept
131
128
  return nullptr;
132
129
  }
133
130
 
131
+ auto inspectable_meta_type = py::get_inspectable_meta_type();
132
+ if (!inspectable_meta_type)
133
+ {
134
+ return nullptr;
135
+ }
136
+
134
137
  auto object_type = py::get_object_type();
135
138
  if (!object_type)
136
139
  {
@@ -144,7 +147,13 @@ PyMODINIT_FUNC PyInit__winrt_windows_ui_input_preview(void) noexcept
144
147
  return nullptr;
145
148
  }
146
149
 
147
- py::pyobj_handle type_InputActivationListenerPreview_Static{PyType_FromSpec(&type_spec_InputActivationListenerPreview_Static)};
150
+ py::pyobj_handle InputActivationListenerPreview_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
151
+ if (!InputActivationListenerPreview_Static_bases)
152
+ {
153
+ return nullptr;
154
+ }
155
+
156
+ py::pyobj_handle type_InputActivationListenerPreview_Static{PyType_FromSpecWithBases(&type_spec_InputActivationListenerPreview_Static, InputActivationListenerPreview_Static_bases.get())};
148
157
  if (!type_InputActivationListenerPreview_Static)
149
158
  {
150
159
  return nullptr;
@@ -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.14"
19
+ requires-python = ">=3.9"
20
20
 
21
21
  [project.urls]
22
22
  # Homepage = "https://github.com/pywinrt/pywinrt"
@@ -34,7 +34,7 @@ optional-dependencies.all = { file = "all-requirements.txt" }
34
34
 
35
35
  [tool.cibuildwheel]
36
36
  # use local winrt-sdk build dependency
37
- environment = { PYTHONPATH="../winrt-sdk/src" }
37
+ environment = { PYTHONPATH="../../winrt-sdk/src" }
38
38
  # don't install winrt-sdk from PyPI
39
39
  build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
40
40
  before-build = "uv pip install setuptools"
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
2
 
3
- winrt-runtime==2.2.0
3
+ winrt-runtime==3.0.0
@@ -19,7 +19,7 @@ class build_ext_ex(build_ext):
19
19
 
20
20
 
21
21
  setup(
22
- cmdclass = {'build_ext': build_ext_ex},
22
+ cmdclass={"build_ext": build_ext_ex},
23
23
  ext_modules=[
24
24
  Extension(
25
25
  "winrt._winrt_windows_ui_input_preview",
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
2
 
3
3
  import datetime
4
4
  import sys
@@ -15,8 +15,9 @@ import winrt.windows.ui.windowmanagement as windows_ui_windowmanagement
15
15
  Self = typing.TypeVar('Self')
16
16
 
17
17
  @typing.final
18
- class InputActivationListenerPreview_Static(type):
19
- def create_for_application_window(cls, window: typing.Optional[windows_ui_windowmanagement.AppWindow], /) -> typing.Optional[windows_ui_input.InputActivationListener]: ...
18
+ class InputActivationListenerPreview_Static(winrt._winrt.IInspectable_Static):
19
+ # Windows.UI.Input.InputActivationListener Windows.UI.Input.Preview.InputActivationListenerPreview::CreateForApplicationWindow(Windows.UI.WindowManagement.AppWindow)
20
+ def create_for_application_window(cls, window: windows_ui_windowmanagement.AppWindow, /) -> windows_ui_input.InputActivationListener: ...
20
21
 
21
22
  @typing.final
22
23
  class InputActivationListenerPreview(winrt.system.Object, metaclass=InputActivationListenerPreview_Static):
@@ -0,0 +1,11 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
+
3
+ import winrt.system
4
+ from winrt._winrt_windows_ui_input_preview import (
5
+ InputActivationListenerPreview,
6
+ )
7
+
8
+ __all__ = [
9
+ "InputActivationListenerPreview",
10
+ ]
11
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.UI.Input.Preview
3
- Version: 2.2.0
3
+ Version: 3.0.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.14,>=3.9
13
+ Requires-Python: >=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.2.0
15
+ Requires-Dist: winrt-runtime==3.0.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.UI.Input[all]==2.2.0; extra == "all"
18
- Requires-Dist: winrt-Windows.UI.WindowManagement[all]==2.2.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.UI.Input[all]==3.0.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.UI.WindowManagement[all]==3.0.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==3.0.0
2
+
3
+ [all]
4
+ winrt-Windows.UI.Input[all]==3.0.0
5
+ winrt-Windows.UI.WindowManagement[all]==3.0.0
@@ -1,4 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
-
3
- winrt-Windows.UI.Input[all]==2.2.0
4
- winrt-Windows.UI.WindowManagement[all]==2.2.0
@@ -1,10 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
-
3
- import winrt.system
4
- from winrt import _winrt_windows_ui_input_preview
5
-
6
- __all__ = [
7
- "InputActivationListenerPreview",
8
- ]
9
-
10
- InputActivationListenerPreview = _winrt_windows_ui_input_preview.InputActivationListenerPreview
@@ -1,5 +0,0 @@
1
- winrt-runtime==2.2.0
2
-
3
- [all]
4
- winrt-Windows.UI.Input[all]==2.2.0
5
- winrt-Windows.UI.WindowManagement[all]==2.2.0