winrt-Windows.ApplicationModel.ExtendedExecution.Foreground 2.0.0b2__tar.gz → 2.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 (21) hide show
  1. {winrt-Windows.ApplicationModel.ExtendedExecution.Foreground-2.0.0b2 → winrt_windows_applicationmodel_extendedexecution_foreground-2.1.0}/PKG-INFO +3 -1
  2. winrt_windows_applicationmodel_extendedexecution_foreground-2.1.0/all-requirements.txt +3 -0
  3. {winrt-Windows.ApplicationModel.ExtendedExecution.Foreground-2.0.0b2 → winrt_windows_applicationmodel_extendedexecution_foreground-2.1.0}/py.Windows.ApplicationModel.ExtendedExecution.Foreground.cpp +75 -83
  4. {winrt-Windows.ApplicationModel.ExtendedExecution.Foreground-2.0.0b2 → winrt_windows_applicationmodel_extendedexecution_foreground-2.1.0}/pyproject.toml +2 -2
  5. winrt_windows_applicationmodel_extendedexecution_foreground-2.1.0/pywinrt-version.txt +1 -0
  6. {winrt-Windows.ApplicationModel.ExtendedExecution.Foreground-2.0.0b2 → winrt_windows_applicationmodel_extendedexecution_foreground-2.1.0}/requirements.txt +2 -2
  7. winrt_windows_applicationmodel_extendedexecution_foreground-2.1.0/setup.py +31 -0
  8. {winrt-Windows.ApplicationModel.ExtendedExecution.Foreground-2.0.0b2 → winrt_windows_applicationmodel_extendedexecution_foreground-2.1.0}/winrt/_winrt_windows_applicationmodel_extendedexecution_foreground.pyi +6 -6
  9. {winrt-Windows.ApplicationModel.ExtendedExecution.Foreground-2.0.0b2 → winrt_windows_applicationmodel_extendedexecution_foreground-2.1.0}/winrt/windows/applicationmodel/extendedexecution/foreground/__init__.py +1 -1
  10. winrt_windows_applicationmodel_extendedexecution_foreground-2.1.0/winrt/windows/applicationmodel/extendedexecution/foreground/py.typed +0 -0
  11. {winrt-Windows.ApplicationModel.ExtendedExecution.Foreground-2.0.0b2 → winrt_windows_applicationmodel_extendedexecution_foreground-2.1.0}/winrt_Windows.ApplicationModel.ExtendedExecution.Foreground.egg-info/PKG-INFO +3 -1
  12. {winrt-Windows.ApplicationModel.ExtendedExecution.Foreground-2.0.0b2 → winrt_windows_applicationmodel_extendedexecution_foreground-2.1.0}/winrt_Windows.ApplicationModel.ExtendedExecution.Foreground.egg-info/SOURCES.txt +1 -0
  13. winrt_windows_applicationmodel_extendedexecution_foreground-2.1.0/winrt_Windows.ApplicationModel.ExtendedExecution.Foreground.egg-info/requires.txt +4 -0
  14. winrt-Windows.ApplicationModel.ExtendedExecution.Foreground-2.0.0b2/all-requirements.txt +0 -3
  15. winrt-Windows.ApplicationModel.ExtendedExecution.Foreground-2.0.0b2/pywinrt-version.txt +0 -1
  16. winrt-Windows.ApplicationModel.ExtendedExecution.Foreground-2.0.0b2/setup.py +0 -16
  17. winrt-Windows.ApplicationModel.ExtendedExecution.Foreground-2.0.0b2/winrt_Windows.ApplicationModel.ExtendedExecution.Foreground.egg-info/requires.txt +0 -4
  18. {winrt-Windows.ApplicationModel.ExtendedExecution.Foreground-2.0.0b2 → winrt_windows_applicationmodel_extendedexecution_foreground-2.1.0}/README.md +0 -0
  19. {winrt-Windows.ApplicationModel.ExtendedExecution.Foreground-2.0.0b2 → winrt_windows_applicationmodel_extendedexecution_foreground-2.1.0}/setup.cfg +0 -0
  20. {winrt-Windows.ApplicationModel.ExtendedExecution.Foreground-2.0.0b2 → winrt_windows_applicationmodel_extendedexecution_foreground-2.1.0}/winrt_Windows.ApplicationModel.ExtendedExecution.Foreground.egg-info/dependency_links.txt +0 -0
  21. {winrt-Windows.ApplicationModel.ExtendedExecution.Foreground-2.0.0b2 → winrt_windows_applicationmodel_extendedexecution_foreground-2.1.0}/winrt_Windows.ApplicationModel.ExtendedExecution.Foreground.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.ApplicationModel.ExtendedExecution.Foreground
