winrt-Windows.Devices.Background 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_devices_background-2.3.0 → winrt_windows_devices_background-3.1.0}/PKG-INFO +6 -6
  2. {winrt_windows_devices_background-2.3.0 → winrt_windows_devices_background-3.1.0}/all-requirements.txt +2 -2
  3. {winrt_windows_devices_background-2.3.0 → winrt_windows_devices_background-3.1.0}/py.Windows.Devices.Background.cpp +40 -20
  4. {winrt_windows_devices_background-2.3.0 → winrt_windows_devices_background-3.1.0}/pyproject.toml +4 -4
  5. winrt_windows_devices_background-3.1.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_devices_background-2.3.0 → winrt_windows_devices_background-3.1.0}/requirements.txt +2 -2
  7. {winrt_windows_devices_background-2.3.0 → winrt_windows_devices_background-3.1.0}/setup.py +1 -1
  8. {winrt_windows_devices_background-2.3.0 → winrt_windows_devices_background-3.1.0}/winrt/_winrt_windows_devices_background.pyi +6 -5
  9. winrt_windows_devices_background-3.1.0/winrt/windows/devices/background/__init__.py +13 -0
  10. {winrt_windows_devices_background-2.3.0 → winrt_windows_devices_background-3.1.0}/winrt_Windows.Devices.Background.egg-info/PKG-INFO +6 -6
  11. winrt_windows_devices_background-3.1.0/winrt_Windows.Devices.Background.egg-info/requires.txt +4 -0
  12. winrt_windows_devices_background-2.3.0/pywinrt-version.txt +0 -1
  13. winrt_windows_devices_background-2.3.0/winrt/windows/devices/background/__init__.py +0 -12
  14. winrt_windows_devices_background-2.3.0/winrt_Windows.Devices.Background.egg-info/requires.txt +0 -4
  15. {winrt_windows_devices_background-2.3.0 → winrt_windows_devices_background-3.1.0}/README.md +0 -0
  16. {winrt_windows_devices_background-2.3.0 → winrt_windows_devices_background-3.1.0}/setup.cfg +0 -0
  17. {winrt_windows_devices_background-2.3.0 → winrt_windows_devices_background-3.1.0}/winrt/windows/devices/background/py.typed +0 -0
  18. {winrt_windows_devices_background-2.3.0 → winrt_windows_devices_background-3.1.0}/winrt_Windows.Devices.Background.egg-info/SOURCES.txt +0 -0
  19. {winrt_windows_devices_background-2.3.0 → winrt_windows_devices_background-3.1.0}/winrt_Windows.Devices.Background.egg-info/dependency_links.txt +0 -0
  20. {winrt_windows_devices_background-2.3.0 → winrt_windows_devices_background-3.1.0}/winrt_Windows.Devices.Background.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.Devices.Background
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[all]==2.3.0; extra == "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 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[all]==2.3.0
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 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.Devices.Background.h"
4
4
 
@@ -38,7 +38,11 @@ namespace py::cpp::Windows::Devices::Background
38
38
  return nullptr;
39
39
  }
40
40
 
41
- return py::convert(self->obj.Arguments());
41
+ return py::convert([&]()
42
+ {
43
+ auto _gil = release_gil();
44
+ return self->obj.Arguments();
45
+ }());
42
46
  }
43
47
  catch (...)
44
48
  {
@@ -64,7 +68,11 @@ namespace py::cpp::Windows::Devices::Background
64
68
  return nullptr;
65
69
  }
66
70
 
67
- return py::convert(self->obj.DeviceId());
71
+ return py::convert([&]()
72
+ {
73
+ auto _gil = release_gil();
74
+ return self->obj.DeviceId();
75
+ }());
68
76
  }
69
77
  catch (...)
70
78
  {
@@ -90,7 +98,11 @@ namespace py::cpp::Windows::Devices::Background
90
98
  return nullptr;
91
99
  }
92
100
 
93
- return py::convert(self->obj.ExpectedDuration());
101
+ return py::convert([&]()
102
+ {
103
+ auto _gil = release_gil();
104
+ return self->obj.ExpectedDuration();
105
+ }());
94
106
  }
95
107
  catch (...)
