winrt-Windows.Security.DataProtection 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.
Files changed (20) hide show
  1. {winrt_windows_security_dataprotection-2.1.0 → winrt_windows_security_dataprotection-2.2.0}/PKG-INFO +7 -7
  2. winrt_windows_security_dataprotection-2.2.0/all-requirements.txt +6 -0
  3. {winrt_windows_security_dataprotection-2.1.0 → winrt_windows_security_dataprotection-2.2.0}/py.Windows.Security.DataProtection.cpp +113 -18
  4. {winrt_windows_security_dataprotection-2.1.0 → winrt_windows_security_dataprotection-2.2.0}/pyproject.toml +3 -2
  5. winrt_windows_security_dataprotection-2.2.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_security_dataprotection-2.1.0 → winrt_windows_security_dataprotection-2.2.0}/requirements.txt +2 -2
  7. {winrt_windows_security_dataprotection-2.1.0 → winrt_windows_security_dataprotection-2.2.0}/winrt/_winrt_windows_security_dataprotection.pyi +1 -1
  8. {winrt_windows_security_dataprotection-2.1.0 → winrt_windows_security_dataprotection-2.2.0}/winrt/windows/security/dataprotection/__init__.py +1 -1
  9. {winrt_windows_security_dataprotection-2.1.0 → winrt_windows_security_dataprotection-2.2.0}/winrt_Windows.Security.DataProtection.egg-info/PKG-INFO +7 -7
  10. winrt_windows_security_dataprotection-2.2.0/winrt_Windows.Security.DataProtection.egg-info/requires.txt +7 -0
  11. winrt_windows_security_dataprotection-2.1.0/all-requirements.txt +0 -6
  12. winrt_windows_security_dataprotection-2.1.0/pywinrt-version.txt +0 -1
  13. winrt_windows_security_dataprotection-2.1.0/winrt_Windows.Security.DataProtection.egg-info/requires.txt +0 -7
  14. {winrt_windows_security_dataprotection-2.1.0 → winrt_windows_security_dataprotection-2.2.0}/README.md +0 -0
  15. {winrt_windows_security_dataprotection-2.1.0 → winrt_windows_security_dataprotection-2.2.0}/setup.cfg +0 -0
  16. {winrt_windows_security_dataprotection-2.1.0 → winrt_windows_security_dataprotection-2.2.0}/setup.py +0 -0
  17. {winrt_windows_security_dataprotection-2.1.0 → winrt_windows_security_dataprotection-2.2.0}/winrt/windows/security/dataprotection/py.typed +0 -0
  18. {winrt_windows_security_dataprotection-2.1.0 → winrt_windows_security_dataprotection-2.2.0}/winrt_Windows.Security.DataProtection.egg-info/SOURCES.txt +0 -0
  19. {winrt_windows_security_dataprotection-2.1.0 → winrt_windows_security_dataprotection-2.2.0}/winrt_Windows.Security.DataProtection.egg-info/dependency_links.txt +0 -0
  20. {winrt_windows_security_dataprotection-2.1.0 → winrt_windows_security_dataprotection-2.2.0}/winrt_Windows.Security.DataProtection.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Security.DataProtection
3
- Version: 2.1.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,14 +10,14 @@ 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,>=3.9
13
+ Requires-Python: <3.14,>=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.1.0
15
+ Requires-Dist: winrt-runtime==2.2.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Storage[all]==2.1.0; extra == "all"
19
- Requires-Dist: winrt-Windows.Storage.Streams[all]==2.1.0; extra == "all"
20
- Requires-Dist: winrt-Windows.System[all]==2.1.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Storage[all]==2.2.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Storage.Streams[all]==2.2.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.System[all]==2.2.0; extra == "all"
21
21
 
22
22
  <!-- warning: Please don't edit this file. It was automatically generated. -->
23
23
 
@@ -0,0 +1,6 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
+
3
+ winrt-Windows.Foundation[all]==2.2.0
4
+ winrt-Windows.Storage[all]==2.2.0
5
+ winrt-Windows.Storage.Streams[all]==2.2.0
6
+ winrt-Windows.System[all]==2.2.0
@@ -1,4 +1,4 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.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.Security.DataProtection.h"
4
4
 