3
- Version: 2.0.0b2
3
+ Version: 2.1.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -12,7 +12,9 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
13
  Requires-Python: <3.13,>=3.9
14
14
  Description-Content-Type: text/markdown
15
+ Requires-Dist: winrt-runtime==2.1.0
15
16
  Provides-Extra: all
17
+ Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
16
18
 
17
19
  <!-- warning: Please don't edit this file. It was automatically generated. -->
18
20
 
@@ -0,0 +1,3 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
+
3
+ winrt-Windows.Foundation[all]==2.1.0
@@ -1,8 +1,7 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
2
 
3
3
  #include "py.Windows.ApplicationModel.ExtendedExecution.Foreground.h"
4
4
 
5
-
6
5
  namespace py::cpp::Windows::ApplicationModel::ExtendedExecution::Foreground
7
6
  {
8
7
  // ----- ExtendedExecutionForegroundRevokedEventArgs class --------------------
@@ -24,14 +23,14 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution::Foreground
24
23
 
25
24
  static PyObject* ExtendedExecutionForegroundRevokedEventArgs_get_Reason(py::wrapper::Windows::ApplicationModel::ExtendedExecution::Foreground::ExtendedExecutionForegroundRevokedEventArgs* self, void* /*unused*/) noexcept
26
25
  {
27
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.ExtendedExecution.Foreground.ExtendedExecutionForegroundRevokedEventArgs", L"Reason"))
28
- {
29
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
30
- return nullptr;
31
- }
32
-
33
26
  try
34
27
  {
28
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.ExtendedExecution.Foreground.ExtendedExecutionForegroundRevokedEventArgs", L"Reason"))
29
+ {
30
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
31
+ return nullptr;
32
+ }
33
+
35
34
  return py::convert(self->obj.Reason());
36
35
  }
37
36
  catch (...)
@@ -76,23 +75,20 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution::Foreground
76
75
  { }
77
76
  };
78
77
 
79
- static PyType_Slot _type_slots_ExtendedExecutionForegroundRevokedEventArgs[] =
80
- {
78
+ static PyType_Slot _type_slots_ExtendedExecutionForegroundRevokedEventArgs[] = {
81
79
  { Py_tp_new, reinterpret_cast<void*>(_new_ExtendedExecutionForegroundRevokedEventArgs) },
82
80
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_ExtendedExecutionForegroundRevokedEventArgs) },
83
81
  { Py_tp_methods, reinterpret_cast<void*>(_methods_ExtendedExecutionForegroundRevokedEventArgs) },
84
82
  { Py_tp_getset, reinterpret_cast<void*>(_getset_ExtendedExecutionForegroundRevokedEventArgs) },
85
- { },
83
+ { }
86
84
  };
87
85
 
88
- static PyType_Spec type_spec_ExtendedExecutionForegroundRevokedEventArgs =
89
- {
86
+ static PyType_Spec type_spec_ExtendedExecutionForegroundRevokedEventArgs = {
90
87
  "winrt._winrt_windows_applicationmodel_extendedexecution_foreground.ExtendedExecutionForegroundRevokedEventArgs",
91
88
  sizeof(py::wrapper::Windows::ApplicationModel::ExtendedExecution::Foreground::ExtendedExecutionForegroundRevokedEventArgs),
92
89
  0,
93
90
  Py_TPFLAGS_DEFAULT,
94
- _type_slots_ExtendedExecutionForegroundRevokedEventArgs
95
- };
91
+ _type_slots_ExtendedExecutionForegroundRevokedEventArgs};
96
92
 
97
93
  // ----- ExtendedExecutionForegroundSession class --------------------
98
94
 
@@ -139,14 +135,14 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution::Foreground
139
135
 
140
136
  if (arg_count == 0)
