winrt-Windows.Storage.Compression 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 (20) hide show
  1. {winrt_windows_storage_compression-2.1.0 → winrt_windows_storage_compression-2.3.0}/PKG-INFO +5 -5
  2. winrt_windows_storage_compression-2.3.0/all-requirements.txt +4 -0
  3. {winrt_windows_storage_compression-2.1.0 → winrt_windows_storage_compression-2.3.0}/py.Windows.Storage.Compression.cpp +72 -14
  4. {winrt_windows_storage_compression-2.1.0 → winrt_windows_storage_compression-2.3.0}/pyproject.toml +3 -2
  5. winrt_windows_storage_compression-2.3.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_storage_compression-2.1.0 → winrt_windows_storage_compression-2.3.0}/requirements.txt +2 -2
  7. {winrt_windows_storage_compression-2.1.0 → winrt_windows_storage_compression-2.3.0}/winrt/_winrt_windows_storage_compression.pyi +1 -1
  8. {winrt_windows_storage_compression-2.1.0 → winrt_windows_storage_compression-2.3.0}/winrt/windows/storage/compression/__init__.py +1 -1
  9. {winrt_windows_storage_compression-2.1.0 → winrt_windows_storage_compression-2.3.0}/winrt_Windows.Storage.Compression.egg-info/PKG-INFO +5 -5
  10. winrt_windows_storage_compression-2.3.0/winrt_Windows.Storage.Compression.egg-info/requires.txt +5 -0
  11. winrt_windows_storage_compression-2.1.0/all-requirements.txt +0 -4
  12. winrt_windows_storage_compression-2.1.0/pywinrt-version.txt +0 -1
  13. winrt_windows_storage_compression-2.1.0/winrt_Windows.Storage.Compression.egg-info/requires.txt +0 -5
  14. {winrt_windows_storage_compression-2.1.0 → winrt_windows_storage_compression-2.3.0}/README.md +0 -0
  15. {winrt_windows_storage_compression-2.1.0 → winrt_windows_storage_compression-2.3.0}/setup.cfg +0 -0
  16. {winrt_windows_storage_compression-2.1.0 → winrt_windows_storage_compression-2.3.0}/setup.py +0 -0
  17. {winrt_windows_storage_compression-2.1.0 → winrt_windows_storage_compression-2.3.0}/winrt/windows/storage/compression/py.typed +0 -0
  18. {winrt_windows_storage_compression-2.1.0 → winrt_windows_storage_compression-2.3.0}/winrt_Windows.Storage.Compression.egg-info/SOURCES.txt +0 -0
  19. {winrt_windows_storage_compression-2.1.0 → winrt_windows_storage_compression-2.3.0}/winrt_Windows.Storage.Compression.egg-info/dependency_links.txt +0 -0
  20. {winrt_windows_storage_compression-2.1.0 → winrt_windows_storage_compression-2.3.0}/winrt_Windows.Storage.Compression.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Storage.Compression
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,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,>=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.Foundation[all]==2.1.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Storage.Streams[all]==2.1.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Storage.Streams[all]==2.3.0; extra == "all"
19
19
 
20
20
  <!-- warning: Please don't edit this file. It was automatically generated. -->
21
21
 
@@ -0,0 +1,4 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
+
3
+ winrt-Windows.Foundation[all]==2.3.0
4
+ 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.Storage.Compression.h"
4
4
 
@@ -21,7 +21,7 @@ namespace py::cpp::Windows::Storage::Compression
21
21
  {
22
22
  auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IOutputStream>(args, 0);
23
23
 
24
- winrt::Windows::Storage::Compression::Compressor instance{ param0 };
24
+ winrt::Windows::Storage::Compression::Compressor instance{param0};
25
25
  return py::wrap(instance, type);
26
26
  }
27
27
  catch (...)
@@ -38,7 +38,7 @@ namespace py::cpp::Windows::Storage::Compression
38
38
  auto param1 = py::convert_to<winrt::Windows::Storage::Compression::CompressAlgorithm>(args, 1);
39
39
  auto param2 = py::convert_to<uint32_t>(args, 2);
40
40
 
41
- winrt::Windows::Storage::Compression::Compressor instance{ param0, param1, param2 };
41
+ winrt::Windows::Storage::Compression::Compressor instance{param0, param1, param2};
42
42
  return py::wrap(instance, type);
43
43
  }
44
44
  catch (...)
