winrt-Windows.ApplicationModel.Resources 2.1.0__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.1.0 → 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.1.0 → winrt_windows_applicationmodel_resources-2.2.0}/py.Windows.ApplicationModel.Resources.cpp +77 -13
- {winrt_windows_applicationmodel_resources-2.1.0 → 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.1.0 → winrt_windows_applicationmodel_resources-2.2.0}/requirements.txt +2 -2
- {winrt_windows_applicationmodel_resources-2.1.0 → winrt_windows_applicationmodel_resources-2.2.0}/winrt/_winrt_windows_applicationmodel_resources.pyi +1 -1
- {winrt_windows_applicationmodel_resources-2.1.0 → winrt_windows_applicationmodel_resources-2.2.0}/winrt/windows/applicationmodel/resources/__init__.py +1 -1
- {winrt_windows_applicationmodel_resources-2.1.0 → 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.1.0/all-requirements.txt +0 -4
- winrt_windows_applicationmodel_resources-2.1.0/pywinrt-version.txt +0 -1
- winrt_windows_applicationmodel_resources-2.1.0/winrt_Windows.ApplicationModel.Resources.egg-info/requires.txt +0 -5
- {winrt_windows_applicationmodel_resources-2.1.0 → winrt_windows_applicationmodel_resources-2.2.0}/README.md +0 -0
- {winrt_windows_applicationmodel_resources-2.1.0 → winrt_windows_applicationmodel_resources-2.2.0}/setup.cfg +0 -0
- {winrt_windows_applicationmodel_resources-2.1.0 → winrt_windows_applicationmodel_resources-2.2.0}/setup.py +0 -0
- {winrt_windows_applicationmodel_resources-2.1.0 → winrt_windows_applicationmodel_resources-2.2.0}/winrt/windows/applicationmodel/resources/py.typed +0 -0
- {winrt_windows_applicationmodel_resources-2.1.0 → winrt_windows_applicationmodel_resources-2.2.0}/winrt_Windows.ApplicationModel.Resources.egg-info/SOURCES.txt +0 -0
- {winrt_windows_applicationmodel_resources-2.1.0 → winrt_windows_applicationmodel_resources-2.2.0}/winrt_Windows.ApplicationModel.Resources.egg-info/dependency_links.txt +0 -0
- {winrt_windows_applicationmodel_resources-2.1.0 → 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.
|
|
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.
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.
|
|
18
|
-
Requires-Dist: winrt-Windows.UI[all]==2.
|
|
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,4 +1,4 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
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
|
|
|
@@ -21,7 +21,7 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
21
21
|
{
|
|
22
22
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
23
23
|
|
|
24
|
-
winrt::Windows::ApplicationModel::Resources::ResourceLoader instance{
|
|
24
|
+
winrt::Windows::ApplicationModel::Resources::ResourceLoader instance{param0};
|
|
25
25
|
return py::wrap(instance, type);
|
|
26
26
|
}
|
|
27
27
|
catch (...)
|
|
@@ -34,7 +34,7 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
34
34
|
{
|
|
35
35
|
try
|
|
36
36
|
{
|
|
37
|
-
winrt::Windows::ApplicationModel::Resources::ResourceLoader instance{
|
|
37
|
+
winrt::Windows::ApplicationModel::Resources::ResourceLoader instance{};
|
|
38
38
|
return py::wrap(instance, type);
|
|
39
39
|
}
|
|
40
40
|
catch (...)
|
|
@@ -66,7 +66,14 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
66
66
|
{
|
|
67
67
|
try
|
|
68
68
|
{
|
|
69
|
-
|
|
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())
|
|
70
77
|
{
|
|
71
78
|
py::set_arg_count_version_error(1);
|
|
72
79
|
return nullptr;
|
|
@@ -97,7 +104,14 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
97
104
|
{
|
|
98
105
|
try
|
|
99
106
|
{
|
|
100
|
-
|
|
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())
|
|
101
115
|
{
|
|
102
116
|
py::set_arg_count_version_error(0);
|
|
103
117
|
return nullptr;
|
|
@@ -115,7 +129,14 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
115
129
|
{
|
|
116
130
|
try
|
|
117
131
|
{
|
|
118
|
-
|
|
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())
|
|
119
140
|
{
|
|
120
141
|
py::set_arg_count_version_error(1);
|
|
121
142
|
return nullptr;
|
|
@@ -146,7 +167,14 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
146
167
|
{
|
|
147
168
|
try
|
|
148
169
|
{
|
|
149
|
-
|
|
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())
|
|
150
178
|
{
|
|
151
179
|
py::set_arg_count_version_error(1);
|
|
152
180
|
return nullptr;
|
|
@@ -177,7 +205,14 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
177
205
|
{
|
|
178
206
|
try
|
|
179
207
|
{
|
|
180
|
-
|
|
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())
|
|
181
216
|
{
|
|
182
217
|
py::set_arg_count_version_error(0);
|
|
183
218
|
return nullptr;
|
|
@@ -195,7 +230,14 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
195
230
|
{
|
|
196
231
|
try
|
|
197
232
|
{
|
|
198
|
-
|
|
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())
|
|
199
241
|
{
|
|
200
242
|
py::set_arg_count_version_error(1);
|
|
201
243
|
return nullptr;
|
|
@@ -226,7 +268,14 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
226
268
|
{
|
|
227
269
|
try
|
|
228
270
|
{
|
|
229
|
-
|
|
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())
|
|
230
279
|
{
|
|
231
280
|
py::set_arg_count_version_error(1);
|
|
232
281
|
return nullptr;
|
|
@@ -257,7 +306,14 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
257
306
|
{
|
|
258
307
|
try
|
|
259
308
|
{
|
|
260
|
-
|
|
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())
|
|
261
317
|
{
|
|
262
318
|
py::set_arg_count_version_error(1);
|
|
263
319
|
return nullptr;
|
|
@@ -288,7 +344,14 @@ namespace py::cpp::Windows::ApplicationModel::Resources
|
|
|
288
344
|
{
|
|
289
345
|
try
|
|
290
346
|
{
|
|
291
|
-
|
|
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())
|
|
292
355
|
{
|
|
293
356
|
py::set_arg_count_version_error(1);
|
|
294
357
|
return nullptr;
|
|
@@ -443,7 +506,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_resources(void) noexcept
|
|
|
443
506
|
return nullptr;
|
|
444
507
|
}
|
|
445
508
|
|
|
446
|
-
|
|
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)
|
|
447
511
|
{
|
|
448
512
|
return nullptr;
|
|
449
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.
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.
|
|
3
|
+
winrt-runtime==2.2.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.ApplicationModel.Resources
|
|
3
|
-
Version: 2.
|
|
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.
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.
|
|
18
|
-
Requires-Dist: winrt-Windows.UI[all]==2.
|
|
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.1.0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|