141
137
  {
142
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.ExtendedExecution.Foreground.ExtendedExecutionForegroundSession", L"Close", 0))
143
- {
144
- py::set_arg_count_version_error(0);
145
- return nullptr;
146
- }
147
-
148
138
  try
149
139
  {
140
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.ExtendedExecution.Foreground.ExtendedExecutionForegroundSession", L"Close", 0))
141
+ {
142
+ py::set_arg_count_version_error(0);
143
+ return nullptr;
144
+ }
145
+
150
146
  self->obj.Close();
151
147
  Py_RETURN_NONE;
152
148
  }
@@ -169,14 +165,14 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution::Foreground
169
165
 
170
166
  if (arg_count == 0)
171
167
  {
172
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.ExtendedExecution.Foreground.ExtendedExecutionForegroundSession", L"RequestExtensionAsync", 0))
173
- {
174
- py::set_arg_count_version_error(0);
175
- return nullptr;
176
- }
177
-
178
168
  try
179
169
  {
170
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.ExtendedExecution.Foreground.ExtendedExecutionForegroundSession", L"RequestExtensionAsync", 0))
171
+ {
172
+ py::set_arg_count_version_error(0);
173
+ return nullptr;
174
+ }
175
+
180
176
  return py::convert(self->obj.RequestExtensionAsync());
181
177
  }
182
178
  catch (...)
@@ -194,14 +190,14 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution::Foreground
194
190
 
195
191
  static PyObject* ExtendedExecutionForegroundSession_get_Reason(py::wrapper::Windows::ApplicationModel::ExtendedExecution::Foreground::ExtendedExecutionForegroundSession* self, void* /*unused*/) noexcept
196
192
  {
197
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.ExtendedExecution.Foreground.ExtendedExecutionForegroundSession", L"Reason"))
198
- {
199
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
200
- return nullptr;
201
- }
202
-
203
193
  try
204
194
  {
195
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.ExtendedExecution.Foreground.ExtendedExecutionForegroundSession", L"Reason"))
196
+ {
197
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
198
+ return nullptr;
199
+ }
200
+
205
201
  return py::convert(self->obj.Reason());
206
202
  }
207
203
  catch (...)
@@ -213,12 +209,6 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution::Foreground
213
209
 
214
210
  static int ExtendedExecutionForegroundSession_put_Reason(py::wrapper::Windows::ApplicationModel::ExtendedExecution::Foreground::ExtendedExecutionForegroundSession* self, PyObject* arg, void* /*unused*/) noexcept
215
211
  {
216
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.ExtendedExecution.Foreground.ExtendedExecutionForegroundSession", L"Reason"))
217
- {
218
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
219
- return -1;
220
- }
221
-
222
212
  if (arg == nullptr)
223
213
  {
224
214
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
@@ -227,6 +217,12 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution::Foreground
227
217
 
228
218
  try
229
219
  {
220
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.ExtendedExecution.Foreground.ExtendedExecutionForegroundSession", L"Reason"))
221
+ {
222
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
223
+ return -1;
224
+ }
225
+
230
226
  auto param0 = py::convert_to<winrt::Windows::ApplicationModel::ExtendedExecution::Foreground::ExtendedExecutionForegroundReason>(arg);
231
227
 
232
228
  self->obj.Reason(param0);
@@ -241,14 +237,14 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution::Foreground
241
237
 
242
238
  static PyObject* ExtendedExecutionForegroundSession_get_Description(py::wrapper::Windows::ApplicationModel::ExtendedExecution::Foreground::ExtendedExecutionForegroundSession* self, void* /*unused*/) noexcept
243
239
  {
244
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.ExtendedExecution.Foreground.ExtendedExecutionForegroundSession", L"Description"))
245
- {
246
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
247
- return nullptr;
248
- }
249
-
250
240
  try
251
241
  {
242
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.ExtendedExecution.Foreground.ExtendedExecutionForegroundSession", L"Description"))
243
+ {
244
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
245
+ return nullptr;
246
+ }
247
+
252
248
  return py::convert(self->obj.Description());
253
249
  }
254
250
  catch (...)
@@ -260,12 +256,6 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution::Foreground
260
256
 
261
257
  static int ExtendedExecutionForegroundSession_put_Description(py::wrapper::Windows::ApplicationModel::ExtendedExecution::Foreground::ExtendedExecutionForegroundSession* self, PyObject* arg, void* /*unused*/) noexcept
262
258
  {
263
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.ExtendedExecution.Foreground.ExtendedExecutionForegroundSession", L"Description"))
264
- {
265
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
266
- return -1;
267
- }
268
-
269
259
  if (arg == nullptr)
270
260
  {
271
261
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
@@ -274,6 +264,12 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution::Foreground
274
264
 
275
265
  try
276
266
  {
267
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.ExtendedExecution.Foreground.ExtendedExecutionForegroundSession", L"Description"))
268
+ {
269
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
270
+ return -1;
271
+ }
272
+
277
273
  auto param0 = py::convert_to<winrt::hstring>(arg);
278
274
 
279
275
  self->obj.Description(param0);
@@ -288,14 +284,14 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution::Foreground
288
284
 
289
285
  static PyObject* ExtendedExecutionForegroundSession_add_Revoked(py::wrapper::Windows::ApplicationModel::ExtendedExecution::Foreground::ExtendedExecutionForegroundSession* self, PyObject* arg) noexcept
290
286
  {
291
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.ExtendedExecution.Foreground.ExtendedExecutionForegroundSession", L"Revoked"))
292
- {
293
- PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
294
- return nullptr;
295
- }
296
-
297
287
  try
298
288
  {
289
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.ExtendedExecution.Foreground.ExtendedExecutionForegroundSession", L"Revoked"))
290
+ {
291
+ PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
292
+ return nullptr;
293
+ }
294
+
299
295
  auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Foundation::IInspectable, winrt::Windows::ApplicationModel::ExtendedExecution::Foreground::ExtendedExecutionForegroundRevokedEventArgs>>(arg);
300
296
 
301
297
  return py::convert(self->obj.Revoked(param0));
@@ -309,14 +305,14 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution::Foreground
309
305
 
310
306
  static PyObject* ExtendedExecutionForegroundSession_remove_Revoked(py::wrapper::Windows::ApplicationModel::ExtendedExecution::Foreground::ExtendedExecutionForegroundSession* self, PyObject* arg) noexcept
311
307
  {
312
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.ExtendedExecution.Foreground.ExtendedExecutionForegroundSession", L"Revoked"))
313
- {
314
- PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
315
- return nullptr;
316
- }
317
-
318
308
  try
319
309
  {
310
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.ApplicationModel.ExtendedExecution.Foreground.ExtendedExecutionForegroundSession", L"Revoked"))
311
+ {
312
+ PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
313
+ return nullptr;
314
+ }
315
+
320
316
  auto param0 = py::convert_to<winrt::event_token>(arg);
321
317
 
322
318
  self->obj.Revoked(param0);
@@ -380,7 +376,7 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution::Foreground
380
376
  { "_assign_array_", _assign_array_ExtendedExecutionForegroundSession, METH_O | METH_STATIC, nullptr },
381
377
  { "_from", reinterpret_cast<PyCFunction>(_from_ExtendedExecutionForegroundSession), METH_O | METH_STATIC, nullptr },
382
378
  { "__enter__", reinterpret_cast<PyCFunction>(_enter_ExtendedExecutionForegroundSession), METH_NOARGS, nullptr },
383
- { "__exit__", reinterpret_cast<PyCFunction>(_exit_ExtendedExecutionForegroundSession), METH_VARARGS, nullptr },
379
+ { "__exit__", reinterpret_cast<PyCFunction>(_exit_ExtendedExecutionForegroundSession), METH_VARARGS, nullptr },
384
380
  { }
385
381
  };
386
382
 
@@ -390,39 +386,35 @@ namespace py::cpp::Windows::ApplicationModel::ExtendedExecution::Foreground
390
386
  { }
391
387
  };
392
388
 
393
- static PyType_Slot _type_slots_ExtendedExecutionForegroundSession[] =
394
- {
389
+ static PyType_Slot _type_slots_ExtendedExecutionForegroundSession[] = {
395
390
  { Py_tp_new, reinterpret_cast<void*>(_new_ExtendedExecutionForegroundSession) },
396
391
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_ExtendedExecutionForegroundSession) },
397
392
  { Py_tp_methods, reinterpret_cast<void*>(_methods_ExtendedExecutionForegroundSession) },
398
393
  { Py_tp_getset, reinterpret_cast<void*>(_getset_ExtendedExecutionForegroundSession) },
399
- { },
394
+ { }
400
395
  };
401
396
 
402
- static PyType_Spec type_spec_ExtendedExecutionForegroundSession =
403
- {
397
+ static PyType_Spec type_spec_ExtendedExecutionForegroundSession = {
404
398
  "winrt._winrt_windows_applicationmodel_extendedexecution_foreground.ExtendedExecutionForegroundSession",
405
399
  sizeof(py::wrapper::Windows::ApplicationModel::ExtendedExecution::Foreground::ExtendedExecutionForegroundSession),
406
400
  0,
407
401
  Py_TPFLAGS_DEFAULT,
408
- _type_slots_ExtendedExecutionForegroundSession
409
- };
402
+ _type_slots_ExtendedExecutionForegroundSession};
410
403
 
411
404
  // ----- Windows.ApplicationModel.ExtendedExecution.Foreground Initialization --------------------
412
- PyDoc_STRVAR(module_doc, "Windows::ApplicationModel::ExtendedExecution::Foreground");
413
405
 
406
+ PyDoc_STRVAR(module_doc, "Windows.ApplicationModel.ExtendedExecution.Foreground");
414
407
 
415
- static PyModuleDef module_def
416
- = {PyModuleDef_HEAD_INIT,
417
- "_winrt_windows_applicationmodel_extendedexecution_foreground",
418
- module_doc,
419
- 0,
420
- nullptr,
421
- nullptr,
422
- nullptr,
423
- nullptr,
424
- nullptr};
425
-
408
+ static PyModuleDef module_def = {
409
+ PyModuleDef_HEAD_INIT,
410
+ "_winrt_windows_applicationmodel_extendedexecution_foreground",
411
+ module_doc,
412
+ 0,
413
+ nullptr,
414
+ nullptr,
415
+ nullptr,
416
+ nullptr,
417
+ nullptr};
426
418
  } // py::cpp::Windows::ApplicationModel::ExtendedExecution::Foreground
427
419
 
428
420
  PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_extendedexecution_foreground(void) noexcept
@@ -1,7 +1,7 @@
1
1
  # WARNING: Please don't edit this file. It was automatically generated.
2
2
 
3
3
  [build-system]
4
- requires = ["setuptools", "setuptools-scm", "winrt-sdk"]
4
+ requires = ["setuptools", "winrt-sdk"]
5
5
  build-backend = "setuptools.build_meta"
6
6
 
7
7
  [project]
@@ -30,7 +30,7 @@ dependencies = { file = "requirements.txt" }
30
30
  optional-dependencies.all = { file = "all-requirements.txt" }
31
31
 
32
32
  [tool.setuptools.package-data]
33
- winrt = ["*.pyi"]
33
+ "*" = ["*.pyi", "py.typed"]
34
34
 
35
35
  [tool.cibuildwheel]
36
36
  # use local winrt-sdk build dependency
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
2
 
3
- winrt-runtime==2.0.0-beta.2
3
+ winrt-runtime==2.1.0
@@ -0,0 +1,31 @@
1
+ # WARNING: Please don't edit this file. It was automatically generated.
2
+
3
+ from setuptools import Extension, setup
4
+ from setuptools.command.build_ext import build_ext
5
+ from winrt_sdk import get_include_dirs
6
+
7
+
8
+ class build_ext_ex(build_ext):
9
+ def build_extension(self, ext):
10
+ if self.compiler.compiler_type == "msvc":
11
+ ext.extra_compile_args = ["/std:c++20", "/permissive-"]
12
+ elif self.compiler.compiler_type == "mingw32":
13
+ ext.extra_compile_args = ["-std=c++20", "-D_WIN32_WINNT=_WIN32_WINNT_WIN10"]
14
+ ext.extra_link_args = ["-loleaut32"]
15
+ else:
16
+ raise ValueError(f"Unsupported compiler: {self.compiler.compiler_type}")
17
+
18
+ build_ext.build_extension(self, ext)
19
+
20
+
21
+ setup(
22
+ cmdclass = {'build_ext': build_ext_ex},
23
+ ext_modules=[
24
+ Extension(
25
+ "winrt._winrt_windows_applicationmodel_extendedexecution_foreground",
26
+ sources=["py.Windows.ApplicationModel.ExtendedExecution.Foreground.cpp"],
27
+ include_dirs=get_include_dirs(),
28
+ libraries=["windowsapp"],
29
+ )
30
+ ],
31
+ )
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
2
 
3
3
  import datetime
4
4
  import sys
@@ -9,7 +9,7 @@ from builtins import property as _property
9
9
 
10
10
  import winrt._winrt
11
11
  import winrt.system
12
- import winrt.windows.foundation
12
+ import winrt.windows.foundation as windows_foundation
13
13
 
14
14
  from winrt.windows.applicationmodel.extendedexecution.foreground import ExtendedExecutionForegroundReason, ExtendedExecutionForegroundResult, ExtendedExecutionForegroundRevokedReason
15
15
 
@@ -28,11 +28,11 @@ class ExtendedExecutionForegroundSession(winrt.system.Object):
28
28
  def __exit__(self, *args) -> None: ...
29
29
  @staticmethod
30
30
  def _from(obj: winrt.system.Object, /) -> ExtendedExecutionForegroundSession: ...
31
- def __new__(cls: typing.Type[ExtendedExecutionForegroundSession]) -> ExtendedExecutionForegroundSession:...
31
+ def __new__(cls: typing.Type[ExtendedExecutionForegroundSession]) -> ExtendedExecutionForegroundSession: ...
32
32
  def close(self) -> None: ...
33
- def request_extension_async(self) -> winrt.windows.foundation.IAsyncOperation[ExtendedExecutionForegroundResult]: ...
34
- def add_revoked(self, handler: winrt.windows.foundation.TypedEventHandler[winrt.system.Object, ExtendedExecutionForegroundRevokedEventArgs], /) -> winrt.windows.foundation.EventRegistrationToken: ...
35
- def remove_revoked(self, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
33
+ def request_extension_async(self) -> windows_foundation.IAsyncOperation[ExtendedExecutionForegroundResult]: ...
34
+ def add_revoked(self, handler: windows_foundation.TypedEventHandler[winrt.system.Object, ExtendedExecutionForegroundRevokedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
35
+ def remove_revoked(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
36
36
  @_property
37
37
  def reason(self) -> ExtendedExecutionForegroundReason: ...
38
38
  @reason.setter
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
2
 
3
3
  import enum
4
4
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.ApplicationModel.ExtendedExecution.Foreground
3
- Version: 2.0.0b2
3
+ Version: 2.1.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -12,7 +12,9 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
13
  Requires-Python: <3.13,>=3.9
14
14
  Description-Content-Type: text/markdown
15
+ Requires-Dist: winrt-runtime==2.1.0
15
16
  Provides-Extra: all
17
+ Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
16
18
 
17
19
  <!-- warning: Please don't edit this file. It was automatically generated. -->
18
20
 
@@ -7,6 +7,7 @@ requirements.txt
7
7
  setup.py
8
8
  winrt/_winrt_windows_applicationmodel_extendedexecution_foreground.pyi
9
9
  winrt/windows/applicationmodel/extendedexecution/foreground/__init__.py
10
+ winrt/windows/applicationmodel/extendedexecution/foreground/py.typed
10
11
  winrt_Windows.ApplicationModel.ExtendedExecution.Foreground.egg-info/PKG-INFO
11
12
  winrt_Windows.ApplicationModel.ExtendedExecution.Foreground.egg-info/SOURCES.txt
12
13
  winrt_Windows.ApplicationModel.ExtendedExecution.Foreground.egg-info/dependency_links.txt
@@ -1,3 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
2
-
3
- winrt-Windows.Foundation[all]==2.0.0-beta.2
@@ -1,16 +0,0 @@
1
- # WARNING: Please don't edit this file. It was automatically generated.
2
-
3
- from setuptools import Extension, setup
4
- from winrt_sdk import get_include_dirs
5
-
6
- setup(
7
- ext_modules=[
8
- Extension(
9
- "winrt._winrt_windows_applicationmodel_extendedexecution_foreground",
10
- sources=["py.Windows.ApplicationModel.ExtendedExecution.Foreground.cpp"],
11
- include_dirs=get_include_dirs(),
12
- extra_compile_args=["/std:c++20", "/permissive-"],
13
- libraries=["windowsapp"],
14
- )
15
- ],
16
- )
@@ -1,4 +0,0 @@
1
- winrt-runtime==2.0.0-beta.2
2
-
3
- [all]
4
- winrt-Windows.Foundation[all]==2.0.0-beta.2