winrt-Windows.Security.Cryptography 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.
Files changed (19) hide show
  1. {winrt_windows_security_cryptography-2.1.0 → winrt_windows_security_cryptography-2.3.0}/PKG-INFO +4 -4
  2. {winrt_windows_security_cryptography-2.1.0 → winrt_windows_security_cryptography-2.3.0}/all-requirements.txt +2 -2
  3. {winrt_windows_security_cryptography-2.1.0 → winrt_windows_security_cryptography-2.3.0}/py.Windows.Security.Cryptography.cpp +91 -13
  4. {winrt_windows_security_cryptography-2.1.0 → winrt_windows_security_cryptography-2.3.0}/pyproject.toml +3 -2
  5. winrt_windows_security_cryptography-2.3.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_security_cryptography-2.1.0 → winrt_windows_security_cryptography-2.3.0}/requirements.txt +2 -2
  7. {winrt_windows_security_cryptography-2.1.0 → winrt_windows_security_cryptography-2.3.0}/winrt/_winrt_windows_security_cryptography.pyi +2 -2
  8. {winrt_windows_security_cryptography-2.1.0 → winrt_windows_security_cryptography-2.3.0}/winrt/windows/security/cryptography/__init__.py +1 -1
  9. {winrt_windows_security_cryptography-2.1.0 → winrt_windows_security_cryptography-2.3.0}/winrt_Windows.Security.Cryptography.egg-info/PKG-INFO +4 -4
  10. winrt_windows_security_cryptography-2.3.0/winrt_Windows.Security.Cryptography.egg-info/requires.txt +4 -0
  11. winrt_windows_security_cryptography-2.1.0/pywinrt-version.txt +0 -1
  12. winrt_windows_security_cryptography-2.1.0/winrt_Windows.Security.Cryptography.egg-info/requires.txt +0 -4
  13. {winrt_windows_security_cryptography-2.1.0 → winrt_windows_security_cryptography-2.3.0}/README.md +0 -0
  14. {winrt_windows_security_cryptography-2.1.0 → winrt_windows_security_cryptography-2.3.0}/setup.cfg +0 -0
  15. {winrt_windows_security_cryptography-2.1.0 → winrt_windows_security_cryptography-2.3.0}/setup.py +0 -0
  16. {winrt_windows_security_cryptography-2.1.0 → winrt_windows_security_cryptography-2.3.0}/winrt/windows/security/cryptography/py.typed +0 -0
  17. {winrt_windows_security_cryptography-2.1.0 → winrt_windows_security_cryptography-2.3.0}/winrt_Windows.Security.Cryptography.egg-info/SOURCES.txt +0 -0
  18. {winrt_windows_security_cryptography-2.1.0 → winrt_windows_security_cryptography-2.3.0}/winrt_Windows.Security.Cryptography.egg-info/dependency_links.txt +0 -0
  19. {winrt_windows_security_cryptography-2.1.0 → winrt_windows_security_cryptography-2.3.0}/winrt_Windows.Security.Cryptography.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Security.Cryptography
3
- Version: 2.1.0
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,11 +10,11 @@ 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.3.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Storage.Streams[all]==2.1.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Storage.Streams[all]==2.3.0; extra == "all"
18
18
 
19
19
  <!-- warning: Please don't edit this file. It was automatically generated. -->
20
20
 
@@ -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.3.0
2
2
 
3
- winrt-Windows.Storage.Streams[all]==2.1.0
3
+ winrt-Windows.Storage.Streams[all]==2.3.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.3.0
2
2
 
3
3
  #include "py.Windows.Security.Cryptography.h"
4
4
 
