winrt-Windows.ApplicationModel.Resources 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-2.0.1 → winrt_windows_applicationmodel_resources-2.2.0}/PKG-INFO +5 -5
- winrt_windows_applicationmodel_resources-2.2.0/all-requirements.txt +4 -0
- {winrt_windows_applicationmodel_resources-2.0.1 → winrt_windows_applicationmodel_resources-2.2.0}/py.Windows.ApplicationModel.Resources.cpp +137 -78
- {winrt_windows_applicationmodel_resources-2.0.1 → winrt_windows_applicationmodel_resources-2.2.0}/pyproject.toml +3 -2
- winrt_windows_applicationmodel_resources-2.2.0/pywinrt-version.txt +1 -0
- {winrt_windows_applicationmodel_resources-2.0.1 → winrt_windows_applicationmodel_resources-2.2.0}/requirements.txt +2 -2
- {winrt_windows_applicationmodel_resources-2.0.1 → winrt_windows_applicationmodel_resources-2.2.0}/winrt/_winrt_windows_applicationmodel_resources.pyi +8 -8
- {winrt_windows_applicationmodel_resources-2.0.1 → winrt_windows_applicationmodel_resources-2.2.0}/winrt/windows/applicationmodel/resources/__init__.py +1 -1
- {winrt_windows_applicationmodel_resources-2.0.1 → winrt_windows_applicationmodel_resources-2.2.0}/winrt_Windows.ApplicationModel.Resources.egg-info/PKG-INFO +5 -5
- winrt_windows_applicationmodel_resources-2.2.0/winrt_Windows.ApplicationModel.Resources.egg-info/requires.txt +5 -0
- winrt_windows_applicationmodel_resources-2.0.1/all-requirements.txt +0 -4
- winrt_windows_applicationmodel_resources-2.0.1/pywinrt-version.txt +0 -1
- winrt_windows_applicationmodel_resources-2.0.1/winrt_Windows.ApplicationModel.Resources.egg-info/requires.txt +0 -5
- {winrt_windows_applicationmodel_resources-2.0.1 → winrt_windows_applicationmodel_resources-2.2.0}/README.md +0 -0
- {winrt_windows_applicationmodel_resources-2.0.1 → winrt_windows_applicationmodel_resources-2.2.0}/setup.cfg +0 -0
- {winrt_windows_applicationmodel_resources-2.0.1 → winrt_windows_applicationmodel_resources-2.2.0}/setup.py +0 -0
- {winrt_windows_applicationmodel_resources-2.0.1 → winrt_windows_applicationmodel_resources-2.2.0}/winrt/windows/applicationmodel/resources/py.typed +0 -0
- {winrt_windows_applicationmodel_resources-2.0.1 → winrt_windows_applicationmodel_resources-2.2.0}/winrt_Windows.ApplicationModel.Resources.egg-info/SOURCES.txt +0 -0
- {winrt_windows_applicationmodel_resources-2.0.1 → winrt_windows_applicationmodel_resources-2.2.0}/winrt_Windows.ApplicationModel.Resources.egg-info/dependency_links.txt +0 -0
- {winrt_windows_applicationmodel_resources-2.0.1 → winrt_windows_applicationmodel_resources-2.2.0}/winrt_Windows.ApplicationModel.Resources.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.ApplicationModel.Resources
|
|
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.UI[all]==2.0
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.UI[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.h"
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
namespace py::cpp::Windows::ApplicationModel::Resources
|
|
7
6
|
{
|
|
8
7
|
// ----- ResourceLoader class --------------------
|
|
@@ -22,7 +21,7 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
22
21
|
{
|
|
23
22
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
24
23
|
|
|
25
|
-
winrt::Windows::ApplicationModel::Resources::ResourceLoader instance{
|
|
24
|
+
winrt::Windows::ApplicationModel::Resources::ResourceLoader instance{param0};
|
|
26
25
|
return py::wrap(instance, type);
|
|
27
26
|
}
|
|
28
27
|
catch (...)
|
|
@@ -35,7 +34,7 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
35
34
|
{
|
|
36
35
|
try
|
|
37
36
|
{
|
|
38
|
-
winrt::Windows::ApplicationModel::Resources::ResourceLoader instance{
|
|
37
|
+
winrt::Windows::ApplicationModel::Resources::ResourceLoader instance{};
|
|
39
38
|
return py::wrap(instance, type);
|
|
40
39
|
}
|
|
41
40
|
catch (...)
|
|
@@ -65,14 +64,21 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
65
64
|
|
|
66
65
|
if (arg_count == 1)
|
|
67
66
|
{
|
|
68
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Resources.ResourceLoader", L"GetDefaultPriPath", 1))
|
|
69
|
-
{
|
|
70
|
-
py::set_arg_count_version_error(1);
|
|
71
|
-
return nullptr;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
67
|
try
|
|
75
68
|
{
|
|
69
|
+
static std::optional<bool> is_overload_present{};
|
|
70
|
+
|
|
71
|
+
if (!is_overload_present.has_value())
|
|
72
|
+
{
|
|
73
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Resources.ResourceLoader", L"GetDefaultPriPath", 1);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
if (!is_overload_present.value())
|
|
77
|
+
{
|
|
78
|
+
py::set_arg_count_version_error(1);
|
|
79
|
+
return nullptr;
|
|
80
|
+
}
|
|
81
|
+
|
|
76
82
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
77
83
|
|
|
78
84
|
return py::convert(winrt::Windows::ApplicationModel::Resources::ResourceLoader::GetDefaultPriPath(param0));
|
|
@@ -96,14 +102,21 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
96
102
|
|
|
97
103
|
if (arg_count == 0)
|
|
98
104
|
{
|
|
99
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Resources.ResourceLoader", L"GetForCurrentView", 0))
|
|
100
|
-
{
|
|
101
|
-
py::set_arg_count_version_error(0);
|
|
102
|
-
return nullptr;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
105
|
try
|
|
106
106
|
{
|
|
107
|
+
static std::optional<bool> is_overload_present{};
|
|
108
|
+
|
|
109
|
+
if (!is_overload_present.has_value())
|
|
110
|
+
{
|
|
111
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Resources.ResourceLoader", L"GetForCurrentView", 0);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
if (!is_overload_present.value())
|
|
115
|
+
{
|
|
116
|
+
py::set_arg_count_version_error(0);
|
|
117
|
+
return nullptr;
|
|
118
|
+
}
|
|
119
|
+
|
|
107
120
|
return py::convert(winrt::Windows::ApplicationModel::Resources::ResourceLoader::GetForCurrentView());
|
|
108
121
|
}
|
|
109
122
|
catch (...)
|
|
@@ -114,14 +127,21 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
114
127
|
}
|
|
115
128
|
else if (arg_count == 1)
|
|
116
129
|
{
|
|
117
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Resources.ResourceLoader", L"GetForCurrentView", 1))
|
|
118
|
-
{
|
|
119
|
-
py::set_arg_count_version_error(1);
|
|
120
|
-
return nullptr;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
130
|
try
|
|
124
131
|
{
|
|
132
|
+
static std::optional<bool> is_overload_present{};
|
|
133
|
+
|
|
134
|
+
if (!is_overload_present.has_value())
|
|
135
|
+
{
|
|
136
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Resources.ResourceLoader", L"GetForCurrentView", 1);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
if (!is_overload_present.value())
|
|
140
|
+
{
|
|
141
|
+
py::set_arg_count_version_error(1);
|
|
142
|
+
return nullptr;
|
|
143
|
+
}
|
|
144
|
+
|
|
125
145
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
126
146
|
|
|
127
147
|
return py::convert(winrt::Windows::ApplicationModel::Resources::ResourceLoader::GetForCurrentView(param0));
|
|
@@ -145,14 +165,21 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
145
165
|
|
|
146
166
|
if (arg_count == 1)
|
|
147
167
|
{
|
|
148
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Resources.ResourceLoader", L"GetForUIContext", 1))
|
|
149
|
-
{
|
|
150
|
-
py::set_arg_count_version_error(1);
|
|
151
|
-
return nullptr;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
168
|
try
|
|
155
169
|
{
|
|
170
|
+
static std::optional<bool> is_overload_present{};
|
|
171
|
+
|
|
172
|
+
if (!is_overload_present.has_value())
|
|
173
|
+
{
|
|
174
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Resources.ResourceLoader", L"GetForUIContext", 1);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
if (!is_overload_present.value())
|
|
178
|
+
{
|
|
179
|
+
py::set_arg_count_version_error(1);
|
|
180
|
+
return nullptr;
|
|
181
|
+
}
|
|
182
|
+
|
|
156
183
|
auto param0 = py::convert_to<winrt::Windows::UI::UIContext>(args, 0);
|
|
157
184
|
|
|
158
185
|
return py::convert(winrt::Windows::ApplicationModel::Resources::ResourceLoader::GetForUIContext(param0));
|
|
@@ -176,14 +203,21 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
176
203
|
|
|
177
204
|
if (arg_count == 0)
|
|
178
205
|
{
|
|
179
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Resources.ResourceLoader", L"GetForViewIndependentUse", 0))
|
|
180
|
-
{
|
|
181
|
-
py::set_arg_count_version_error(0);
|
|
182
|
-
return nullptr;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
206
|
try
|
|
186
207
|
{
|
|
208
|
+
static std::optional<bool> is_overload_present{};
|
|
209
|
+
|
|
210
|
+
if (!is_overload_present.has_value())
|
|
211
|
+
{
|
|
212
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Resources.ResourceLoader", L"GetForViewIndependentUse", 0);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
if (!is_overload_present.value())
|
|
216
|
+
{
|
|
217
|
+
py::set_arg_count_version_error(0);
|
|
218
|
+
return nullptr;
|
|
219
|
+
}
|
|
220
|
+
|
|
187
221
|
return py::convert(winrt::Windows::ApplicationModel::Resources::ResourceLoader::GetForViewIndependentUse());
|
|
188
222
|
}
|
|
189
223
|
catch (...)
|
|
@@ -194,14 +228,21 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
194
228
|
}
|
|
195
229
|
else if (arg_count == 1)
|
|
196
230
|
{
|
|
197
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Resources.ResourceLoader", L"GetForViewIndependentUse", 1))
|
|
198
|
-
{
|
|
199
|
-
py::set_arg_count_version_error(1);
|
|
200
|
-
return nullptr;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
231
|
try
|
|
204
232
|
{
|
|
233
|
+
static std::optional<bool> is_overload_present{};
|
|
234
|
+
|
|
235
|
+
if (!is_overload_present.has_value())
|
|
236
|
+
{
|
|
237
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Resources.ResourceLoader", L"GetForViewIndependentUse", 1);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
if (!is_overload_present.value())
|
|
241
|
+
{
|
|
242
|
+
py::set_arg_count_version_error(1);
|
|
243
|
+
return nullptr;
|
|
244
|
+
}
|
|
245
|
+
|
|
205
246
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
206
247
|
|
|
207
248
|
return py::convert(winrt::Windows::ApplicationModel::Resources::ResourceLoader::GetForViewIndependentUse(param0));
|
|
@@ -225,14 +266,21 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
225
266
|
|
|
226
267
|
if (arg_count == 1)
|
|
227
268
|
{
|
|
228
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Resources.ResourceLoader", L"GetString", 1))
|
|
229
|
-
{
|
|
230
|
-
py::set_arg_count_version_error(1);
|
|
231
|
-
return nullptr;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
269
|
try
|
|
235
270
|
{
|
|
271
|
+
static std::optional<bool> is_overload_present{};
|
|
272
|
+
|
|
273
|
+
if (!is_overload_present.has_value())
|
|
274
|
+
{
|
|
275
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Resources.ResourceLoader", L"GetString", 1);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
if (!is_overload_present.value())
|
|
279
|
+
{
|
|
280
|
+
py::set_arg_count_version_error(1);
|
|
281
|
+
return nullptr;
|
|
282
|
+
}
|
|
283
|
+
|
|
236
284
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
237
285
|
|
|
238
286
|
return py::convert(self->obj.GetString(param0));
|
|
@@ -256,14 +304,21 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
256
304
|
|
|
257
305
|
if (arg_count == 1)
|
|
258
306
|
{
|
|
259
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Resources.ResourceLoader", L"GetStringForReference", 1))
|
|
260
|
-
{
|
|
261
|
-
py::set_arg_count_version_error(1);
|
|
262
|
-
return nullptr;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
307
|
try
|
|
266
308
|
{
|
|
309
|
+
static std::optional<bool> is_overload_present{};
|
|
310
|
+
|
|
311
|
+
if (!is_overload_present.has_value())
|
|
312
|
+
{
|
|
313
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Resources.ResourceLoader", L"GetStringForReference", 1);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
if (!is_overload_present.value())
|
|
317
|
+
{
|
|
318
|
+
py::set_arg_count_version_error(1);
|
|
319
|
+
return nullptr;
|
|
320
|
+
}
|
|
321
|
+
|
|
267
322
|
auto param0 = py::convert_to<winrt::Windows::Foundation::Uri>(args, 0);
|
|
268
323
|
|
|
269
324
|
return py::convert(winrt::Windows::ApplicationModel::Resources::ResourceLoader::GetStringForReference(param0));
|
|
@@ -287,14 +342,21 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
287
342
|
|
|
288
343
|
if (arg_count == 1)
|
|
289
344
|
{
|
|
290
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Resources.ResourceLoader", L"GetStringForUri", 1))
|
|
291
|
-
{
|
|
292
|
-
py::set_arg_count_version_error(1);
|
|
293
|
-
return nullptr;
|
|
294
|
-
}
|
|
295
|
-
|
|
296
345
|
try
|
|
297
346
|
{
|
|
347
|
+
static std::optional<bool> is_overload_present{};
|
|
348
|
+
|
|
349
|
+
if (!is_overload_present.has_value())
|
|
350
|
+
{
|
|
351
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Resources.ResourceLoader", L"GetStringForUri", 1);
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
if (!is_overload_present.value())
|
|
355
|
+
{
|
|
356
|
+
py::set_arg_count_version_error(1);
|
|
357
|
+
return nullptr;
|
|
358
|
+
}
|
|
359
|
+
|
|
298
360
|
auto param0 = py::convert_to<winrt::Windows::Foundation::Uri>(args, 0);
|
|
299
361
|
|
|
300
362
|
return py::convert(self->obj.GetStringForUri(param0));
|
|
@@ -348,23 +410,20 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
348
410
|
{ }
|
|
349
411
|
};
|
|
350
412
|
|
|
351
|
-
static PyType_Slot _type_slots_ResourceLoader[] =
|
|
352
|
-
{
|
|
413
|
+
static PyType_Slot _type_slots_ResourceLoader[] = {
|
|
353
414
|
{ Py_tp_new, reinterpret_cast<void*>(_new_ResourceLoader) },
|
|
354
415
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_ResourceLoader) },
|
|
355
416
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_ResourceLoader) },
|
|
356
417
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_ResourceLoader) },
|
|
357
|
-
{ }
|
|
418
|
+
{ }
|
|
358
419
|
};
|
|
359
420
|
|
|
360
|
-
static PyType_Spec type_spec_ResourceLoader =
|
|
361
|
-
{
|
|
421
|
+
static PyType_Spec type_spec_ResourceLoader = {
|
|
362
422
|
"winrt._winrt_windows_applicationmodel_resources.ResourceLoader",
|
|
363
423
|
sizeof(py::wrapper::Windows::ApplicationModel::Resources::ResourceLoader),
|
|
364
424
|
0,
|
|
365
425
|
Py_TPFLAGS_DEFAULT,
|
|
366
|
-
_type_slots_ResourceLoader
|
|
367
|
-
};
|
|
426
|
+
_type_slots_ResourceLoader};
|
|
368
427
|
|
|
369
428
|
static PyGetSetDef getset_ResourceLoader_Static[] = {
|
|
370
429
|
{ }
|
|
@@ -397,20 +456,19 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
397
456
|
};
|
|
398
457
|
|
|
399
458
|
// ----- Windows.ApplicationModel.Resources Initialization --------------------
|
|
400
|
-
PyDoc_STRVAR(module_doc, "Windows::ApplicationModel::Resources");
|
|
401
459
|
|
|
460
|
+
PyDoc_STRVAR(module_doc, "Windows.ApplicationModel.Resources");
|
|
402
461
|
|
|
403
|
-
static PyModuleDef module_def
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
462
|
+
static PyModuleDef module_def = {
|
|
463
|
+
PyModuleDef_HEAD_INIT,
|
|
464
|
+
"_winrt_windows_applicationmodel_resources",
|
|
465
|
+
module_doc,
|
|
466
|
+
0,
|
|
467
|
+
nullptr,
|
|
468
|
+
nullptr,
|
|
469
|
+
nullptr,
|
|
470
|
+
nullptr,
|
|
471
|
+
nullptr};
|
|
414
472
|
} // py::cpp::Windows::ApplicationModel::Resources
|
|
415
473
|
|
|
416
474
|
PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_resources(void) noexcept
|
|
@@ -448,7 +506,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_resources(void) noexcept
|
|
|
448
506
|
return nullptr;
|
|
449
507
|
}
|
|
450
508
|
|
|
451
|
-
|
|
509
|
+
py::pytype_handle ResourceLoader_type{py::register_python_type(module.get(), &type_spec_ResourceLoader, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_ResourceLoader_Static.get()))};
|
|
510
|
+
if (!ResourceLoader_type)
|
|
452
511
|
{
|
|
453
512
|
return nullptr;
|
|
454
513
|
}
|
|
@@ -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.ui
|
|
12
|
+
import winrt.windows.foundation as windows_foundation
|
|
13
|
+
import winrt.windows.ui as windows_ui
|
|
14
14
|
|
|
15
15
|
Self = typing.TypeVar('Self')
|
|
16
16
|
|
|
@@ -21,21 +21,21 @@ class ResourceLoader_Static(type):
|
|
|
21
21
|
def get_for_current_view(cls) -> typing.Optional[ResourceLoader]: ...
|
|
22
22
|
@typing.overload
|
|
23
23
|
def get_for_current_view(cls, name: str, /) -> typing.Optional[ResourceLoader]: ...
|
|
24
|
-
def get_for_u_i_context(cls, context: typing.Optional[
|
|
24
|
+
def get_for_u_i_context(cls, context: typing.Optional[windows_ui.UIContext], /) -> typing.Optional[ResourceLoader]: ...
|
|
25
25
|
@typing.overload
|
|
26
26
|
def get_for_view_independent_use(cls) -> typing.Optional[ResourceLoader]: ...
|
|
27
27
|
@typing.overload
|
|
28
28
|
def get_for_view_independent_use(cls, name: str, /) -> typing.Optional[ResourceLoader]: ...
|
|
29
|
-
def get_string_for_reference(cls, uri: typing.Optional[
|
|
29
|
+
def get_string_for_reference(cls, uri: typing.Optional[windows_foundation.Uri], /) -> str: ...
|
|
30
30
|
|
|
31
31
|
@typing.final
|
|
32
32
|
class ResourceLoader(winrt.system.Object, metaclass=ResourceLoader_Static):
|
|
33
33
|
@staticmethod
|
|
34
34
|
def _from(obj: winrt.system.Object, /) -> ResourceLoader: ...
|
|
35
35
|
@typing.overload
|
|
36
|
-
def __new__(cls: typing.Type[ResourceLoader], name: str) -> ResourceLoader
|
|
36
|
+
def __new__(cls: typing.Type[ResourceLoader], name: str) -> ResourceLoader: ...
|
|
37
37
|
@typing.overload
|
|
38
|
-
def __new__(cls: typing.Type[ResourceLoader]) -> ResourceLoader
|
|
38
|
+
def __new__(cls: typing.Type[ResourceLoader]) -> ResourceLoader: ...
|
|
39
39
|
def get_string(self, resource: str, /) -> str: ...
|
|
40
|
-
def get_string_for_uri(self, uri: typing.Optional[
|
|
40
|
+
def get_string_for_uri(self, uri: typing.Optional[windows_foundation.Uri], /) -> str: ...
|
|
41
41
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.ApplicationModel.Resources
|
|
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.UI[all]==2.0
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.UI[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
|