winrt-Windows.System.Threading.Core 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.
- {winrt_windows_system_threading_core-2.0.1 → winrt_windows_system_threading_core-2.2.0}/PKG-INFO +5 -5
- winrt_windows_system_threading_core-2.2.0/all-requirements.txt +4 -0
- {winrt_windows_system_threading_core-2.0.1 → winrt_windows_system_threading_core-2.2.0}/py.Windows.System.Threading.Core.cpp +118 -75
- {winrt_windows_system_threading_core-2.0.1 → winrt_windows_system_threading_core-2.2.0}/pyproject.toml +3 -2
- winrt_windows_system_threading_core-2.2.0/pywinrt-version.txt +1 -0
- {winrt_windows_system_threading_core-2.0.1 → winrt_windows_system_threading_core-2.2.0}/requirements.txt +2 -2
- {winrt_windows_system_threading_core-2.0.1 → winrt_windows_system_threading_core-2.2.0}/winrt/_winrt_windows_system_threading_core.pyi +7 -7
- {winrt_windows_system_threading_core-2.0.1 → winrt_windows_system_threading_core-2.2.0}/winrt/windows/system/threading/core/__init__.py +1 -1
- {winrt_windows_system_threading_core-2.0.1 → winrt_windows_system_threading_core-2.2.0}/winrt_Windows.System.Threading.Core.egg-info/PKG-INFO +5 -5
- winrt_windows_system_threading_core-2.2.0/winrt_Windows.System.Threading.Core.egg-info/requires.txt +5 -0
- winrt_windows_system_threading_core-2.0.1/all-requirements.txt +0 -4
- winrt_windows_system_threading_core-2.0.1/pywinrt-version.txt +0 -1
- winrt_windows_system_threading_core-2.0.1/winrt_Windows.System.Threading.Core.egg-info/requires.txt +0 -5
- {winrt_windows_system_threading_core-2.0.1 → winrt_windows_system_threading_core-2.2.0}/README.md +0 -0
- {winrt_windows_system_threading_core-2.0.1 → winrt_windows_system_threading_core-2.2.0}/setup.cfg +0 -0
- {winrt_windows_system_threading_core-2.0.1 → winrt_windows_system_threading_core-2.2.0}/setup.py +0 -0
- {winrt_windows_system_threading_core-2.0.1 → winrt_windows_system_threading_core-2.2.0}/winrt/windows/system/threading/core/py.typed +0 -0
- {winrt_windows_system_threading_core-2.0.1 → winrt_windows_system_threading_core-2.2.0}/winrt_Windows.System.Threading.Core.egg-info/SOURCES.txt +0 -0
- {winrt_windows_system_threading_core-2.0.1 → winrt_windows_system_threading_core-2.2.0}/winrt_Windows.System.Threading.Core.egg-info/dependency_links.txt +0 -0
- {winrt_windows_system_threading_core-2.0.1 → winrt_windows_system_threading_core-2.2.0}/winrt_Windows.System.Threading.Core.egg-info/top_level.txt +0 -0
{winrt_windows_system_threading_core-2.0.1 → winrt_windows_system_threading_core-2.2.0}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.System.Threading.Core
|
|
3
|
-
Version: 2.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
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.0
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.0
|
|
18
|
-
Requires-Dist: winrt-Windows.System.Threading[all]==2.0
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.System.Threading[all]==2.2.0; extra == "all"
|
|
19
19
|
|
|
20
20
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
21
21
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.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.System.Threading.Core.h"
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
namespace py::cpp::Windows::System::Threading::Core
|
|
7
6
|
{
|
|
8
7
|
// ----- PreallocatedWorkItem class --------------------
|
|
@@ -22,7 +21,7 @@ namespace py::cpp::Windows::System::Threading::Core
|
|
|
22
21
|
{
|
|
23
22
|
auto param0 = py::convert_to<winrt::Windows::System::Threading::WorkItemHandler>(args, 0);
|
|
24
23
|
|
|
25
|
-
winrt::Windows::System::Threading::Core::PreallocatedWorkItem instance{
|
|
24
|
+
winrt::Windows::System::Threading::Core::PreallocatedWorkItem instance{param0};
|
|
26
25
|
return py::wrap(instance, type);
|
|
27
26
|
}
|
|
28
27
|
catch (...)
|
|
@@ -38,7 +37,7 @@ namespace py::cpp::Windows::System::Threading::Core
|
|
|
38
37
|
auto param0 = py::convert_to<winrt::Windows::System::Threading::WorkItemHandler>(args, 0);
|
|
39
38
|
auto param1 = py::convert_to<winrt::Windows::System::Threading::WorkItemPriority>(args, 1);
|
|
40
39
|
|
|
41
|
-
winrt::Windows::System::Threading::Core::PreallocatedWorkItem instance{
|
|
40
|
+
winrt::Windows::System::Threading::Core::PreallocatedWorkItem instance{param0, param1};
|
|
42
41
|
return py::wrap(instance, type);
|
|
43
42
|
}
|
|
44
43
|
catch (...)
|
|
@@ -55,7 +54,7 @@ namespace py::cpp::Windows::System::Threading::Core
|
|
|
55
54
|
auto param1 = py::convert_to<winrt::Windows::System::Threading::WorkItemPriority>(args, 1);
|
|
56
55
|
auto param2 = py::convert_to<winrt::Windows::System::Threading::WorkItemOptions>(args, 2);
|
|
57
56
|
|
|
58
|
-
winrt::Windows::System::Threading::Core::PreallocatedWorkItem instance{
|
|
57
|
+
winrt::Windows::System::Threading::Core::PreallocatedWorkItem instance{param0, param1, param2};
|
|
59
58
|
return py::wrap(instance, type);
|
|
60
59
|
}
|
|
61
60
|
catch (...)
|
|
@@ -85,14 +84,21 @@ namespace py::cpp::Windows::System::Threading::Core
|
|
|
85
84
|
|
|
86
85
|
if (arg_count == 0)
|
|
87
86
|
{
|
|
88
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Threading.Core.PreallocatedWorkItem", L"RunAsync", 0))
|
|
89
|
-
{
|
|
90
|
-
py::set_arg_count_version_error(0);
|
|
91
|
-
return nullptr;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
87
|
try
|
|
95
88
|
{
|
|
89
|
+
static std::optional<bool> is_overload_present{};
|
|
90
|
+
|
|
91
|
+
if (!is_overload_present.has_value())
|
|
92
|
+
{
|
|
93
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Threading.Core.PreallocatedWorkItem", L"RunAsync", 0);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
if (!is_overload_present.value())
|
|
97
|
+
{
|
|
98
|
+
py::set_arg_count_version_error(0);
|
|
99
|
+
return nullptr;
|
|
100
|
+
}
|
|
101
|
+
|
|
96
102
|
return py::convert(self->obj.RunAsync());
|
|
97
103
|
}
|
|
98
104
|
catch (...)
|
|
@@ -143,23 +149,20 @@ namespace py::cpp::Windows::System::Threading::Core
|
|
|
143
149
|
{ }
|
|
144
150
|
};
|
|
145
151
|
|
|
146
|
-
static PyType_Slot _type_slots_PreallocatedWorkItem[] =
|
|
147
|
-
{
|
|
152
|
+
static PyType_Slot _type_slots_PreallocatedWorkItem[] = {
|
|
148
153
|
{ Py_tp_new, reinterpret_cast<void*>(_new_PreallocatedWorkItem) },
|
|
149
154
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PreallocatedWorkItem) },
|
|
150
155
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_PreallocatedWorkItem) },
|
|
151
156
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_PreallocatedWorkItem) },
|
|
152
|
-
{ }
|
|
157
|
+
{ }
|
|
153
158
|
};
|
|
154
159
|
|
|
155
|
-
static PyType_Spec type_spec_PreallocatedWorkItem =
|
|
156
|
-
{
|
|
160
|
+
static PyType_Spec type_spec_PreallocatedWorkItem = {
|
|
157
161
|
"winrt._winrt_windows_system_threading_core.PreallocatedWorkItem",
|
|
158
162
|
sizeof(py::wrapper::Windows::System::Threading::Core::PreallocatedWorkItem),
|
|
159
163
|
0,
|
|
160
164
|
Py_TPFLAGS_DEFAULT,
|
|
161
|
-
_type_slots_PreallocatedWorkItem
|
|
162
|
-
};
|
|
165
|
+
_type_slots_PreallocatedWorkItem};
|
|
163
166
|
|
|
164
167
|
// ----- SignalNotifier class --------------------
|
|
165
168
|
|
|
@@ -184,14 +187,21 @@ namespace py::cpp::Windows::System::Threading::Core
|
|
|
184
187
|
|
|
185
188
|
if (arg_count == 2)
|
|
186
189
|
{
|
|
187
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Threading.Core.SignalNotifier", L"AttachToEvent", 2))
|
|
188
|
-
{
|
|
189
|
-
py::set_arg_count_version_error(2);
|
|
190
|
-
return nullptr;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
190
|
try
|
|
194
191
|
{
|
|
192
|
+
static std::optional<bool> is_overload_present{};
|
|
193
|
+
|
|
194
|
+
if (!is_overload_present.has_value())
|
|
195
|
+
{
|
|
196
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Threading.Core.SignalNotifier", L"AttachToEvent", 2);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
if (!is_overload_present.value())
|
|
200
|
+
{
|
|
201
|
+
py::set_arg_count_version_error(2);
|
|
202
|
+
return nullptr;
|
|
203
|
+
}
|
|
204
|
+
|
|
195
205
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
196
206
|
auto param1 = py::convert_to<winrt::Windows::System::Threading::Core::SignalHandler>(args, 1);
|
|
197
207
|
|
|
@@ -205,14 +215,21 @@ namespace py::cpp::Windows::System::Threading::Core
|
|
|
205
215
|
}
|
|
206
216
|
else if (arg_count == 3)
|
|
207
217
|
{
|
|
208
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Threading.Core.SignalNotifier", L"AttachToEvent", 3))
|
|
209
|
-
{
|
|
210
|
-
py::set_arg_count_version_error(3);
|
|
211
|
-
return nullptr;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
218
|
try
|
|
215
219
|
{
|
|
220
|
+
static std::optional<bool> is_overload_present{};
|
|
221
|
+
|
|
222
|
+
if (!is_overload_present.has_value())
|
|
223
|
+
{
|
|
224
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Threading.Core.SignalNotifier", L"AttachToEvent", 3);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
if (!is_overload_present.value())
|
|
228
|
+
{
|
|
229
|
+
py::set_arg_count_version_error(3);
|
|
230
|
+
return nullptr;
|
|
231
|
+
}
|
|
232
|
+
|
|
216
233
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
217
234
|
auto param1 = py::convert_to<winrt::Windows::System::Threading::Core::SignalHandler>(args, 1);
|
|
218
235
|
auto param2 = py::convert_to<winrt::Windows::Foundation::TimeSpan>(args, 2);
|
|
@@ -238,14 +255,21 @@ namespace py::cpp::Windows::System::Threading::Core
|
|
|
238
255
|
|
|
239
256
|
if (arg_count == 2)
|
|
240
257
|
{
|
|
241
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Threading.Core.SignalNotifier", L"AttachToSemaphore", 2))
|
|
242
|
-
{
|
|
243
|
-
py::set_arg_count_version_error(2);
|
|
244
|
-
return nullptr;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
258
|
try
|
|
248
259
|
{
|
|
260
|
+
static std::optional<bool> is_overload_present{};
|
|
261
|
+
|
|
262
|
+
if (!is_overload_present.has_value())
|
|
263
|
+
{
|
|
264
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Threading.Core.SignalNotifier", L"AttachToSemaphore", 2);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
if (!is_overload_present.value())
|
|
268
|
+
{
|
|
269
|
+
py::set_arg_count_version_error(2);
|
|
270
|
+
return nullptr;
|
|
271
|
+
}
|
|
272
|
+
|
|
249
273
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
250
274
|
auto param1 = py::convert_to<winrt::Windows::System::Threading::Core::SignalHandler>(args, 1);
|
|
251
275
|
|
|
@@ -259,14 +283,21 @@ namespace py::cpp::Windows::System::Threading::Core
|
|
|
259
283
|
}
|
|
260
284
|
else if (arg_count == 3)
|
|
261
285
|
{
|
|
262
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Threading.Core.SignalNotifier", L"AttachToSemaphore", 3))
|
|
263
|
-
{
|
|
264
|
-
py::set_arg_count_version_error(3);
|
|
265
|
-
return nullptr;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
286
|
try
|
|
269
287
|
{
|
|
288
|
+
static std::optional<bool> is_overload_present{};
|
|
289
|
+
|
|
290
|
+
if (!is_overload_present.has_value())
|
|
291
|
+
{
|
|
292
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Threading.Core.SignalNotifier", L"AttachToSemaphore", 3);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
if (!is_overload_present.value())
|
|
296
|
+
{
|
|
297
|
+
py::set_arg_count_version_error(3);
|
|
298
|
+
return nullptr;
|
|
299
|
+
}
|
|
300
|
+
|
|
270
301
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
271
302
|
auto param1 = py::convert_to<winrt::Windows::System::Threading::Core::SignalHandler>(args, 1);
|
|
272
303
|
auto param2 = py::convert_to<winrt::Windows::Foundation::TimeSpan>(args, 2);
|
|
@@ -292,14 +323,21 @@ namespace py::cpp::Windows::System::Threading::Core
|
|
|
292
323
|
|
|
293
324
|
if (arg_count == 0)
|
|
294
325
|
{
|
|
295
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Threading.Core.SignalNotifier", L"Enable", 0))
|
|
296
|
-
{
|
|
297
|
-
py::set_arg_count_version_error(0);
|
|
298
|
-
return nullptr;
|
|
299
|
-
}
|
|
300
|
-
|
|
301
326
|
try
|
|
302
327
|
{
|
|
328
|
+
static std::optional<bool> is_overload_present{};
|
|
329
|
+
|
|
330
|
+
if (!is_overload_present.has_value())
|
|
331
|
+
{
|
|
332
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Threading.Core.SignalNotifier", L"Enable", 0);
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
if (!is_overload_present.value())
|
|
336
|
+
{
|
|
337
|
+
py::set_arg_count_version_error(0);
|
|
338
|
+
return nullptr;
|
|
339
|
+
}
|
|
340
|
+
|
|
303
341
|
self->obj.Enable();
|
|
304
342
|
Py_RETURN_NONE;
|
|
305
343
|
}
|
|
@@ -322,14 +360,21 @@ namespace py::cpp::Windows::System::Threading::Core
|
|
|
322
360
|
|
|
323
361
|
if (arg_count == 0)
|
|
324
362
|
{
|
|
325
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Threading.Core.SignalNotifier", L"Terminate", 0))
|
|
326
|
-
{
|
|
327
|
-
py::set_arg_count_version_error(0);
|
|
328
|
-
return nullptr;
|
|
329
|
-
}
|
|
330
|
-
|
|
331
363
|
try
|
|
332
364
|
{
|
|
365
|
+
static std::optional<bool> is_overload_present{};
|
|
366
|
+
|
|
367
|
+
if (!is_overload_present.has_value())
|
|
368
|
+
{
|
|
369
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Threading.Core.SignalNotifier", L"Terminate", 0);
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
if (!is_overload_present.value())
|
|
373
|
+
{
|
|
374
|
+
py::set_arg_count_version_error(0);
|
|
375
|
+
return nullptr;
|
|
376
|
+
}
|
|
377
|
+
|
|
333
378
|
self->obj.Terminate();
|
|
334
379
|
Py_RETURN_NONE;
|
|
335
380
|
}
|
|
@@ -382,23 +427,20 @@ namespace py::cpp::Windows::System::Threading::Core
|
|
|
382
427
|
{ }
|
|
383
428
|
};
|
|
384
429
|
|
|
385
|
-
static PyType_Slot _type_slots_SignalNotifier[] =
|
|
386
|
-
{
|
|
430
|
+
static PyType_Slot _type_slots_SignalNotifier[] = {
|
|
387
431
|
{ Py_tp_new, reinterpret_cast<void*>(_new_SignalNotifier) },
|
|
388
432
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_SignalNotifier) },
|
|
389
433
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_SignalNotifier) },
|
|
390
434
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_SignalNotifier) },
|
|
391
|
-
{ }
|
|
435
|
+
{ }
|
|
392
436
|
};
|
|
393
437
|
|
|
394
|
-
static PyType_Spec type_spec_SignalNotifier =
|
|
395
|
-
{
|
|
438
|
+
static PyType_Spec type_spec_SignalNotifier = {
|
|
396
439
|
"winrt._winrt_windows_system_threading_core.SignalNotifier",
|
|
397
440
|
sizeof(py::wrapper::Windows::System::Threading::Core::SignalNotifier),
|
|
398
441
|
0,
|
|
399
442
|
Py_TPFLAGS_DEFAULT,
|
|
400
|
-
_type_slots_SignalNotifier
|
|
401
|
-
};
|
|
443
|
+
_type_slots_SignalNotifier};
|
|
402
444
|
|
|
403
445
|
static PyGetSetDef getset_SignalNotifier_Static[] = {
|
|
404
446
|
{ }
|
|
@@ -428,20 +470,19 @@ namespace py::cpp::Windows::System::Threading::Core
|
|
|
428
470
|
};
|
|
429
471
|
|
|
430
472
|
// ----- Windows.System.Threading.Core Initialization --------------------
|
|
431
|
-
PyDoc_STRVAR(module_doc, "Windows::System::Threading::Core");
|
|
432
|
-
|
|
433
473
|
|
|
434
|
-
|
|
435
|
-
= {PyModuleDef_HEAD_INIT,
|
|
436
|
-
"_winrt_windows_system_threading_core",
|
|
437
|
-
module_doc,
|
|
438
|
-
0,
|
|
439
|
-
nullptr,
|
|
440
|
-
nullptr,
|
|
441
|
-
nullptr,
|
|
442
|
-
nullptr,
|
|
443
|
-
nullptr};
|
|
474
|
+
PyDoc_STRVAR(module_doc, "Windows.System.Threading.Core");
|
|
444
475
|
|
|
476
|
+
static PyModuleDef module_def = {
|
|
477
|
+
PyModuleDef_HEAD_INIT,
|
|
478
|
+
"_winrt_windows_system_threading_core",
|
|
479
|
+
module_doc,
|
|
480
|
+
0,
|
|
481
|
+
nullptr,
|
|
482
|
+
nullptr,
|
|
483
|
+
nullptr,
|
|
484
|
+
nullptr,
|
|
485
|
+
nullptr};
|
|
445
486
|
} // py::cpp::Windows::System::Threading::Core
|
|
446
487
|
|
|
447
488
|
PyMODINIT_FUNC PyInit__winrt_windows_system_threading_core(void) noexcept
|
|
@@ -473,7 +514,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_threading_core(void) noexcept
|
|
|
473
514
|
return nullptr;
|
|
474
515
|
}
|
|
475
516
|
|
|
476
|
-
|
|
517
|
+
py::pytype_handle PreallocatedWorkItem_type{py::register_python_type(module.get(), &type_spec_PreallocatedWorkItem, object_bases.get(), nullptr)};
|
|
518
|
+
if (!PreallocatedWorkItem_type)
|
|
477
519
|
{
|
|
478
520
|
return nullptr;
|
|
479
521
|
}
|
|
@@ -484,7 +526,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_threading_core(void) noexcept
|
|
|
484
526
|
return nullptr;
|
|
485
527
|
}
|
|
486
528
|
|
|
487
|
-
|
|
529
|
+
py::pytype_handle SignalNotifier_type{py::register_python_type(module.get(), &type_spec_SignalNotifier, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_SignalNotifier_Static.get()))};
|
|
530
|
+
if (!SignalNotifier_type)
|
|
488
531
|
{
|
|
489
532
|
return nullptr;
|
|
490
533
|
}
|
|
@@ -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.0
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.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.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
|
|
@@ -9,8 +9,8 @@ from builtins import property as _property
|
|
|
9
9
|
|
|
10
10
|
import winrt._winrt
|
|
11
11
|
import winrt.system
|
|
12
|
-
import winrt.windows.foundation
|
|
13
|
-
import winrt.windows.system.threading
|
|
12
|
+
import winrt.windows.foundation as windows_foundation
|
|
13
|
+
import winrt.windows.system.threading as windows_system_threading
|
|
14
14
|
|
|
15
15
|
from winrt.windows.system.threading.core import SignalHandler
|
|
16
16
|
|
|
@@ -21,12 +21,12 @@ class PreallocatedWorkItem(winrt.system.Object):
|
|
|
21
21
|
@staticmethod
|
|
22
22
|
def _from(obj: winrt.system.Object, /) -> PreallocatedWorkItem: ...
|
|
23
23
|
@typing.overload
|
|
24
|
-
def __new__(cls: typing.Type[PreallocatedWorkItem], handler: typing.Optional[
|
|
24
|
+
def __new__(cls: typing.Type[PreallocatedWorkItem], handler: typing.Optional[windows_system_threading.WorkItemHandler]) -> PreallocatedWorkItem: ...
|
|
25
25
|
@typing.overload
|
|
26
|
-
def __new__(cls: typing.Type[PreallocatedWorkItem], handler: typing.Optional[
|
|
26
|
+
def __new__(cls: typing.Type[PreallocatedWorkItem], handler: typing.Optional[windows_system_threading.WorkItemHandler], priority: windows_system_threading.WorkItemPriority) -> PreallocatedWorkItem: ...
|
|
27
27
|
@typing.overload
|
|
28
|
-
def __new__(cls: typing.Type[PreallocatedWorkItem], handler: typing.Optional[
|
|
29
|
-
def run_async(self) ->
|
|
28
|
+
def __new__(cls: typing.Type[PreallocatedWorkItem], handler: typing.Optional[windows_system_threading.WorkItemHandler], priority: windows_system_threading.WorkItemPriority, options: windows_system_threading.WorkItemOptions) -> PreallocatedWorkItem: ...
|
|
29
|
+
def run_async(self) -> windows_foundation.IAsyncAction: ...
|
|
30
30
|
|
|
31
31
|
@typing.final
|
|
32
32
|
class SignalNotifier_Static(type):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.System.Threading.Core
|
|
3
|
-
Version: 2.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
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.0
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.0
|
|
18
|
-
Requires-Dist: winrt-Windows.System.Threading[all]==2.0
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.System.Threading[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.0.1
|
{winrt_windows_system_threading_core-2.0.1 → winrt_windows_system_threading_core-2.2.0}/README.md
RENAMED
|
File without changes
|
{winrt_windows_system_threading_core-2.0.1 → winrt_windows_system_threading_core-2.2.0}/setup.cfg
RENAMED
|
File without changes
|
{winrt_windows_system_threading_core-2.0.1 → winrt_windows_system_threading_core-2.2.0}/setup.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|