winrt-Windows.System.Diagnostics.TraceReporting 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.
Files changed (20) hide show
  1. {winrt_windows_system_diagnostics_tracereporting-2.3.0 → winrt_windows_system_diagnostics_tracereporting-3.1.0}/PKG-INFO +6 -6
  2. {winrt_windows_system_diagnostics_tracereporting-2.3.0 → winrt_windows_system_diagnostics_tracereporting-3.1.0}/all-requirements.txt +2 -2
  3. {winrt_windows_system_diagnostics_tracereporting-2.3.0 → winrt_windows_system_diagnostics_tracereporting-3.1.0}/py.Windows.System.Diagnostics.TraceReporting.cpp +117 -54
  4. {winrt_windows_system_diagnostics_tracereporting-2.3.0 → winrt_windows_system_diagnostics_tracereporting-3.1.0}/pyproject.toml +4 -4
  5. winrt_windows_system_diagnostics_tracereporting-3.1.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_system_diagnostics_tracereporting-2.3.0 → winrt_windows_system_diagnostics_tracereporting-3.1.0}/requirements.txt +2 -2
  7. {winrt_windows_system_diagnostics_tracereporting-2.3.0 → winrt_windows_system_diagnostics_tracereporting-3.1.0}/setup.py +1 -1
  8. winrt_windows_system_diagnostics_tracereporting-3.1.0/winrt/_winrt_windows_system_diagnostics_tracereporting.pyi +70 -0
  9. {winrt_windows_system_diagnostics_tracereporting-2.3.0 → winrt_windows_system_diagnostics_tracereporting-3.1.0}/winrt/windows/system/diagnostics/tracereporting/__init__.py +6 -5
  10. {winrt_windows_system_diagnostics_tracereporting-2.3.0 → winrt_windows_system_diagnostics_tracereporting-3.1.0}/winrt_Windows.System.Diagnostics.TraceReporting.egg-info/PKG-INFO +6 -6
  11. winrt_windows_system_diagnostics_tracereporting-3.1.0/winrt_Windows.System.Diagnostics.TraceReporting.egg-info/requires.txt +4 -0
  12. winrt_windows_system_diagnostics_tracereporting-2.3.0/pywinrt-version.txt +0 -1
  13. winrt_windows_system_diagnostics_tracereporting-2.3.0/winrt/_winrt_windows_system_diagnostics_tracereporting.pyi +0 -58
  14. winrt_windows_system_diagnostics_tracereporting-2.3.0/winrt_Windows.System.Diagnostics.TraceReporting.egg-info/requires.txt +0 -4
  15. {winrt_windows_system_diagnostics_tracereporting-2.3.0 → winrt_windows_system_diagnostics_tracereporting-3.1.0}/README.md +0 -0
  16. {winrt_windows_system_diagnostics_tracereporting-2.3.0 → winrt_windows_system_diagnostics_tracereporting-3.1.0}/setup.cfg +0 -0
  17. {winrt_windows_system_diagnostics_tracereporting-2.3.0 → winrt_windows_system_diagnostics_tracereporting-3.1.0}/winrt/windows/system/diagnostics/tracereporting/py.typed +0 -0
  18. {winrt_windows_system_diagnostics_tracereporting-2.3.0 → winrt_windows_system_diagnostics_tracereporting-3.1.0}/winrt_Windows.System.Diagnostics.TraceReporting.egg-info/SOURCES.txt +0 -0
  19. {winrt_windows_system_diagnostics_tracereporting-2.3.0 → winrt_windows_system_diagnostics_tracereporting-3.1.0}/winrt_Windows.System.Diagnostics.TraceReporting.egg-info/dependency_links.txt +0 -0
  20. {winrt_windows_system_diagnostics_tracereporting-2.3.0 → winrt_windows_system_diagnostics_tracereporting-3.1.0}/winrt_Windows.System.Diagnostics.TraceReporting.egg-info/top_level.txt +0 -0
