winrt-Windows.System.RemoteDesktop.Input 2.0.1__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 (18) hide show
  1. {winrt_windows_system_remotedesktop_input-2.0.1 → winrt_windows_system_remotedesktop_input-2.2.0}/PKG-INFO +3 -3
  2. {winrt_windows_system_remotedesktop_input-2.0.1 → winrt_windows_system_remotedesktop_input-2.2.0}/py.Windows.System.RemoteDesktop.Input.cpp +98 -60
  3. {winrt_windows_system_remotedesktop_input-2.0.1 → winrt_windows_system_remotedesktop_input-2.2.0}/pyproject.toml +3 -2
  4. winrt_windows_system_remotedesktop_input-2.2.0/pywinrt-version.txt +1 -0
  5. {winrt_windows_system_remotedesktop_input-2.0.1 → winrt_windows_system_remotedesktop_input-2.2.0}/requirements.txt +2 -2
  6. {winrt_windows_system_remotedesktop_input-2.0.1 → winrt_windows_system_remotedesktop_input-2.2.0}/winrt/_winrt_windows_system_remotedesktop_input.pyi +2 -2
  7. {winrt_windows_system_remotedesktop_input-2.0.1 → winrt_windows_system_remotedesktop_input-2.2.0}/winrt/windows/system/remotedesktop/input/__init__.py +1 -1
  8. {winrt_windows_system_remotedesktop_input-2.0.1 → winrt_windows_system_remotedesktop_input-2.2.0}/winrt_Windows.System.RemoteDesktop.Input.egg-info/PKG-INFO +3 -3
  9. winrt_windows_system_remotedesktop_input-2.2.0/winrt_Windows.System.RemoteDesktop.Input.egg-info/requires.txt +1 -0
  10. winrt_windows_system_remotedesktop_input-2.0.1/pywinrt-version.txt +0 -1
  11. winrt_windows_system_remotedesktop_input-2.0.1/winrt_Windows.System.RemoteDesktop.Input.egg-info/requires.txt +0 -1
  12. {winrt_windows_system_remotedesktop_input-2.0.1 → winrt_windows_system_remotedesktop_input-2.2.0}/README.md +0 -0
  13. {winrt_windows_system_remotedesktop_input-2.0.1 → winrt_windows_system_remotedesktop_input-2.2.0}/setup.cfg +0 -0
  14. {winrt_windows_system_remotedesktop_input-2.0.1 → winrt_windows_system_remotedesktop_input-2.2.0}/setup.py +0 -0
  15. {winrt_windows_system_remotedesktop_input-2.0.1 → winrt_windows_system_remotedesktop_input-2.2.0}/winrt/windows/system/remotedesktop/input/py.typed +0 -0
  16. {winrt_windows_system_remotedesktop_input-2.0.1 → winrt_windows_system_remotedesktop_input-2.2.0}/winrt_Windows.System.RemoteDesktop.Input.egg-info/SOURCES.txt +0 -0
  17. {winrt_windows_system_remotedesktop_input-2.0.1 → winrt_windows_system_remotedesktop_input-2.2.0}/winrt_Windows.System.RemoteDesktop.Input.egg-info/dependency_links.txt +0 -0
  18. {winrt_windows_system_remotedesktop_input-2.0.1 → winrt_windows_system_remotedesktop_input-2.2.0}/winrt_Windows.System.RemoteDesktop.Input.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.System.RemoteDesktop.Input
3
- Version: 2.0.1
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,9 +10,9 @@ 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.0.1
15
+ Requires-Dist: winrt-runtime==2.2.0
16
16
 
17
17
  <!-- warning: Please don't edit this file. It was automatically generated. -->
18
18
 
@@ -1,8 +1,7 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
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.RemoteDesktop.Input.h"
4
4
 
5
-
6
5
  namespace py::cpp::Windows::System::RemoteDesktop::Input