@@ -70,7 +70,14 @@ namespace py::cpp::Windows::Storage::Compression
70
70
  {
71
71
  try
72
72
  {
73
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Compression.Compressor", L"Close", 0))
73
+ static std::optional<bool> is_overload_present{};
74
+
75
+ if (!is_overload_present.has_value())
76
+ {
77
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Compression.Compressor", L"Close", 0);
78
+ }
79
+
80
+ if (!is_overload_present.value())
74
81
  {
75
82
  py::set_arg_count_version_error(0);
76
83
  return nullptr;
@@ -100,7 +107,14 @@ namespace py::cpp::Windows::Storage::Compression
100
107
  {
101
108
  try
102
109
  {
103
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Compression.Compressor", L"DetachStream", 0))
110
+ static std::optional<bool> is_overload_present{};
111
+
112
+ if (!is_overload_present.has_value())
113
+ {
114
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Compression.Compressor", L"DetachStream", 0);
115
+ }
116
+
117
+ if (!is_overload_present.value())
104
118
  {
105
119
  py::set_arg_count_version_error(0);
106
120
  return nullptr;
@@ -129,7 +143,14 @@ namespace py::cpp::Windows::Storage::Compression
129
143
  {
130
144
  try
131
145
  {
132
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Compression.Compressor", L"FinishAsync", 0))
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.Storage.Compression.Compressor", L"FinishAsync", 0);
151
+ }
152
+
153
+ if (!is_overload_present.value())
133
154
  {
134
155
  py::set_arg_count_version_error(0);
135
156
  return nullptr;
@@ -158,7 +179,14 @@ namespace py::cpp::Windows::Storage::Compression
158
179
  {
159
180
  try
160
181
  {
161
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Compression.Compressor", L"FlushAsync", 0))
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.Storage.Compression.Compressor", L"FlushAsync", 0);
187
+ }
188
+
189
+ if (!is_overload_present.value())
162
190
  {
163
191
  py::set_arg_count_version_error(0);
164
192
  return nullptr;
@@ -187,7 +215,14 @@ namespace py::cpp::Windows::Storage::Compression
187
215
  {
188
216
  try
189
217
  {
190
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Compression.Compressor", L"WriteAsync", 1))
218
+ static std::optional<bool> is_overload_present{};
219
+
220
+ if (!is_overload_present.has_value())
221
+ {
222
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Compression.Compressor", L"WriteAsync", 1);
223
+ }
224
+
225
+ if (!is_overload_present.value())
191
226
  {
192
227
  py::set_arg_count_version_error(1);
193
228
  return nullptr;
@@ -302,7 +337,7 @@ namespace py::cpp::Windows::Storage::Compression
302
337
  {
303
338
  auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IInputStream>(args, 0);
304
339
 
305
- winrt::Windows::Storage::Compression::Decompressor instance{ param0 };
340
+ winrt::Windows::Storage::Compression::Decompressor instance{param0};
306
341
  return py::wrap(instance, type);
307
342
  }
308
343
  catch (...)
@@ -334,7 +369,14 @@ namespace py::cpp::Windows::Storage::Compression
334
369
  {
335
370
  try
336
371
  {
337
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Compression.Decompressor", L"Close", 0))
372
+ static std::optional<bool> is_overload_present{};
373
+
374
+ if (!is_overload_present.has_value())
375
+ {
376
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Compression.Decompressor", L"Close", 0);
377
+ }
378
+
379
+ if (!is_overload_present.value())
338
380
  {
339
381
  py::set_arg_count_version_error(0);
340
382
  return nullptr;
@@ -364,7 +406,14 @@ namespace py::cpp::Windows::Storage::Compression
364
406
  {
365
407
  try
366
408
  {
367
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Compression.Decompressor", L"DetachStream", 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.Storage.Compression.Decompressor", L"DetachStream", 0);
414
+ }
415
+
416
+ if (!is_overload_present.value())
368
417
  {
369
418
  py::set_arg_count_version_error(0);
370
419
  return nullptr;
@@ -393,7 +442,14 @@ namespace py::cpp::Windows::Storage::Compression
393
442
  {
394
443
  try
395
444
  {
396
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Storage.Compression.Decompressor", L"ReadAsync", 3))
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.Storage.Compression.Decompressor", L"ReadAsync", 3);
450
+ }
451
+
452
+ if (!is_overload_present.value())
397
453
  {
398
454
  py::set_arg_count_version_error(3);
399
455
  return nullptr;
@@ -536,12 +592,14 @@ PyMODINIT_FUNC PyInit__winrt_windows_storage_compression(void) noexcept
536
592
  return nullptr;
537
593
  }
538
594
 
539
- if (py::register_python_type(module.get(), &type_spec_Compressor, object_bases.get(), nullptr) == -1)
595
+ py::pytype_handle Compressor_type{py::register_python_type(module.get(), &type_spec_Compressor, object_bases.get(), nullptr)};
596
+ if (!Compressor_type)
540
597
  {
541
598
  return nullptr;
542
599
  }
543
600
 
544
- if (py::register_python_type(module.get(), &type_spec_Decompressor, object_bases.get(), nullptr) == -1)
601
+ py::pytype_handle Decompressor_type{py::register_python_type(module.get(), &type_spec_Decompressor, object_bases.get(), nullptr)};
602
+ if (!Decompressor_type)
545
603
  {
546
604
  return nullptr;
547
605
  }
@@ -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
@@ -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.Storage.Compression
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,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,>=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.Foundation[all]==2.1.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Storage.Streams[all]==2.1.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Storage.Streams[all]==2.3.0; extra == "all"
19
19
 
20
20
  <!-- warning: Please don't edit this file. It was automatically generated. -->
21
21
 
@@ -0,0 +1,5 @@
1
+ winrt-runtime==2.3.0
2
+
3
+ [all]
4
+ winrt-Windows.Foundation[all]==2.3.0
5
+ winrt-Windows.Storage.Streams[all]==2.3.0
@@ -1,4 +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.Streams[all]==2.1.0
@@ -1,5 +0,0 @@
1
- winrt-runtime==2.1.0
2
-
3
- [all]
4
- winrt-Windows.Foundation[all]==2.1.0
5
- winrt-Windows.Storage.Streams[all]==2.1.0