@@ -1,8 +1,8 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: winrt-Windows.System.Diagnostics.TraceReporting
3
- Version: 2.3.0
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: <3.14,>=3.9
13
+ Requires-Python: >=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.3.0
15
+ Requires-Dist: winrt-runtime==3.1.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.3.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation.Collections[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 v2.3.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
2
2
 
3
- winrt-Windows.Foundation.Collections[all]==2.3.0
3
+ winrt-Windows.Foundation.Collections[all]==3.1.0
@@ -1,4 +1,4 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
2
2
 
3
3
  #include "py.Windows.System.Diagnostics.TraceReporting.h"
4
4
 
@@ -15,7 +15,7 @@ namespace py::cpp::Windows::System::Diagnostics::TraceReporting
15
15
 
16
16
  static PyObject* PlatformDiagnosticActions_DownloadLatestSettingsForNamespace(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 == 5)
21
21
  {
@@ -40,7 +40,11 @@ namespace py::cpp::Windows::System::Diagnostics::TraceReporting
40
40
  auto param3 = py::convert_to<bool>(args, 3);
41
41
  auto param4 = py::convert_to<bool>(args, 4);
42
42
 
43
- return py::convert(winrt::Windows::System::Diagnostics::TraceReporting::PlatformDiagnosticActions::DownloadLatestSettingsForNamespace(param0, param1, param2, param3, param4));
43
+ return py::convert([&]()
44
+ {
45
+ auto _gil = release_gil();
46
+ return winrt::Windows::System::Diagnostics::TraceReporting::PlatformDiagnosticActions::DownloadLatestSettingsForNamespace(param0, param1, param2, param3, param4);
47
+ }());
44
48
  }
45
49
  catch (...)
46
50
  {
@@ -57,7 +61,7 @@ namespace py::cpp::Windows::System::Diagnostics::TraceReporting
57
61
 
58
62
  static PyObject* PlatformDiagnosticActions_ForceUpload(PyObject* /*unused*/, PyObject* args) noexcept
59
63
  {
60
- auto arg_count = PyTuple_Size(args);
64
+ auto arg_count = PyTuple_GET_SIZE(args);
61
65
 
62
66
  if (arg_count == 3)
63
67
  {
@@ -80,7 +84,11 @@ namespace py::cpp::Windows::System::Diagnostics::TraceReporting
80
84
  auto param1 = py::convert_to<bool>(args, 1);
81
85
  auto param2 = py::convert_to<bool>(args, 2);
82
86
 
83
- return py::convert(winrt::Windows::System::Diagnostics::TraceReporting::PlatformDiagnosticActions::ForceUpload(param0, param1, param2));
87
+ return py::convert([&]()
88
+ {
89
+ auto _gil = release_gil();
90
+ return winrt::Windows::System::Diagnostics::TraceReporting::PlatformDiagnosticActions::ForceUpload(param0, param1, param2);
91
+ }());
84
92
  }
85
93
  catch (...)
86
94
  {
@@ -97,7 +105,7 @@ namespace py::cpp::Windows::System::Diagnostics::TraceReporting
97
105
 
98
106
  static PyObject* PlatformDiagnosticActions_GetActiveScenarioList(PyObject* /*unused*/, PyObject* args) noexcept
99
107
  {
100
- auto arg_count = PyTuple_Size(args);
108
+ auto arg_count = PyTuple_GET_SIZE(args);
101
109
 
102
110
  if (arg_count == 0)
103
111
  {
@@ -116,7 +124,11 @@ namespace py::cpp::Windows::System::Diagnostics::TraceReporting
116
124
  return nullptr;
117
125
  }
118
126
 
119
- return py::convert(winrt::Windows::System::Diagnostics::TraceReporting::PlatformDiagnosticActions::GetActiveScenarioList());
127
+ return py::convert([&]()
128
+ {
129
+ auto _gil = release_gil();
130
+ return winrt::Windows::System::Diagnostics::TraceReporting::PlatformDiagnosticActions::GetActiveScenarioList();
131
+ }());
120
132
  }
121
133
  catch (...)
122
134
  {
@@ -133,7 +145,7 @@ namespace py::cpp::Windows::System::Diagnostics::TraceReporting
133
145
 
134
146
  static PyObject* PlatformDiagnosticActions_GetActiveTraceRuntime(PyObject* /*unused*/, PyObject* args) noexcept
135
147
  {
136
- auto arg_count = PyTuple_Size(args);
148
+ auto arg_count = PyTuple_GET_SIZE(args);
137
149
 
138
150
  if (arg_count == 1)
139
151
  {
@@ -154,7 +166,11 @@ namespace py::cpp::Windows::System::Diagnostics::TraceReporting
154
166
 
155
167
  auto param0 = py::convert_to<winrt::Windows::System::Diagnostics::TraceReporting::PlatformDiagnosticTraceSlotType>(args, 0);
156
168
 
157
- return py::convert(winrt::Windows::System::Diagnostics::TraceReporting::PlatformDiagnosticActions::GetActiveTraceRuntime(param0));
169
+ return py::convert([&]()
170
+ {
171
+ auto _gil = release_gil();
172
+ return winrt::Windows::System::Diagnostics::TraceReporting::PlatformDiagnosticActions::GetActiveTraceRuntime(param0);
173
+ }());
158
174
  }
159
175
  catch (...)
160
176
  {
@@ -171,7 +187,7 @@ namespace py::cpp::Windows::System::Diagnostics::TraceReporting
171
187
 
172
188
  static PyObject* PlatformDiagnosticActions_GetKnownTraceList(PyObject* /*unused*/, PyObject* args) noexcept
173
189
  {
174
- auto arg_count = PyTuple_Size(args);
190
+ auto arg_count = PyTuple_GET_SIZE(args);
175
191
 
176
192
  if (arg_count == 1)
177
193
  {
@@ -192,7 +208,11 @@ namespace py::cpp::Windows::System::Diagnostics::TraceReporting
192
208
 
193
209
  auto param0 = py::convert_to<winrt::Windows::System::Diagnostics::TraceReporting::PlatformDiagnosticTraceSlotType>(args, 0);
194
210
 
195
- return py::convert(winrt::Windows::System::Diagnostics::TraceReporting::PlatformDiagnosticActions::GetKnownTraceList(param0));
211
+ return py::convert([&]()
212
+ {
213
+ auto _gil = release_gil();
214
+ return winrt::Windows::System::Diagnostics::TraceReporting::PlatformDiagnosticActions::GetKnownTraceList(param0);
215
+ }());
196
216
  }
197
217
  catch (...)
198
218
  {
@@ -209,7 +229,7 @@ namespace py::cpp::Windows::System::Diagnostics::TraceReporting
209
229
 
210
230
  static PyObject* PlatformDiagnosticActions_IsScenarioEnabled(PyObject* /*unused*/, PyObject* args) noexcept
211
231
  {
212
- auto arg_count = PyTuple_Size(args);
232
+ auto arg_count = PyTuple_GET_SIZE(args);
213
233
 
214
234
  if (arg_count == 1)
215
235
  {
@@ -230,7 +250,11 @@ namespace py::cpp::Windows::System::Diagnostics::TraceReporting
230
250
 
231
251
  auto param0 = py::convert_to<winrt::guid>(args, 0);
232
252
 
233
- return py::convert(winrt::Windows::System::Diagnostics::TraceReporting::PlatformDiagnosticActions::IsScenarioEnabled(param0));
253
+ return py::convert([&]()
254
+ {
255
+ auto _gil = release_gil();
256
+ return winrt::Windows::System::Diagnostics::TraceReporting::PlatformDiagnosticActions::IsScenarioEnabled(param0);
257
+ }());
234
258
  }
235
259
  catch (...)
236
260
  {
@@ -247,7 +271,7 @@ namespace py::cpp::Windows::System::Diagnostics::TraceReporting
247
271
 
248
272
  static PyObject* PlatformDiagnosticActions_IsTraceRunning(PyObject* /*unused*/, PyObject* args) noexcept
249
273
  {
250
- auto arg_count = PyTuple_Size(args);
274
+ auto arg_count = PyTuple_GET_SIZE(args);
251
275
 
252
276
  if (arg_count == 3)
253
277
  {
@@ -270,7 +294,11 @@ namespace py::cpp::Windows::System::Diagnostics::TraceReporting
270
294
  auto param1 = py::convert_to<winrt::guid>(args, 1);
271
295
  auto param2 = py::convert_to<uint64_t>(args, 2);
272
296
 
273
- return py::convert(winrt::Windows::System::Diagnostics::TraceReporting::PlatformDiagnosticActions::IsTraceRunning(param0, param1, param2));
297
+ return py::convert([&]()
298
+ {
299
+ auto _gil = release_gil();
300
+ return winrt::Windows::System::Diagnostics::TraceReporting::PlatformDiagnosticActions::IsTraceRunning(param0, param1, param2);
301
+ }());
274
302
  }
275
303
  catch (...)
276
304
  {
@@ -287,7 +315,7 @@ namespace py::cpp::Windows::System::Diagnostics::TraceReporting
287
315
 
288
316
  static PyObject* PlatformDiagnosticActions_TryEscalateScenario(PyObject* /*unused*/, PyObject* args) noexcept
289
317
  {
290
- auto arg_count = PyTuple_Size(args);
318
+ auto arg_count = PyTuple_GET_SIZE(args);
291
319
 
292
320
  if (arg_count == 6)
293
321
  {
@@ -313,7 +341,11 @@ namespace py::cpp::Windows::System::Diagnostics::TraceReporting
313
341
  auto param4 = py::convert_to<bool>(args, 4);
314
342
  auto param5 = py::convert_to<winrt::Windows::Foundation::Collections::IMapView<winrt::hstring, winrt::hstring>>(args, 5);
315
343
 
316
- return py::convert(winrt::Windows::System::Diagnostics::TraceReporting::PlatformDiagnosticActions::TryEscalateScenario(param0, param1, param2, param3, param4, param5));
344
+ return py::convert([&]()
345
+ {
346
+ auto _gil = release_gil();
347
+ return winrt::Windows::System::Diagnostics::TraceReporting::PlatformDiagnosticActions::TryEscalateScenario(param0, param1, param2, param3, param4, param5);
348
+ }());
317
349
  }
318
350
  catch (...)
319
351
  {
@@ -329,19 +361,16 @@ namespace py::cpp::Windows::System::Diagnostics::TraceReporting
329
361
  }
330
362
 
331
363
  static PyMethodDef _methods_PlatformDiagnosticActions[] = {
332
- { }
333
- };
364
+ { }};
334
365
 
335
366
  static PyGetSetDef _getset_PlatformDiagnosticActions[] = {
336
- { }
337
- };
367
+ { }};
338
368
 
339
369
  static PyType_Slot _type_slots_PlatformDiagnosticActions[] = {
340
370
  { Py_tp_new, reinterpret_cast<void*>(_new_PlatformDiagnosticActions) },
341
371
  { Py_tp_methods, reinterpret_cast<void*>(_methods_PlatformDiagnosticActions) },
342
372
  { Py_tp_getset, reinterpret_cast<void*>(_getset_PlatformDiagnosticActions) },
343
- { }
344
- };
373
+ { }};
345
374
 
346
375
  static PyType_Spec type_spec_PlatformDiagnosticActions = {
347
376
  "winrt._winrt_windows_system_diagnostics_tracereporting.PlatformDiagnosticActions",
@@ -351,8 +380,7 @@ namespace py::cpp::Windows::System::Diagnostics::TraceReporting
351
380
  _type_slots_PlatformDiagnosticActions};
352
381
 
353
382
  static PyGetSetDef getset_PlatformDiagnosticActions_Static[] = {
354
- { }
355
- };
383
+ { }};
356
384
 
357
385
  static PyMethodDef methods_PlatformDiagnosticActions_Static[] = {
358
386
  { "download_latest_settings_for_namespace", reinterpret_cast<PyCFunction>(PlatformDiagnosticActions_DownloadLatestSettingsForNamespace), METH_VARARGS, nullptr },
@@ -363,8 +391,7 @@ namespace py::cpp::Windows::System::Diagnostics::TraceReporting
363
391
  { "is_scenario_enabled", reinterpret_cast<PyCFunction>(PlatformDiagnosticActions_IsScenarioEnabled), METH_VARARGS, nullptr },
364
392
  { "is_trace_running", reinterpret_cast<PyCFunction>(PlatformDiagnosticActions_IsTraceRunning), METH_VARARGS, nullptr },
365
393
  { "try_escalate_scenario", reinterpret_cast<PyCFunction>(PlatformDiagnosticActions_TryEscalateScenario), METH_VARARGS, nullptr },
366
- { }
367
- };
394
+ { }};
368
395
 
369
396
  static PyType_Slot type_slots_PlatformDiagnosticActions_Static[] =
370
397
  {
@@ -374,14 +401,12 @@ namespace py::cpp::Windows::System::Diagnostics::TraceReporting
374
401
  { }
375
402
  };
376
403
 
377
- static PyType_Spec type_spec_PlatformDiagnosticActions_Static =
378
- {
404
+ static PyType_Spec type_spec_PlatformDiagnosticActions_Static = {
379
405
  "winrt._winrt_windows_system_diagnostics_tracereporting.PlatformDiagnosticActions_Static",
380
406
  static_cast<int>(PyType_Type.tp_basicsize),
381
407
  static_cast<int>(PyType_Type.tp_itemsize),
382
408
  Py_TPFLAGS_DEFAULT,
383
- type_slots_PlatformDiagnosticActions_Static
384
- };
409
+ type_slots_PlatformDiagnosticActions_Static};
385
410
 
386
411
  // ----- PlatformDiagnosticTraceInfo class --------------------
387
412
 
@@ -417,7 +442,11 @@ namespace py::cpp::Windows::System::Diagnostics::TraceReporting
417
442
  return nullptr;
418
443
  }
419
444
 
420
- return py::convert(self->obj.IsAutoLogger());
445
+ return py::convert([&]()
446
+ {
447
+ auto _gil = release_gil();
448
+ return self->obj.IsAutoLogger();
449
+ }());
421
450
  }
422
451
  catch (...)
423
452
  {
@@ -443,7 +472,11 @@ namespace py::cpp::Windows::System::Diagnostics::TraceReporting
443
472
  return nullptr;
444
473
  }
445
474
 
446
- return py::convert(self->obj.IsExclusive());
475
+ return py::convert([&]()
476
+ {
477
+ auto _gil = release_gil();
478
+ return self->obj.IsExclusive();
479
+ }());
447
480
  }
448
481
  catch (...)
449
482
  {
@@ -469,7 +502,11 @@ namespace py::cpp::Windows::System::Diagnostics::TraceReporting
469
502
  return nullptr;
470
503
  }
471
504
 
472
- return py::convert(self->obj.MaxTraceDurationFileTime());
505
+ return py::convert([&]()
506
+ {
507
+ auto _gil = release_gil();
508
+ return self->obj.MaxTraceDurationFileTime();
509
+ }());
473
510
  }
474
511
  catch (...)
475
512
  {
@@ -495,7 +532,11 @@ namespace py::cpp::Windows::System::Diagnostics::TraceReporting
495
532
  return nullptr;
496
533
  }
497
534
 
498
- return py::convert(self->obj.Priority());
535
+ return py::convert([&]()
536
+ {
537
+ auto _gil = release_gil();
538
+ return self->obj.Priority();
539
+ }());
499
540
  }
500
541
  catch (...)
501
542
  {
@@ -521,7 +562,11 @@ namespace py::cpp::Windows::System::Diagnostics::TraceReporting
521
562
  return nullptr;
522
563
  }
523
564
 
524
- return py::convert(self->obj.ProfileHash());
565
+ return py::convert([&]()
566
+ {
567
+ auto _gil = release_gil();
568
+ return self->obj.ProfileHash();
569
+ }());
525
570
  }
526
571
  catch (...)
527
572
  {
@@ -547,7 +592,11 @@ namespace py::cpp::Windows::System::Diagnostics::TraceReporting
547
592
  return nullptr;
548
593
  }
549
594
 
550
- return py::convert(self->obj.ScenarioId());
595
+ return py::convert([&]()
596
+ {
597
+ auto _gil = release_gil();
598
+ return self->obj.ScenarioId();
599
+ }());
551
600
  }
552
601
  catch (...)
553
602
  {
@@ -583,8 +632,7 @@ namespace py::cpp::Windows::System::Diagnostics::TraceReporting
583
632
  static PyMethodDef _methods_PlatformDiagnosticTraceInfo[] = {
584
633
  { "_assign_array_", _assign_array_PlatformDiagnosticTraceInfo, METH_O | METH_STATIC, nullptr },
585
634
  { "_from", reinterpret_cast<PyCFunction>(_from_PlatformDiagnosticTraceInfo), METH_O | METH_STATIC, nullptr },
586
- { }
587
- };
635
+ { }};
588
636
 
589
637
  static PyGetSetDef _getset_PlatformDiagnosticTraceInfo[] = {
590
638
  { "is_auto_logger", reinterpret_cast<getter>(PlatformDiagnosticTraceInfo_get_IsAutoLogger), nullptr, nullptr, nullptr },
@@ -593,16 +641,14 @@ namespace py::cpp::Windows::System::Diagnostics::TraceReporting
593
641
  { "priority", reinterpret_cast<getter>(PlatformDiagnosticTraceInfo_get_Priority), nullptr, nullptr, nullptr },
594
642
  { "profile_hash", reinterpret_cast<getter>(PlatformDiagnosticTraceInfo_get_ProfileHash), nullptr, nullptr, nullptr },
595
643
  { "scenario_id", reinterpret_cast<getter>(PlatformDiagnosticTraceInfo_get_ScenarioId), nullptr, nullptr, nullptr },
596
- { }
597
- };
644
+ { }};
598
645
 
599
646
  static PyType_Slot _type_slots_PlatformDiagnosticTraceInfo[] = {
600
647
  { Py_tp_new, reinterpret_cast<void*>(_new_PlatformDiagnosticTraceInfo) },
601
648
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PlatformDiagnosticTraceInfo) },
602
649
  { Py_tp_methods, reinterpret_cast<void*>(_methods_PlatformDiagnosticTraceInfo) },