96
108
  {
@@ -126,23 +138,20 @@ namespace py::cpp::Windows::Devices::Background
126
138
  static PyMethodDef _methods_DeviceServicingDetails[] = {
127
139
  { "_assign_array_", _assign_array_DeviceServicingDetails, METH_O | METH_STATIC, nullptr },
128
140
  { "_from", reinterpret_cast<PyCFunction>(_from_DeviceServicingDetails), METH_O | METH_STATIC, nullptr },
129
- { }
130
- };
141
+ { }};
131
142
 
132
143
  static PyGetSetDef _getset_DeviceServicingDetails[] = {
133
144
  { "arguments", reinterpret_cast<getter>(DeviceServicingDetails_get_Arguments), nullptr, nullptr, nullptr },
134
145
  { "device_id", reinterpret_cast<getter>(DeviceServicingDetails_get_DeviceId), nullptr, nullptr, nullptr },
135
146
  { "expected_duration", reinterpret_cast<getter>(DeviceServicingDetails_get_ExpectedDuration), nullptr, nullptr, nullptr },
136
- { }
137
- };
147
+ { }};
138
148
 
139
149
  static PyType_Slot _type_slots_DeviceServicingDetails[] = {
140
150
  { Py_tp_new, reinterpret_cast<void*>(_new_DeviceServicingDetails) },
141
151
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_DeviceServicingDetails) },
142
152
  { Py_tp_methods, reinterpret_cast<void*>(_methods_DeviceServicingDetails) },
143
153
  { Py_tp_getset, reinterpret_cast<void*>(_getset_DeviceServicingDetails) },
144
- { }
145
- };
154
+ { }};
146
155
 
147
156
  static PyType_Spec type_spec_DeviceServicingDetails = {
148
157
  "winrt._winrt_windows_devices_background.DeviceServicingDetails",
@@ -185,7 +194,11 @@ namespace py::cpp::Windows::Devices::Background
185
194
  return nullptr;
186
195
  }
187
196
 
188
- return py::convert(self->obj.Arguments());
197
+ return py::convert([&]()
198
+ {
199
+ auto _gil = release_gil();
200
+ return self->obj.Arguments();
201
+ }());
189
202
  }
190
203
  catch (...)
191
204
  {
@@ -211,7 +224,11 @@ namespace py::cpp::Windows::Devices::Background
211
224
  return nullptr;
212
225
  }
213
226
 
214
- return py::convert(self->obj.DeviceId());
227
+ return py::convert([&]()
228
+ {
229
+ auto _gil = release_gil();
230
+ return self->obj.DeviceId();
231
+ }());
215
232
  }
216
233
  catch (...)
217
234
  {
@@ -247,22 +264,19 @@ namespace py::cpp::Windows::Devices::Background
247
264
  static PyMethodDef _methods_DeviceUseDetails[] = {
248
265
  { "_assign_array_", _assign_array_DeviceUseDetails, METH_O | METH_STATIC, nullptr },
249
266
  { "_from", reinterpret_cast<PyCFunction>(_from_DeviceUseDetails), METH_O | METH_STATIC, nullptr },
250
- { }
251
- };
267
+ { }};
252
268
 
253
269
  static PyGetSetDef _getset_DeviceUseDetails[] = {
254
270
  { "arguments", reinterpret_cast<getter>(DeviceUseDetails_get_Arguments), nullptr, nullptr, nullptr },
255
271
  { "device_id", reinterpret_cast<getter>(DeviceUseDetails_get_DeviceId), nullptr, nullptr, nullptr },
256
- { }
257
- };
272
+ { }};
258
273
 
259
274
  static PyType_Slot _type_slots_DeviceUseDetails[] = {
260
275
  { Py_tp_new, reinterpret_cast<void*>(_new_DeviceUseDetails) },
261
276
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_DeviceUseDetails) },
262
277
  { Py_tp_methods, reinterpret_cast<void*>(_methods_DeviceUseDetails) },
263
278
  { Py_tp_getset, reinterpret_cast<void*>(_getset_DeviceUseDetails) },
264
- { }
265
- };
279
+ { }};
266
280
 
267
281
  static PyType_Spec type_spec_DeviceUseDetails = {
268
282
  "winrt._winrt_windows_devices_background.DeviceUseDetails",
@@ -303,6 +317,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_devices_background(void) noexcept
303
317
  return nullptr;
304
318
  }
