winrt-Windows.System.Threading 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_threading-2.1.0 → winrt_windows_system_threading-2.2.0}/PKG-INFO +4 -4
- {winrt_windows_system_threading-2.1.0 → winrt_windows_system_threading-2.2.0}/all-requirements.txt +2 -2
- {winrt_windows_system_threading-2.1.0 → winrt_windows_system_threading-2.2.0}/py.Windows.System.Threading.cpp +85 -13
- {winrt_windows_system_threading-2.1.0 → winrt_windows_system_threading-2.2.0}/pyproject.toml +3 -2
- winrt_windows_system_threading-2.2.0/pywinrt-version.txt +1 -0
- {winrt_windows_system_threading-2.1.0 → winrt_windows_system_threading-2.2.0}/requirements.txt +2 -2
- {winrt_windows_system_threading-2.1.0 → winrt_windows_system_threading-2.2.0}/winrt/_winrt_windows_system_threading.pyi +1 -1
- {winrt_windows_system_threading-2.1.0 → winrt_windows_system_threading-2.2.0}/winrt/windows/system/threading/__init__.py +1 -1
- {winrt_windows_system_threading-2.1.0 → winrt_windows_system_threading-2.2.0}/winrt_Windows.System.Threading.egg-info/PKG-INFO +4 -4
- winrt_windows_system_threading-2.2.0/winrt_Windows.System.Threading.egg-info/requires.txt +4 -0
- winrt_windows_system_threading-2.1.0/pywinrt-version.txt +0 -1
- winrt_windows_system_threading-2.1.0/winrt_Windows.System.Threading.egg-info/requires.txt +0 -4
- {winrt_windows_system_threading-2.1.0 → winrt_windows_system_threading-2.2.0}/README.md +0 -0
- {winrt_windows_system_threading-2.1.0 → winrt_windows_system_threading-2.2.0}/setup.cfg +0 -0
- {winrt_windows_system_threading-2.1.0 → winrt_windows_system_threading-2.2.0}/setup.py +0 -0
- {winrt_windows_system_threading-2.1.0 → winrt_windows_system_threading-2.2.0}/winrt/windows/system/threading/py.typed +0 -0
- {winrt_windows_system_threading-2.1.0 → winrt_windows_system_threading-2.2.0}/winrt_Windows.System.Threading.egg-info/SOURCES.txt +0 -0
- {winrt_windows_system_threading-2.1.0 → winrt_windows_system_threading-2.2.0}/winrt_Windows.System.Threading.egg-info/dependency_links.txt +0 -0
- {winrt_windows_system_threading-2.1.0 → winrt_windows_system_threading-2.2.0}/winrt_Windows.System.Threading.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.System.Threading
|
|
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,11 +10,11 @@ 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.Foundation[all]==2.
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
|
|
18
18
|
|
|
19
19
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
20
20
|
|
{winrt_windows_system_threading-2.1.0 → winrt_windows_system_threading-2.2.0}/all-requirements.txt
RENAMED
|
@@ -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-Windows.Foundation[all]==2.
|
|
3
|
+
winrt-Windows.Foundation[all]==2.2.0
|
|
@@ -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.Threading.h"
|
|
4
4
|
|
|
@@ -21,7 +21,14 @@ namespace py::cpp::Windows::System::Threading
|
|
|
21
21
|
{
|
|
22
22
|
try
|
|
23
23
|
{
|
|
24
|
-
|
|
24
|
+
static std::optional<bool> is_overload_present{};
|
|
25
|
+
|
|
26
|
+
if (!is_overload_present.has_value())
|
|
27
|
+
{
|
|
28
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Threading.ThreadPool", L"RunAsync", 1);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
if (!is_overload_present.value())
|
|
25
32
|
{
|
|
26
33
|
py::set_arg_count_version_error(1);
|
|
27
34
|
return nullptr;
|
|
@@ -41,7 +48,14 @@ namespace py::cpp::Windows::System::Threading
|
|
|
41
48
|
{
|
|
42
49
|
try
|
|
43
50
|
{
|
|
44
|
-
|
|
51
|
+
static std::optional<bool> is_overload_present{};
|
|
52
|
+
|
|
53
|
+
if (!is_overload_present.has_value())
|
|
54
|
+
{
|
|
55
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Threading.ThreadPool", L"RunAsync", 2);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
if (!is_overload_present.value())
|
|
45
59
|
{
|
|
46
60
|
py::set_arg_count_version_error(2);
|
|
47
61
|
return nullptr;
|
|
@@ -62,7 +76,14 @@ namespace py::cpp::Windows::System::Threading
|
|
|
62
76
|
{
|
|
63
77
|
try
|
|
64
78
|
{
|
|
65
|
-
|
|
79
|
+
static std::optional<bool> is_overload_present{};
|
|
80
|
+
|
|
81
|
+
if (!is_overload_present.has_value())
|
|
82
|
+
{
|
|
83
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Threading.ThreadPool", L"RunAsync", 3);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
if (!is_overload_present.value())
|
|
66
87
|
{
|
|
67
88
|
py::set_arg_count_version_error(3);
|
|
68
89
|
return nullptr;
|
|
@@ -160,7 +181,14 @@ namespace py::cpp::Windows::System::Threading
|
|
|
160
181
|
{
|
|
161
182
|
try
|
|
162
183
|
{
|
|
163
|
-
|
|
184
|
+
static std::optional<bool> is_overload_present{};
|
|
185
|
+
|
|
186
|
+
if (!is_overload_present.has_value())
|
|
187
|
+
{
|
|
188
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Threading.ThreadPoolTimer", L"Cancel", 0);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
if (!is_overload_present.value())
|
|
164
192
|
{
|
|
165
193
|
py::set_arg_count_version_error(0);
|
|
166
194
|
return nullptr;
|
|
@@ -190,7 +218,14 @@ namespace py::cpp::Windows::System::Threading
|
|
|
190
218
|
{
|
|
191
219
|
try
|
|
192
220
|
{
|
|
193
|
-
|
|
221
|
+
static std::optional<bool> is_overload_present{};
|
|
222
|
+
|
|
223
|
+
if (!is_overload_present.has_value())
|
|
224
|
+
{
|
|
225
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Threading.ThreadPoolTimer", L"CreatePeriodicTimer", 2);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
if (!is_overload_present.value())
|
|
194
229
|
{
|
|
195
230
|
py::set_arg_count_version_error(2);
|
|
196
231
|
return nullptr;
|
|
@@ -211,7 +246,14 @@ namespace py::cpp::Windows::System::Threading
|
|
|
211
246
|
{
|
|
212
247
|
try
|
|
213
248
|
{
|
|
214
|
-
|
|
249
|
+
static std::optional<bool> is_overload_present{};
|
|
250
|
+
|
|
251
|
+
if (!is_overload_present.has_value())
|
|
252
|
+
{
|
|
253
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Threading.ThreadPoolTimer", L"CreatePeriodicTimer", 3);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
if (!is_overload_present.value())
|
|
215
257
|
{
|
|
216
258
|
py::set_arg_count_version_error(3);
|
|
217
259
|
return nullptr;
|
|
@@ -244,7 +286,14 @@ namespace py::cpp::Windows::System::Threading
|
|
|
244
286
|
{
|
|
245
287
|
try
|
|
246
288
|
{
|
|
247
|
-
|
|
289
|
+
static std::optional<bool> is_overload_present{};
|
|
290
|
+
|
|
291
|
+
if (!is_overload_present.has_value())
|
|
292
|
+
{
|
|
293
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Threading.ThreadPoolTimer", L"CreateTimer", 2);
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
if (!is_overload_present.value())
|
|
248
297
|
{
|
|
249
298
|
py::set_arg_count_version_error(2);
|
|
250
299
|
return nullptr;
|
|
@@ -265,7 +314,14 @@ namespace py::cpp::Windows::System::Threading
|
|
|
265
314
|
{
|
|
266
315
|
try
|
|
267
316
|
{
|
|
268
|
-
|
|
317
|
+
static std::optional<bool> is_overload_present{};
|
|
318
|
+
|
|
319
|
+
if (!is_overload_present.has_value())
|
|
320
|
+
{
|
|
321
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.System.Threading.ThreadPoolTimer", L"CreateTimer", 3);
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
if (!is_overload_present.value())
|
|
269
325
|
{
|
|
270
326
|
py::set_arg_count_version_error(3);
|
|
271
327
|
return nullptr;
|
|
@@ -294,7 +350,14 @@ namespace py::cpp::Windows::System::Threading
|
|
|
294
350
|
{
|
|
295
351
|
try
|
|
296
352
|
{
|
|
297
|
-
|
|
353
|
+
static std::optional<bool> is_property_present{};
|
|
354
|
+
|
|
355
|
+
if (!is_property_present.has_value())
|
|
356
|
+
{
|
|
357
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Threading.ThreadPoolTimer", L"Delay");
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
if (!is_property_present.value())
|
|
298
361
|
{
|
|
299
362
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
300
363
|
return nullptr;
|
|
@@ -313,7 +376,14 @@ namespace py::cpp::Windows::System::Threading
|
|
|
313
376
|
{
|
|
314
377
|
try
|
|
315
378
|
{
|
|
316
|
-
|
|
379
|
+
static std::optional<bool> is_property_present{};
|
|
380
|
+
|
|
381
|
+
if (!is_property_present.has_value())
|
|
382
|
+
{
|
|
383
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Threading.ThreadPoolTimer", L"Period");
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
if (!is_property_present.value())
|
|
317
387
|
{
|
|
318
388
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
319
389
|
return nullptr;
|
|
@@ -458,7 +528,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_threading(void) noexcept
|
|
|
458
528
|
return nullptr;
|
|
459
529
|
}
|
|
460
530
|
|
|
461
|
-
|
|
531
|
+
py::pytype_handle ThreadPool_type{py::register_python_type(module.get(), &type_spec_ThreadPool, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_ThreadPool_Static.get()))};
|
|
532
|
+
if (!ThreadPool_type)
|
|
462
533
|
{
|
|
463
534
|
return nullptr;
|
|
464
535
|
}
|
|
@@ -469,7 +540,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_threading(void) noexcept
|
|
|
469
540
|
return nullptr;
|
|
470
541
|
}
|
|
471
542
|
|
|
472
|
-
|
|
543
|
+
py::pytype_handle ThreadPoolTimer_type{py::register_python_type(module.get(), &type_spec_ThreadPoolTimer, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_ThreadPoolTimer_Static.get()))};
|
|
544
|
+
if (!ThreadPoolTimer_type)
|
|
473
545
|
{
|
|
474
546
|
return nullptr;
|
|
475
547
|
}
|
{winrt_windows_system_threading-2.1.0 → winrt_windows_system_threading-2.2.0}/pyproject.toml
RENAMED
|
@@ -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
|
{winrt_windows_system_threading-2.1.0 → winrt_windows_system_threading-2.2.0}/requirements.txt
RENAMED
|
@@ -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.Threading
|
|
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,11 +10,11 @@ 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.Foundation[all]==2.
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
|
|
18
18
|
|
|
19
19
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
20
20
|
|
|
@@ -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
|