603
650
  { Py_tp_getset, reinterpret_cast<void*>(_getset_PlatformDiagnosticTraceInfo) },
604
- { }
605
- };
651
+ { }};
606
652
 
607
653
  static PyType_Spec type_spec_PlatformDiagnosticTraceInfo = {
608
654
  "winrt._winrt_windows_system_diagnostics_tracereporting.PlatformDiagnosticTraceInfo",
@@ -645,7 +691,11 @@ namespace py::cpp::Windows::System::Diagnostics::TraceReporting
645
691
  return nullptr;
646
692
  }
647
693
 
648
- return py::convert(self->obj.EtwRuntimeFileTime());
694
+ return py::convert([&]()
695
+ {
696
+ auto _gil = release_gil();
697
+ return self->obj.EtwRuntimeFileTime();
698
+ }());
649
699
  }
650
700
  catch (...)
651
701
  {
@@ -671,7 +721,11 @@ namespace py::cpp::Windows::System::Diagnostics::TraceReporting
671
721
  return nullptr;
672
722
  }
673
723
 
674
- return py::convert(self->obj.RuntimeFileTime());
724
+ return py::convert([&]()
725
+ {
726
+ auto _gil = release_gil();
727
+ return self->obj.RuntimeFileTime();
728
+ }());
675
729
  }
