winrt-Windows.Security.Authorization.AppCapabilityAccess 2.1.0__tar.gz → 2.3.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_security_authorization_appcapabilityaccess-2.1.0 → winrt_windows_security_authorization_appcapabilityaccess-2.3.0}/PKG-INFO +6 -6
- winrt_windows_security_authorization_appcapabilityaccess-2.3.0/all-requirements.txt +5 -0
- {winrt_windows_security_authorization_appcapabilityaccess-2.1.0 → winrt_windows_security_authorization_appcapabilityaccess-2.3.0}/py.Windows.Security.Authorization.AppCapabilityAccess.cpp +101 -15
- {winrt_windows_security_authorization_appcapabilityaccess-2.1.0 → winrt_windows_security_authorization_appcapabilityaccess-2.3.0}/pyproject.toml +3 -2
- winrt_windows_security_authorization_appcapabilityaccess-2.3.0/pywinrt-version.txt +1 -0
- {winrt_windows_security_authorization_appcapabilityaccess-2.1.0 → winrt_windows_security_authorization_appcapabilityaccess-2.3.0}/requirements.txt +2 -2
- {winrt_windows_security_authorization_appcapabilityaccess-2.1.0 → winrt_windows_security_authorization_appcapabilityaccess-2.3.0}/winrt/_winrt_windows_security_authorization_appcapabilityaccess.pyi +1 -1
- {winrt_windows_security_authorization_appcapabilityaccess-2.1.0 → winrt_windows_security_authorization_appcapabilityaccess-2.3.0}/winrt/windows/security/authorization/appcapabilityaccess/__init__.py +1 -1
- {winrt_windows_security_authorization_appcapabilityaccess-2.1.0 → winrt_windows_security_authorization_appcapabilityaccess-2.3.0}/winrt_Windows.Security.Authorization.AppCapabilityAccess.egg-info/PKG-INFO +6 -6
- winrt_windows_security_authorization_appcapabilityaccess-2.3.0/winrt_Windows.Security.Authorization.AppCapabilityAccess.egg-info/requires.txt +6 -0
- winrt_windows_security_authorization_appcapabilityaccess-2.1.0/all-requirements.txt +0 -5
- winrt_windows_security_authorization_appcapabilityaccess-2.1.0/pywinrt-version.txt +0 -1
- winrt_windows_security_authorization_appcapabilityaccess-2.1.0/winrt_Windows.Security.Authorization.AppCapabilityAccess.egg-info/requires.txt +0 -6
- {winrt_windows_security_authorization_appcapabilityaccess-2.1.0 → winrt_windows_security_authorization_appcapabilityaccess-2.3.0}/README.md +0 -0
- {winrt_windows_security_authorization_appcapabilityaccess-2.1.0 → winrt_windows_security_authorization_appcapabilityaccess-2.3.0}/setup.cfg +0 -0
- {winrt_windows_security_authorization_appcapabilityaccess-2.1.0 → winrt_windows_security_authorization_appcapabilityaccess-2.3.0}/setup.py +0 -0
- {winrt_windows_security_authorization_appcapabilityaccess-2.1.0 → winrt_windows_security_authorization_appcapabilityaccess-2.3.0}/winrt/windows/security/authorization/appcapabilityaccess/py.typed +0 -0
- {winrt_windows_security_authorization_appcapabilityaccess-2.1.0 → winrt_windows_security_authorization_appcapabilityaccess-2.3.0}/winrt_Windows.Security.Authorization.AppCapabilityAccess.egg-info/SOURCES.txt +0 -0
- {winrt_windows_security_authorization_appcapabilityaccess-2.1.0 → winrt_windows_security_authorization_appcapabilityaccess-2.3.0}/winrt_Windows.Security.Authorization.AppCapabilityAccess.egg-info/dependency_links.txt +0 -0
- {winrt_windows_security_authorization_appcapabilityaccess-2.1.0 → winrt_windows_security_authorization_appcapabilityaccess-2.3.0}/winrt_Windows.Security.Authorization.AppCapabilityAccess.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Security.Authorization.AppCapabilityAccess
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.3.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,13 +10,13 @@ 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.3.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.
|
|
19
|
-
Requires-Dist: winrt-Windows.System[all]==2.
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.3.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.System[all]==2.3.0; extra == "all"
|
|
20
20
|
|
|
21
21
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
22
22
|
|
|
@@ -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.3.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.Security.Authorization.AppCapabilityAccess.h"
|
|
4
4
|
|
|
@@ -29,7 +29,14 @@ namespace py::cpp::Windows::Security::Authorization::AppCapabilityAccess
|
|
|
29
29
|
{
|
|
30
30
|
try
|
|
31
31
|
{
|
|
32
|
-
|
|
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.Security.Authorization.AppCapabilityAccess.AppCapability", L"CheckAccess", 0);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if (!is_overload_present.value())
|
|
33
40
|
{
|
|
34
41
|
py::set_arg_count_version_error(0);
|
|
35
42
|
return nullptr;
|
|
@@ -58,7 +65,14 @@ namespace py::cpp::Windows::Security::Authorization::AppCapabilityAccess
|
|
|
58
65
|
{
|
|
59
66
|
try
|
|
60
67
|
{
|
|
61
|
-
|
|
68
|
+
static std::optional<bool> is_overload_present{};
|
|
69
|
+
|
|
70
|
+
if (!is_overload_present.has_value())
|
|
71
|
+
{
|
|
72
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authorization.AppCapabilityAccess.AppCapability", L"Create", 1);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if (!is_overload_present.value())
|
|
62
76
|
{
|
|
63
77
|
py::set_arg_count_version_error(1);
|
|
64
78
|
return nullptr;
|
|
@@ -89,7 +103,14 @@ namespace py::cpp::Windows::Security::Authorization::AppCapabilityAccess
|
|
|
89
103
|
{
|
|
90
104
|
try
|
|
91
105
|
{
|
|
92
|
-
|
|
106
|
+
static std::optional<bool> is_overload_present{};
|
|
107
|
+
|
|
108
|
+
if (!is_overload_present.has_value())
|
|
109
|
+
{
|
|
110
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authorization.AppCapabilityAccess.AppCapability", L"CreateWithProcessIdForUser", 3);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
if (!is_overload_present.value())
|
|
93
114
|
{
|
|
94
115
|
py::set_arg_count_version_error(3);
|
|
95
116
|
return nullptr;
|
|
@@ -122,7 +143,14 @@ namespace py::cpp::Windows::Security::Authorization::AppCapabilityAccess
|
|
|
122
143
|
{
|
|
123
144
|
try
|
|
124
145
|
{
|
|
125
|
-
|
|
146
|
+
static std::optional<bool> is_overload_present{};
|
|
147
|
+
|
|
148
|
+
if (!is_overload_present.has_value())
|
|
149
|
+
{
|
|
150
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authorization.AppCapabilityAccess.AppCapability", L"RequestAccessAsync", 0);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
if (!is_overload_present.value())
|
|
126
154
|
{
|
|
127
155
|
py::set_arg_count_version_error(0);
|
|
128
156
|
return nullptr;
|
|
@@ -151,7 +179,14 @@ namespace py::cpp::Windows::Security::Authorization::AppCapabilityAccess
|
|
|
151
179
|
{
|
|
152
180
|
try
|
|
153
181
|
{
|
|
154
|
-
|
|
182
|
+
static std::optional<bool> is_overload_present{};
|
|
183
|
+
|
|
184
|
+
if (!is_overload_present.has_value())
|
|
185
|
+
{
|
|
186
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authorization.AppCapabilityAccess.AppCapability", L"RequestAccessForCapabilitiesAsync", 1);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
if (!is_overload_present.value())
|
|
155
190
|
{
|
|
156
191
|
py::set_arg_count_version_error(1);
|
|
157
192
|
return nullptr;
|
|
@@ -182,7 +217,14 @@ namespace py::cpp::Windows::Security::Authorization::AppCapabilityAccess
|
|
|
182
217
|
{
|
|
183
218
|
try
|
|
184
219
|
{
|
|
185
|
-
|
|
220
|
+
static std::optional<bool> is_overload_present{};
|
|
221
|
+
|
|
222
|
+
if (!is_overload_present.has_value())
|
|
223
|
+
{
|
|
224
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Authorization.AppCapabilityAccess.AppCapability", L"RequestAccessForCapabilitiesForUserAsync", 2);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
if (!is_overload_present.value())
|
|
186
228
|
{
|
|
187
229
|
py::set_arg_count_version_error(2);
|
|
188
230
|
return nullptr;
|
|
@@ -210,7 +252,14 @@ namespace py::cpp::Windows::Security::Authorization::AppCapabilityAccess
|
|
|
210
252
|
{
|
|
211
253
|
try
|
|
212
254
|
{
|
|
213
|
-
|
|
255
|
+
static std::optional<bool> is_property_present{};
|
|
256
|
+
|
|
257
|
+
if (!is_property_present.has_value())
|
|
258
|
+
{
|
|
259
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authorization.AppCapabilityAccess.AppCapability", L"CapabilityName");
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
if (!is_property_present.value())
|
|
214
263
|
{
|
|
215
264
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
216
265
|
return nullptr;
|
|
@@ -229,7 +278,14 @@ namespace py::cpp::Windows::Security::Authorization::AppCapabilityAccess
|
|
|
229
278
|
{
|
|
230
279
|
try
|
|
231
280
|
{
|
|
232
|
-
|
|
281
|
+
static std::optional<bool> is_property_present{};
|
|
282
|
+
|
|
283
|
+
if (!is_property_present.has_value())
|
|
284
|
+
{
|
|
285
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authorization.AppCapabilityAccess.AppCapability", L"User");
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
if (!is_property_present.value())
|
|
233
289
|
{
|
|
234
290
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
235
291
|
return nullptr;
|
|
@@ -248,7 +304,14 @@ namespace py::cpp::Windows::Security::Authorization::AppCapabilityAccess
|
|
|
248
304
|
{
|
|
249
305
|
try
|
|
250
306
|
{
|
|
251
|
-
|
|
307
|
+
static std::optional<bool> is_property_present{};
|
|
308
|
+
|
|
309
|
+
if (!is_property_present.has_value())
|
|
310
|
+
{
|
|
311
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authorization.AppCapabilityAccess.AppCapability", L"DisplayMessage");
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
if (!is_property_present.value())
|
|
252
315
|
{
|
|
253
316
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
254
317
|
return nullptr;
|
|
@@ -273,7 +336,14 @@ namespace py::cpp::Windows::Security::Authorization::AppCapabilityAccess
|
|
|
273
336
|
|
|
274
337
|
try
|
|
275
338
|
{
|
|
276
|
-
|
|
339
|
+
static std::optional<bool> is_property_present{};
|
|
340
|
+
|
|
341
|
+
if (!is_property_present.has_value())
|
|
342
|
+
{
|
|
343
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.Authorization.AppCapabilityAccess.AppCapability", L"DisplayMessage");
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
if (!is_property_present.value())
|
|
277
347
|
{
|
|
278
348
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
279
349
|
return -1;
|
|
@@ -295,7 +365,14 @@ namespace py::cpp::Windows::Security::Authorization::AppCapabilityAccess
|
|
|
295
365
|
{
|
|
296
366
|
try
|
|
297
367
|
{
|
|
298
|
-
|
|
368
|
+
static std::optional<bool> is_event_present{};
|
|
369
|
+
|
|
370
|
+
if (!is_event_present.has_value())
|
|
371
|
+
{
|
|
372
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Security.Authorization.AppCapabilityAccess.AppCapability", L"AccessChanged");
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
if (!is_event_present.value())
|
|
299
376
|
{
|
|
300
377
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
301
378
|
return nullptr;
|
|
@@ -316,7 +393,14 @@ namespace py::cpp::Windows::Security::Authorization::AppCapabilityAccess
|
|
|
316
393
|
{
|
|
317
394
|
try
|
|
318
395
|
{
|
|
319
|
-
|
|
396
|
+
static std::optional<bool> is_event_present{};
|
|
397
|
+
|
|
398
|
+
if (!is_event_present.has_value())
|
|
399
|
+
{
|
|
400
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Security.Authorization.AppCapabilityAccess.AppCapability", L"AccessChanged");
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
if (!is_event_present.value())
|
|
320
404
|
{
|
|
321
405
|
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
322
406
|
return nullptr;
|
|
@@ -536,12 +620,14 @@ PyMODINIT_FUNC PyInit__winrt_windows_security_authorization_appcapabilityaccess(
|
|
|
536
620
|
return nullptr;
|
|
537
621
|
}
|
|
538
622
|
|
|
539
|
-
|
|
623
|
+
py::pytype_handle AppCapability_type{py::register_python_type(module.get(), &type_spec_AppCapability, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_AppCapability_Static.get()))};
|
|
624
|
+
if (!AppCapability_type)
|
|
540
625
|
{
|
|
541
626
|
return nullptr;
|
|
542
627
|
}
|
|
543
628
|
|
|
544
|
-
|
|
629
|
+
py::pytype_handle AppCapabilityAccessChangedEventArgs_type{py::register_python_type(module.get(), &type_spec_AppCapabilityAccessChangedEventArgs, object_bases.get(), nullptr)};
|
|
630
|
+
if (!AppCapabilityAccessChangedEventArgs_type)
|
|
545
631
|
{
|
|
546
632
|
return nullptr;
|
|
547
633
|
}
|
|
@@ -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.3.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.3.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.
|
|
3
|
+
winrt-runtime==2.3.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Security.Authorization.AppCapabilityAccess
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.3.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,13 +10,13 @@ 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.3.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.
|
|
19
|
-
Requires-Dist: winrt-Windows.System[all]==2.
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.3.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.System[all]==2.3.0; extra == "all"
|
|
20
20
|
|
|
21
21
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
22
22
|
|
|
@@ -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
|