@@ -29,7 +29,14 @@ namespace py::cpp::Windows::Security::DataProtection
29
29
  {
30
30
  try
31
31
  {
32
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.DataProtection.UserDataAvailabilityStateChangedEventArgs", L"GetDeferral", 0))
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.DataProtection.UserDataAvailabilityStateChangedEventArgs", L"GetDeferral", 0);
37
+ }
38
+
39
+ if (!is_overload_present.value())
33
40
  {
34
41
  py::set_arg_count_version_error(0);
35
42
  return nullptr;
@@ -121,7 +128,14 @@ namespace py::cpp::Windows::Security::DataProtection
121
128
  {
122
129
  try
123
130
  {
124
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.DataProtection.UserDataBufferUnprotectResult", L"Status"))
131
+ static std::optional<bool> is_property_present{};
132
+
133
+ if (!is_property_present.has_value())
134
+ {
135
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.DataProtection.UserDataBufferUnprotectResult", L"Status");
136
+ }
137
+
138
+ if (!is_property_present.value())
125
139
  {
126
140
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
127
141
  return nullptr;
@@ -140,7 +154,14 @@ namespace py::cpp::Windows::Security::DataProtection
140
154
  {
141
155
  try
142
156
  {
143
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.DataProtection.UserDataBufferUnprotectResult", L"UnprotectedBuffer"))
157
+ static std::optional<bool> is_property_present{};
158
+
159
+ if (!is_property_present.has_value())
160
+ {
161
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.DataProtection.UserDataBufferUnprotectResult", L"UnprotectedBuffer");
162
+ }
163
+
164
+ if (!is_property_present.value())
144
165
  {
145
166
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
146
167
  return nullptr;
@@ -231,7 +252,14 @@ namespace py::cpp::Windows::Security::DataProtection
231
252
  {
232
253
  try
233
254
  {
234
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.DataProtection.UserDataProtectionManager", L"GetStorageItemProtectionInfoAsync", 1))
255
+ static std::optional<bool> is_overload_present{};
256
+
257
+ if (!is_overload_present.has_value())
258
+ {
259
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.DataProtection.UserDataProtectionManager", L"GetStorageItemProtectionInfoAsync", 1);
260
+ }
261
+
262
+ if (!is_overload_present.value())
235
263
  {
236
264
  py::set_arg_count_version_error(1);
237
265
  return nullptr;
@@ -262,7 +290,14 @@ namespace py::cpp::Windows::Security::DataProtection
262
290
  {
263
291
  try
264
292
  {
265
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.DataProtection.UserDataProtectionManager", L"IsContinuedDataAvailabilityExpected", 1))
293
+ static std::optional<bool> is_overload_present{};
294
+
295
+ if (!is_overload_present.has_value())
296
+ {
297
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.DataProtection.UserDataProtectionManager", L"IsContinuedDataAvailabilityExpected", 1);
298
+ }
299
+
300
+ if (!is_overload_present.value())
266
301
  {
267
302
  py::set_arg_count_version_error(1);
268
303
  return nullptr;
@@ -293,7 +328,14 @@ namespace py::cpp::Windows::Security::DataProtection
293
328
  {
294
329
  try
295
330
  {
296
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.DataProtection.UserDataProtectionManager", L"ProtectBufferAsync", 2))
331
+ static std::optional<bool> is_overload_present{};
332
+
333
+ if (!is_overload_present.has_value())
334
+ {
335
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.DataProtection.UserDataProtectionManager", L"ProtectBufferAsync", 2);
336
+ }
337
+
338
+ if (!is_overload_present.value())
297
339
  {
298
340
  py::set_arg_count_version_error(2);
299
341
  return nullptr;
@@ -325,7 +367,14 @@ namespace py::cpp::Windows::Security::DataProtection
325
367
  {
326
368
  try
327
369
  {
328
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.DataProtection.UserDataProtectionManager", L"ProtectStorageItemAsync", 2))
370
+ static std::optional<bool> is_overload_present{};
371
+
372
+ if (!is_overload_present.has_value())
373
+ {
374
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.DataProtection.UserDataProtectionManager", L"ProtectStorageItemAsync", 2);
375
+ }
376
+
377
+ if (!is_overload_present.value())
329
378
  {
330
379
  py::set_arg_count_version_error(2);
331
380
  return nullptr;
@@ -357,7 +406,14 @@ namespace py::cpp::Windows::Security::DataProtection
357
406
  {
358
407
  try
359
408
  {
360
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.DataProtection.UserDataProtectionManager", L"TryGetDefault", 0))
409
+ static std::optional<bool> is_overload_present{};
410
+
411
+ if (!is_overload_present.has_value())
412
+ {
413
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.DataProtection.UserDataProtectionManager", L"TryGetDefault", 0);
414
+ }
415
+
416
+ if (!is_overload_present.value())
361
417
  {
362
418
  py::set_arg_count_version_error(0);
363
419
  return nullptr;
@@ -386,7 +442,14 @@ namespace py::cpp::Windows::Security::DataProtection
386
442
  {
387
443
  try
388
444
  {
389
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.DataProtection.UserDataProtectionManager", L"TryGetForUser", 1))
445
+ static std::optional<bool> is_overload_present{};
446
+
447
+ if (!is_overload_present.has_value())
448
+ {
449
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.DataProtection.UserDataProtectionManager", L"TryGetForUser", 1);
450
+ }
451
+
452
+ if (!is_overload_present.value())
390
453
  {
391
454
  py::set_arg_count_version_error(1);
392
455
  return nullptr;
@@ -417,7 +480,14 @@ namespace py::cpp::Windows::Security::DataProtection
417
480
  {
418
481
  try
419
482
  {
420
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.DataProtection.UserDataProtectionManager", L"UnprotectBufferAsync", 1))
483
+ static std::optional<bool> is_overload_present{};
484
+
485
+ if (!is_overload_present.has_value())
486
+ {
487
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.DataProtection.UserDataProtectionManager", L"UnprotectBufferAsync", 1);
488
+ }
489
+
490
+ if (!is_overload_present.value())
421
491
  {
422
492
  py::set_arg_count_version_error(1);
423
493
  return nullptr;
@@ -444,7 +514,14 @@ namespace py::cpp::Windows::Security::DataProtection
444
514
  {
445
515
  try
446
516
  {
447
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Security.DataProtection.UserDataProtectionManager", L"DataAvailabilityStateChanged"))
517
+ static std::optional<bool> is_event_present{};
518
+
519
+ if (!is_event_present.has_value())
520
+ {
521
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Security.DataProtection.UserDataProtectionManager", L"DataAvailabilityStateChanged");
522
+ }
523
+
524
+ if (!is_event_present.value())
448
525
  {
449
526
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
450
527
  return nullptr;
@@ -465,7 +542,14 @@ namespace py::cpp::Windows::Security::DataProtection
465
542
  {
466
543
  try
467
544
  {
468
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Security.DataProtection.UserDataProtectionManager", L"DataAvailabilityStateChanged"))
545
+ static std::optional<bool> is_event_present{};
546
+
547
+ if (!is_event_present.has_value())
548
+ {
549
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Security.DataProtection.UserDataProtectionManager", L"DataAvailabilityStateChanged");
550
+ }
551
+
552
+ if (!is_event_present.value())
469
553
  {
470
554
  PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
471
555
  return nullptr;
@@ -587,7 +671,14 @@ namespace py::cpp::Windows::Security::DataProtection
587
671
  {
588
672
  try
589
673
  {
590
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.DataProtection.UserDataStorageItemProtectionInfo", L"Availability"))
674
+ static std::optional<bool> is_property_present{};
675
+
676
+ if (!is_property_present.has_value())
677
+ {
678
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Security.DataProtection.UserDataStorageItemProtectionInfo", L"Availability");
679
+ }
680
+
681
+ if (!is_property_present.value())
591
682
  {
592
683
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
593
684
  return nullptr;
@@ -697,12 +788,14 @@ PyMODINIT_FUNC PyInit__winrt_windows_security_dataprotection(void) noexcept
697
788
  return nullptr;
698
789
  }
699
790
 
700
- if (py::register_python_type(module.get(), &type_spec_UserDataAvailabilityStateChangedEventArgs, object_bases.get(), nullptr) == -1)
791
+ py::pytype_handle UserDataAvailabilityStateChangedEventArgs_type{py::register_python_type(module.get(), &type_spec_UserDataAvailabilityStateChangedEventArgs, object_bases.get(), nullptr)};
792
+ if (!UserDataAvailabilityStateChangedEventArgs_type)
701
793
  {
702
794
  return nullptr;
703
795
  }
704
796
 
705
- if (py::register_python_type(module.get(), &type_spec_UserDataBufferUnprotectResult, object_bases.get(), nullptr) == -1)
797
+ py::pytype_handle UserDataBufferUnprotectResult_type{py::register_python_type(module.get(), &type_spec_UserDataBufferUnprotectResult, object_bases.get(), nullptr)};
798
+ if (!UserDataBufferUnprotectResult_type)
706
799
  {
707
800
  return nullptr;
708
801
  }
@@ -713,12 +806,14 @@ PyMODINIT_FUNC PyInit__winrt_windows_security_dataprotection(void) noexcept
713
806
  return nullptr;
714
807
  }
715
808
 
716
- if (py::register_python_type(module.get(), &type_spec_UserDataProtectionManager, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_UserDataProtectionManager_Static.get())) == -1)
809
+ py::pytype_handle UserDataProtectionManager_type{py::register_python_type(module.get(), &type_spec_UserDataProtectionManager, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_UserDataProtectionManager_Static.get()))};
810
+ if (!UserDataProtectionManager_type)
717
811
  {
718
812
  return nullptr;
719
813
  }
720
814
 
721
- if (py::register_python_type(module.get(), &type_spec_UserDataStorageItemProtectionInfo, object_bases.get(), nullptr) == -1)
815
+ py::pytype_handle UserDataStorageItemProtectionInfo_type{py::register_python_type(module.get(), &type_spec_UserDataStorageItemProtectionInfo, object_bases.get(), nullptr)};
816
+ if (!UserDataStorageItemProtectionInfo_type)
722
817
  {
723
818
  return nullptr;
724
819
  }
@@ -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.13"
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
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
2
 
3
- winrt-runtime==2.1.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.1.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
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
2
 
3
3
  import enum
4
4
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Security.DataProtection
3
- Version: 2.1.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,14 +10,14 @@ 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,>=3.9
13
+ Requires-Python: <3.14,>=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.1.0
15
+ Requires-Dist: winrt-runtime==2.2.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==2.1.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Storage[all]==2.1.0; extra == "all"
19
- Requires-Dist: winrt-Windows.Storage.Streams[all]==2.1.0; extra == "all"
20
- Requires-Dist: winrt-Windows.System[all]==2.1.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Storage[all]==2.2.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Storage.Streams[all]==2.2.0; extra == "all"
20
+ Requires-Dist: winrt-Windows.System[all]==2.2.0; extra == "all"
21
21
 
22
22
  <!-- warning: Please don't edit this file. It was automatically generated. -->
23
23
 
@@ -0,0 +1,7 @@
1
+ winrt-runtime==2.2.0
2
+
3
+ [all]
4
+ winrt-Windows.Foundation[all]==2.2.0
5
+ winrt-Windows.Storage[all]==2.2.0
6
+ winrt-Windows.Storage.Streams[all]==2.2.0
7
+ winrt-Windows.System[all]==2.2.0
@@ -1,6 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
-
3
- winrt-Windows.Foundation[all]==2.1.0
4
- winrt-Windows.Storage[all]==2.1.0
5
- winrt-Windows.Storage.Streams[all]==2.1.0
6
- winrt-Windows.System[all]==2.1.0
@@ -1,7 +0,0 @@
1
- winrt-runtime==2.1.0
2
-
3
- [all]
4
- winrt-Windows.Foundation[all]==2.1.0
5
- winrt-Windows.Storage[all]==2.1.0
6
- winrt-Windows.Storage.Streams[all]==2.1.0
7
- winrt-Windows.System[all]==2.1.0