winrt-Windows.ApplicationModel.ExtendedExecution 2.3.0__tar.gz → 3.1.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_applicationmodel_extendedexecution-2.3.0 → winrt_windows_applicationmodel_extendedexecution-3.1.0}/PKG-INFO +6 -6
- {winrt_windows_applicationmodel_extendedexecution-2.3.0 → winrt_windows_applicationmodel_extendedexecution-3.1.0}/all-requirements.txt +2 -2
- {winrt_windows_applicationmodel_extendedexecution-2.3.0 → winrt_windows_applicationmodel_extendedexecution-3.1.0}/py.Windows.ApplicationModel.ExtendedExecution.cpp +82 -34
- {winrt_windows_applicationmodel_extendedexecution-2.3.0 → winrt_windows_applicationmodel_extendedexecution-3.1.0}/pyproject.toml +4 -4
- winrt_windows_applicationmodel_extendedexecution-3.1.0/pywinrt-version.txt +1 -0
- {winrt_windows_applicationmodel_extendedexecution-2.3.0 → winrt_windows_applicationmodel_extendedexecution-3.1.0}/requirements.txt +2 -2
- {winrt_windows_applicationmodel_extendedexecution-2.3.0 → winrt_windows_applicationmodel_extendedexecution-3.1.0}/setup.py +1 -1
- winrt_windows_applicationmodel_extendedexecution-3.1.0/winrt/_winrt_windows_applicationmodel_extendedexecution.pyi +55 -0
- {winrt_windows_applicationmodel_extendedexecution-2.3.0 → winrt_windows_applicationmodel_extendedexecution-3.1.0}/winrt/windows/applicationmodel/extendedexecution/__init__.py +5 -4
- {winrt_windows_applicationmodel_extendedexecution-2.3.0 → winrt_windows_applicationmodel_extendedexecution-3.1.0}/winrt_Windows.ApplicationModel.ExtendedExecution.egg-info/PKG-INFO +6 -6
- winrt_windows_applicationmodel_extendedexecution-3.1.0/winrt_Windows.ApplicationModel.ExtendedExecution.egg-info/requires.txt +4 -0
- winrt_windows_applicationmodel_extendedexecution-2.3.0/pywinrt-version.txt +0 -1
- winrt_windows_applicationmodel_extendedexecution-2.3.0/winrt/_winrt_windows_applicationmodel_extendedexecution.pyi +0 -48
- winrt_windows_applicationmodel_extendedexecution-2.3.0/winrt_Windows.ApplicationModel.ExtendedExecution.egg-info/requires.txt +0 -4
- {winrt_windows_applicationmodel_extendedexecution-2.3.0 → winrt_windows_applicationmodel_extendedexecution-3.1.0}/README.md +0 -0
- {winrt_windows_applicationmodel_extendedexecution-2.3.0 → winrt_windows_applicationmodel_extendedexecution-3.1.0}/setup.cfg +0 -0
- {winrt_windows_applicationmodel_extendedexecution-2.3.0 → winrt_windows_applicationmodel_extendedexecution-3.1.0}/winrt/windows/applicationmodel/extendedexecution/py.typed +0 -0
- {winrt_windows_applicationmodel_extendedexecution-2.3.0 → winrt_windows_applicationmodel_extendedexecution-3.1.0}/winrt_Windows.ApplicationModel.ExtendedExecution.egg-info/SOURCES.txt +0 -0
- {winrt_windows_applicationmodel_extendedexecution-2.3.0 → winrt_windows_applicationmodel_extendedexecution-3.1.0}/winrt_Windows.ApplicationModel.ExtendedExecution.egg-info/dependency_links.txt +0 -0
- {winrt_windows_applicationmodel_extendedexecution-2.3.0 → winrt_windows_applicationmodel_extendedexecution-3.1.0}/winrt_Windows.ApplicationModel.ExtendedExecution.egg-info/top_level.txt +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: winrt-Windows.ApplicationModel.ExtendedExecution
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
|
-
License: MIT
|
|
5
|
+
License-Expression: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
7
7
|
Project-URL: Repository, https://github.com/pywinrt/pywinrt
|
|
8
8
|
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
|
|
@@ -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:
|
|
13
|
+
Requires-Python: >=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==
|
|
15
|
+
Requires-Dist: winrt-runtime==3.1.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==3.1.0; extra == "all"
|
|
18
18
|
|
|
19
19
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
20
20
|
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
|
|
2
2
|
|
|
3
|
-
winrt-Windows.Foundation[all]==
|
|
3
|
+
winrt-Windows.Foundation[all]==3.1.0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.ApplicationModel.ExtendedExecution.h"
|
|
4
4
|
|
|
@@ -38,7 +38,11 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution
|
|
|
38
38
|
return nullptr;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
return py::convert(
|
|
41
|
+
return py::convert([&]()
|
|
42
|
+
{
|
|
43
|
+
auto _gil = release_gil();
|
|
44
|
+
return self->obj.Reason();
|
|
45
|
+
}());
|
|
42
46
|
}
|
|
43
47
|
catch (...)
|
|
44
48
|
{
|
|
@@ -74,21 +78,18 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution
|
|
|
74
78
|
static PyMethodDef _methods_ExtendedExecutionRevokedEventArgs[] = {
|
|
75
79
|
{ "_assign_array_", _assign_array_ExtendedExecutionRevokedEventArgs, METH_O | METH_STATIC, nullptr },
|
|
76
80
|
{ "_from", reinterpret_cast<PyCFunction>(_from_ExtendedExecutionRevokedEventArgs), METH_O | METH_STATIC, nullptr },
|
|
77
|
-
{ }
|
|
78
|
-
};
|
|
81
|
+
{ }};
|
|
79
82
|
|
|
80
83
|
static PyGetSetDef _getset_ExtendedExecutionRevokedEventArgs[] = {
|
|
81
84
|
{ "reason", reinterpret_cast<getter>(ExtendedExecutionRevokedEventArgs_get_Reason), nullptr, nullptr, nullptr },
|
|
82
|
-
{ }
|
|
83
|
-
};
|
|
85
|
+
{ }};
|
|
84
86
|
|
|
85
87
|
static PyType_Slot _type_slots_ExtendedExecutionRevokedEventArgs[] = {
|
|
86
88
|
{ Py_tp_new, reinterpret_cast<void*>(_new_ExtendedExecutionRevokedEventArgs) },
|
|
87
89
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_ExtendedExecutionRevokedEventArgs) },
|
|
88
90
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_ExtendedExecutionRevokedEventArgs) },
|
|
89
91
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_ExtendedExecutionRevokedEventArgs) },
|
|
90
|
-
{ }
|
|
91
|
-
};
|
|
92
|
+
{ }};
|
|
92
93
|
|
|
93
94
|
static PyType_Spec type_spec_ExtendedExecutionRevokedEventArgs = {
|
|
94
95
|
"winrt._winrt_windows_applicationmodel_extendedexecution.ExtendedExecutionRevokedEventArgs",
|
|
@@ -101,13 +102,13 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution
|
|
|
101
102
|
|
|
102
103
|
static PyObject* _new_ExtendedExecutionSession(PyTypeObject* type, PyObject* args, PyObject* kwds) noexcept
|
|
103
104
|
{
|
|
104
|
-
if (kwds
|
|
105
|
+
if (kwds)
|
|
105
106
|
{
|
|
106
107
|
py::set_invalid_kwd_args_error();
|
|
107
108
|
return nullptr;
|
|
108
109
|
}
|
|
109
110
|
|
|
110
|
-
auto arg_count =
|
|
111
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
111
112
|
if (arg_count == 0)
|
|
112
113
|
{
|
|
113
114
|
try
|
|
@@ -138,7 +139,7 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution
|
|
|
138
139
|
|
|
139
140
|
static PyObject* ExtendedExecutionSession_Close(py::wrapper::Windows::ApplicationModel::ExtendedExecution::ExtendedExecutionSession* self, PyObject* args) noexcept
|
|
140
141
|
{
|
|
141
|
-
auto arg_count =
|
|
142
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
142
143
|
|
|
143
144
|
if (arg_count == 0)
|
|
144
145
|
{
|
|
@@ -157,7 +158,11 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution
|
|
|
157
158
|
return nullptr;
|
|
158
159
|
}
|
|
159
160
|
|
|
160
|
-
|
|
161
|
+
{
|
|
162
|
+
auto _gil = release_gil();
|
|
163
|
+
self->obj.Close();
|
|
164
|
+
}
|
|
165
|
+
|
|
161
166
|
Py_RETURN_NONE;
|
|
162
167
|
}
|
|
163
168
|
catch (...)
|
|
@@ -175,7 +180,7 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution
|
|
|
175
180
|
|
|
176
181
|
static PyObject* ExtendedExecutionSession_RequestExtensionAsync(py::wrapper::Windows::ApplicationModel::ExtendedExecution::ExtendedExecutionSession* self, PyObject* args) noexcept
|
|
177
182
|
{
|
|
178
|
-
auto arg_count =
|
|
183
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
179
184
|
|
|
180
185
|
if (arg_count == 0)
|
|
181
186
|
{
|
|
@@ -194,7 +199,11 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution
|
|
|
194
199
|
return nullptr;
|
|
195
200
|
}
|
|
196
201
|
|
|
197
|
-
return py::convert(
|
|
202
|
+
return py::convert([&]()
|
|
203
|
+
{
|
|
204
|
+
auto _gil = release_gil();
|
|
205
|
+
return self->obj.RequestExtensionAsync();
|
|
206
|
+
}());
|
|
198
207
|
}
|
|
199
208
|
catch (...)
|
|
200
209
|
{
|
|
@@ -226,7 +235,11 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution
|
|
|
226
235
|
return nullptr;
|
|
227
236
|
}
|
|
228
237
|
|
|
229
|
-
return py::convert(
|
|
238
|
+
return py::convert([&]()
|
|
239
|
+
{
|
|
240
|
+
auto _gil = release_gil();
|
|
241
|
+
return self->obj.Reason();
|
|
242
|
+
}());
|
|
230
243
|
}
|
|
231
244
|
catch (...)
|
|
232
245
|
{
|
|
@@ -237,7 +250,7 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution
|
|
|
237
250
|
|
|
238
251
|
static int ExtendedExecutionSession_put_Reason(py::wrapper::Windows::ApplicationModel::ExtendedExecution::ExtendedExecutionSession* self, PyObject* arg, void* /*unused*/) noexcept
|
|
239
252
|
{
|
|
240
|
-
if (arg
|
|
253
|
+
if (!arg)
|
|
241
254
|
{
|
|
242
255
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
243
256
|
return -1;
|
|
@@ -260,7 +273,11 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution
|
|
|
260
273
|
|
|
261
274
|
auto param0 = py::convert_to<winrt::Windows::ApplicationModel::ExtendedExecution::ExtendedExecutionReason>(arg);
|
|
262
275
|
|
|
263
|
-
|
|
276
|
+
{
|
|
277
|
+
auto _gil = release_gil();
|
|
278
|
+
self->obj.Reason(param0);
|
|
279
|
+
}
|
|
280
|
+
|
|
264
281
|
return 0;
|
|
265
282
|
}
|
|
266
283
|
catch (...)
|
|
@@ -287,7 +304,11 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution
|
|
|
287
304
|
return nullptr;
|
|
288
305
|
}
|
|
289
306
|
|
|
290
|
-
return py::convert(
|
|
307
|
+
return py::convert([&]()
|
|
308
|
+
{
|
|
309
|
+
auto _gil = release_gil();
|
|
310
|
+
return self->obj.PercentProgress();
|
|
311
|
+
}());
|
|
291
312
|
}
|
|
292
313
|
catch (...)
|
|
293
314
|
{
|
|
@@ -298,7 +319,7 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution
|
|
|
298
319
|
|
|
299
320
|
static int ExtendedExecutionSession_put_PercentProgress(py::wrapper::Windows::ApplicationModel::ExtendedExecution::ExtendedExecutionSession* self, PyObject* arg, void* /*unused*/) noexcept
|
|
300
321
|
{
|
|
301
|
-
if (arg
|
|
322
|
+
if (!arg)
|
|
302
323
|
{
|
|
303
324
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
304
325
|
return -1;
|
|
@@ -321,7 +342,11 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution
|
|
|
321
342
|
|
|
322
343
|
auto param0 = py::convert_to<uint32_t>(arg);
|
|
323
344
|
|
|
324
|
-
|
|
345
|
+
{
|
|
346
|
+
auto _gil = release_gil();
|
|
347
|
+
self->obj.PercentProgress(param0);
|
|
348
|
+
}
|
|
349
|
+
|
|
325
350
|
return 0;
|
|
326
351
|
}
|
|
327
352
|
catch (...)
|
|
@@ -348,7 +373,11 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution
|
|
|
348
373
|
return nullptr;
|
|
349
374
|
}
|
|
350
375
|
|
|
351
|
-
return py::convert(
|
|
376
|
+
return py::convert([&]()
|
|
377
|
+
{
|
|
378
|
+
auto _gil = release_gil();
|
|
379
|
+
return self->obj.Description();
|
|
380
|
+
}());
|
|
352
381
|
}
|
|
353
382
|
catch (...)
|
|
354
383
|
{
|
|
@@ -359,7 +388,7 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution
|
|
|
359
388
|
|
|
360
389
|
static int ExtendedExecutionSession_put_Description(py::wrapper::Windows::ApplicationModel::ExtendedExecution::ExtendedExecutionSession* self, PyObject* arg, void* /*unused*/) noexcept
|
|
361
390
|
{
|
|
362
|
-
if (arg
|
|
391
|
+
if (!arg)
|
|
363
392
|
{
|
|
364
393
|
PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
|
|
365
394
|
return -1;
|
|
@@ -382,7 +411,11 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution
|
|
|
382
411
|
|
|
383
412
|
auto param0 = py::convert_to<winrt::hstring>(arg);
|
|
384
413
|
|
|
385
|
-
|
|
414
|
+
{
|
|
415
|
+
auto _gil = release_gil();
|
|
416
|
+
self->obj.Description(param0);
|
|
417
|
+
}
|
|
418
|
+
|
|
386
419
|
return 0;
|
|
387
420
|
}
|
|
388
421
|
catch (...)
|
|
@@ -411,7 +444,11 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution
|
|
|
411
444
|
|
|
412
445
|
auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Foundation::IInspectable, winrt::Windows::ApplicationModel::ExtendedExecution::ExtendedExecutionRevokedEventArgs>>(arg);
|
|
413
446
|
|
|
414
|
-
return py::convert(
|
|
447
|
+
return py::convert([&]()
|
|
448
|
+
{
|
|
449
|
+
auto _gil = release_gil();
|
|
450
|
+
return self->obj.Revoked(param0);
|
|
451
|
+
}());
|
|
415
452
|
}
|
|
416
453
|
catch (...)
|
|
417
454
|
{
|
|
@@ -439,7 +476,11 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution
|
|
|
439
476
|
|
|
440
477
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
441
478
|
|
|
442
|
-
|
|
479
|
+
{
|
|
480
|
+
auto _gil = release_gil();
|
|
481
|
+
self->obj.Revoked(param0);
|
|
482
|
+
}
|
|
483
|
+
|
|
443
484
|
Py_RETURN_NONE;
|
|
444
485
|
}
|
|
445
486
|
catch (...)
|
|
@@ -482,7 +523,11 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution
|
|
|
482
523
|
{
|
|
483
524
|
try
|
|
484
525
|
{
|
|
485
|
-
|
|
526
|
+
{
|
|
527
|
+
auto _gil = py::release_gil();
|
|
528
|
+
self->obj.Close();
|
|
529
|
+
}
|
|
530
|
+
|
|
486
531
|
Py_RETURN_FALSE;
|
|
487
532
|
}
|
|
488
533
|
catch (...)
|
|
@@ -501,23 +546,20 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution
|
|
|
501
546
|
{ "_from", reinterpret_cast<PyCFunction>(_from_ExtendedExecutionSession), METH_O | METH_STATIC, nullptr },
|
|
502
547
|
{ "__enter__", reinterpret_cast<PyCFunction>(_enter_ExtendedExecutionSession), METH_NOARGS, nullptr },
|
|
503
548
|
{ "__exit__", reinterpret_cast<PyCFunction>(_exit_ExtendedExecutionSession), METH_VARARGS, nullptr },
|
|
504
|
-
{ }
|
|
505
|
-
};
|
|
549
|
+
{ }};
|
|
506
550
|
|
|
507
551
|
static PyGetSetDef _getset_ExtendedExecutionSession[] = {
|
|
508
552
|
{ "reason", reinterpret_cast<getter>(ExtendedExecutionSession_get_Reason), reinterpret_cast<setter>(ExtendedExecutionSession_put_Reason), nullptr, nullptr },
|
|
509
553
|
{ "percent_progress", reinterpret_cast<getter>(ExtendedExecutionSession_get_PercentProgress), reinterpret_cast<setter>(ExtendedExecutionSession_put_PercentProgress), nullptr, nullptr },
|
|
510
554
|
{ "description", reinterpret_cast<getter>(ExtendedExecutionSession_get_Description), reinterpret_cast<setter>(ExtendedExecutionSession_put_Description), nullptr, nullptr },
|
|
511
|
-
{ }
|
|
512
|
-
};
|
|
555
|
+
{ }};
|
|
513
556
|
|
|
514
557
|
static PyType_Slot _type_slots_ExtendedExecutionSession[] = {
|
|
515
558
|
{ Py_tp_new, reinterpret_cast<void*>(_new_ExtendedExecutionSession) },
|
|
516
559
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_ExtendedExecutionSession) },
|
|
517
560
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_ExtendedExecutionSession) },
|
|
518
561
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_ExtendedExecutionSession) },
|
|
519
|
-
{ }
|
|
520
|
-
};
|
|
562
|
+
{ }};
|
|
521
563
|
|
|
522
564
|
static PyType_Spec type_spec_ExtendedExecutionSession = {
|
|
523
565
|
"winrt._winrt_windows_applicationmodel_extendedexecution.ExtendedExecutionSession",
|
|
@@ -558,6 +600,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_extendedexecution(void) no
|
|
|
558
600
|
return nullptr;
|
|
559
601
|
}
|
|
560
602
|
|
|
603
|
+
auto inspectable_meta_type = py::get_inspectable_meta_type();
|
|
604
|
+
if (!inspectable_meta_type)
|
|
605
|
+
{
|
|
606
|
+
return nullptr;
|
|
607
|
+
}
|
|
608
|
+
|
|
561
609
|
auto object_type = py::get_object_type();
|
|
562
610
|
if (!object_type)
|
|
563
611
|
{
|
|
@@ -571,13 +619,13 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_extendedexecution(void) no
|
|
|
571
619
|
return nullptr;
|
|
572
620
|
}
|
|
573
621
|
|
|
574
|
-
py::pytype_handle ExtendedExecutionRevokedEventArgs_type{py::register_python_type(module.get(), &type_spec_ExtendedExecutionRevokedEventArgs, object_bases.get(),
|
|
622
|
+
py::pytype_handle ExtendedExecutionRevokedEventArgs_type{py::register_python_type(module.get(), &type_spec_ExtendedExecutionRevokedEventArgs, object_bases.get(), inspectable_meta_type)};
|
|
575
623
|
if (!ExtendedExecutionRevokedEventArgs_type)
|
|
576
624
|
{
|
|
577
625
|
return nullptr;
|
|
578
626
|
}
|
|
579
627
|
|
|
580
|
-
py::pytype_handle ExtendedExecutionSession_type{py::register_python_type(module.get(), &type_spec_ExtendedExecutionSession, object_bases.get(),
|
|
628
|
+
py::pytype_handle ExtendedExecutionSession_type{py::register_python_type(module.get(), &type_spec_ExtendedExecutionSession, object_bases.get(), inspectable_meta_type)};
|
|
581
629
|
if (!ExtendedExecutionSession_type)
|
|
582
630
|
{
|
|
583
631
|
return nullptr;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
2
|
|
|
3
3
|
[build-system]
|
|
4
|
-
requires = ["setuptools", "winrt-sdk"]
|
|
4
|
+
requires = ["setuptools>=78", "winrt-sdk"]
|
|
5
5
|
build-backend = "setuptools.build_meta"
|
|
6
6
|
|
|
7
7
|
[project]
|
|
8
8
|
name = "winrt-Windows.ApplicationModel.ExtendedExecution"
|
|
9
9
|
description = "Python projection of Windows Runtime (WinRT) APIs"
|
|
10
10
|
readme = "README.md"
|
|
11
|
-
license =
|
|
11
|
+
license = "MIT"
|
|
12
12
|
classifiers = [
|
|
13
13
|
"Operating System :: Microsoft :: Windows",
|
|
14
14
|
"Programming Language :: Python :: 3",
|
|
@@ -16,7 +16,7 @@ classifiers = [
|
|
|
16
16
|
"Intended Audience :: Developers",
|
|
17
17
|
]
|
|
18
18
|
dynamic = ["version", "dependencies", "optional-dependencies"]
|
|
19
|
-
requires-python = ">=3.9
|
|
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="
|
|
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"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.1.0
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==
|
|
3
|
+
winrt-runtime==3.1.0
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
|
|
2
|
+
|
|
3
|
+
import datetime
|
|
4
|
+
import sys
|
|
5
|
+
import types
|
|
6
|
+
import typing
|
|
7
|
+
import uuid as _uuid
|
|
8
|
+
from builtins import property as _property
|
|
9
|
+
|
|
10
|
+
import winrt._winrt
|
|
11
|
+
import winrt.system
|
|
12
|
+
import winrt.windows.foundation as windows_foundation
|
|
13
|
+
|
|
14
|
+
from winrt.windows.applicationmodel.extendedexecution import ExtendedExecutionReason, ExtendedExecutionResult, ExtendedExecutionRevokedReason
|
|
15
|
+
|
|
16
|
+
Self = typing.TypeVar('Self')
|
|
17
|
+
|
|
18
|
+
@typing.final
|
|
19
|
+
class ExtendedExecutionRevokedEventArgs(winrt.system.Object):
|
|
20
|
+
# Windows.ApplicationModel.ExtendedExecution.ExtendedExecutionRevokedReason Windows.ApplicationModel.ExtendedExecution.ExtendedExecutionRevokedEventArgs::get_Reason()
|
|
21
|
+
@_property
|
|
22
|
+
def reason(self) -> ExtendedExecutionRevokedReason: ...
|
|
23
|
+
|
|
24
|
+
@typing.final
|
|
25
|
+
class ExtendedExecutionSession(winrt.system.Object, windows_foundation.IClosable):
|
|
26
|
+
def __enter__(self: Self) -> Self: ...
|
|
27
|
+
def __exit__(self, exc_type: typing.Optional[typing.Type[BaseException]], exc_value: typing.Optional[BaseException], traceback: typing.Optional[types.TracebackType]) -> None: ...
|
|
28
|
+
def __new__(cls: typing.Type[Self]) -> Self: ...
|
|
29
|
+
# System.Void Windows.ApplicationModel.ExtendedExecution.ExtendedExecutionSession::Close()
|
|
30
|
+
def close(self) -> None: ...
|
|
31
|
+
# Windows.Foundation.IAsyncOperation`1<Windows.ApplicationModel.ExtendedExecution.ExtendedExecutionResult> Windows.ApplicationModel.ExtendedExecution.ExtendedExecutionSession::RequestExtensionAsync()
|
|
32
|
+
def request_extension_async(self) -> windows_foundation.IAsyncOperation[ExtendedExecutionResult]: ...
|
|
33
|
+
# Windows.Foundation.EventRegistrationToken Windows.ApplicationModel.ExtendedExecution.ExtendedExecutionSession::add_Revoked(Windows.Foundation.TypedEventHandler`2<System.Object,Windows.ApplicationModel.ExtendedExecution.ExtendedExecutionRevokedEventArgs>)
|
|
34
|
+
def add_revoked(self, handler: windows_foundation.TypedEventHandler[winrt.system.Object, ExtendedExecutionRevokedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
35
|
+
# System.Void Windows.ApplicationModel.ExtendedExecution.ExtendedExecutionSession::remove_Revoked(Windows.Foundation.EventRegistrationToken)
|
|
36
|
+
def remove_revoked(self, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
|
|
37
|
+
# Windows.ApplicationModel.ExtendedExecution.ExtendedExecutionReason Windows.ApplicationModel.ExtendedExecution.ExtendedExecutionSession::get_Reason()
|
|
38
|
+
@_property
|
|
39
|
+
def reason(self) -> ExtendedExecutionReason: ...
|
|
40
|
+
# System.Void Windows.ApplicationModel.ExtendedExecution.ExtendedExecutionSession::put_Reason(Windows.ApplicationModel.ExtendedExecution.ExtendedExecutionReason)
|
|
41
|
+
@reason.setter
|
|
42
|
+
def reason(self, value: ExtendedExecutionReason) -> None: ...
|
|
43
|
+
# System.UInt32 Windows.ApplicationModel.ExtendedExecution.ExtendedExecutionSession::get_PercentProgress()
|
|
44
|
+
@_property
|
|
45
|
+
def percent_progress(self) -> winrt.system.UInt32: ...
|
|
46
|
+
# System.Void Windows.ApplicationModel.ExtendedExecution.ExtendedExecutionSession::put_PercentProgress(System.UInt32)
|
|
47
|
+
@percent_progress.setter
|
|
48
|
+
def percent_progress(self, value: winrt.system.UInt32) -> None: ...
|
|
49
|
+
# System.String Windows.ApplicationModel.ExtendedExecution.ExtendedExecutionSession::get_Description()
|
|
50
|
+
@_property
|
|
51
|
+
def description(self) -> str: ...
|
|
52
|
+
# System.Void Windows.ApplicationModel.ExtendedExecution.ExtendedExecutionSession::put_Description(System.String)
|
|
53
|
+
@description.setter
|
|
54
|
+
def description(self, value: str) -> None: ...
|
|
55
|
+
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
|
|
2
2
|
|
|
3
3
|
import enum
|
|
4
4
|
|
|
5
5
|
import winrt.system
|
|
6
|
-
from winrt import
|
|
6
|
+
from winrt._winrt_windows_applicationmodel_extendedexecution import (
|
|
7
|
+
ExtendedExecutionRevokedEventArgs,
|
|
8
|
+
ExtendedExecutionSession,
|
|
9
|
+
)
|
|
7
10
|
|
|
8
11
|
__all__ = [
|
|
9
12
|
"ExtendedExecutionReason",
|
|
@@ -26,5 +29,3 @@ class ExtendedExecutionRevokedReason(enum.IntEnum):
|
|
|
26
29
|
RESUMED = 0
|
|
27
30
|
SYSTEM_POLICY = 1
|
|
28
31
|
|
|
29
|
-
ExtendedExecutionRevokedEventArgs = _winrt_windows_applicationmodel_extendedexecution.ExtendedExecutionRevokedEventArgs
|
|
30
|
-
ExtendedExecutionSession = _winrt_windows_applicationmodel_extendedexecution.ExtendedExecutionSession
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: winrt-Windows.ApplicationModel.ExtendedExecution
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
|
-
License: MIT
|
|
5
|
+
License-Expression: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
7
7
|
Project-URL: Repository, https://github.com/pywinrt/pywinrt
|
|
8
8
|
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
|
|
@@ -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:
|
|
13
|
+
Requires-Python: >=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==
|
|
15
|
+
Requires-Dist: winrt-runtime==3.1.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==3.1.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.3.0
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
|
|
2
|
-
|
|
3
|
-
import datetime
|
|
4
|
-
import sys
|
|
5
|
-
import types
|
|
6
|
-
import typing
|
|
7
|
-
import uuid as _uuid
|
|
8
|
-
from builtins import property as _property
|
|
9
|
-
|
|
10
|
-
import winrt._winrt
|
|
11
|
-
import winrt.system
|
|
12
|
-
import winrt.windows.foundation as windows_foundation
|
|
13
|
-
|
|
14
|
-
from winrt.windows.applicationmodel.extendedexecution import ExtendedExecutionReason, ExtendedExecutionResult, ExtendedExecutionRevokedReason
|
|
15
|
-
|
|
16
|
-
Self = typing.TypeVar('Self')
|
|
17
|
-
|
|
18
|
-
@typing.final
|
|
19
|
-
class ExtendedExecutionRevokedEventArgs(winrt.system.Object):
|
|
20
|
-
@staticmethod
|
|
21
|
-
def _from(obj: winrt.system.Object, /) -> ExtendedExecutionRevokedEventArgs: ...
|
|
22
|
-
@_property
|
|
23
|
-
def reason(self) -> ExtendedExecutionRevokedReason: ...
|
|
24
|
-
|
|
25
|
-
@typing.final
|
|
26
|
-
class ExtendedExecutionSession(winrt.system.Object):
|
|
27
|
-
def __enter__(self: Self) -> Self: ...
|
|
28
|
-
def __exit__(self, *args) -> None: ...
|
|
29
|
-
@staticmethod
|
|
30
|
-
def _from(obj: winrt.system.Object, /) -> ExtendedExecutionSession: ...
|
|
31
|
-
def __new__(cls: typing.Type[ExtendedExecutionSession]) -> ExtendedExecutionSession: ...
|
|
32
|
-
def close(self) -> None: ...
|
|
33
|
-
def request_extension_async(self) -> windows_foundation.IAsyncOperation[ExtendedExecutionResult]: ...
|
|
34
|
-
def add_revoked(self, handler: windows_foundation.TypedEventHandler[winrt.system.Object, ExtendedExecutionRevokedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
|
|
35
|
-
def remove_revoked(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
36
|
-
@_property
|
|
37
|
-
def reason(self) -> ExtendedExecutionReason: ...
|
|
38
|
-
@reason.setter
|
|
39
|
-
def reason(self, value: ExtendedExecutionReason) -> None: ...
|
|
40
|
-
@_property
|
|
41
|
-
def percent_progress(self) -> winrt.system.UInt32: ...
|
|
42
|
-
@percent_progress.setter
|
|
43
|
-
def percent_progress(self, value: winrt.system.UInt32) -> None: ...
|
|
44
|
-
@_property
|
|
45
|
-
def description(self) -> str: ...
|
|
46
|
-
@description.setter
|
|
47
|
-
def description(self, value: str) -> None: ...
|
|
48
|
-
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|