7
6
  {
8
7
  // ----- RemoteTextConnection class --------------------
@@ -23,7 +22,7 @@ namespace py::cpp::Windows::System::RemoteDesktop::Input
23
22
  auto param0 = py::convert_to<winrt::guid>(args, 0);
24
23
  auto param1 = py::convert_to<winrt::Windows::System::RemoteDesktop::Input::RemoteTextConnectionDataHandler>(args, 1);
25
24
 
26
- winrt::Windows::System::RemoteDesktop::Input::RemoteTextConnection instance{ param0, param1 };
25
+ winrt::Windows::System::RemoteDesktop::Input::RemoteTextConnection instance{param0, param1};
27
26
  return py::wrap(instance, type);
28
27
  }
29
28
  catch (...)
@@ -53,14 +52,21 @@ namespace py::cpp::Windows::System::RemoteDesktop::Input
53
52
 
54
53
  if (arg_count == 0)
55
54
  {
56
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Input.RemoteTextConnection", L"Close", 0))
57
- {
58
- py::set_arg_count_version_error(0);
59
- return nullptr;
60
- }
61
-
62
55
  try
63
56
  {
57
+ static std::optional<bool> is_overload_present{};
58
+
59
+ if (!is_overload_present.has_value())
60
+ {
61
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Input.RemoteTextConnection", L"Close", 0);
62
+ }
63
+
64
+ if (!is_overload_present.value())
65
+ {
66
+ py::set_arg_count_version_error(0);
67
+ return nullptr;
68
+ }
69
+
64
70
  self->obj.Close();
65
71
  Py_RETURN_NONE;
66
72
  }
@@ -83,14 +89,21 @@ namespace py::cpp::Windows::System::RemoteDesktop::Input
83
89
 
84
90
  if (arg_count == 1)
85
91
  {
86
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Input.RemoteTextConnection", L"RegisterThread", 1))
87
- {
88
- py::set_arg_count_version_error(1);
89
- return nullptr;
90
- }
91
-
92
92
  try
93
93
  {
94
+ static std::optional<bool> is_overload_present{};
95
+
96
+ if (!is_overload_present.has_value())
97
+ {
98
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Input.RemoteTextConnection", L"RegisterThread", 1);
99
+ }
100
+
101
+ if (!is_overload_present.value())
102
+ {
103
+ py::set_arg_count_version_error(1);
104
+ return nullptr;
105
+ }
106
+
94
107
  auto param0 = py::convert_to<uint32_t>(args, 0);
95
108
 
96
109
  self->obj.RegisterThread(param0);
@@ -115,14 +128,21 @@ namespace py::cpp::Windows::System::RemoteDesktop::Input
115
128
 
116
129
  if (arg_count == 1)
117
130
  {
118
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Input.RemoteTextConnection", L"ReportDataReceived", 1))
119
- {
120
- py::set_arg_count_version_error(1);
121
- return nullptr;
122
- }
123
-
124
131
  try
125
132
  {
133
+ static std::optional<bool> is_overload_present{};
134
+
135
+ if (!is_overload_present.has_value())
136
+ {
137
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Input.RemoteTextConnection", L"ReportDataReceived", 1);
138
+ }
139
+
140
+ if (!is_overload_present.value())
141
+ {
142
+ py::set_arg_count_version_error(1);
143
+ return nullptr;
144
+ }
145
+
126
146
  auto param0 = py::convert_to<py::pybuf_view<uint8_t, false>>(args, 0);
127
147
 
128
148
  self->obj.ReportDataReceived(param0);
@@ -147,14 +167,21 @@ namespace py::cpp::Windows::System::RemoteDesktop::Input
147
167
 
148
168
  if (arg_count == 1)
149
169
  {
150
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Input.RemoteTextConnection", L"UnregisterThread", 1))
151
- {
152
- py::set_arg_count_version_error(1);
153
- return nullptr;
154
- }
155
-
156
170
  try
157
171
  {
172
+ static std::optional<bool> is_overload_present{};
173
+
174
+ if (!is_overload_present.has_value())
175
+ {
176
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.RemoteDesktop.Input.RemoteTextConnection", L"UnregisterThread", 1);
177
+ }
178
+
179
+ if (!is_overload_present.value())
180
+ {
181
+ py::set_arg_count_version_error(1);
182
+ return nullptr;
183
+ }
184
+
158
185
  auto param0 = py::convert_to<uint32_t>(args, 0);
159
186
 
160
187
  self->obj.UnregisterThread(param0);
@@ -175,14 +202,21 @@ namespace py::cpp::Windows::System::RemoteDesktop::Input
175
202
 
176
203
  static PyObject* RemoteTextConnection_get_IsEnabled(py::wrapper::Windows::System::RemoteDesktop::Input::RemoteTextConnection* self, void* /*unused*/) noexcept
177
204
  {
178
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.RemoteDesktop.Input.RemoteTextConnection", L"IsEnabled"))
179
- {
180
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
181
- return nullptr;
182
- }
183
-
184
205
  try
185
206
  {
207
+ static std::optional<bool> is_property_present{};
208
+
209
+ if (!is_property_present.has_value())
210
+ {
211
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.RemoteDesktop.Input.RemoteTextConnection", L"IsEnabled");
212
+ }
213
+
214
+ if (!is_property_present.value())
215
+ {
216
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
217
+ return nullptr;
218
+ }
219
+
186
220
  return py::convert(self->obj.IsEnabled());
187
221
  }
188
222
  catch (...)
@@ -194,12 +228,6 @@ namespace py::cpp::Windows::System::RemoteDesktop::Input
194
228
 
195
229
  static int RemoteTextConnection_put_IsEnabled(py::wrapper::Windows::System::RemoteDesktop::Input::RemoteTextConnection* self, PyObject* arg, void* /*unused*/) noexcept
196
230
  {
197
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.RemoteDesktop.Input.RemoteTextConnection", L"IsEnabled"))
198
- {
199
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
200
- return -1;
201
- }
202
-
203
231
  if (arg == nullptr)
204
232
  {
205
233
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
@@ -208,6 +236,19 @@ namespace py::cpp::Windows::System::RemoteDesktop::Input
208
236
 
209
237
  try
210
238
  {
239
+ static std::optional<bool> is_property_present{};
240
+
241
+ if (!is_property_present.has_value())
242
+ {
243
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.RemoteDesktop.Input.RemoteTextConnection", L"IsEnabled");
244
+ }
245
+
246
+ if (!is_property_present.value())
247
+ {
248
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
249
+ return -1;
250
+ }
251
+
211
252
  auto param0 = py::convert_to<bool>(arg);
212
253
 
213
254
  self->obj.IsEnabled(param0);
@@ -271,7 +312,7 @@ namespace py::cpp::Windows::System::RemoteDesktop::Input
271
312
  { "_assign_array_", _assign_array_RemoteTextConnection, METH_O | METH_STATIC, nullptr },
272
313
  { "_from", reinterpret_cast<PyCFunction>(_from_RemoteTextConnection), METH_O | METH_STATIC, nullptr },
273
314
  { "__enter__", reinterpret_cast<PyCFunction>(_enter_RemoteTextConnection), METH_NOARGS, nullptr },
274
- { "__exit__", reinterpret_cast<PyCFunction>(_exit_RemoteTextConnection), METH_VARARGS, nullptr },
315
+ { "__exit__", reinterpret_cast<PyCFunction>(_exit_RemoteTextConnection), METH_VARARGS, nullptr },
275
316
  { }
276
317
  };
277
318
 
@@ -280,39 +321,35 @@ namespace py::cpp::Windows::System::RemoteDesktop::Input
280
321
  { }
281
322
  };
282
323
 
283
- static PyType_Slot _type_slots_RemoteTextConnection[] =
284
- {
324
+ static PyType_Slot _type_slots_RemoteTextConnection[] = {
285
325
  { Py_tp_new, reinterpret_cast<void*>(_new_RemoteTextConnection) },
286
326
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_RemoteTextConnection) },
287
327
  { Py_tp_methods, reinterpret_cast<void*>(_methods_RemoteTextConnection) },
288
328
  { Py_tp_getset, reinterpret_cast<void*>(_getset_RemoteTextConnection) },
289
- { },
329
+ { }
290
330
  };
291
331
 
292
- static PyType_Spec type_spec_RemoteTextConnection =
293
- {
332
+ static PyType_Spec type_spec_RemoteTextConnection = {
294
333
  "winrt._winrt_windows_system_remotedesktop_input.RemoteTextConnection",
295
334
  sizeof(py::wrapper::Windows::System::RemoteDesktop::Input::RemoteTextConnection),
296
335
  0,
297
336
  Py_TPFLAGS_DEFAULT,
298
- _type_slots_RemoteTextConnection
299
- };
337
+ _type_slots_RemoteTextConnection};
300
338
 
301
339
  // ----- Windows.System.RemoteDesktop.Input Initialization --------------------
302
- PyDoc_STRVAR(module_doc, "Windows::System::RemoteDesktop::Input");
303
-
304
340
 
305
- static PyModuleDef module_def
306
- = {PyModuleDef_HEAD_INIT,
307
- "_winrt_windows_system_remotedesktop_input",
308
- module_doc,
309
- 0,
310
- nullptr,
311
- nullptr,
312
- nullptr,
313
- nullptr,
314
- nullptr};
341
+ PyDoc_STRVAR(module_doc, "Windows.System.RemoteDesktop.Input");
315
342
 
343
+ static PyModuleDef module_def = {
344
+ PyModuleDef_HEAD_INIT,
345
+ "_winrt_windows_system_remotedesktop_input",
346
+ module_doc,
347
+ 0,
348
+ nullptr,
349
+ nullptr,
350
+ nullptr,
351
+ nullptr,
352
+ nullptr};
316
353
  } // py::cpp::Windows::System::RemoteDesktop::Input
317
354
 
318
355
  PyMODINIT_FUNC PyInit__winrt_windows_system_remotedesktop_input(void) noexcept
@@ -344,7 +381,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_remotedesktop_input(void) noexcept
344
381
  return nullptr;
345
382
  }
346
383
 
347
- if (py::register_python_type(module.get(), &type_spec_RemoteTextConnection, object_bases.get(), nullptr) == -1)
384
+ py::pytype_handle RemoteTextConnection_type{py::register_python_type(module.get(), &type_spec_RemoteTextConnection, object_bases.get(), nullptr)};
385
+ if (!RemoteTextConnection_type)
348
386
  {
349
387
  return nullptr;
350
388
  }
@@ -16,7 +16,7 @@ classifiers = [
16
16
  "Intended Audience :: Developers",
17
17
  ]
18
18
  dynamic = ["version", "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"
@@ -35,7 +35,8 @@ dependencies = { file = "requirements.txt" }
35
35
  # use local winrt-sdk build dependency
36
36
  environment = { PYTHONPATH="../winrt-sdk/src" }
37
37
  # don't install winrt-sdk from PyPI
38
- build-frontend = { name = "build", args = ["--skip-dependency-check", "--no-isolation"] }
38
+ build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
39
+ before-build = "uv pip install setuptools"
39
40
  # don't build for PyPy
40
41
  skip = "pp*"
41
42
  # suppress warnings about ARM64 testing
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
2
 
3
- winrt-runtime==2.0.1
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.0.1
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
@@ -20,7 +20,7 @@ class RemoteTextConnection(winrt.system.Object):
20
20
  def __exit__(self, *args) -> None: ...
21
21
  @staticmethod
22
22
  def _from(obj: winrt.system.Object, /) -> RemoteTextConnection: ...
23
- def __new__(cls: typing.Type[RemoteTextConnection], connection_id: _uuid.UUID, pdu_forwarder: typing.Optional[RemoteTextConnectionDataHandler]) -> RemoteTextConnection:...
23
+ def __new__(cls: typing.Type[RemoteTextConnection], connection_id: _uuid.UUID, pdu_forwarder: typing.Optional[RemoteTextConnectionDataHandler]) -> RemoteTextConnection: ...
24
24
  def close(self) -> None: ...
25
25
  def register_thread(self, thread_id: winrt.system.UInt32, /) -> None: ...
26
26
  def report_data_received(self, pdu_data: winrt.system.Array[winrt.system.UInt8], /) -> None: ...
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
2
 
3
3
  import typing
4
4
  import uuid as _uuid
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.System.RemoteDesktop.Input
3
- Version: 2.0.1
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,9 +10,9 @@ 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.0.1
15
+ Requires-Dist: winrt-runtime==2.2.0
16
16
 
17
17
  <!-- warning: Please don't edit this file. It was automatically generated. -->
18
18