305
319
 
320
+ auto inspectable_meta_type = py::get_inspectable_meta_type();
321
+ if (!inspectable_meta_type)
322
+ {
323
+ return nullptr;
324
+ }
325
+
306
326
  auto object_type = py::get_object_type();
307
327
  if (!object_type)
308
328
  {
@@ -316,13 +336,13 @@ PyMODINIT_FUNC PyInit__winrt_windows_devices_background(void) noexcept
316
336
  return nullptr;
317
337
  }
318
338
 
319
- py::pytype_handle DeviceServicingDetails_type{py::register_python_type(module.get(), &type_spec_DeviceServicingDetails, object_bases.get(), nullptr)};
339
+ py::pytype_handle DeviceServicingDetails_type{py::register_python_type(module.get(), &type_spec_DeviceServicingDetails, object_bases.get(), inspectable_meta_type)};
320
340
  if (!DeviceServicingDetails_type)
321
341
  {
322
342
  return nullptr;
323
343
  }
324
344
 
325
- py::pytype_handle DeviceUseDetails_type{py::register_python_type(module.get(), &type_spec_DeviceUseDetails, object_bases.get(), nullptr)};
345
+ py::pytype_handle DeviceUseDetails_type{py::register_python_type(module.get(), &type_spec_DeviceUseDetails, object_bases.get(), inspectable_meta_type)};
326
346
  if (!DeviceUseDetails_type)
327
347
  {
328
348
  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.Devices.Background"
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_devices_background",
@@ -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
  import datetime
4
4
  import sys
@@ -15,21 +15,22 @@ Self = typing.TypeVar('Self')
15
15
 
16
16
  @typing.final
17
17
  class DeviceServicingDetails(winrt.system.Object):
18
- @staticmethod
19
- def _from(obj: winrt.system.Object, /) -> DeviceServicingDetails: ...
18
+ # System.String Windows.Devices.Background.DeviceServicingDetails::get_Arguments()
20
19
  @_property
21
20
  def arguments(self) -> str: ...
21
+ # System.String Windows.Devices.Background.DeviceServicingDetails::get_DeviceId()
22
22
  @_property
23
23
  def device_id(self) -> str: ...
24
+ # Windows.Foundation.TimeSpan Windows.Devices.Background.DeviceServicingDetails::get_ExpectedDuration()
24
25
  @_property
25
26
  def expected_duration(self) -> datetime.timedelta: ...
26
27
 
27
28
  @typing.final
28
29
  class DeviceUseDetails(winrt.system.Object):
29
- @staticmethod
30
- def _from(obj: winrt.system.Object, /) -> DeviceUseDetails: ...
30
+ # System.String Windows.Devices.Background.DeviceUseDetails::get_Arguments()
31
31
  @_property
32
32
  def arguments(self) -> str: ...
33
+ # System.String Windows.Devices.Background.DeviceUseDetails::get_DeviceId()
33
34
  @_property
34
35
  def device_id(self) -> str: ...
35
36
 
@@ -0,0 +1,13 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
2
+
3
+ import winrt.system
4
+ from winrt._winrt_windows_devices_background import (
5
+ DeviceServicingDetails,
6
+ DeviceUseDetails,
7
+ )
8
+
9
+ __all__ = [
10
+ "DeviceServicingDetails",
11
+ "DeviceUseDetails",
12
+ ]
13
+
@@ -1,8 +1,8 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: winrt-Windows.Devices.Background
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[all]==2.3.0; extra == "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
 
@@ -0,0 +1,4 @@
1
+ winrt-runtime==3.1.0
2
+
3
+ [all]
4
+ winrt-Windows.Foundation[all]==3.1.0
@@ -1,12 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
-
3
- import winrt.system
4
- from winrt import _winrt_windows_devices_background
5
-
6
- __all__ = [
7
- "DeviceServicingDetails",
8
- "DeviceUseDetails",
9
- ]
10
-
11
- DeviceServicingDetails = _winrt_windows_devices_background.DeviceServicingDetails
12
- DeviceUseDetails = _winrt_windows_devices_background.DeviceUseDetails
@@ -1,4 +0,0 @@
1
- winrt-runtime==2.3.0
2
-
3
- [all]
4
- winrt-Windows.Foundation[all]==2.3.0