winrt-Windows.Devices.Background 2.0.0b1__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.0b1/PKG-INFO +22 -0
- winrt-Windows.Devices.Background-2.0.0b1/README.md +7 -0
- winrt-Windows.Devices.Background-2.0.0b1/all-requirements.txt +3 -0
- winrt-Windows.Devices.Background-2.0.0b1/py.Windows.Devices.Background.cpp +304 -0
- winrt-Windows.Devices.Background-2.0.0b1/pyproject.toml +43 -0
- winrt-Windows.Devices.Background-2.0.0b1/pywinrt-version.txt +1 -0
- winrt-Windows.Devices.Background-2.0.0b1/requirements.txt +3 -0
- winrt-Windows.Devices.Background-2.0.0b1/setup.cfg +4 -0
- winrt-Windows.Devices.Background-2.0.0b1/setup.py +17 -0
- winrt-Windows.Devices.Background-2.0.0b1/winrt/_winrt_windows_devices_background.pyi +33 -0
- winrt-Windows.Devices.Background-2.0.0b1/winrt/windows/devices/background/__init__.py +12 -0
- winrt-Windows.Devices.Background-2.0.0b1/winrt_Windows.Devices.Background.egg-info/PKG-INFO +22 -0
- winrt-Windows.Devices.Background-2.0.0b1/winrt_Windows.Devices.Background.egg-info/SOURCES.txt +14 -0
- winrt-Windows.Devices.Background-2.0.0b1/winrt_Windows.Devices.Background.egg-info/dependency_links.txt +1 -0
- winrt-Windows.Devices.Background-2.0.0b1/winrt_Windows.Devices.Background.egg-info/requires.txt +4 -0
- winrt-Windows.Devices.Background-2.0.0b1/winrt_Windows.Devices.Background.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: winrt-Windows.Devices.Background
|
|
3
|
+
Version: 2.0.0b1
|
|
4
|
+
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
|
+
License: MIT
|
|
6
|
+
Project-URL: Repository, https://github.com/pywrint/pywrinrt
|
|
7
|
+
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
|
|
8
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Requires-Python: <3.13,>=3.9
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
Provides-Extra: all
|
|
15
|
+
|
|
16
|
+
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
17
|
+
|
|
18
|
+
# winrt-Windows.Devices.Background
|
|
19
|
+
|
|
20
|
+
Windows Runtime (WinRT) APIs for for the `Windows.Devices.Background` namespace.
|
|
21
|
+
|
|
22
|
+
This package provides the `winrt.windows.devices.background` module.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
2
|
+
|
|
3
|
+
# winrt-Windows.Devices.Background
|
|
4
|
+
|
|
5
|
+
Windows Runtime (WinRT) APIs for for the `Windows.Devices.Background` namespace.
|
|
6
|
+
|
|
7
|
+
This package provides the `winrt.windows.devices.background` module.
|
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
|
|
2
|
+
|
|
3
|
+
#include "py.Windows.Devices.Background.h"
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
namespace py::cpp::Windows::Devices::Background
|
|
7
|
+
{
|
|
8
|
+
// ----- DeviceServicingDetails class --------------------
|
|
9
|
+
|
|
10
|
+
static PyObject* _new_DeviceServicingDetails(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
|
|
11
|
+
{
|
|
12
|
+
static_assert(py::py_type<winrt::Windows::Devices::Background::DeviceServicingDetails>::type_name);
|
|
13
|
+
py::set_invalid_activation_error(py::py_type<winrt::Windows::Devices::Background::DeviceServicingDetails>::type_name);
|
|
14
|
+
return nullptr;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
static void _dealloc_DeviceServicingDetails(py::wrapper::Windows::Devices::Background::DeviceServicingDetails* self) noexcept
|
|
18
|
+
{
|
|
19
|
+
auto tp = Py_TYPE(self);
|
|
20
|
+
std::destroy_at(&self->obj);
|
|
21
|
+
tp->tp_free(self);
|
|
22
|
+
Py_DECREF(tp);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
static PyObject* DeviceServicingDetails_get_Arguments(py::wrapper::Windows::Devices::Background::DeviceServicingDetails* self, void* /*unused*/) noexcept
|
|
26
|
+
{
|
|
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
|
+
try
|
|
34
|
+
{
|
|
35
|
+
return py::convert(self->obj.Arguments());
|
|
36
|
+
}
|
|
37
|
+
catch (...)
|
|
38
|
+
{
|
|
39
|
+
py::to_PyErr();
|
|
40
|
+
return nullptr;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
static PyObject* DeviceServicingDetails_get_DeviceId(py::wrapper::Windows::Devices::Background::DeviceServicingDetails* self, void* /*unused*/) noexcept
|
|
45
|
+
{
|
|
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
|
+
try
|
|
53
|
+
{
|
|
54
|
+
return py::convert(self->obj.DeviceId());
|
|
55
|
+
}
|
|
56
|
+
catch (...)
|
|
57
|
+
{
|
|
58
|
+
py::to_PyErr();
|
|
59
|
+
return nullptr;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
static PyObject* DeviceServicingDetails_get_ExpectedDuration(py::wrapper::Windows::Devices::Background::DeviceServicingDetails* self, void* /*unused*/) noexcept
|
|
64
|
+
{
|
|
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
|
+
try
|
|
72
|
+
{
|
|
73
|
+
return py::convert(self->obj.ExpectedDuration());
|
|
74
|
+
}
|
|
75
|
+
catch (...)
|
|
76
|
+
{
|
|
77
|
+
py::to_PyErr();
|
|
78
|
+
return nullptr;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
static PyObject* _assign_array_DeviceServicingDetails(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
83
|
+
{
|
|
84
|
+
auto array = std::make_unique<py::ComArray<winrt::Windows::Devices::Background::DeviceServicingDetails>>();
|
|
85
|
+
if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
|
|
86
|
+
{
|
|
87
|
+
return nullptr;
|
|
88
|
+
}
|
|
89
|
+
Py_RETURN_NONE;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
static PyObject* _from_DeviceServicingDetails(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
93
|
+
{
|
|
94
|
+
try
|
|
95
|
+
{
|
|
96
|
+
auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
|
|
97
|
+
return py::convert(return_value.as<winrt::Windows::Devices::Background::DeviceServicingDetails>());
|
|
98
|
+
}
|
|
99
|
+
catch (...)
|
|
100
|
+
{
|
|
101
|
+
py::to_PyErr();
|
|
102
|
+
return nullptr;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
static PyMethodDef _methods_DeviceServicingDetails[] = {
|
|
107
|
+
{ "_assign_array_", _assign_array_DeviceServicingDetails, METH_O | METH_STATIC, nullptr },
|
|
108
|
+
{ "_from", reinterpret_cast<PyCFunction>(_from_DeviceServicingDetails), METH_O | METH_STATIC, nullptr },
|
|
109
|
+
{ }
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
static PyGetSetDef _getset_DeviceServicingDetails[] = {
|
|
113
|
+
{ "arguments", reinterpret_cast<getter>(DeviceServicingDetails_get_Arguments), nullptr, nullptr, nullptr },
|
|
114
|
+
{ "device_id", reinterpret_cast<getter>(DeviceServicingDetails_get_DeviceId), nullptr, nullptr, nullptr },
|
|
115
|
+
{ "expected_duration", reinterpret_cast<getter>(DeviceServicingDetails_get_ExpectedDuration), nullptr, nullptr, nullptr },
|
|
116
|
+
{ }
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
static PyType_Slot _type_slots_DeviceServicingDetails[] =
|
|
120
|
+
{
|
|
121
|
+
{ Py_tp_new, reinterpret_cast<void*>(_new_DeviceServicingDetails) },
|
|
122
|
+
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_DeviceServicingDetails) },
|
|
123
|
+
{ Py_tp_methods, reinterpret_cast<void*>(_methods_DeviceServicingDetails) },
|
|
124
|
+
{ Py_tp_getset, reinterpret_cast<void*>(_getset_DeviceServicingDetails) },
|
|
125
|
+
{ },
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
static PyType_Spec type_spec_DeviceServicingDetails =
|
|
129
|
+
{
|
|
130
|
+
"winrt._winrt_windows_devices_background.DeviceServicingDetails",
|
|
131
|
+
sizeof(py::wrapper::Windows::Devices::Background::DeviceServicingDetails),
|
|
132
|
+
0,
|
|
133
|
+
Py_TPFLAGS_DEFAULT,
|
|
134
|
+
_type_slots_DeviceServicingDetails
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
// ----- DeviceUseDetails class --------------------
|
|
138
|
+
|
|
139
|
+
static PyObject* _new_DeviceUseDetails(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
|
|
140
|
+
{
|
|
141
|
+
static_assert(py::py_type<winrt::Windows::Devices::Background::DeviceUseDetails>::type_name);
|
|
142
|
+
py::set_invalid_activation_error(py::py_type<winrt::Windows::Devices::Background::DeviceUseDetails>::type_name);
|
|
143
|
+
return nullptr;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
static void _dealloc_DeviceUseDetails(py::wrapper::Windows::Devices::Background::DeviceUseDetails* self) noexcept
|
|
147
|
+
{
|
|
148
|
+
auto tp = Py_TYPE(self);
|
|
149
|
+
std::destroy_at(&self->obj);
|
|
150
|
+
tp->tp_free(self);
|
|
151
|
+
Py_DECREF(tp);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
static PyObject* DeviceUseDetails_get_Arguments(py::wrapper::Windows::Devices::Background::DeviceUseDetails* self, void* /*unused*/) noexcept
|
|
155
|
+
{
|
|
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
|
+
try
|
|
163
|
+
{
|
|
164
|
+
return py::convert(self->obj.Arguments());
|
|
165
|
+
}
|
|
166
|
+
catch (...)
|
|
167
|
+
{
|
|
168
|
+
py::to_PyErr();
|
|
169
|
+
return nullptr;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
static PyObject* DeviceUseDetails_get_DeviceId(py::wrapper::Windows::Devices::Background::DeviceUseDetails* self, void* /*unused*/) noexcept
|
|
174
|
+
{
|
|
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
|
+
try
|
|
182
|
+
{
|
|
183
|
+
return py::convert(self->obj.DeviceId());
|
|
184
|
+
}
|
|
185
|
+
catch (...)
|
|
186
|
+
{
|
|
187
|
+
py::to_PyErr();
|
|
188
|
+
return nullptr;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
static PyObject* _assign_array_DeviceUseDetails(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
193
|
+
{
|
|
194
|
+
auto array = std::make_unique<py::ComArray<winrt::Windows::Devices::Background::DeviceUseDetails>>();
|
|
195
|
+
if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
|
|
196
|
+
{
|
|
197
|
+
return nullptr;
|
|
198
|
+
}
|
|
199
|
+
Py_RETURN_NONE;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
static PyObject* _from_DeviceUseDetails(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
203
|
+
{
|
|
204
|
+
try
|
|
205
|
+
{
|
|
206
|
+
auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
|
|
207
|
+
return py::convert(return_value.as<winrt::Windows::Devices::Background::DeviceUseDetails>());
|
|
208
|
+
}
|
|
209
|
+
catch (...)
|
|
210
|
+
{
|
|
211
|
+
py::to_PyErr();
|
|
212
|
+
return nullptr;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
static PyMethodDef _methods_DeviceUseDetails[] = {
|
|
217
|
+
{ "_assign_array_", _assign_array_DeviceUseDetails, METH_O | METH_STATIC, nullptr },
|
|
218
|
+
{ "_from", reinterpret_cast<PyCFunction>(_from_DeviceUseDetails), METH_O | METH_STATIC, nullptr },
|
|
219
|
+
{ }
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
static PyGetSetDef _getset_DeviceUseDetails[] = {
|
|
223
|
+
{ "arguments", reinterpret_cast<getter>(DeviceUseDetails_get_Arguments), nullptr, nullptr, nullptr },
|
|
224
|
+
{ "device_id", reinterpret_cast<getter>(DeviceUseDetails_get_DeviceId), nullptr, nullptr, nullptr },
|
|
225
|
+
{ }
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
static PyType_Slot _type_slots_DeviceUseDetails[] =
|
|
229
|
+
{
|
|
230
|
+
{ Py_tp_new, reinterpret_cast<void*>(_new_DeviceUseDetails) },
|
|
231
|
+
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_DeviceUseDetails) },
|
|
232
|
+
{ Py_tp_methods, reinterpret_cast<void*>(_methods_DeviceUseDetails) },
|
|
233
|
+
{ Py_tp_getset, reinterpret_cast<void*>(_getset_DeviceUseDetails) },
|
|
234
|
+
{ },
|
|
235
|
+
};
|
|
236
|
+
|
|
237
|
+
static PyType_Spec type_spec_DeviceUseDetails =
|
|
238
|
+
{
|
|
239
|
+
"winrt._winrt_windows_devices_background.DeviceUseDetails",
|
|
240
|
+
sizeof(py::wrapper::Windows::Devices::Background::DeviceUseDetails),
|
|
241
|
+
0,
|
|
242
|
+
Py_TPFLAGS_DEFAULT,
|
|
243
|
+
_type_slots_DeviceUseDetails
|
|
244
|
+
};
|
|
245
|
+
|
|
246
|
+
// ----- Windows.Devices.Background Initialization --------------------
|
|
247
|
+
PyDoc_STRVAR(module_doc, "Windows::Devices::Background");
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
static PyModuleDef module_def
|
|
251
|
+
= {PyModuleDef_HEAD_INIT,
|
|
252
|
+
"_winrt_windows_devices_background",
|
|
253
|
+
module_doc,
|
|
254
|
+
0,
|
|
255
|
+
nullptr,
|
|
256
|
+
nullptr,
|
|
257
|
+
nullptr,
|
|
258
|
+
nullptr,
|
|
259
|
+
nullptr};
|
|
260
|
+
|
|
261
|
+
} // py::cpp::Windows::Devices::Background
|
|
262
|
+
|
|
263
|
+
PyMODINIT_FUNC PyInit__winrt_windows_devices_background(void) noexcept
|
|
264
|
+
{
|
|
265
|
+
using namespace py::cpp::Windows::Devices::Background;
|
|
266
|
+
|
|
267
|
+
if (py::import_winrt_runtime() == -1)
|
|
268
|
+
{
|
|
269
|
+
return nullptr;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
py::pyobj_handle module{PyModule_Create(&module_def)};
|
|
273
|
+
|
|
274
|
+
if (!module)
|
|
275
|
+
{
|
|
276
|
+
return nullptr;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
auto object_type = py::get_object_type();
|
|
280
|
+
if (!object_type)
|
|
281
|
+
{
|
|
282
|
+
return nullptr;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
py::pyobj_handle object_bases{PyTuple_Pack(1, object_type)};
|
|
286
|
+
|
|
287
|
+
if (!object_bases)
|
|
288
|
+
{
|
|
289
|
+
return nullptr;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
if (py::register_python_type(module.get(), &type_spec_DeviceServicingDetails, object_bases.get(), nullptr) == -1)
|
|
293
|
+
{
|
|
294
|
+
return nullptr;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
if (py::register_python_type(module.get(), &type_spec_DeviceUseDetails, object_bases.get(), nullptr) == -1)
|
|
298
|
+
{
|
|
299
|
+
return nullptr;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
return module.detach();
|
|
304
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
+
|
|
3
|
+
[build-system]
|
|
4
|
+
requires = ["setuptools", "setuptools-scm", "winrt-sdk"]
|
|
5
|
+
build-backend = "setuptools.build_meta"
|
|
6
|
+
|
|
7
|
+
[project]
|
|
8
|
+
name = "winrt-Windows.Devices.Background"
|
|
9
|
+
description = "Python projection of Windows Runtime (WinRT) APIs"
|
|
10
|
+
readme = "README.md"
|
|
11
|
+
license = { text = "MIT" }
|
|
12
|
+
classifiers = [
|
|
13
|
+
"Operating System :: Microsoft :: Windows",
|
|
14
|
+
"Programming Language :: Python :: 3",
|
|
15
|
+
"Programming Language :: Python :: Implementation :: CPython",
|
|
16
|
+
"Intended Audience :: Developers",
|
|
17
|
+
]
|
|
18
|
+
dynamic = ["version", "dependencies", "optional-dependencies"]
|
|
19
|
+
requires-python = ">=3.9,<3.13"
|
|
20
|
+
|
|
21
|
+
[project.urls]
|
|
22
|
+
# Homepage = "https://github.com/pywrint/pywrinrt"
|
|
23
|
+
# Documentation = "https://readthedocs.org"
|
|
24
|
+
Repository = "https://github.com/pywrint/pywrinrt"
|
|
25
|
+
Changelog = "https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md"
|
|
26
|
+
|
|
27
|
+
[tool.setuptools.dynamic]
|
|
28
|
+
version = { file = "pywinrt-version.txt" }
|
|
29
|
+
dependencies = { file = "requirements.txt" }
|
|
30
|
+
optional-dependencies.all = { file = "all-requirements.txt" }
|
|
31
|
+
|
|
32
|
+
[tool.cibuildwheel]
|
|
33
|
+
# use local winrt-sdk build dependency
|
|
34
|
+
environment = { PYTHONPATH="../winrt-sdk/src" }
|
|
35
|
+
# don't install winrt-sdk from PyPI
|
|
36
|
+
build-frontend = { name = "build", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
37
|
+
# don't build for PyPy
|
|
38
|
+
skip = "pp*"
|
|
39
|
+
# suppress warnings about ARM64 testing
|
|
40
|
+
test-skip = "*-win_arm64"
|
|
41
|
+
|
|
42
|
+
[tool.cibuildwheel.windows]
|
|
43
|
+
archs = ["x86", "AMD64", "ARM64"]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.0.0-beta.1
|
|
@@ -0,0 +1,17 @@
|
|
|
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_devices_background",
|
|
10
|
+
sources=["py.Windows.Devices.Background.cpp"],
|
|
11
|
+
include_dirs=get_include_dirs(),
|
|
12
|
+
extra_compile_args=["/std:c++20", "/permissive-"],
|
|
13
|
+
libraries=["windowsapp"],
|
|
14
|
+
)
|
|
15
|
+
],
|
|
16
|
+
package_data={"winrt": ["*.pyi"]},
|
|
17
|
+
)
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
|
|
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
|
|
13
|
+
|
|
14
|
+
Self = typing.TypeVar('Self')
|
|
15
|
+
|
|
16
|
+
class DeviceServicingDetails(winrt.system.Object):
|
|
17
|
+
@staticmethod
|
|
18
|
+
def _from(obj: winrt.system.Object, /) -> DeviceServicingDetails: ...
|
|
19
|
+
@_property
|
|
20
|
+
def arguments(self) -> str: ...
|
|
21
|
+
@_property
|
|
22
|
+
def device_id(self) -> str: ...
|
|
23
|
+
@_property
|
|
24
|
+
def expected_duration(self) -> datetime.timedelta: ...
|
|
25
|
+
|
|
26
|
+
class DeviceUseDetails(winrt.system.Object):
|
|
27
|
+
@staticmethod
|
|
28
|
+
def _from(obj: winrt.system.Object, /) -> DeviceUseDetails: ...
|
|
29
|
+
@_property
|
|
30
|
+
def arguments(self) -> str: ...
|
|
31
|
+
@_property
|
|
32
|
+
def device_id(self) -> str: ...
|
|
33
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
|
|
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
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: winrt-Windows.Devices.Background
|
|
3
|
+
Version: 2.0.0b1
|
|
4
|
+
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
|
+
License: MIT
|
|
6
|
+
Project-URL: Repository, https://github.com/pywrint/pywrinrt
|
|
7
|
+
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
|
|
8
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Requires-Python: <3.13,>=3.9
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
Provides-Extra: all
|
|
15
|
+
|
|
16
|
+
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
17
|
+
|
|
18
|
+
# winrt-Windows.Devices.Background
|
|
19
|
+
|
|
20
|
+
Windows Runtime (WinRT) APIs for for the `Windows.Devices.Background` namespace.
|
|
21
|
+
|
|
22
|
+
This package provides the `winrt.windows.devices.background` module.
|
winrt-Windows.Devices.Background-2.0.0b1/winrt_Windows.Devices.Background.egg-info/SOURCES.txt
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
README.md
|
|
2
|
+
all-requirements.txt
|
|
3
|
+
py.Windows.Devices.Background.cpp
|
|
4
|
+
pyproject.toml
|
|
5
|
+
pywinrt-version.txt
|
|
6
|
+
requirements.txt
|
|
7
|
+
setup.py
|
|
8
|
+
winrt/_winrt_windows_devices_background.pyi
|
|
9
|
+
winrt/windows/devices/background/__init__.py
|
|
10
|
+
winrt_Windows.Devices.Background.egg-info/PKG-INFO
|
|
11
|
+
winrt_Windows.Devices.Background.egg-info/SOURCES.txt
|
|
12
|
+
winrt_Windows.Devices.Background.egg-info/dependency_links.txt
|
|
13
|
+
winrt_Windows.Devices.Background.egg-info/requires.txt
|
|
14
|
+
winrt_Windows.Devices.Background.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
winrt-Windows.Devices.Background-2.0.0b1/winrt_Windows.Devices.Background.egg-info/top_level.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
winrt
|