winrt-Windows.ApplicationModel.Resources 2.3.0__tar.gz → 3.0.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.3.0 → winrt_windows_applicationmodel_resources-3.0.0}/PKG-INFO +5 -5
- winrt_windows_applicationmodel_resources-3.0.0/all-requirements.txt +4 -0
- {winrt_windows_applicationmodel_resources-2.3.0 → winrt_windows_applicationmodel_resources-3.0.0}/py.Windows.ApplicationModel.Resources.cpp +102 -37
- {winrt_windows_applicationmodel_resources-2.3.0 → winrt_windows_applicationmodel_resources-3.0.0}/pyproject.toml +2 -2
- winrt_windows_applicationmodel_resources-3.0.0/pywinrt-version.txt +1 -0
- {winrt_windows_applicationmodel_resources-2.3.0 → winrt_windows_applicationmodel_resources-3.0.0}/requirements.txt +2 -2
- {winrt_windows_applicationmodel_resources-2.3.0 → winrt_windows_applicationmodel_resources-3.0.0}/setup.py +1 -1
- winrt_windows_applicationmodel_resources-3.0.0/winrt/_winrt_windows_applicationmodel_resources.pyi +44 -0
- winrt_windows_applicationmodel_resources-3.0.0/winrt/windows/applicationmodel/resources/__init__.py +11 -0
- {winrt_windows_applicationmodel_resources-2.3.0 → winrt_windows_applicationmodel_resources-3.0.0}/winrt_Windows.ApplicationModel.Resources.egg-info/PKG-INFO +5 -5
- winrt_windows_applicationmodel_resources-3.0.0/winrt_Windows.ApplicationModel.Resources.egg-info/requires.txt +5 -0
- winrt_windows_applicationmodel_resources-2.3.0/all-requirements.txt +0 -4
- winrt_windows_applicationmodel_resources-2.3.0/pywinrt-version.txt +0 -1
- winrt_windows_applicationmodel_resources-2.3.0/winrt/_winrt_windows_applicationmodel_resources.pyi +0 -41
- winrt_windows_applicationmodel_resources-2.3.0/winrt/windows/applicationmodel/resources/__init__.py +0 -10
- winrt_windows_applicationmodel_resources-2.3.0/winrt_Windows.ApplicationModel.Resources.egg-info/requires.txt +0 -5
- {winrt_windows_applicationmodel_resources-2.3.0 → winrt_windows_applicationmodel_resources-3.0.0}/README.md +0 -0
- {winrt_windows_applicationmodel_resources-2.3.0 → winrt_windows_applicationmodel_resources-3.0.0}/setup.cfg +0 -0
- {winrt_windows_applicationmodel_resources-2.3.0 → winrt_windows_applicationmodel_resources-3.0.0}/winrt/windows/applicationmodel/resources/py.typed +0 -0
- {winrt_windows_applicationmodel_resources-2.3.0 → winrt_windows_applicationmodel_resources-3.0.0}/winrt_Windows.ApplicationModel.Resources.egg-info/SOURCES.txt +0 -0
- {winrt_windows_applicationmodel_resources-2.3.0 → winrt_windows_applicationmodel_resources-3.0.0}/winrt_Windows.ApplicationModel.Resources.egg-info/dependency_links.txt +0 -0
- {winrt_windows_applicationmodel_resources-2.3.0 → winrt_windows_applicationmodel_resources-3.0.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:
|
|
3
|
+
Version: 3.0.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:
|
|
13
|
+
Requires-Python: >=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==
|
|
15
|
+
Requires-Dist: winrt-runtime==3.0.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==
|
|
18
|
-
Requires-Dist: winrt-Windows.UI[all]==
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==3.0.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.UI[all]==3.0.0; extra == "all"
|
|
19
19
|
|
|
20
20
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
21
21
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.ApplicationModel.Resources.h"
|
|
4
4
|
|
|
@@ -8,13 +8,13 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
8
8
|
|
|
9
9
|
static PyObject* _new_ResourceLoader(PyTypeObject* type, PyObject* args, PyObject* kwds) noexcept
|
|
10
10
|
{
|
|
11
|
-
if (kwds
|
|
11
|
+
if (kwds)
|
|
12
12
|
{
|
|
13
13
|
py::set_invalid_kwd_args_error();
|
|
14
14
|
return nullptr;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
auto arg_count =
|
|
17
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
18
18
|
if (arg_count == 1)
|
|
19
19
|
{
|
|
20
20
|
try
|
|
@@ -60,7 +60,7 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
60
60
|
|
|
61
61
|
static PyObject* ResourceLoader_GetDefaultPriPath(PyObject* /*unused*/, PyObject* args) noexcept
|
|
62
62
|
{
|
|
63
|
-
auto arg_count =
|
|
63
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
64
64
|
|
|
65
65
|
if (arg_count == 1)
|
|
66
66
|
{
|
|
@@ -81,7 +81,11 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
81
81
|
|
|
82
82
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
83
83
|
|
|
84
|
-
return py::convert(
|
|
84
|
+
return py::convert([&]()
|
|
85
|
+
{
|
|
86
|
+
auto _gil = release_gil();
|
|
87
|
+
return winrt::Windows::ApplicationModel::Resources::ResourceLoader::GetDefaultPriPath(param0);
|
|
88
|
+
}());
|
|
85
89
|
}
|
|
86
90
|
catch (...)
|
|
87
91
|
{
|
|
@@ -98,7 +102,7 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
98
102
|
|
|
99
103
|
static PyObject* ResourceLoader_GetForCurrentView(PyObject* /*unused*/, PyObject* args) noexcept
|
|
100
104
|
{
|
|
101
|
-
auto arg_count =
|
|
105
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
102
106
|
|
|
103
107
|
if (arg_count == 0)
|
|
104
108
|
{
|
|
@@ -117,7 +121,11 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
117
121
|
return nullptr;
|
|
118
122
|
}
|
|
119
123
|
|
|
120
|
-
return py::convert(
|
|
124
|
+
return py::convert([&]()
|
|
125
|
+
{
|
|
126
|
+
auto _gil = release_gil();
|
|
127
|
+
return winrt::Windows::ApplicationModel::Resources::ResourceLoader::GetForCurrentView();
|
|
128
|
+
}());
|
|
121
129
|
}
|
|
122
130
|
catch (...)
|
|
123
131
|
{
|
|
@@ -125,7 +133,18 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
125
133
|
return nullptr;
|
|
126
134
|
}
|
|
127
135
|
}
|
|
128
|
-
else
|
|
136
|
+
else
|
|
137
|
+
{
|
|
138
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
139
|
+
return nullptr;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
static PyObject* ResourceLoader_GetForCurrentViewWithName(PyObject* /*unused*/, PyObject* args) noexcept
|
|
144
|
+
{
|
|
145
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
146
|
+
|
|
147
|
+
if (arg_count == 1)
|
|
129
148
|
{
|
|
130
149
|
try
|
|
131
150
|
{
|
|
@@ -144,7 +163,11 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
144
163
|
|
|
145
164
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
146
165
|
|
|
147
|
-
return py::convert(
|
|
166
|
+
return py::convert([&]()
|
|
167
|
+
{
|
|
168
|
+
auto _gil = release_gil();
|
|
169
|
+
return winrt::Windows::ApplicationModel::Resources::ResourceLoader::GetForCurrentView(param0);
|
|
170
|
+
}());
|
|
148
171
|
}
|
|
149
172
|
catch (...)
|
|
150
173
|
{
|
|
@@ -161,7 +184,7 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
161
184
|
|
|
162
185
|
static PyObject* ResourceLoader_GetForUIContext(PyObject* /*unused*/, PyObject* args) noexcept
|
|
163
186
|
{
|
|
164
|
-
auto arg_count =
|
|
187
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
165
188
|
|
|
166
189
|
if (arg_count == 1)
|
|
167
190
|
{
|
|
@@ -182,7 +205,11 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
182
205
|
|
|
183
206
|
auto param0 = py::convert_to<winrt::Windows::UI::UIContext>(args, 0);
|
|
184
207
|
|
|
185
|
-
return py::convert(
|
|
208
|
+
return py::convert([&]()
|
|
209
|
+
{
|
|
210
|
+
auto _gil = release_gil();
|
|
211
|
+
return winrt::Windows::ApplicationModel::Resources::ResourceLoader::GetForUIContext(param0);
|
|
212
|
+
}());
|
|
186
213
|
}
|
|
187
214
|
catch (...)
|
|
188
215
|
{
|
|
@@ -199,7 +226,7 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
199
226
|
|
|
200
227
|
static PyObject* ResourceLoader_GetForViewIndependentUse(PyObject* /*unused*/, PyObject* args) noexcept
|
|
201
228
|
{
|
|
202
|
-
auto arg_count =
|
|
229
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
203
230
|
|
|
204
231
|
if (arg_count == 0)
|
|
205
232
|
{
|
|
@@ -218,7 +245,11 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
218
245
|
return nullptr;
|
|
219
246
|
}
|
|
220
247
|
|
|
221
|
-
return py::convert(
|
|
248
|
+
return py::convert([&]()
|
|
249
|
+
{
|
|
250
|
+
auto _gil = release_gil();
|
|
251
|
+
return winrt::Windows::ApplicationModel::Resources::ResourceLoader::GetForViewIndependentUse();
|
|
252
|
+
}());
|
|
222
253
|
}
|
|
223
254
|
catch (...)
|
|
224
255
|
{
|
|
@@ -226,7 +257,18 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
226
257
|
return nullptr;
|
|
227
258
|
}
|
|
228
259
|
}
|
|
229
|
-
else
|
|
260
|
+
else
|
|
261
|
+
{
|
|
262
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
263
|
+
return nullptr;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
static PyObject* ResourceLoader_GetForViewIndependentUseWithName(PyObject* /*unused*/, PyObject* args) noexcept
|
|
268
|
+
{
|
|
269
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
270
|
+
|
|
271
|
+
if (arg_count == 1)
|
|
230
272
|
{
|
|
231
273
|
try
|
|
232
274
|
{
|
|
@@ -245,7 +287,11 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
245
287
|
|
|
246
288
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
247
289
|
|
|
248
|
-
return py::convert(
|
|
290
|
+
return py::convert([&]()
|
|
291
|
+
{
|
|
292
|
+
auto _gil = release_gil();
|
|
293
|
+
return winrt::Windows::ApplicationModel::Resources::ResourceLoader::GetForViewIndependentUse(param0);
|
|
294
|
+
}());
|
|
249
295
|
}
|
|
250
296
|
catch (...)
|
|
251
297
|
{
|
|
@@ -262,7 +308,7 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
262
308
|
|
|
263
309
|
static PyObject* ResourceLoader_GetString(py::wrapper::Windows::ApplicationModel::Resources::ResourceLoader* self, PyObject* args) noexcept
|
|
264
310
|
{
|
|
265
|
-
auto arg_count =
|
|
311
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
266
312
|
|
|
267
313
|
if (arg_count == 1)
|
|
268
314
|
{
|
|
@@ -283,7 +329,11 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
283
329
|
|
|
284
330
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
285
331
|
|
|
286
|
-
return py::convert(
|
|
332
|
+
return py::convert([&]()
|
|
333
|
+
{
|
|
334
|
+
auto _gil = release_gil();
|
|
335
|
+
return self->obj.GetString(param0);
|
|
336
|
+
}());
|
|
287
337
|
}
|
|
288
338
|
catch (...)
|
|
289
339
|
{
|
|
@@ -300,7 +350,7 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
300
350
|
|
|
301
351
|
static PyObject* ResourceLoader_GetStringForReference(PyObject* /*unused*/, PyObject* args) noexcept
|
|
302
352
|
{
|
|
303
|
-
auto arg_count =
|
|
353
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
304
354
|
|
|
305
355
|
if (arg_count == 1)
|
|
306
356
|
{
|
|
@@ -321,7 +371,11 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
321
371
|
|
|
322
372
|
auto param0 = py::convert_to<winrt::Windows::Foundation::Uri>(args, 0);
|
|
323
373
|
|
|
324
|
-
return py::convert(
|
|
374
|
+
return py::convert([&]()
|
|
375
|
+
{
|
|
376
|
+
auto _gil = release_gil();
|
|
377
|
+
return winrt::Windows::ApplicationModel::Resources::ResourceLoader::GetStringForReference(param0);
|
|
378
|
+
}());
|
|
325
379
|
}
|
|
326
380
|
catch (...)
|
|
327
381
|
{
|
|
@@ -338,7 +392,7 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
338
392
|
|
|
339
393
|
static PyObject* ResourceLoader_GetStringForUri(py::wrapper::Windows::ApplicationModel::Resources::ResourceLoader* self, PyObject* args) noexcept
|
|
340
394
|
{
|
|
341
|
-
auto arg_count =
|
|
395
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
342
396
|
|
|
343
397
|
if (arg_count == 1)
|
|
344
398
|
{
|
|
@@ -359,7 +413,11 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
359
413
|
|
|
360
414
|
auto param0 = py::convert_to<winrt::Windows::Foundation::Uri>(args, 0);
|
|
361
415
|
|
|
362
|
-
return py::convert(
|
|
416
|
+
return py::convert([&]()
|
|
417
|
+
{
|
|
418
|
+
auto _gil = release_gil();
|
|
419
|
+
return self->obj.GetStringForUri(param0);
|
|
420
|
+
}());
|
|
363
421
|
}
|
|
364
422
|
catch (...)
|
|
365
423
|
{
|
|
@@ -403,20 +461,17 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
403
461
|
{ "get_string_for_uri", reinterpret_cast<PyCFunction>(ResourceLoader_GetStringForUri), METH_VARARGS, nullptr },
|
|
404
462
|
{ "_assign_array_", _assign_array_ResourceLoader, METH_O | METH_STATIC, nullptr },
|
|
405
463
|
{ "_from", reinterpret_cast<PyCFunction>(_from_ResourceLoader), METH_O | METH_STATIC, nullptr },
|
|
406
|
-
{ }
|
|
407
|
-
};
|
|
464
|
+
{ }};
|
|
408
465
|
|
|
409
466
|
static PyGetSetDef _getset_ResourceLoader[] = {
|
|
410
|
-
{ }
|
|
411
|
-
};
|
|
467
|
+
{ }};
|
|
412
468
|
|
|
413
469
|
static PyType_Slot _type_slots_ResourceLoader[] = {
|
|
414
470
|
{ Py_tp_new, reinterpret_cast<void*>(_new_ResourceLoader) },
|
|
415
471
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_ResourceLoader) },
|
|
416
472
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_ResourceLoader) },
|
|
417
473
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_ResourceLoader) },
|
|
418
|
-
{ }
|
|
419
|
-
};
|
|
474
|
+
{ }};
|
|
420
475
|
|
|
421
476
|
static PyType_Spec type_spec_ResourceLoader = {
|
|
422
477
|
"winrt._winrt_windows_applicationmodel_resources.ResourceLoader",
|
|
@@ -426,17 +481,17 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
426
481
|
_type_slots_ResourceLoader};
|
|
427
482
|
|
|
428
483
|
static PyGetSetDef getset_ResourceLoader_Static[] = {
|
|
429
|
-
{ }
|
|
430
|
-
};
|
|
484
|
+
{ }};
|
|
431
485
|
|
|
432
486
|
static PyMethodDef methods_ResourceLoader_Static[] = {
|
|
433
487
|
{ "get_default_pri_path", reinterpret_cast<PyCFunction>(ResourceLoader_GetDefaultPriPath), METH_VARARGS, nullptr },
|
|
434
488
|
{ "get_for_current_view", reinterpret_cast<PyCFunction>(ResourceLoader_GetForCurrentView), METH_VARARGS, nullptr },
|
|
435
|
-
{ "
|
|
489
|
+
{ "get_for_current_view_with_name", reinterpret_cast<PyCFunction>(ResourceLoader_GetForCurrentViewWithName), METH_VARARGS, nullptr },
|
|
490
|
+
{ "get_for_ui_context", reinterpret_cast<PyCFunction>(ResourceLoader_GetForUIContext), METH_VARARGS, nullptr },
|
|
436
491
|
{ "get_for_view_independent_use", reinterpret_cast<PyCFunction>(ResourceLoader_GetForViewIndependentUse), METH_VARARGS, nullptr },
|
|
492
|
+
{ "get_for_view_independent_use_with_name", reinterpret_cast<PyCFunction>(ResourceLoader_GetForViewIndependentUseWithName), METH_VARARGS, nullptr },
|
|
437
493
|
{ "get_string_for_reference", reinterpret_cast<PyCFunction>(ResourceLoader_GetStringForReference), METH_VARARGS, nullptr },
|
|
438
|
-
{ }
|
|
439
|
-
};
|
|
494
|
+
{ }};
|
|
440
495
|
|
|
441
496
|
static PyType_Slot type_slots_ResourceLoader_Static[] =
|
|
442
497
|
{
|
|
@@ -446,14 +501,12 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
446
501
|
{ }
|
|
447
502
|
};
|
|
448
503
|
|
|
449
|
-
static PyType_Spec type_spec_ResourceLoader_Static =
|
|
450
|
-
{
|
|
504
|
+
static PyType_Spec type_spec_ResourceLoader_Static = {
|
|
451
505
|
"winrt._winrt_windows_applicationmodel_resources.ResourceLoader_Static",
|
|
452
506
|
static_cast<int>(PyType_Type.tp_basicsize),
|
|
453
507
|
static_cast<int>(PyType_Type.tp_itemsize),
|
|
454
508
|
Py_TPFLAGS_DEFAULT,
|
|
455
|
-
type_slots_ResourceLoader_Static
|
|
456
|
-
};
|
|
509
|
+
type_slots_ResourceLoader_Static};
|
|
457
510
|
|
|
458
511
|
// ----- Windows.ApplicationModel.Resources Initialization --------------------
|
|
459
512
|
|
|
@@ -487,6 +540,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_resources(void) noexcept
|
|
|
487
540
|
return nullptr;
|
|
488
541
|
}
|
|
489
542
|
|
|
543
|
+
auto inspectable_meta_type = py::get_inspectable_meta_type();
|
|
544
|
+
if (!inspectable_meta_type)
|
|
545
|
+
{
|
|
546
|
+
return nullptr;
|
|
547
|
+
}
|
|
548
|
+
|
|
490
549
|
auto object_type = py::get_object_type();
|
|
491
550
|
if (!object_type)
|
|
492
551
|
{
|
|
@@ -500,7 +559,13 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_resources(void) noexcept
|
|
|
500
559
|
return nullptr;
|
|
501
560
|
}
|
|
502
561
|
|
|
503
|
-
py::pyobj_handle
|
|
562
|
+
py::pyobj_handle ResourceLoader_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
|
|
563
|
+
if (!ResourceLoader_Static_bases)
|
|
564
|
+
{
|
|
565
|
+
return nullptr;
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
py::pyobj_handle type_ResourceLoader_Static{PyType_FromSpecWithBases(&type_spec_ResourceLoader_Static, ResourceLoader_Static_bases.get())};
|
|
504
569
|
if (!type_ResourceLoader_Static)
|
|
505
570
|
{
|
|
506
571
|
return nullptr;
|
|
@@ -16,7 +16,7 @@ classifiers = [
|
|
|
16
16
|
"Intended Audience :: Developers",
|
|
17
17
|
]
|
|
18
18
|
dynamic = ["version", "dependencies", "optional-dependencies"]
|
|
19
|
-
requires-python = ">=3.9
|
|
19
|
+
requires-python = ">=3.9"
|
|
20
20
|
|
|
21
21
|
[project.urls]
|
|
22
22
|
# Homepage = "https://github.com/pywinrt/pywinrt"
|
|
@@ -34,7 +34,7 @@ optional-dependencies.all = { file = "all-requirements.txt" }
|
|
|
34
34
|
|
|
35
35
|
[tool.cibuildwheel]
|
|
36
36
|
# use local winrt-sdk build dependency
|
|
37
|
-
environment = { PYTHONPATH="
|
|
37
|
+
environment = { PYTHONPATH="../../winrt-sdk/src" }
|
|
38
38
|
# don't install winrt-sdk from PyPI
|
|
39
39
|
build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
40
40
|
before-build = "uv pip install setuptools"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.0.0
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==
|
|
3
|
+
winrt-runtime==3.0.0
|
winrt_windows_applicationmodel_resources-3.0.0/winrt/_winrt_windows_applicationmodel_resources.pyi
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
|
|
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 as windows_foundation
|
|
13
|
+
import winrt.windows.ui as windows_ui
|
|
14
|
+
|
|
15
|
+
Self = typing.TypeVar('Self')
|
|
16
|
+
|
|
17
|
+
@typing.final
|
|
18
|
+
class ResourceLoader_Static(winrt._winrt.IInspectable_Static):
|
|
19
|
+
# System.String Windows.ApplicationModel.Resources.ResourceLoader::GetDefaultPriPath(System.String)
|
|
20
|
+
def get_default_pri_path(cls, package_full_name: str, /) -> str: ...
|
|
21
|
+
# Windows.ApplicationModel.Resources.ResourceLoader Windows.ApplicationModel.Resources.ResourceLoader::GetForCurrentView()
|
|
22
|
+
def get_for_current_view(cls) -> ResourceLoader: ...
|
|
23
|
+
# Windows.ApplicationModel.Resources.ResourceLoader Windows.ApplicationModel.Resources.ResourceLoader::GetForCurrentView(System.String)
|
|
24
|
+
def get_for_current_view_with_name(cls, name: str, /) -> ResourceLoader: ...
|
|
25
|
+
# Windows.ApplicationModel.Resources.ResourceLoader Windows.ApplicationModel.Resources.ResourceLoader::GetForUIContext(Windows.UI.UIContext)
|
|
26
|
+
def get_for_ui_context(cls, context: windows_ui.UIContext, /) -> ResourceLoader: ...
|
|
27
|
+
# Windows.ApplicationModel.Resources.ResourceLoader Windows.ApplicationModel.Resources.ResourceLoader::GetForViewIndependentUse()
|
|
28
|
+
def get_for_view_independent_use(cls) -> ResourceLoader: ...
|
|
29
|
+
# Windows.ApplicationModel.Resources.ResourceLoader Windows.ApplicationModel.Resources.ResourceLoader::GetForViewIndependentUse(System.String)
|
|
30
|
+
def get_for_view_independent_use_with_name(cls, name: str, /) -> ResourceLoader: ...
|
|
31
|
+
# System.String Windows.ApplicationModel.Resources.ResourceLoader::GetStringForReference(Windows.Foundation.Uri)
|
|
32
|
+
def get_string_for_reference(cls, uri: windows_foundation.Uri, /) -> str: ...
|
|
33
|
+
|
|
34
|
+
@typing.final
|
|
35
|
+
class ResourceLoader(winrt.system.Object, metaclass=ResourceLoader_Static):
|
|
36
|
+
@typing.overload
|
|
37
|
+
def __new__(cls: typing.Type[Self], name: str) -> Self: ...
|
|
38
|
+
@typing.overload
|
|
39
|
+
def __new__(cls: typing.Type[Self]) -> Self: ...
|
|
40
|
+
# System.String Windows.ApplicationModel.Resources.ResourceLoader::GetString(System.String)
|
|
41
|
+
def get_string(self, resource: str, /) -> str: ...
|
|
42
|
+
# System.String Windows.ApplicationModel.Resources.ResourceLoader::GetStringForUri(Windows.Foundation.Uri)
|
|
43
|
+
def get_string_for_uri(self, uri: windows_foundation.Uri, /) -> str: ...
|
|
44
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.ApplicationModel.Resources
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.0.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:
|
|
13
|
+
Requires-Python: >=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==
|
|
15
|
+
Requires-Dist: winrt-runtime==3.0.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==
|
|
18
|
-
Requires-Dist: winrt-Windows.UI[all]==
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==3.0.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.UI[all]==3.0.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.3.0
|
winrt_windows_applicationmodel_resources-2.3.0/winrt/_winrt_windows_applicationmodel_resources.pyi
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
|
|
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 as windows_foundation
|
|
13
|
-
import winrt.windows.ui as windows_ui
|
|
14
|
-
|
|
15
|
-
Self = typing.TypeVar('Self')
|
|
16
|
-
|
|
17
|
-
@typing.final
|
|
18
|
-
class ResourceLoader_Static(type):
|
|
19
|
-
def get_default_pri_path(cls, package_full_name: str, /) -> str: ...
|
|
20
|
-
@typing.overload
|
|
21
|
-
def get_for_current_view(cls) -> typing.Optional[ResourceLoader]: ...
|
|
22
|
-
@typing.overload
|
|
23
|
-
def get_for_current_view(cls, name: str, /) -> typing.Optional[ResourceLoader]: ...
|
|
24
|
-
def get_for_u_i_context(cls, context: typing.Optional[windows_ui.UIContext], /) -> typing.Optional[ResourceLoader]: ...
|
|
25
|
-
@typing.overload
|
|
26
|
-
def get_for_view_independent_use(cls) -> typing.Optional[ResourceLoader]: ...
|
|
27
|
-
@typing.overload
|
|
28
|
-
def get_for_view_independent_use(cls, name: str, /) -> typing.Optional[ResourceLoader]: ...
|
|
29
|
-
def get_string_for_reference(cls, uri: typing.Optional[windows_foundation.Uri], /) -> str: ...
|
|
30
|
-
|
|
31
|
-
@typing.final
|
|
32
|
-
class ResourceLoader(winrt.system.Object, metaclass=ResourceLoader_Static):
|
|
33
|
-
@staticmethod
|
|
34
|
-
def _from(obj: winrt.system.Object, /) -> ResourceLoader: ...
|
|
35
|
-
@typing.overload
|
|
36
|
-
def __new__(cls: typing.Type[ResourceLoader], name: str) -> ResourceLoader: ...
|
|
37
|
-
@typing.overload
|
|
38
|
-
def __new__(cls: typing.Type[ResourceLoader]) -> ResourceLoader: ...
|
|
39
|
-
def get_string(self, resource: str, /) -> str: ...
|
|
40
|
-
def get_string_for_uri(self, uri: typing.Optional[windows_foundation.Uri], /) -> str: ...
|
|
41
|
-
|
winrt_windows_applicationmodel_resources-2.3.0/winrt/windows/applicationmodel/resources/__init__.py
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
|
|
2
|
-
|
|
3
|
-
import winrt.system
|
|
4
|
-
from winrt import _winrt_windows_applicationmodel_resources
|
|
5
|
-
|
|
6
|
-
__all__ = [
|
|
7
|
-
"ResourceLoader",
|
|
8
|
-
]
|
|
9
|
-
|
|
10
|
-
ResourceLoader = _winrt_windows_applicationmodel_resources.ResourceLoader
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|