@@ -21,7 +21,14 @@ namespace py::cpp::Windows::Security::Cryptography
21
21
  {
22
22
  try
23
23
  {
24
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"Compare", 2))
24
+ static std::optional<bool> is_overload_present{};
25
+
26
+ if (!is_overload_present.has_value())
27
+ {
28
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"Compare", 2);
29
+ }
30
+
31
+ if (!is_overload_present.value())
25
32
  {
26
33
  py::set_arg_count_version_error(2);
27
34
  return nullptr;
@@ -53,7 +60,14 @@ namespace py::cpp::Windows::Security::Cryptography
53
60
  {
54
61
  try
55
62
  {
56
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"ConvertBinaryToString", 2))
63
+ static std::optional<bool> is_overload_present{};
64
+
65
+ if (!is_overload_present.has_value())
66
+ {
67
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"ConvertBinaryToString", 2);
68
+ }
69
+
70
+ if (!is_overload_present.value())
57
71
  {
58
72
  py::set_arg_count_version_error(2);
59
73
  return nullptr;
@@ -85,7 +99,14 @@ namespace py::cpp::Windows::Security::Cryptography
85
99
  {
86
100
  try
87
101
  {
88
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"ConvertStringToBinary", 2))
102
+ static std::optional<bool> is_overload_present{};
103
+
104
+ if (!is_overload_present.has_value())
105
+ {
106
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"ConvertStringToBinary", 2);
107
+ }
108
+
109
+ if (!is_overload_present.value())
89
110
  {
90
111
  py::set_arg_count_version_error(2);
91
112
  return nullptr;
@@ -117,7 +138,14 @@ namespace py::cpp::Windows::Security::Cryptography
117
138
  {
118
139
  try
119
140
  {
120
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"CopyToByteArray", 1))
141
+ static std::optional<bool> is_overload_present{};
142
+
143
+ if (!is_overload_present.has_value())
144
+ {
145
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"CopyToByteArray", 1);
146
+ }
147
+
148
+ if (!is_overload_present.value())
121
149
  {
122
150
  py::set_arg_count_version_error(1);
123
151
  return nullptr;
@@ -156,7 +184,14 @@ namespace py::cpp::Windows::Security::Cryptography
156
184
  {
157
185
  try
158
186
  {
159
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"CreateFromByteArray", 1))
187
+ static std::optional<bool> is_overload_present{};
188
+
189
+ if (!is_overload_present.has_value())
190
+ {
191
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"CreateFromByteArray", 1);
192
+ }
193
+
194
+ if (!is_overload_present.value())
160
195
  {
161
196
  py::set_arg_count_version_error(1);
162
197
  return nullptr;
@@ -187,7 +222,14 @@ namespace py::cpp::Windows::Security::Cryptography
187
222
  {
188
223
  try
189
224
  {
190
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"DecodeFromBase64String", 1))
225
+ static std::optional<bool> is_overload_present{};
226
+
227
+ if (!is_overload_present.has_value())
228
+ {
229
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"DecodeFromBase64String", 1);
230
+ }
231
+
232
+ if (!is_overload_present.value())
191
233
  {
192
234
  py::set_arg_count_version_error(1);
193
235
  return nullptr;
@@ -218,7 +260,14 @@ namespace py::cpp::Windows::Security::Cryptography
218
260
  {
219
261
  try
220
262
  {
221
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"DecodeFromHexString", 1))
263
+ static std::optional<bool> is_overload_present{};
264
+
265
+ if (!is_overload_present.has_value())
266
+ {
267
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"DecodeFromHexString", 1);
268
+ }
269
+
270
+ if (!is_overload_present.value())
222
271
  {
223
272
  py::set_arg_count_version_error(1);
224
273
  return nullptr;
@@ -249,7 +298,14 @@ namespace py::cpp::Windows::Security::Cryptography
249
298
  {
250
299
  try
251
300
  {
252
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"EncodeToBase64String", 1))
301
+ static std::optional<bool> is_overload_present{};
302
+
303
+ if (!is_overload_present.has_value())
304
+ {
305
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"EncodeToBase64String", 1);
306
+ }
307
+
308
+ if (!is_overload_present.value())
253
309
  {
254
310
  py::set_arg_count_version_error(1);
255
311
  return nullptr;
@@ -280,7 +336,14 @@ namespace py::cpp::Windows::Security::Cryptography
280
336
  {
281
337
  try
282
338
  {
283
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"EncodeToHexString", 1))
339
+ static std::optional<bool> is_overload_present{};
340
+
341
+ if (!is_overload_present.has_value())
342
+ {
343
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"EncodeToHexString", 1);
344
+ }
345
+
346
+ if (!is_overload_present.value())
284
347
  {
285
348
  py::set_arg_count_version_error(1);
286
349
  return nullptr;
@@ -311,7 +374,14 @@ namespace py::cpp::Windows::Security::Cryptography
311
374
  {
312
375
  try
313
376
  {
314
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"GenerateRandom", 1))
377
+ static std::optional<bool> is_overload_present{};
378
+
379
+ if (!is_overload_present.has_value())
380
+ {
381
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"GenerateRandom", 1);
382
+ }
383
+
384
+ if (!is_overload_present.value())
315
385
  {
316
386
  py::set_arg_count_version_error(1);
317
387
  return nullptr;
@@ -342,7 +412,14 @@ namespace py::cpp::Windows::Security::Cryptography
342
412
  {
343
413
  try
344
414
  {
345
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"GenerateRandomNumber", 0))
415
+ static std::optional<bool> is_overload_present{};
416
+
417
+ if (!is_overload_present.has_value())
418
+ {
419
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"GenerateRandomNumber", 0);
420
+ }
421
+
422
+ if (!is_overload_present.value())
346
423
  {
347
424
  py::set_arg_count_version_error(0);
348
425
  return nullptr;
@@ -472,7 +549,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_security_cryptography(void) noexcept
472
549
  return nullptr;
473
550
  }