676
730
  catch (...)
677
731
  {
@@ -707,22 +761,19 @@ namespace py::cpp::Windows::System::Diagnostics::TraceReporting
707
761
  static PyMethodDef _methods_PlatformDiagnosticTraceRuntimeInfo[] = {
708
762
  { "_assign_array_", _assign_array_PlatformDiagnosticTraceRuntimeInfo, METH_O | METH_STATIC, nullptr },
709
763
  { "_from", reinterpret_cast<PyCFunction>(_from_PlatformDiagnosticTraceRuntimeInfo), METH_O | METH_STATIC, nullptr },
710
- { }
711
- };
764
+ { }};
712
765
 
713
766
  static PyGetSetDef _getset_PlatformDiagnosticTraceRuntimeInfo[] = {
714
767
  { "etw_runtime_file_time", reinterpret_cast<getter>(PlatformDiagnosticTraceRuntimeInfo_get_EtwRuntimeFileTime), nullptr, nullptr, nullptr },
715
768
  { "runtime_file_time", reinterpret_cast<getter>(PlatformDiagnosticTraceRuntimeInfo_get_RuntimeFileTime), nullptr, nullptr, nullptr },
716
- { }
717
- };
769
+ { }};
718
770
 
719
771
  static PyType_Slot _type_slots_PlatformDiagnosticTraceRuntimeInfo[] = {
720
772
  { Py_tp_new, reinterpret_cast<void*>(_new_PlatformDiagnosticTraceRuntimeInfo) },
721
773
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PlatformDiagnosticTraceRuntimeInfo) },
722
774
  { Py_tp_methods, reinterpret_cast<void*>(_methods_PlatformDiagnosticTraceRuntimeInfo) },
