winrt-Windows.Devices.Background 2.0.1__tar.gz → 2.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {winrt_windows_devices_background-2.0.1 → winrt_windows_devices_background-2.2.0}/PKG-INFO +4 -4
- {winrt_windows_devices_background-2.0.1 → winrt_windows_devices_background-2.2.0}/all-requirements.txt +2 -2
- {winrt_windows_devices_background-2.0.1 → winrt_windows_devices_background-2.2.0}/py.Windows.Devices.Background.cpp +89 -60
- {winrt_windows_devices_background-2.0.1 → winrt_windows_devices_background-2.2.0}/pyproject.toml +3 -2
- winrt_windows_devices_background-2.2.0/pywinrt-version.txt +1 -0
- {winrt_windows_devices_background-2.0.1 → winrt_windows_devices_background-2.2.0}/requirements.txt +2 -2
- {winrt_windows_devices_background-2.0.1 → winrt_windows_devices_background-2.2.0}/winrt/_winrt_windows_devices_background.pyi +2 -2
- {winrt_windows_devices_background-2.0.1 → winrt_windows_devices_background-2.2.0}/winrt/windows/devices/background/__init__.py +1 -1
- {winrt_windows_devices_background-2.0.1 → winrt_windows_devices_background-2.2.0}/winrt_Windows.Devices.Background.egg-info/PKG-INFO +4 -4
- winrt_windows_devices_background-2.2.0/winrt_Windows.Devices.Background.egg-info/requires.txt +4 -0
- winrt_windows_devices_background-2.0.1/pywinrt-version.txt +0 -1
- winrt_windows_devices_background-2.0.1/winrt_Windows.Devices.Background.egg-info/requires.txt +0 -4
- {winrt_windows_devices_background-2.0.1 → winrt_windows_devices_background-2.2.0}/README.md +0 -0
- {winrt_windows_devices_background-2.0.1 → winrt_windows_devices_background-2.2.0}/setup.cfg +0 -0
- {winrt_windows_devices_background-2.0.1 → winrt_windows_devices_background-2.2.0}/setup.py +0 -0
- {winrt_windows_devices_background-2.0.1 → winrt_windows_devices_background-2.2.0}/winrt/windows/devices/background/py.typed +0 -0
- {winrt_windows_devices_background-2.0.1 → winrt_windows_devices_background-2.2.0}/winrt_Windows.Devices.Background.egg-info/SOURCES.txt +0 -0
- {winrt_windows_devices_background-2.0.1 → winrt_windows_devices_background-2.2.0}/winrt_Windows.Devices.Background.egg-info/dependency_links.txt +0 -0
- {winrt_windows_devices_background-2.0.1 → winrt_windows_devices_background-2.2.0}/winrt_Windows.Devices.Background.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Devices.Background
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.2.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -10,11 +10,11 @@ Classifier: Operating System :: Microsoft :: Windows
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python: <3.
|
|
13
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.0
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.0
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
|
|
18
18
|
|
|
19
19
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
20
20
|
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
|
-
winrt-Windows.Foundation[all]==2.0
|
|
3
|
+
winrt-Windows.Foundation[all]==2.2.0
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.Devices.Background.h"
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
namespace py::cpp::Windows::Devices::Background
|
|
7
6
|
{
|
|
8
7
|
// ----- DeviceServicingDetails class --------------------
|
|
@@ -24,14 +23,21 @@ namespace py::cpp::Windows::Devices::Background
|
|
|
24
23
|
|
|
25
24
|
static PyObject* DeviceServicingDetails_get_Arguments(py::wrapper::Windows::Devices::Background::DeviceServicingDetails* self, void* /*unused*/) noexcept
|
|
26
25
|
{
|
|
27
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Background.DeviceServicingDetails", L"Arguments"))
|
|
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
|
+
static std::optional<bool> is_property_present{};
|
|
29
|
+
|
|
30
|
+
if (!is_property_present.has_value())
|
|
31
|
+
{
|
|
32
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Background.DeviceServicingDetails", L"Arguments");
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
if (!is_property_present.value())
|
|
36
|
+
{
|
|
37
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
38
|
+
return nullptr;
|
|
39
|
+
}
|
|
40
|
+
|
|
35
41
|
return py::convert(self->obj.Arguments());
|
|
36
42
|
}
|
|
37
43
|
catch (...)
|
|
@@ -43,14 +49,21 @@ namespace py::cpp::Windows::Devices::Background
|
|
|
43
49
|
|
|
44
50
|
static PyObject* DeviceServicingDetails_get_DeviceId(py::wrapper::Windows::Devices::Background::DeviceServicingDetails* self, void* /*unused*/) noexcept
|
|
45
51
|
{
|
|
46
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Background.DeviceServicingDetails", L"DeviceId"))
|
|
47
|
-
{
|
|
48
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
49
|
-
return nullptr;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
52
|
try
|
|
53
53
|
{
|
|
54
|
+
static std::optional<bool> is_property_present{};
|
|
55
|
+
|
|
56
|
+
if (!is_property_present.has_value())
|
|
57
|
+
{
|
|
58
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Background.DeviceServicingDetails", L"DeviceId");
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
if (!is_property_present.value())
|
|
62
|
+
{
|
|
63
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
64
|
+
return nullptr;
|
|
65
|
+
}
|
|
66
|
+
|
|
54
67
|
return py::convert(self->obj.DeviceId());
|
|
55
68
|
}
|
|
56
69
|
catch (...)
|
|
@@ -62,14 +75,21 @@ namespace py::cpp::Windows::Devices::Background
|
|
|
62
75
|
|
|
63
76
|
static PyObject* DeviceServicingDetails_get_ExpectedDuration(py::wrapper::Windows::Devices::Background::DeviceServicingDetails* self, void* /*unused*/) noexcept
|
|
64
77
|
{
|
|
65
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Background.DeviceServicingDetails", L"ExpectedDuration"))
|
|
66
|
-
{
|
|
67
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
68
|
-
return nullptr;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
78
|
try
|
|
72
79
|
{
|
|
80
|
+
static std::optional<bool> is_property_present{};
|
|
81
|
+
|
|
82
|
+
if (!is_property_present.has_value())
|
|
83
|
+
{
|
|
84
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Background.DeviceServicingDetails", L"ExpectedDuration");
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
if (!is_property_present.value())
|
|
88
|
+
{
|
|
89
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
90
|
+
return nullptr;
|
|
91
|
+
}
|
|
92
|
+
|
|
73
93
|
return py::convert(self->obj.ExpectedDuration());
|
|
74
94
|
}
|
|
75
95
|
catch (...)
|
|
@@ -116,23 +136,20 @@ namespace py::cpp::Windows::Devices::Background
|
|
|
116
136
|
{ }
|
|
117
137
|
};
|
|
118
138
|
|
|
119
|
-
static PyType_Slot _type_slots_DeviceServicingDetails[] =
|
|
120
|
-
{
|
|
139
|
+
static PyType_Slot _type_slots_DeviceServicingDetails[] = {
|
|
121
140
|
{ Py_tp_new, reinterpret_cast<void*>(_new_DeviceServicingDetails) },
|
|
122
141
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_DeviceServicingDetails) },
|
|
123
142
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_DeviceServicingDetails) },
|
|
124
143
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_DeviceServicingDetails) },
|
|
125
|
-
{ }
|
|
144
|
+
{ }
|
|
126
145
|
};
|
|
127
146
|
|
|
128
|
-
static PyType_Spec type_spec_DeviceServicingDetails =
|
|
129
|
-
{
|
|
147
|
+
static PyType_Spec type_spec_DeviceServicingDetails = {
|
|
130
148
|
"winrt._winrt_windows_devices_background.DeviceServicingDetails",
|
|
131
149
|
sizeof(py::wrapper::Windows::Devices::Background::DeviceServicingDetails),
|
|
132
150
|
0,
|
|
133
151
|
Py_TPFLAGS_DEFAULT,
|
|
134
|
-
_type_slots_DeviceServicingDetails
|
|
135
|
-
};
|
|
152
|
+
_type_slots_DeviceServicingDetails};
|
|
136
153
|
|
|
137
154
|
// ----- DeviceUseDetails class --------------------
|
|
138
155
|
|
|
@@ -153,14 +170,21 @@ namespace py::cpp::Windows::Devices::Background
|
|
|
153
170
|
|
|
154
171
|
static PyObject* DeviceUseDetails_get_Arguments(py::wrapper::Windows::Devices::Background::DeviceUseDetails* self, void* /*unused*/) noexcept
|
|
155
172
|
{
|
|
156
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Background.DeviceUseDetails", L"Arguments"))
|
|
157
|
-
{
|
|
158
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
159
|
-
return nullptr;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
173
|
try
|
|
163
174
|
{
|
|
175
|
+
static std::optional<bool> is_property_present{};
|
|
176
|
+
|
|
177
|
+
if (!is_property_present.has_value())
|
|
178
|
+
{
|
|
179
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Background.DeviceUseDetails", L"Arguments");
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
if (!is_property_present.value())
|
|
183
|
+
{
|
|
184
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
185
|
+
return nullptr;
|
|
186
|
+
}
|
|
187
|
+
|
|
164
188
|
return py::convert(self->obj.Arguments());
|
|
165
189
|
}
|
|
166
190
|
catch (...)
|
|
@@ -172,14 +196,21 @@ namespace py::cpp::Windows::Devices::Background
|
|
|
172
196
|
|
|
173
197
|
static PyObject* DeviceUseDetails_get_DeviceId(py::wrapper::Windows::Devices::Background::DeviceUseDetails* self, void* /*unused*/) noexcept
|
|
174
198
|
{
|
|
175
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Background.DeviceUseDetails", L"DeviceId"))
|
|
176
|
-
{
|
|
177
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
178
|
-
return nullptr;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
199
|
try
|
|
182
200
|
{
|
|
201
|
+
static std::optional<bool> is_property_present{};
|
|
202
|
+
|
|
203
|
+
if (!is_property_present.has_value())
|
|
204
|
+
{
|
|
205
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Background.DeviceUseDetails", L"DeviceId");
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
if (!is_property_present.value())
|
|
209
|
+
{
|
|
210
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
211
|
+
return nullptr;
|
|
212
|
+
}
|
|
213
|
+
|
|
183
214
|
return py::convert(self->obj.DeviceId());
|
|
184
215
|
}
|
|
185
216
|
catch (...)
|
|
@@ -225,39 +256,35 @@ namespace py::cpp::Windows::Devices::Background
|
|
|
225
256
|
{ }
|
|
226
257
|
};
|
|
227
258
|
|
|
228
|
-
static PyType_Slot _type_slots_DeviceUseDetails[] =
|
|
229
|
-
{
|
|
259
|
+
static PyType_Slot _type_slots_DeviceUseDetails[] = {
|
|
230
260
|
{ Py_tp_new, reinterpret_cast<void*>(_new_DeviceUseDetails) },
|
|
231
261
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_DeviceUseDetails) },
|
|
232
262
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_DeviceUseDetails) },
|
|
233
263
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_DeviceUseDetails) },
|
|
234
|
-
{ }
|
|
264
|
+
{ }
|
|
235
265
|
};
|
|
236
266
|
|
|
237
|
-
static PyType_Spec type_spec_DeviceUseDetails =
|
|
238
|
-
{
|
|
267
|
+
static PyType_Spec type_spec_DeviceUseDetails = {
|
|
239
268
|
"winrt._winrt_windows_devices_background.DeviceUseDetails",
|
|
240
269
|
sizeof(py::wrapper::Windows::Devices::Background::DeviceUseDetails),
|
|
241
270
|
0,
|
|
242
271
|
Py_TPFLAGS_DEFAULT,
|
|
243
|
-
_type_slots_DeviceUseDetails
|
|
244
|
-
};
|
|
272
|
+
_type_slots_DeviceUseDetails};
|
|
245
273
|
|
|
246
274
|
// ----- Windows.Devices.Background Initialization --------------------
|
|
247
|
-
PyDoc_STRVAR(module_doc, "Windows::Devices::Background");
|
|
248
275
|
|
|
276
|
+
PyDoc_STRVAR(module_doc, "Windows.Devices.Background");
|
|
249
277
|
|
|
250
|
-
static PyModuleDef module_def
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
278
|
+
static PyModuleDef module_def = {
|
|
279
|
+
PyModuleDef_HEAD_INIT,
|
|
280
|
+
"_winrt_windows_devices_background",
|
|
281
|
+
module_doc,
|
|
282
|
+
0,
|
|
283
|
+
nullptr,
|
|
284
|
+
nullptr,
|
|
285
|
+
nullptr,
|
|
286
|
+
nullptr,
|
|
287
|
+
nullptr};
|
|
261
288
|
} // py::cpp::Windows::Devices::Background
|
|
262
289
|
|
|
263
290
|
PyMODINIT_FUNC PyInit__winrt_windows_devices_background(void) noexcept
|
|
@@ -289,12 +316,14 @@ PyMODINIT_FUNC PyInit__winrt_windows_devices_background(void) noexcept
|
|
|
289
316
|
return nullptr;
|
|
290
317
|
}
|
|
291
318
|
|
|
292
|
-
|
|
319
|
+
py::pytype_handle DeviceServicingDetails_type{py::register_python_type(module.get(), &type_spec_DeviceServicingDetails, object_bases.get(), nullptr)};
|
|
320
|
+
if (!DeviceServicingDetails_type)
|
|
293
321
|
{
|
|
294
322
|
return nullptr;
|
|
295
323
|
}
|
|
296
324
|
|
|
297
|
-
|
|
325
|
+
py::pytype_handle DeviceUseDetails_type{py::register_python_type(module.get(), &type_spec_DeviceUseDetails, object_bases.get(), nullptr)};
|
|
326
|
+
if (!DeviceUseDetails_type)
|
|
298
327
|
{
|
|
299
328
|
return nullptr;
|
|
300
329
|
}
|
{winrt_windows_devices_background-2.0.1 → winrt_windows_devices_background-2.2.0}/pyproject.toml
RENAMED
|
@@ -16,7 +16,7 @@ classifiers = [
|
|
|
16
16
|
"Intended Audience :: Developers",
|
|
17
17
|
]
|
|
18
18
|
dynamic = ["version", "dependencies", "optional-dependencies"]
|
|
19
|
-
requires-python = ">=3.9,<3.
|
|
19
|
+
requires-python = ">=3.9,<3.14"
|
|
20
20
|
|
|
21
21
|
[project.urls]
|
|
22
22
|
# Homepage = "https://github.com/pywinrt/pywinrt"
|
|
@@ -36,7 +36,8 @@ optional-dependencies.all = { file = "all-requirements.txt" }
|
|
|
36
36
|
# use local winrt-sdk build dependency
|
|
37
37
|
environment = { PYTHONPATH="../winrt-sdk/src" }
|
|
38
38
|
# don't install winrt-sdk from PyPI
|
|
39
|
-
build-frontend = { name = "build", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
39
|
+
build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
40
|
+
before-build = "uv pip install setuptools"
|
|
40
41
|
# don't build for PyPy
|
|
41
42
|
skip = "pp*"
|
|
42
43
|
# suppress warnings about ARM64 testing
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.2.0
|
{winrt_windows_devices_background-2.0.1 → winrt_windows_devices_background-2.2.0}/requirements.txt
RENAMED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.0
|
|
3
|
+
winrt-runtime==2.2.0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.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
|
Self = typing.TypeVar('Self')
|
|
15
15
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Devices.Background
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.2.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -10,11 +10,11 @@ Classifier: Operating System :: Microsoft :: Windows
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python: <3.
|
|
13
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.0
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.0
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
|
|
18
18
|
|
|
19
19
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
20
20
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.0.1
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|