474
551
 
475
- if (py::register_python_type(module.get(), &type_spec_CryptographicBuffer, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_CryptographicBuffer_Static.get())) == -1)
552
+ py::pytype_handle CryptographicBuffer_type{py::register_python_type(module.get(), &type_spec_CryptographicBuffer, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_CryptographicBuffer_Static.get()))};
553
+ if (!CryptographicBuffer_type)
476
554
  {
477
555
  return nullptr;
478
556
  }
@@ -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.3.0
2
2
 
3
- winrt-runtime==2.1.0
3
+ winrt-runtime==2.3.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.3.0
2
2
 
3
3
  import datetime
4
4
  import sys
@@ -21,7 +21,7 @@ class CryptographicBuffer_Static(type):
21
21
  def convert_binary_to_string(cls, encoding: BinaryStringEncoding, buffer: typing.Optional[windows_storage_streams.IBuffer], /) -> str: ...
22
22
  def convert_string_to_binary(cls, value: str, encoding: BinaryStringEncoding, /) -> typing.Optional[windows_storage_streams.IBuffer]: ...
23
23
  def copy_to_byte_array(cls, buffer: typing.Optional[windows_storage_streams.IBuffer], /) -> winrt.system.Array[winrt.system.UInt8]: ...
24
- def create_from_byte_array(cls, value: winrt.system.Array[winrt.system.UInt8], /) -> typing.Optional[windows_storage_streams.IBuffer]: ...
24
+ def create_from_byte_array(cls, value: typing.Union[winrt.system.Array[winrt.system.UInt8], winrt.system.ReadableBuffer], /) -> typing.Optional[windows_storage_streams.IBuffer]: ...
25
25
  def decode_from_base64_string(cls, value: str, /) -> typing.Optional[windows_storage_streams.IBuffer]: ...
26
26
  def decode_from_hex_string(cls, value: str, /) -> typing.Optional[windows_storage_streams.IBuffer]: ...
27
27
  def encode_to_base64_string(cls, buffer: typing.Optional[windows_storage_streams.IBuffer], /) -> str: ...
@@ -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.3.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.Cryptography
3
- Version: 2.1.0
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,11 +10,11 @@ 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.3.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Storage.Streams[all]==2.1.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Storage.Streams[all]==2.3.0; extra == "all"
18
18
 
19
19
  <!-- warning: Please don't edit this file. It was automatically generated. -->
20
20
 
@@ -0,0 +1,4 @@
1
+ winrt-runtime==2.3.0
2
+
3
+ [all]
4
+ winrt-Windows.Storage.Streams[all]==2.3.0
@@ -1,4 +0,0 @@
1
- winrt-runtime==2.1.0
2
-
3
- [all]
4
- winrt-Windows.Storage.Streams[all]==2.1.0