723
775
  { Py_tp_getset, reinterpret_cast<void*>(_getset_PlatformDiagnosticTraceRuntimeInfo) },
724
- { }
725
- };
776
+ { }};
726
777
 
727
778
  static PyType_Spec type_spec_PlatformDiagnosticTraceRuntimeInfo = {
728
779
  "winrt._winrt_windows_system_diagnostics_tracereporting.PlatformDiagnosticTraceRuntimeInfo",
@@ -763,6 +814,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_diagnostics_tracereporting(void) noe
763
814
  return nullptr;
764
815
  }
765
816
 
817
+ auto inspectable_meta_type = py::get_inspectable_meta_type();
818
+ if (!inspectable_meta_type)
819
+ {
820
+ return nullptr;
821
+ }
822
+
766
823
  auto object_type = py::get_object_type();
767
824
  if (!object_type)
768
825
  {
@@ -776,7 +833,13 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_diagnostics_tracereporting(void) noe
776
833
  return nullptr;
777
834
  }
778
835
 
779
- py::pyobj_handle type_PlatformDiagnosticActions_Static{PyType_FromSpec(&type_spec_PlatformDiagnosticActions_Static)};
836
+ py::pyobj_handle PlatformDiagnosticActions_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
837
+ if (!PlatformDiagnosticActions_Static_bases)
838
+ {
839
+ return nullptr;
840
+ }
841
+
842
+ py::pyobj_handle type_PlatformDiagnosticActions_Static{PyType_FromSpecWithBases(&type_spec_PlatformDiagnosticActions_Static, PlatformDiagnosticActions_Static_bases.get())};
780
843
  if (!type_PlatformDiagnosticActions_Static)
