winrt-Windows.ApplicationModel.Resources.Management 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_applicationmodel_resources_management-2.0.1 → winrt_windows_applicationmodel_resources_management-2.2.0}/PKG-INFO +5 -5
- winrt_windows_applicationmodel_resources_management-2.2.0/all-requirements.txt +4 -0
- {winrt_windows_applicationmodel_resources_management-2.0.1 → winrt_windows_applicationmodel_resources_management-2.2.0}/py.Windows.ApplicationModel.Resources.Management.cpp +162 -100
- {winrt_windows_applicationmodel_resources_management-2.0.1 → winrt_windows_applicationmodel_resources_management-2.2.0}/pyproject.toml +3 -2
- winrt_windows_applicationmodel_resources_management-2.2.0/pywinrt-version.txt +1 -0
- {winrt_windows_applicationmodel_resources_management-2.0.1 → winrt_windows_applicationmodel_resources_management-2.2.0}/requirements.txt +2 -2
- {winrt_windows_applicationmodel_resources_management-2.0.1 → winrt_windows_applicationmodel_resources_management-2.2.0}/winrt/_winrt_windows_applicationmodel_resources_management.pyi +10 -10
- {winrt_windows_applicationmodel_resources_management-2.0.1 → winrt_windows_applicationmodel_resources_management-2.2.0}/winrt/windows/applicationmodel/resources/management/__init__.py +1 -1
- {winrt_windows_applicationmodel_resources_management-2.0.1 → winrt_windows_applicationmodel_resources_management-2.2.0}/winrt_Windows.ApplicationModel.Resources.Management.egg-info/PKG-INFO +5 -5
- winrt_windows_applicationmodel_resources_management-2.2.0/winrt_Windows.ApplicationModel.Resources.Management.egg-info/requires.txt +5 -0
- winrt_windows_applicationmodel_resources_management-2.0.1/all-requirements.txt +0 -4
- winrt_windows_applicationmodel_resources_management-2.0.1/pywinrt-version.txt +0 -1
- winrt_windows_applicationmodel_resources_management-2.0.1/winrt_Windows.ApplicationModel.Resources.Management.egg-info/requires.txt +0 -5
- {winrt_windows_applicationmodel_resources_management-2.0.1 → winrt_windows_applicationmodel_resources_management-2.2.0}/README.md +0 -0
- {winrt_windows_applicationmodel_resources_management-2.0.1 → winrt_windows_applicationmodel_resources_management-2.2.0}/setup.cfg +0 -0
- {winrt_windows_applicationmodel_resources_management-2.0.1 → winrt_windows_applicationmodel_resources_management-2.2.0}/setup.py +0 -0
- {winrt_windows_applicationmodel_resources_management-2.0.1 → winrt_windows_applicationmodel_resources_management-2.2.0}/winrt/windows/applicationmodel/resources/management/py.typed +0 -0
- {winrt_windows_applicationmodel_resources_management-2.0.1 → winrt_windows_applicationmodel_resources_management-2.2.0}/winrt_Windows.ApplicationModel.Resources.Management.egg-info/SOURCES.txt +0 -0
- {winrt_windows_applicationmodel_resources_management-2.0.1 → winrt_windows_applicationmodel_resources_management-2.2.0}/winrt_Windows.ApplicationModel.Resources.Management.egg-info/dependency_links.txt +0 -0
- {winrt_windows_applicationmodel_resources_management-2.0.1 → winrt_windows_applicationmodel_resources_management-2.2.0}/winrt_Windows.ApplicationModel.Resources.Management.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.ApplicationModel.Resources.Management
|
|
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,12 +10,12 @@ 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
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.0
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.2.0; extra == "all"
|
|
19
19
|
|
|
20
20
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
21
21
|
|
|
@@ -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.ApplicationModel.Resources.Management.h"
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
namespace py::cpp::Windows::ApplicationModel::Resources::Management
|
|
7
6
|
{
|
|
8
7
|
// ----- IndexedResourceCandidate class --------------------
|
|
@@ -28,14 +27,21 @@ namespace py::cpp::Windows::ApplicationModel::Resources::Management
|
|
|
28
27
|
|
|
29
28
|
if (arg_count == 1)
|
|
30
29
|
{
|
|
31
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Resources.Management.IndexedResourceCandidate", L"GetQualifierValue", 1))
|
|
32
|
-
{
|
|
33
|
-
py::set_arg_count_version_error(1);
|
|
34
|
-
return nullptr;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
30
|
try
|
|
38
31
|
{
|
|
32
|
+
static std::optional<bool> is_overload_present{};
|
|
33
|
+
|
|
34
|
+
if (!is_overload_present.has_value())
|
|
35
|
+
{
|
|
36
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Resources.Management.IndexedResourceCandidate", L"GetQualifierValue", 1);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if (!is_overload_present.value())
|
|
40
|
+
{
|
|
41
|
+
py::set_arg_count_version_error(1);
|
|
42
|
+
return nullptr;
|
|
43
|
+
}
|
|
44
|
+
|
|
39
45
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
40
46
|
|
|
41
47
|
return py::convert(self->obj.GetQualifierValue(param0));
|
|
@@ -55,14 +61,21 @@ namespace py::cpp::Windows::ApplicationModel::Resources::Management
|
|
|
55
61
|
|
|
56
62
|
static PyObject* IndexedResourceCandidate_get_Metadata(py::wrapper::Windows::ApplicationModel::Resources::Management::IndexedResourceCandidate* self, void* /*unused*/) noexcept
|
|
57
63
|
{
|
|
58
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Resources.Management.IndexedResourceCandidate", L"Metadata"))
|
|
59
|
-
{
|
|
60
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
61
|
-
return nullptr;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
64
|
try
|
|
65
65
|
{
|
|
66
|
+
static std::optional<bool> is_property_present{};
|
|
67
|
+
|
|
68
|
+
if (!is_property_present.has_value())
|
|
69
|
+
{
|
|
70
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Resources.Management.IndexedResourceCandidate", L"Metadata");
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
if (!is_property_present.value())
|
|
74
|
+
{
|
|
75
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
76
|
+
return nullptr;
|
|
77
|
+
}
|
|
78
|
+
|
|
66
79
|
return py::convert(self->obj.Metadata());
|
|
67
80
|
}
|
|
68
81
|
catch (...)
|
|
@@ -74,14 +87,21 @@ namespace py::cpp::Windows::ApplicationModel::Resources::Management
|
|
|
74
87
|
|
|
75
88
|
static PyObject* IndexedResourceCandidate_get_Qualifiers(py::wrapper::Windows::ApplicationModel::Resources::Management::IndexedResourceCandidate* self, void* /*unused*/) noexcept
|
|
76
89
|
{
|
|
77
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Resources.Management.IndexedResourceCandidate", L"Qualifiers"))
|
|
78
|
-
{
|
|
79
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
80
|
-
return nullptr;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
90
|
try
|
|
84
91
|
{
|
|
92
|
+
static std::optional<bool> is_property_present{};
|
|
93
|
+
|
|
94
|
+
if (!is_property_present.has_value())
|
|
95
|
+
{
|
|
96
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Resources.Management.IndexedResourceCandidate", L"Qualifiers");
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
if (!is_property_present.value())
|
|
100
|
+
{
|
|
101
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
102
|
+
return nullptr;
|
|
103
|
+
}
|
|
104
|
+
|
|
85
105
|
return py::convert(self->obj.Qualifiers());
|
|
86
106
|
}
|
|
87
107
|
catch (...)
|
|
@@ -93,14 +113,21 @@ namespace py::cpp::Windows::ApplicationModel::Resources::Management
|
|
|
93
113
|
|
|
94
114
|
static PyObject* IndexedResourceCandidate_get_Type(py::wrapper::Windows::ApplicationModel::Resources::Management::IndexedResourceCandidate* self, void* /*unused*/) noexcept
|
|
95
115
|
{
|
|
96
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Resources.Management.IndexedResourceCandidate", L"Type"))
|
|
97
|
-
{
|
|
98
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
99
|
-
return nullptr;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
116
|
try
|
|
103
117
|
{
|
|
118
|
+
static std::optional<bool> is_property_present{};
|
|
119
|
+
|
|
120
|
+
if (!is_property_present.has_value())
|
|
121
|
+
{
|
|
122
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Resources.Management.IndexedResourceCandidate", L"Type");
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
if (!is_property_present.value())
|
|
126
|
+
{
|
|
127
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
128
|
+
return nullptr;
|
|
129
|
+
}
|
|
130
|
+
|
|
104
131
|
return py::convert(self->obj.Type());
|
|
105
132
|
}
|
|
106
133
|
catch (...)
|
|
@@ -112,14 +139,21 @@ namespace py::cpp::Windows::ApplicationModel::Resources::Management
|
|
|
112
139
|
|
|
113
140
|
static PyObject* IndexedResourceCandidate_get_Uri(py::wrapper::Windows::ApplicationModel::Resources::Management::IndexedResourceCandidate* self, void* /*unused*/) noexcept
|
|
114
141
|
{
|
|
115
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Resources.Management.IndexedResourceCandidate", L"Uri"))
|
|
116
|
-
{
|
|
117
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
118
|
-
return nullptr;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
142
|
try
|
|
122
143
|
{
|
|
144
|
+
static std::optional<bool> is_property_present{};
|
|
145
|
+
|
|
146
|
+
if (!is_property_present.has_value())
|
|
147
|
+
{
|
|
148
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Resources.Management.IndexedResourceCandidate", L"Uri");
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
if (!is_property_present.value())
|
|
152
|
+
{
|
|
153
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
154
|
+
return nullptr;
|
|
155
|
+
}
|
|
156
|
+
|
|
123
157
|
return py::convert(self->obj.Uri());
|
|
124
158
|
}
|
|
125
159
|
catch (...)
|
|
@@ -131,14 +165,21 @@ namespace py::cpp::Windows::ApplicationModel::Resources::Management
|
|
|
131
165
|
|
|
132
166
|
static PyObject* IndexedResourceCandidate_get_ValueAsString(py::wrapper::Windows::ApplicationModel::Resources::Management::IndexedResourceCandidate* self, void* /*unused*/) noexcept
|
|
133
167
|
{
|
|
134
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Resources.Management.IndexedResourceCandidate", L"ValueAsString"))
|
|
135
|
-
{
|
|
136
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
137
|
-
return nullptr;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
168
|
try
|
|
141
169
|
{
|
|
170
|
+
static std::optional<bool> is_property_present{};
|
|
171
|
+
|
|
172
|
+
if (!is_property_present.has_value())
|
|
173
|
+
{
|
|
174
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Resources.Management.IndexedResourceCandidate", L"ValueAsString");
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
if (!is_property_present.value())
|
|
178
|
+
{
|
|
179
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
180
|
+
return nullptr;
|
|
181
|
+
}
|
|
182
|
+
|
|
142
183
|
return py::convert(self->obj.ValueAsString());
|
|
143
184
|
}
|
|
144
185
|
catch (...)
|
|
@@ -188,23 +229,20 @@ namespace py::cpp::Windows::ApplicationModel::Resources::Management
|
|
|
188
229
|
{ }
|
|
189
230
|
};
|
|
190
231
|
|
|
191
|
-
static PyType_Slot _type_slots_IndexedResourceCandidate[] =
|
|
192
|
-
{
|
|
232
|
+
static PyType_Slot _type_slots_IndexedResourceCandidate[] = {
|
|
193
233
|
{ Py_tp_new, reinterpret_cast<void*>(_new_IndexedResourceCandidate) },
|
|
194
234
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_IndexedResourceCandidate) },
|
|
195
235
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_IndexedResourceCandidate) },
|
|
196
236
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_IndexedResourceCandidate) },
|
|
197
|
-
{ }
|
|
237
|
+
{ }
|
|
198
238
|
};
|
|
199
239
|
|
|
200
|
-
static PyType_Spec type_spec_IndexedResourceCandidate =
|
|
201
|
-
{
|
|
240
|
+
static PyType_Spec type_spec_IndexedResourceCandidate = {
|
|
202
241
|
"winrt._winrt_windows_applicationmodel_resources_management.IndexedResourceCandidate",
|
|
203
242
|
sizeof(py::wrapper::Windows::ApplicationModel::Resources::Management::IndexedResourceCandidate),
|
|
204
243
|
0,
|
|
205
244
|
Py_TPFLAGS_DEFAULT,
|
|
206
|
-
_type_slots_IndexedResourceCandidate
|
|
207
|
-
};
|
|
245
|
+
_type_slots_IndexedResourceCandidate};
|
|
208
246
|
|
|
209
247
|
// ----- IndexedResourceQualifier class --------------------
|
|
210
248
|
|
|
@@ -225,14 +263,21 @@ namespace py::cpp::Windows::ApplicationModel::Resources::Management
|
|
|
225
263
|
|
|
226
264
|
static PyObject* IndexedResourceQualifier_get_QualifierName(py::wrapper::Windows::ApplicationModel::Resources::Management::IndexedResourceQualifier* self, void* /*unused*/) noexcept
|
|
227
265
|
{
|
|
228
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Resources.Management.IndexedResourceQualifier", L"QualifierName"))
|
|
229
|
-
{
|
|
230
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
231
|
-
return nullptr;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
266
|
try
|
|
235
267
|
{
|
|
268
|
+
static std::optional<bool> is_property_present{};
|
|
269
|
+
|
|
270
|
+
if (!is_property_present.has_value())
|
|
271
|
+
{
|
|
272
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Resources.Management.IndexedResourceQualifier", L"QualifierName");
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
if (!is_property_present.value())
|
|
276
|
+
{
|
|
277
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
278
|
+
return nullptr;
|
|
279
|
+
}
|
|
280
|
+
|
|
236
281
|
return py::convert(self->obj.QualifierName());
|
|
237
282
|
}
|
|
238
283
|
catch (...)
|
|
@@ -244,14 +289,21 @@ namespace py::cpp::Windows::ApplicationModel::Resources::Management
|
|
|
244
289
|
|
|
245
290
|
static PyObject* IndexedResourceQualifier_get_QualifierValue(py::wrapper::Windows::ApplicationModel::Resources::Management::IndexedResourceQualifier* self, void* /*unused*/) noexcept
|
|
246
291
|
{
|
|
247
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Resources.Management.IndexedResourceQualifier", L"QualifierValue"))
|
|
248
|
-
{
|
|
249
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
250
|
-
return nullptr;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
292
|
try
|
|
254
293
|
{
|
|
294
|
+
static std::optional<bool> is_property_present{};
|
|
295
|
+
|
|
296
|
+
if (!is_property_present.has_value())
|
|
297
|
+
{
|
|
298
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Resources.Management.IndexedResourceQualifier", L"QualifierValue");
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
if (!is_property_present.value())
|
|
302
|
+
{
|
|
303
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
304
|
+
return nullptr;
|
|
305
|
+
}
|
|
306
|
+
|
|
255
307
|
return py::convert(self->obj.QualifierValue());
|
|
256
308
|
}
|
|
257
309
|
catch (...)
|
|
@@ -297,23 +349,20 @@ namespace py::cpp::Windows::ApplicationModel::Resources::Management
|
|
|
297
349
|
{ }
|
|
298
350
|
};
|
|
299
351
|
|
|
300
|
-
static PyType_Slot _type_slots_IndexedResourceQualifier[] =
|
|
301
|
-
{
|
|
352
|
+
static PyType_Slot _type_slots_IndexedResourceQualifier[] = {
|
|
302
353
|
{ Py_tp_new, reinterpret_cast<void*>(_new_IndexedResourceQualifier) },
|
|
303
354
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_IndexedResourceQualifier) },
|
|
304
355
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_IndexedResourceQualifier) },
|
|
305
356
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_IndexedResourceQualifier) },
|
|
306
|
-
{ }
|
|
357
|
+
{ }
|
|
307
358
|
};
|
|
308
359
|
|
|
309
|
-
static PyType_Spec type_spec_IndexedResourceQualifier =
|
|
310
|
-
{
|
|
360
|
+
static PyType_Spec type_spec_IndexedResourceQualifier = {
|
|
311
361
|
"winrt._winrt_windows_applicationmodel_resources_management.IndexedResourceQualifier",
|
|
312
362
|
sizeof(py::wrapper::Windows::ApplicationModel::Resources::Management::IndexedResourceQualifier),
|
|
313
363
|
0,
|
|
314
364
|
Py_TPFLAGS_DEFAULT,
|
|
315
|
-
_type_slots_IndexedResourceQualifier
|
|
316
|
-
};
|
|
365
|
+
_type_slots_IndexedResourceQualifier};
|
|
317
366
|
|
|
318
367
|
// ----- ResourceIndexer class --------------------
|
|
319
368
|
|
|
@@ -333,7 +382,7 @@ namespace py::cpp::Windows::ApplicationModel::Resources::Management
|
|
|
333
382
|
auto param0 = py::convert_to<winrt::Windows::Foundation::Uri>(args, 0);
|
|
334
383
|
auto param1 = py::convert_to<winrt::Windows::Foundation::Uri>(args, 1);
|
|
335
384
|
|
|
336
|
-
winrt::Windows::ApplicationModel::Resources::Management::ResourceIndexer instance{
|
|
385
|
+
winrt::Windows::ApplicationModel::Resources::Management::ResourceIndexer instance{param0, param1};
|
|
337
386
|
return py::wrap(instance, type);
|
|
338
387
|
}
|
|
339
388
|
catch (...)
|
|
@@ -348,7 +397,7 @@ namespace py::cpp::Windows::ApplicationModel::Resources::Management
|
|
|
348
397
|
{
|
|
349
398
|
auto param0 = py::convert_to<winrt::Windows::Foundation::Uri>(args, 0);
|
|
350
399
|
|
|
351
|
-
winrt::Windows::ApplicationModel::Resources::Management::ResourceIndexer instance{
|
|
400
|
+
winrt::Windows::ApplicationModel::Resources::Management::ResourceIndexer instance{param0};
|
|
352
401
|
return py::wrap(instance, type);
|
|
353
402
|
}
|
|
354
403
|
catch (...)
|
|
@@ -378,14 +427,21 @@ namespace py::cpp::Windows::ApplicationModel::Resources::Management
|
|
|
378
427
|
|
|
379
428
|
if (arg_count == 1)
|
|
380
429
|
{
|
|
381
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Resources.Management.ResourceIndexer", L"IndexFileContentsAsync", 1))
|
|
382
|
-
{
|
|
383
|
-
py::set_arg_count_version_error(1);
|
|
384
|
-
return nullptr;
|
|
385
|
-
}
|
|
386
|
-
|
|
387
430
|
try
|
|
388
431
|
{
|
|
432
|
+
static std::optional<bool> is_overload_present{};
|
|
433
|
+
|
|
434
|
+
if (!is_overload_present.has_value())
|
|
435
|
+
{
|
|
436
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Resources.Management.ResourceIndexer", L"IndexFileContentsAsync", 1);
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
if (!is_overload_present.value())
|
|
440
|
+
{
|
|
441
|
+
py::set_arg_count_version_error(1);
|
|
442
|
+
return nullptr;
|
|
443
|
+
}
|
|
444
|
+
|
|
389
445
|
auto param0 = py::convert_to<winrt::Windows::Foundation::Uri>(args, 0);
|
|
390
446
|
|
|
391
447
|
return py::convert(self->obj.IndexFileContentsAsync(param0));
|
|
@@ -409,14 +465,21 @@ namespace py::cpp::Windows::ApplicationModel::Resources::Management
|
|
|
409
465
|
|
|
410
466
|
if (arg_count == 1)
|
|
411
467
|
{
|
|
412
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Resources.Management.ResourceIndexer", L"IndexFilePath", 1))
|
|
413
|
-
{
|
|
414
|
-
py::set_arg_count_version_error(1);
|
|
415
|
-
return nullptr;
|
|
416
|
-
}
|
|
417
|
-
|
|
418
468
|
try
|
|
419
469
|
{
|
|
470
|
+
static std::optional<bool> is_overload_present{};
|
|
471
|
+
|
|
472
|
+
if (!is_overload_present.has_value())
|
|
473
|
+
{
|
|
474
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Resources.Management.ResourceIndexer", L"IndexFilePath", 1);
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
if (!is_overload_present.value())
|
|
478
|
+
{
|
|
479
|
+
py::set_arg_count_version_error(1);
|
|
480
|
+
return nullptr;
|
|
481
|
+
}
|
|
482
|
+
|
|
420
483
|
auto param0 = py::convert_to<winrt::Windows::Foundation::Uri>(args, 0);
|
|
421
484
|
|
|
422
485
|
return py::convert(self->obj.IndexFilePath(param0));
|
|
@@ -470,39 +533,35 @@ namespace py::cpp::Windows::ApplicationModel::Resources::Management
|
|
|
470
533
|
{ }
|
|
471
534
|
};
|
|
472
535
|
|
|
473
|
-
static PyType_Slot _type_slots_ResourceIndexer[] =
|
|
474
|
-
{
|
|
536
|
+
static PyType_Slot _type_slots_ResourceIndexer[] = {
|
|
475
537
|
{ Py_tp_new, reinterpret_cast<void*>(_new_ResourceIndexer) },
|
|
476
538
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_ResourceIndexer) },
|
|
477
539
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_ResourceIndexer) },
|
|
478
540
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_ResourceIndexer) },
|
|
479
|
-
{ }
|
|
541
|
+
{ }
|
|
480
542
|
};
|
|
481
543
|
|
|
482
|
-
static PyType_Spec type_spec_ResourceIndexer =
|
|
483
|
-
{
|
|
544
|
+
static PyType_Spec type_spec_ResourceIndexer = {
|
|
484
545
|
"winrt._winrt_windows_applicationmodel_resources_management.ResourceIndexer",
|
|
485
546
|
sizeof(py::wrapper::Windows::ApplicationModel::Resources::Management::ResourceIndexer),
|
|
486
547
|
0,
|
|
487
548
|
Py_TPFLAGS_DEFAULT,
|
|
488
|
-
_type_slots_ResourceIndexer
|
|
489
|
-
};
|
|
549
|
+
_type_slots_ResourceIndexer};
|
|
490
550
|
|
|
491
551
|
// ----- Windows.ApplicationModel.Resources.Management Initialization --------------------
|
|
492
|
-
PyDoc_STRVAR(module_doc, "Windows::ApplicationModel::Resources::Management");
|
|
493
|
-
|
|
494
552
|
|
|
495
|
-
|
|
496
|
-
= {PyModuleDef_HEAD_INIT,
|
|
497
|
-
"_winrt_windows_applicationmodel_resources_management",
|
|
498
|
-
module_doc,
|
|
499
|
-
0,
|
|
500
|
-
nullptr,
|
|
501
|
-
nullptr,
|
|
502
|
-
nullptr,
|
|
503
|
-
nullptr,
|
|
504
|
-
nullptr};
|
|
553
|
+
PyDoc_STRVAR(module_doc, "Windows.ApplicationModel.Resources.Management");
|
|
505
554
|
|
|
555
|
+
static PyModuleDef module_def = {
|
|
556
|
+
PyModuleDef_HEAD_INIT,
|
|
557
|
+
"_winrt_windows_applicationmodel_resources_management",
|
|
558
|
+
module_doc,
|
|
559
|
+
0,
|
|
560
|
+
nullptr,
|
|
561
|
+
nullptr,
|
|
562
|
+
nullptr,
|
|
563
|
+
nullptr,
|
|
564
|
+
nullptr};
|
|
506
565
|
} // py::cpp::Windows::ApplicationModel::Resources::Management
|
|
507
566
|
|
|
508
567
|
PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_resources_management(void) noexcept
|
|
@@ -534,17 +593,20 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_resources_management(void)
|
|
|
534
593
|
return nullptr;
|
|
535
594
|
}
|
|
536
595
|
|
|
537
|
-
|
|
596
|
+
py::pytype_handle IndexedResourceCandidate_type{py::register_python_type(module.get(), &type_spec_IndexedResourceCandidate, object_bases.get(), nullptr)};
|
|
597
|
+
if (!IndexedResourceCandidate_type)
|
|
538
598
|
{
|
|
539
599
|
return nullptr;
|
|
540
600
|
}
|
|
541
601
|
|
|
542
|
-
|
|
602
|
+
py::pytype_handle IndexedResourceQualifier_type{py::register_python_type(module.get(), &type_spec_IndexedResourceQualifier, object_bases.get(), nullptr)};
|
|
603
|
+
if (!IndexedResourceQualifier_type)
|
|
543
604
|
{
|
|
544
605
|
return nullptr;
|
|
545
606
|
}
|
|
546
607
|
|
|
547
|
-
|
|
608
|
+
py::pytype_handle ResourceIndexer_type{py::register_python_type(module.get(), &type_spec_ResourceIndexer, object_bases.get(), nullptr)};
|
|
609
|
+
if (!ResourceIndexer_type)
|
|
548
610
|
{
|
|
549
611
|
return nullptr;
|
|
550
612
|
}
|
|
@@ -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
|
|
@@ -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,8 +9,8 @@ from builtins import property as _property
|
|
|
9
9
|
|
|
10
10
|
import winrt._winrt
|
|
11
11
|
import winrt.system
|
|
12
|
-
import winrt.windows.foundation
|
|
13
|
-
import winrt.windows.foundation.collections
|
|
12
|
+
import winrt.windows.foundation as windows_foundation
|
|
13
|
+
import winrt.windows.foundation.collections as windows_foundation_collections
|
|
14
14
|
|
|
15
15
|
from winrt.windows.applicationmodel.resources.management import IndexedResourceType
|
|
16
16
|
|
|
@@ -22,13 +22,13 @@ class IndexedResourceCandidate(winrt.system.Object):
|
|
|
22
22
|
def _from(obj: winrt.system.Object, /) -> IndexedResourceCandidate: ...
|
|
23
23
|
def get_qualifier_value(self, qualifier_name: str, /) -> str: ...
|
|
24
24
|
@_property
|
|
25
|
-
def metadata(self) -> typing.Optional[
|
|
25
|
+
def metadata(self) -> typing.Optional[windows_foundation_collections.IMapView[str, str]]: ...
|
|
26
26
|
@_property
|
|
27
|
-
def qualifiers(self) -> typing.Optional[
|
|
27
|
+
def qualifiers(self) -> typing.Optional[windows_foundation_collections.IVectorView[IndexedResourceQualifier]]: ...
|
|
28
28
|
@_property
|
|
29
29
|
def type(self) -> IndexedResourceType: ...
|
|
30
30
|
@_property
|
|
31
|
-
def uri(self) -> typing.Optional[
|
|
31
|
+
def uri(self) -> typing.Optional[windows_foundation.Uri]: ...
|
|
32
32
|
@_property
|
|
33
33
|
def value_as_string(self) -> str: ...
|
|
34
34
|
|
|
@@ -46,9 +46,9 @@ class ResourceIndexer(winrt.system.Object):
|
|
|
46
46
|
@staticmethod
|
|
47
47
|
def _from(obj: winrt.system.Object, /) -> ResourceIndexer: ...
|
|
48
48
|
@typing.overload
|
|
49
|
-
def __new__(cls: typing.Type[ResourceIndexer], project_root: typing.Optional[
|
|
49
|
+
def __new__(cls: typing.Type[ResourceIndexer], project_root: typing.Optional[windows_foundation.Uri], extension_dll_path: typing.Optional[windows_foundation.Uri]) -> ResourceIndexer: ...
|
|
50
50
|
@typing.overload
|
|
51
|
-
def __new__(cls: typing.Type[ResourceIndexer], project_root: typing.Optional[
|
|
52
|
-
def index_file_contents_async(self, file: typing.Optional[
|
|
53
|
-
def index_file_path(self, file_path: typing.Optional[
|
|
51
|
+
def __new__(cls: typing.Type[ResourceIndexer], project_root: typing.Optional[windows_foundation.Uri]) -> ResourceIndexer: ...
|
|
52
|
+
def index_file_contents_async(self, file: typing.Optional[windows_foundation.Uri], /) -> windows_foundation.IAsyncOperation[windows_foundation_collections.IVectorView[IndexedResourceCandidate]]: ...
|
|
53
|
+
def index_file_path(self, file_path: typing.Optional[windows_foundation.Uri], /) -> typing.Optional[IndexedResourceCandidate]: ...
|
|
54
54
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.ApplicationModel.Resources.Management
|
|
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,12 +10,12 @@ 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
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.0
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.2.0; extra == "all"
|
|
19
19
|
|
|
20
20
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
21
21
|
|
|
@@ -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
|