781
844
  {
782
845
  return nullptr;
@@ -788,13 +851,13 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_diagnostics_tracereporting(void) noe
788
851
  return nullptr;
789
852
  }
790
853
 
791
- py::pytype_handle PlatformDiagnosticTraceInfo_type{py::register_python_type(module.get(), &type_spec_PlatformDiagnosticTraceInfo, object_bases.get(), nullptr)};
854
+ py::pytype_handle PlatformDiagnosticTraceInfo_type{py::register_python_type(module.get(), &type_spec_PlatformDiagnosticTraceInfo, object_bases.get(), inspectable_meta_type)};
792
855
  if (!PlatformDiagnosticTraceInfo_type)
793
856
  {
794
857
  return nullptr;
795
858
  }
796
859
 
797
- py::pytype_handle PlatformDiagnosticTraceRuntimeInfo_type{py::register_python_type(module.get(), &type_spec_PlatformDiagnosticTraceRuntimeInfo, object_bases.get(), nullptr)};
860
+ py::pytype_handle PlatformDiagnosticTraceRuntimeInfo_type{py::register_python_type(module.get(), &type_spec_PlatformDiagnosticTraceRuntimeInfo, object_bases.get(), inspectable_meta_type)};
798
861
  if (!PlatformDiagnosticTraceRuntimeInfo_type)
799
862
  {
800
863
  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.System.Diagnostics.TraceReporting"
9
9
  description = "Python projection of Windows Runtime (WinRT) APIs"
10
10
  readme = "README.md"
11
- license = { text = "MIT" }
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,<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.3.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
2
2
 
3
- winrt-runtime==2.3.0
3
+ winrt-runtime==3.1.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_system_diagnostics_tracereporting",
@@ -0,0 +1,70 @@
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.collections as windows_foundation_collections
13
+
14
+ from winrt.windows.system.diagnostics.tracereporting import PlatformDiagnosticActionState, PlatformDiagnosticEscalationType, PlatformDiagnosticEventBufferLatencies, PlatformDiagnosticTracePriority, PlatformDiagnosticTraceSlotState, PlatformDiagnosticTraceSlotType
15
+
16
+ Self = typing.TypeVar('Self')
17
+
18
+ @typing.final
19
+ class PlatformDiagnosticActions_Static(winrt._winrt.IInspectable_Static):
20
+ # Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticActionState Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticActions::DownloadLatestSettingsForNamespace(System.String,System.String,System.Boolean,System.Boolean,System.Boolean)
21
+ def download_latest_settings_for_namespace(cls, partner: str, feature: str, is_scenario_namespace: bool, download_over_costed_network: bool, download_over_battery: bool, /) -> PlatformDiagnosticActionState: ...
22
+ # Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticActionState Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticActions::ForceUpload(Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticEventBufferLatencies,System.Boolean,System.Boolean)
23
+ def force_upload(cls, latency: PlatformDiagnosticEventBufferLatencies, upload_over_costed_network: bool, upload_over_battery: bool, /) -> PlatformDiagnosticActionState: ...
24
+ # Windows.Foundation.Collections.IVectorView`1<System.Guid> Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticActions::GetActiveScenarioList()
25
+ def get_active_scenario_list(cls) -> typing.Sequence[_uuid.UUID]: ...
26
+ # Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticTraceRuntimeInfo Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticActions::GetActiveTraceRuntime(Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticTraceSlotType)
27
+ def get_active_trace_runtime(cls, slot_type: PlatformDiagnosticTraceSlotType, /) -> PlatformDiagnosticTraceRuntimeInfo: ...
28
+ # Windows.Foundation.Collections.IVectorView`1<Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticTraceInfo> Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticActions::GetKnownTraceList(Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticTraceSlotType)
29
+ def get_known_trace_list(cls, slot_type: PlatformDiagnosticTraceSlotType, /) -> typing.Sequence[PlatformDiagnosticTraceInfo]: ...
30
+ # System.Boolean Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticActions::IsScenarioEnabled(System.Guid)
31
+ def is_scenario_enabled(cls, scenario_id: _uuid.UUID, /) -> bool: ...
32
+ # Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticTraceSlotState Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticActions::IsTraceRunning(Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticTraceSlotType,System.Guid,System.UInt64)
33
+ def is_trace_running(cls, slot_type: PlatformDiagnosticTraceSlotType, scenario_id: _uuid.UUID, trace_profile_hash: winrt.system.UInt64, /) -> PlatformDiagnosticTraceSlotState: ...
34
+ # System.Boolean Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticActions::TryEscalateScenario(System.Guid,Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticEscalationType,System.String,System.Boolean,System.Boolean,Windows.Foundation.Collections.IMapView`2<System.String,System.String>)
35
+ def try_escalate_scenario(cls, scenario_id: _uuid.UUID, escalation_type: PlatformDiagnosticEscalationType, output_directory: str, timestamp_output_directory: bool, force_escalation_upload: bool, triggers: typing.Mapping[str, str], /) -> bool: ...
36
+
37
+ @typing.final
38
+ class PlatformDiagnosticActions(winrt.system.Object, metaclass=PlatformDiagnosticActions_Static):
39
+ pass
40
+
41
+ @typing.final
42
+ class PlatformDiagnosticTraceInfo(winrt.system.Object):
43
+ # System.Boolean Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticTraceInfo::get_IsAutoLogger()
44
+ @_property
45
+ def is_auto_logger(self) -> bool: ...
46
+ # System.Boolean Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticTraceInfo::get_IsExclusive()
47
+ @_property
48
+ def is_exclusive(self) -> bool: ...
49
+ # System.Int64 Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticTraceInfo::get_MaxTraceDurationFileTime()
50
+ @_property
51
+ def max_trace_duration_file_time(self) -> winrt.system.Int64: ...
52
+ # Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticTracePriority Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticTraceInfo::get_Priority()
53
+ @_property
54
+ def priority(self) -> PlatformDiagnosticTracePriority: ...
55
+ # System.UInt64 Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticTraceInfo::get_ProfileHash()
56
+ @_property
57
+ def profile_hash(self) -> winrt.system.UInt64: ...
58
+ # System.Guid Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticTraceInfo::get_ScenarioId()
59
+ @_property
60
+ def scenario_id(self) -> _uuid.UUID: ...
61
+
62
+ @typing.final
63
+ class PlatformDiagnosticTraceRuntimeInfo(winrt.system.Object):
64
+ # System.Int64 Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticTraceRuntimeInfo::get_EtwRuntimeFileTime()
65
+ @_property
66
+ def etw_runtime_file_time(self) -> winrt.system.Int64: ...
67
+ # System.Int64 Windows.System.Diagnostics.TraceReporting.PlatformDiagnosticTraceRuntimeInfo::get_RuntimeFileTime()
68
+ @_property
69
+ def runtime_file_time(self) -> winrt.system.Int64: ...
70
+
@@ -1,9 +1,13 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
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 _winrt_windows_system_diagnostics_tracereporting
6
+ from winrt._winrt_windows_system_diagnostics_tracereporting import (
7
+ PlatformDiagnosticActions,
8
+ PlatformDiagnosticTraceInfo,
9
+ PlatformDiagnosticTraceRuntimeInfo,
10
+ )
7
11
 
8
12
  __all__ = [
9
13
  "PlatformDiagnosticActionState",
@@ -45,6 +49,3 @@ class PlatformDiagnosticTraceSlotType(enum.IntEnum):
45
49
  ALWAYS_ON = 1
46
50
  MINI = 2
47
51
 
48
- PlatformDiagnosticActions = _winrt_windows_system_diagnostics_tracereporting.PlatformDiagnosticActions
49
- PlatformDiagnosticTraceInfo = _winrt_windows_system_diagnostics_tracereporting.PlatformDiagnosticTraceInfo
50
- PlatformDiagnosticTraceRuntimeInfo = _winrt_windows_system_diagnostics_tracereporting.PlatformDiagnosticTraceRuntimeInfo
@@ -1,8 +1,8 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: winrt-Windows.System.Diagnostics.TraceReporting
3
- Version: 2.3.0
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: <3.14,>=3.9
13
+ Requires-Python: >=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.3.0
15
+ Requires-Dist: winrt-runtime==3.1.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.3.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.1.0; extra == "all"
18
18
 
19
19
  <!-- warning: Please don't edit this file. It was automatically generated. -->
20
20
 
@@ -0,0 +1,4 @@
1
+ winrt-runtime==3.1.0
2
+
3
+ [all]
4
+ winrt-Windows.Foundation.Collections[all]==3.1.0
@@ -1,58 +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.collections as windows_foundation_collections
13
-
14
- from winrt.windows.system.diagnostics.tracereporting import PlatformDiagnosticActionState, PlatformDiagnosticEscalationType, PlatformDiagnosticEventBufferLatencies, PlatformDiagnosticTracePriority, PlatformDiagnosticTraceSlotState, PlatformDiagnosticTraceSlotType
15
-
16
- Self = typing.TypeVar('Self')
17
-
18
- @typing.final
19
- class PlatformDiagnosticActions_Static(type):
20
- def download_latest_settings_for_namespace(cls, partner: str, feature: str, is_scenario_namespace: bool, download_over_costed_network: bool, download_over_battery: bool, /) -> PlatformDiagnosticActionState: ...
21
- def force_upload(cls, latency: PlatformDiagnosticEventBufferLatencies, upload_over_costed_network: bool, upload_over_battery: bool, /) -> PlatformDiagnosticActionState: ...
22
- def get_active_scenario_list(cls) -> typing.Optional[windows_foundation_collections.IVectorView[_uuid.UUID]]: ...
23
- def get_active_trace_runtime(cls, slot_type: PlatformDiagnosticTraceSlotType, /) -> typing.Optional[PlatformDiagnosticTraceRuntimeInfo]: ...
24
- def get_known_trace_list(cls, slot_type: PlatformDiagnosticTraceSlotType, /) -> typing.Optional[windows_foundation_collections.IVectorView[PlatformDiagnosticTraceInfo]]: ...
25
- def is_scenario_enabled(cls, scenario_id: _uuid.UUID, /) -> bool: ...
26
- def is_trace_running(cls, slot_type: PlatformDiagnosticTraceSlotType, scenario_id: _uuid.UUID, trace_profile_hash: winrt.system.UInt64, /) -> PlatformDiagnosticTraceSlotState: ...
27
- def try_escalate_scenario(cls, scenario_id: _uuid.UUID, escalation_type: PlatformDiagnosticEscalationType, output_directory: str, timestamp_output_directory: bool, force_escalation_upload: bool, triggers: windows_foundation_collections.IMapView[str, str], /) -> bool: ...
28
-
29
- @typing.final
30
- class PlatformDiagnosticActions(winrt.system.Object, metaclass=PlatformDiagnosticActions_Static):
31
- pass
32
-
33
- @typing.final
34
- class PlatformDiagnosticTraceInfo(winrt.system.Object):
35
- @staticmethod
36
- def _from(obj: winrt.system.Object, /) -> PlatformDiagnosticTraceInfo: ...
37
- @_property
38
- def is_auto_logger(self) -> bool: ...
39
- @_property
40
- def is_exclusive(self) -> bool: ...
41
- @_property
42
- def max_trace_duration_file_time(self) -> winrt.system.Int64: ...
43
- @_property
44
- def priority(self) -> PlatformDiagnosticTracePriority: ...
45
- @_property
46
- def profile_hash(self) -> winrt.system.UInt64: ...
47
- @_property
48
- def scenario_id(self) -> _uuid.UUID: ...
49
-
50
- @typing.final
51
- class PlatformDiagnosticTraceRuntimeInfo(winrt.system.Object):
52
- @staticmethod
53
- def _from(obj: winrt.system.Object, /) -> PlatformDiagnosticTraceRuntimeInfo: ...
54
- @_property
55
- def etw_runtime_file_time(self) -> winrt.system.Int64: ...
56
- @_property
57
- def runtime_file_time(self) -> winrt.system.Int64: ...
58
-
@@ -1,4 +0,0 @@
1
- winrt-runtime==2.3.0
2
-
3
- [all]
4
- winrt-Windows.Foundation.Collections[all]==2.3.0