winrt-Windows.Services.Maps.OfflineMaps 2.0.1__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_services_maps_offlinemaps-2.0.1 → winrt_windows_services_maps_offlinemaps-2.2.0}/PKG-INFO +6 -6
  2. winrt_windows_services_maps_offlinemaps-2.2.0/all-requirements.txt +5 -0
  3. {winrt_windows_services_maps_offlinemaps-2.0.1 → winrt_windows_services_maps_offlinemaps-2.2.0}/py.Windows.Services.Maps.OfflineMaps.cpp +199 -116
  4. {winrt_windows_services_maps_offlinemaps-2.0.1 → winrt_windows_services_maps_offlinemaps-2.2.0}/pyproject.toml +3 -2
  5. winrt_windows_services_maps_offlinemaps-2.2.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_services_maps_offlinemaps-2.0.1 → winrt_windows_services_maps_offlinemaps-2.2.0}/requirements.txt +2 -2
  7. {winrt_windows_services_maps_offlinemaps-2.0.1 → winrt_windows_services_maps_offlinemaps-2.2.0}/winrt/_winrt_windows_services_maps_offlinemaps.pyi +11 -11
  8. {winrt_windows_services_maps_offlinemaps-2.0.1 → winrt_windows_services_maps_offlinemaps-2.2.0}/winrt/windows/services/maps/offlinemaps/__init__.py +1 -1
  9. {winrt_windows_services_maps_offlinemaps-2.0.1 → winrt_windows_services_maps_offlinemaps-2.2.0}/winrt_Windows.Services.Maps.OfflineMaps.egg-info/PKG-INFO +6 -6
  10. winrt_windows_services_maps_offlinemaps-2.2.0/winrt_Windows.Services.Maps.OfflineMaps.egg-info/requires.txt +6 -0
  11. winrt_windows_services_maps_offlinemaps-2.0.1/all-requirements.txt +0 -5
  12. winrt_windows_services_maps_offlinemaps-2.0.1/pywinrt-version.txt +0 -1
  13. winrt_windows_services_maps_offlinemaps-2.0.1/winrt_Windows.Services.Maps.OfflineMaps.egg-info/requires.txt +0 -6
  14. {winrt_windows_services_maps_offlinemaps-2.0.1 → winrt_windows_services_maps_offlinemaps-2.2.0}/README.md +0 -0
  15. {winrt_windows_services_maps_offlinemaps-2.0.1 → winrt_windows_services_maps_offlinemaps-2.2.0}/setup.cfg +0 -0
  16. {winrt_windows_services_maps_offlinemaps-2.0.1 → winrt_windows_services_maps_offlinemaps-2.2.0}/setup.py +0 -0
  17. {winrt_windows_services_maps_offlinemaps-2.0.1 → winrt_windows_services_maps_offlinemaps-2.2.0}/winrt/windows/services/maps/offlinemaps/py.typed +0 -0
  18. {winrt_windows_services_maps_offlinemaps-2.0.1 → winrt_windows_services_maps_offlinemaps-2.2.0}/winrt_Windows.Services.Maps.OfflineMaps.egg-info/SOURCES.txt +0 -0
  19. {winrt_windows_services_maps_offlinemaps-2.0.1 → winrt_windows_services_maps_offlinemaps-2.2.0}/winrt_Windows.Services.Maps.OfflineMaps.egg-info/dependency_links.txt +0 -0
  20. {winrt_windows_services_maps_offlinemaps-2.0.1 → winrt_windows_services_maps_offlinemaps-2.2.0}/winrt_Windows.Services.Maps.OfflineMaps.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Services.Maps.OfflineMaps
3
- Version: 2.0.1
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,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,>=3.9
13
+ Requires-Python: <3.14,>=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.0.1
15
+ Requires-Dist: winrt-runtime==2.2.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Devices.Geolocation[all]==2.0.1; extra == "all"
18
- Requires-Dist: winrt-Windows.Foundation[all]==2.0.1; extra == "all"
19
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.0.1; extra == "all"
17
+ Requires-Dist: winrt-Windows.Devices.Geolocation[all]==2.2.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.2.0; extra == "all"
20
20
 
21
21
  <!-- warning: Please don't edit this file. It was automatically generated. -->
22
22
 
@@ -0,0 +1,5 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
+
3
+ winrt-Windows.Devices.Geolocation[all]==2.2.0
4
+ winrt-Windows.Foundation[all]==2.2.0
5
+ winrt-Windows.Foundation.Collections[all]==2.2.0
@@ -1,8 +1,7 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
2
 
3
3
  #include "py.Windows.Services.Maps.OfflineMaps.h"
4
4
 
5
-
6
5
  namespace py::cpp::Windows::Services::Maps::OfflineMaps
7
6
  {
8
7
  // ----- OfflineMapPackage class --------------------
@@ -28,14 +27,21 @@ namespace py::cpp::Windows::Services::Maps::OfflineMaps
28
27
 
29
28
  if (arg_count == 1)
30
29
  {
31
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Services.Maps.OfflineMaps.OfflineMapPackage", L"FindPackagesAsync", 1))
32
- {
33
- py::set_arg_count_version_error(1);
34
- return nullptr;
35
- }
36
-
37
30
  try
38
31
  {
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.Services.Maps.OfflineMaps.OfflineMapPackage", L"FindPackagesAsync", 1);
37
+ }
38
+
39
+ if (!is_overload_present.value())
40
+ {
41
+ py::set_arg_count_version_error(1);
42
+ return nullptr;
43
+ }
44
+
39
45
  auto param0 = py::convert_to<winrt::Windows::Devices::Geolocation::Geopoint>(args, 0);
40
46
 
41
47
  return py::convert(winrt::Windows::Services::Maps::OfflineMaps::OfflineMapPackage::FindPackagesAsync(param0));
@@ -59,14 +65,21 @@ namespace py::cpp::Windows::Services::Maps::OfflineMaps
59
65
 
60
66
  if (arg_count == 1)
61
67
  {
62
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Services.Maps.OfflineMaps.OfflineMapPackage", L"FindPackagesInBoundingBoxAsync", 1))
63
- {
64
- py::set_arg_count_version_error(1);
65
- return nullptr;
66
- }
67
-
68
68
  try
69
69
  {
70
+ static std::optional<bool> is_overload_present{};
71
+
72
+ if (!is_overload_present.has_value())
73
+ {
74
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Services.Maps.OfflineMaps.OfflineMapPackage", L"FindPackagesInBoundingBoxAsync", 1);
75
+ }
76
+
77
+ if (!is_overload_present.value())
78
+ {
79
+ py::set_arg_count_version_error(1);
80
+ return nullptr;
81
+ }
82
+
70
83
  auto param0 = py::convert_to<winrt::Windows::Devices::Geolocation::GeoboundingBox>(args, 0);
71
84
 
72
85
  return py::convert(winrt::Windows::Services::Maps::OfflineMaps::OfflineMapPackage::FindPackagesInBoundingBoxAsync(param0));
@@ -90,14 +103,21 @@ namespace py::cpp::Windows::Services::Maps::OfflineMaps
90
103
 
91
104
  if (arg_count == 1)
92
105
  {
93
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Services.Maps.OfflineMaps.OfflineMapPackage", L"FindPackagesInGeocircleAsync", 1))
94
- {
95
- py::set_arg_count_version_error(1);
96
- return nullptr;
97
- }
98
-
99
106
  try
100
107
  {
108
+ static std::optional<bool> is_overload_present{};
109
+
110
+ if (!is_overload_present.has_value())
111
+ {
112
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Services.Maps.OfflineMaps.OfflineMapPackage", L"FindPackagesInGeocircleAsync", 1);
113
+ }
114
+
115
+ if (!is_overload_present.value())
116
+ {
117
+ py::set_arg_count_version_error(1);
118
+ return nullptr;
119
+ }
120
+
101
121
  auto param0 = py::convert_to<winrt::Windows::Devices::Geolocation::Geocircle>(args, 0);
102
122
 
103
123
  return py::convert(winrt::Windows::Services::Maps::OfflineMaps::OfflineMapPackage::FindPackagesInGeocircleAsync(param0));
@@ -121,14 +141,21 @@ namespace py::cpp::Windows::Services::Maps::OfflineMaps
121
141
 
122
142
  if (arg_count == 0)
123
143
  {
124
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Services.Maps.OfflineMaps.OfflineMapPackage", L"RequestStartDownloadAsync", 0))
125
- {
126
- py::set_arg_count_version_error(0);
127
- return nullptr;
128
- }
129
-
130
144
  try
131
145
  {
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.Services.Maps.OfflineMaps.OfflineMapPackage", L"RequestStartDownloadAsync", 0);
151
+ }
152
+
153
+ if (!is_overload_present.value())
154
+ {
155
+ py::set_arg_count_version_error(0);
156
+ return nullptr;
157
+ }
158
+
132
159
  return py::convert(self->obj.RequestStartDownloadAsync());
133
160
  }
134
161
  catch (...)
@@ -146,14 +173,21 @@ namespace py::cpp::Windows::Services::Maps::OfflineMaps
146
173
 
147
174
  static PyObject* OfflineMapPackage_get_DisplayName(py::wrapper::Windows::Services::Maps::OfflineMaps::OfflineMapPackage* self, void* /*unused*/) noexcept
148
175
  {
149
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Services.Maps.OfflineMaps.OfflineMapPackage", L"DisplayName"))
150
- {
151
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
152
- return nullptr;
153
- }
154
-
155
176
  try
156
177
  {
178
+ static std::optional<bool> is_property_present{};
179
+
180
+ if (!is_property_present.has_value())
181
+ {
182
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Services.Maps.OfflineMaps.OfflineMapPackage", L"DisplayName");
183
+ }
184
+
185
+ if (!is_property_present.value())
186
+ {
187
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
188
+ return nullptr;
189
+ }
190
+
157
191
  return py::convert(self->obj.DisplayName());
158
192
  }
159
193
  catch (...)
@@ -165,14 +199,21 @@ namespace py::cpp::Windows::Services::Maps::OfflineMaps
165
199
 
166
200
  static PyObject* OfflineMapPackage_get_EnclosingRegionName(py::wrapper::Windows::Services::Maps::OfflineMaps::OfflineMapPackage* self, void* /*unused*/) noexcept
167
201
  {
168
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Services.Maps.OfflineMaps.OfflineMapPackage", L"EnclosingRegionName"))
169
- {
170
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
171
- return nullptr;
172
- }
173
-
174
202
  try
175
203
  {
204
+ static std::optional<bool> is_property_present{};
205
+
206
+ if (!is_property_present.has_value())
207
+ {
208
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Services.Maps.OfflineMaps.OfflineMapPackage", L"EnclosingRegionName");
209
+ }
210
+
211
+ if (!is_property_present.value())
212
+ {
213
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
214
+ return nullptr;
215
+ }
216
+
176
217
  return py::convert(self->obj.EnclosingRegionName());
177
218
  }
178
219
  catch (...)
@@ -184,14 +225,21 @@ namespace py::cpp::Windows::Services::Maps::OfflineMaps
184
225
 
185
226
  static PyObject* OfflineMapPackage_get_EstimatedSizeInBytes(py::wrapper::Windows::Services::Maps::OfflineMaps::OfflineMapPackage* self, void* /*unused*/) noexcept
186
227
  {
187
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Services.Maps.OfflineMaps.OfflineMapPackage", L"EstimatedSizeInBytes"))
188
- {
189
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
190
- return nullptr;
191
- }
192
-
193
228
  try
194
229
  {
230
+ static std::optional<bool> is_property_present{};
231
+
232
+ if (!is_property_present.has_value())
233
+ {
234
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Services.Maps.OfflineMaps.OfflineMapPackage", L"EstimatedSizeInBytes");
235
+ }
236
+
237
+ if (!is_property_present.value())
238
+ {
239
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
240
+ return nullptr;
241
+ }
242
+
195
243
  return py::convert(self->obj.EstimatedSizeInBytes());
196
244
  }
197
245
  catch (...)
@@ -203,14 +251,21 @@ namespace py::cpp::Windows::Services::Maps::OfflineMaps
203
251
 
204
252
  static PyObject* OfflineMapPackage_get_Status(py::wrapper::Windows::Services::Maps::OfflineMaps::OfflineMapPackage* self, void* /*unused*/) noexcept
205
253
  {
206
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Services.Maps.OfflineMaps.OfflineMapPackage", L"Status"))
207
- {
208
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
209
- return nullptr;
210
- }
211
-
212
254
  try
213
255
  {
256
+ static std::optional<bool> is_property_present{};
257
+
258
+ if (!is_property_present.has_value())
259
+ {
260
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Services.Maps.OfflineMaps.OfflineMapPackage", L"Status");
261
+ }
262
+
263
+ if (!is_property_present.value())
264
+ {
265
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
266
+ return nullptr;
267
+ }
268
+
214
269
  return py::convert(self->obj.Status());
215
270
  }
216
271
  catch (...)
@@ -222,14 +277,21 @@ namespace py::cpp::Windows::Services::Maps::OfflineMaps
222
277
 
223
278
  static PyObject* OfflineMapPackage_add_StatusChanged(py::wrapper::Windows::Services::Maps::OfflineMaps::OfflineMapPackage* self, PyObject* arg) noexcept
224
279
  {
225
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Services.Maps.OfflineMaps.OfflineMapPackage", L"StatusChanged"))
226
- {
227
- PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
228
- return nullptr;
229
- }
230
-
231
280
  try
232
281
  {
282
+ static std::optional<bool> is_event_present{};
283
+
284
+ if (!is_event_present.has_value())
285
+ {
286
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Services.Maps.OfflineMaps.OfflineMapPackage", L"StatusChanged");
287
+ }
288
+
289
+ if (!is_event_present.value())
290
+ {
291
+ PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
292
+ return nullptr;
293
+ }
294
+
233
295
  auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Services::Maps::OfflineMaps::OfflineMapPackage, winrt::Windows::Foundation::IInspectable>>(arg);
234
296
 
235
297
  return py::convert(self->obj.StatusChanged(param0));
@@ -243,14 +305,21 @@ namespace py::cpp::Windows::Services::Maps::OfflineMaps
243
305
 
244
306
  static PyObject* OfflineMapPackage_remove_StatusChanged(py::wrapper::Windows::Services::Maps::OfflineMaps::OfflineMapPackage* self, PyObject* arg) noexcept
245
307
  {
246
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Services.Maps.OfflineMaps.OfflineMapPackage", L"StatusChanged"))
247
- {
248
- PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
249
- return nullptr;
250
- }
251
-
252
308
  try
253
309
  {
310
+ static std::optional<bool> is_event_present{};
311
+
312
+ if (!is_event_present.has_value())
313
+ {
314
+ is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.Services.Maps.OfflineMaps.OfflineMapPackage", L"StatusChanged");
315
+ }
316
+
317
+ if (!is_event_present.value())
318
+ {
319
+ PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
320
+ return nullptr;
321
+ }
322
+
254
323
  auto param0 = py::convert_to<winrt::event_token>(arg);
255
324
 
256
325
  self->obj.StatusChanged(param0);
@@ -304,23 +373,20 @@ namespace py::cpp::Windows::Services::Maps::OfflineMaps
304
373
  { }
305
374
  };
306
375
 
307
- static PyType_Slot _type_slots_OfflineMapPackage[] =
308
- {
376
+ static PyType_Slot _type_slots_OfflineMapPackage[] = {
309
377
  { Py_tp_new, reinterpret_cast<void*>(_new_OfflineMapPackage) },
310
378
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_OfflineMapPackage) },
311
379
  { Py_tp_methods, reinterpret_cast<void*>(_methods_OfflineMapPackage) },
312
380
  { Py_tp_getset, reinterpret_cast<void*>(_getset_OfflineMapPackage) },
313
- { },
381
+ { }
314
382
  };
315
383
 
316
- static PyType_Spec type_spec_OfflineMapPackage =
317
- {
384
+ static PyType_Spec type_spec_OfflineMapPackage = {
318
385
  "winrt._winrt_windows_services_maps_offlinemaps.OfflineMapPackage",
319
386
  sizeof(py::wrapper::Windows::Services::Maps::OfflineMaps::OfflineMapPackage),
320
387
  0,
321
388
  Py_TPFLAGS_DEFAULT,
322
- _type_slots_OfflineMapPackage
323
- };
389
+ _type_slots_OfflineMapPackage};
324
390
 
325
391
  static PyGetSetDef getset_OfflineMapPackage_Static[] = {
326
392
  { }
@@ -369,14 +435,21 @@ namespace py::cpp::Windows::Services::Maps::OfflineMaps
369
435
 
370
436
  static PyObject* OfflineMapPackageQueryResult_get_Packages(py::wrapper::Windows::Services::Maps::OfflineMaps::OfflineMapPackageQueryResult* self, void* /*unused*/) noexcept
371
437
  {
372
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Services.Maps.OfflineMaps.OfflineMapPackageQueryResult", L"Packages"))
373
- {
374
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
375
- return nullptr;
376
- }
377
-
378
438
  try
379
439
  {
440
+ static std::optional<bool> is_property_present{};
441
+
442
+ if (!is_property_present.has_value())
443
+ {
444
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Services.Maps.OfflineMaps.OfflineMapPackageQueryResult", L"Packages");
445
+ }
446
+
447
+ if (!is_property_present.value())
448
+ {
449
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
450
+ return nullptr;
451
+ }
452
+
380
453
  return py::convert(self->obj.Packages());
381
454
  }
382
455
  catch (...)
@@ -388,14 +461,21 @@ namespace py::cpp::Windows::Services::Maps::OfflineMaps
388
461
 
389
462
  static PyObject* OfflineMapPackageQueryResult_get_Status(py::wrapper::Windows::Services::Maps::OfflineMaps::OfflineMapPackageQueryResult* self, void* /*unused*/) noexcept
390
463
  {
391
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Services.Maps.OfflineMaps.OfflineMapPackageQueryResult", L"Status"))
392
- {
393
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
394
- return nullptr;
395
- }
396
-
397
464
  try
398
465
  {
466
+ static std::optional<bool> is_property_present{};
467
+
468
+ if (!is_property_present.has_value())
469
+ {
470
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Services.Maps.OfflineMaps.OfflineMapPackageQueryResult", L"Status");
471
+ }
472
+
473
+ if (!is_property_present.value())
474
+ {
475
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
476
+ return nullptr;
477
+ }
478
+
399
479
  return py::convert(self->obj.Status());
400
480
  }
401
481
  catch (...)
@@ -441,23 +521,20 @@ namespace py::cpp::Windows::Services::Maps::OfflineMaps
441
521
  { }
442
522
  };
443
523
 
444
- static PyType_Slot _type_slots_OfflineMapPackageQueryResult[] =
445
- {
524
+ static PyType_Slot _type_slots_OfflineMapPackageQueryResult[] = {
446
525
  { Py_tp_new, reinterpret_cast<void*>(_new_OfflineMapPackageQueryResult) },
447
526
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_OfflineMapPackageQueryResult) },
448
527
  { Py_tp_methods, reinterpret_cast<void*>(_methods_OfflineMapPackageQueryResult) },
449
528
  { Py_tp_getset, reinterpret_cast<void*>(_getset_OfflineMapPackageQueryResult) },
450
- { },
529
+ { }
451
530
  };
452
531
 
453
- static PyType_Spec type_spec_OfflineMapPackageQueryResult =
454
- {
532
+ static PyType_Spec type_spec_OfflineMapPackageQueryResult = {
455
533
  "winrt._winrt_windows_services_maps_offlinemaps.OfflineMapPackageQueryResult",
456
534
  sizeof(py::wrapper::Windows::Services::Maps::OfflineMaps::OfflineMapPackageQueryResult),
457
535
  0,
458
536
  Py_TPFLAGS_DEFAULT,
459
- _type_slots_OfflineMapPackageQueryResult
460
- };
537
+ _type_slots_OfflineMapPackageQueryResult};
461
538
 
462
539
  // ----- OfflineMapPackageStartDownloadResult class --------------------
463
540
 
@@ -478,14 +555,21 @@ namespace py::cpp::Windows::Services::Maps::OfflineMaps
478
555
 
479
556
  static PyObject* OfflineMapPackageStartDownloadResult_get_Status(py::wrapper::Windows::Services::Maps::OfflineMaps::OfflineMapPackageStartDownloadResult* self, void* /*unused*/) noexcept
480
557
  {
481
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Services.Maps.OfflineMaps.OfflineMapPackageStartDownloadResult", L"Status"))
482
- {
483
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
484
- return nullptr;
485
- }
486
-
487
558
  try
488
559
  {
560
+ static std::optional<bool> is_property_present{};
561
+
562
+ if (!is_property_present.has_value())
563
+ {
564
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Services.Maps.OfflineMaps.OfflineMapPackageStartDownloadResult", L"Status");
565
+ }
566
+
567
+ if (!is_property_present.value())
568
+ {
569
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
570
+ return nullptr;
571
+ }
572
+
489
573
  return py::convert(self->obj.Status());
490
574
  }
491
575
  catch (...)
@@ -530,39 +614,35 @@ namespace py::cpp::Windows::Services::Maps::OfflineMaps
530
614
  { }
531
615
  };
532
616
 
533
- static PyType_Slot _type_slots_OfflineMapPackageStartDownloadResult[] =
534
- {
617
+ static PyType_Slot _type_slots_OfflineMapPackageStartDownloadResult[] = {
535
618
  { Py_tp_new, reinterpret_cast<void*>(_new_OfflineMapPackageStartDownloadResult) },
536
619
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_OfflineMapPackageStartDownloadResult) },
537
620
  { Py_tp_methods, reinterpret_cast<void*>(_methods_OfflineMapPackageStartDownloadResult) },
538
621
  { Py_tp_getset, reinterpret_cast<void*>(_getset_OfflineMapPackageStartDownloadResult) },
539
- { },
622
+ { }
540
623
  };
541
624
 
542
- static PyType_Spec type_spec_OfflineMapPackageStartDownloadResult =
543
- {
625
+ static PyType_Spec type_spec_OfflineMapPackageStartDownloadResult = {
544
626
  "winrt._winrt_windows_services_maps_offlinemaps.OfflineMapPackageStartDownloadResult",
545
627
  sizeof(py::wrapper::Windows::Services::Maps::OfflineMaps::OfflineMapPackageStartDownloadResult),
546
628
  0,
547
629
  Py_TPFLAGS_DEFAULT,
548
- _type_slots_OfflineMapPackageStartDownloadResult
549
- };
630
+ _type_slots_OfflineMapPackageStartDownloadResult};
550
631
 
551
632
  // ----- Windows.Services.Maps.OfflineMaps Initialization --------------------
552
- PyDoc_STRVAR(module_doc, "Windows::Services::Maps::OfflineMaps");
553
633
 
634
+ PyDoc_STRVAR(module_doc, "Windows.Services.Maps.OfflineMaps");
554
635
 
555
- static PyModuleDef module_def
556
- = {PyModuleDef_HEAD_INIT,
557
- "_winrt_windows_services_maps_offlinemaps",
558
- module_doc,
559
- 0,
560
- nullptr,
561
- nullptr,
562
- nullptr,
563
- nullptr,
564
- nullptr};
565
-
636
+ static PyModuleDef module_def = {
637
+ PyModuleDef_HEAD_INIT,
638
+ "_winrt_windows_services_maps_offlinemaps",
639
+ module_doc,
640
+ 0,
641
+ nullptr,
642
+ nullptr,
643
+ nullptr,
644
+ nullptr,
645
+ nullptr};
566
646
  } // py::cpp::Windows::Services::Maps::OfflineMaps
567
647
 
568
648
  PyMODINIT_FUNC PyInit__winrt_windows_services_maps_offlinemaps(void) noexcept
@@ -600,17 +680,20 @@ PyMODINIT_FUNC PyInit__winrt_windows_services_maps_offlinemaps(void) noexcept
600
680
  return nullptr;
601
681
  }
602
682
 
603
- if (py::register_python_type(module.get(), &type_spec_OfflineMapPackage, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_OfflineMapPackage_Static.get())) == -1)
683
+ py::pytype_handle OfflineMapPackage_type{py::register_python_type(module.get(), &type_spec_OfflineMapPackage, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_OfflineMapPackage_Static.get()))};
684
+ if (!OfflineMapPackage_type)
604
685
  {
605
686
  return nullptr;
606
687
  }
607
688
 
608
- if (py::register_python_type(module.get(), &type_spec_OfflineMapPackageQueryResult, object_bases.get(), nullptr) == -1)
689
+ py::pytype_handle OfflineMapPackageQueryResult_type{py::register_python_type(module.get(), &type_spec_OfflineMapPackageQueryResult, object_bases.get(), nullptr)};
690
+ if (!OfflineMapPackageQueryResult_type)
609
691
  {
610
692
  return nullptr;
611
693
  }
612
694
 
613
- if (py::register_python_type(module.get(), &type_spec_OfflineMapPackageStartDownloadResult, object_bases.get(), nullptr) == -1)
695
+ py::pytype_handle OfflineMapPackageStartDownloadResult_type{py::register_python_type(module.get(), &type_spec_OfflineMapPackageStartDownloadResult, object_bases.get(), nullptr)};
696
+ if (!OfflineMapPackageStartDownloadResult_type)
614
697
  {
615
698
  return nullptr;
616
699
  }
@@ -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.0.1
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
2
 
3
- winrt-runtime==2.0.1
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.0.1
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
@@ -9,9 +9,9 @@ from builtins import property as _property
9
9
 
10
10
  import winrt._winrt
11
11
  import winrt.system
12
- import winrt.windows.devices.geolocation
13
- import winrt.windows.foundation
14
- import winrt.windows.foundation.collections
12
+ import winrt.windows.devices.geolocation as windows_devices_geolocation
13
+ import winrt.windows.foundation as windows_foundation
14
+ import winrt.windows.foundation.collections as windows_foundation_collections
15
15
 
16
16
  from winrt.windows.services.maps.offlinemaps import OfflineMapPackageQueryStatus, OfflineMapPackageStartDownloadStatus, OfflineMapPackageStatus
17
17
 
@@ -19,17 +19,17 @@ Self = typing.TypeVar('Self')
19
19
 
20
20
  @typing.final
21
21
  class OfflineMapPackage_Static(type):
22
- def find_packages_async(cls, query_point: typing.Optional[winrt.windows.devices.geolocation.Geopoint], /) -> winrt.windows.foundation.IAsyncOperation[OfflineMapPackageQueryResult]: ...
23
- def find_packages_in_bounding_box_async(cls, query_bounding_box: typing.Optional[winrt.windows.devices.geolocation.GeoboundingBox], /) -> winrt.windows.foundation.IAsyncOperation[OfflineMapPackageQueryResult]: ...
24
- def find_packages_in_geocircle_async(cls, query_circle: typing.Optional[winrt.windows.devices.geolocation.Geocircle], /) -> winrt.windows.foundation.IAsyncOperation[OfflineMapPackageQueryResult]: ...
22
+ def find_packages_async(cls, query_point: typing.Optional[windows_devices_geolocation.Geopoint], /) -> windows_foundation.IAsyncOperation[OfflineMapPackageQueryResult]: ...
23
+ def find_packages_in_bounding_box_async(cls, query_bounding_box: typing.Optional[windows_devices_geolocation.GeoboundingBox], /) -> windows_foundation.IAsyncOperation[OfflineMapPackageQueryResult]: ...
24
+ def find_packages_in_geocircle_async(cls, query_circle: typing.Optional[windows_devices_geolocation.Geocircle], /) -> windows_foundation.IAsyncOperation[OfflineMapPackageQueryResult]: ...
25
25
 
26
26
  @typing.final
27
27
  class OfflineMapPackage(winrt.system.Object, metaclass=OfflineMapPackage_Static):
28
28
  @staticmethod
29
29
  def _from(obj: winrt.system.Object, /) -> OfflineMapPackage: ...
30
- def request_start_download_async(self) -> winrt.windows.foundation.IAsyncOperation[OfflineMapPackageStartDownloadResult]: ...
31
- def add_status_changed(self, value: winrt.windows.foundation.TypedEventHandler[OfflineMapPackage, winrt.system.Object], /) -> winrt.windows.foundation.EventRegistrationToken: ...
32
- def remove_status_changed(self, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
30
+ def request_start_download_async(self) -> windows_foundation.IAsyncOperation[OfflineMapPackageStartDownloadResult]: ...
31
+ def add_status_changed(self, value: windows_foundation.TypedEventHandler[OfflineMapPackage, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
32
+ def remove_status_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
33
33
  @_property
34
34
  def display_name(self) -> str: ...
35
35
  @_property
@@ -44,7 +44,7 @@ class OfflineMapPackageQueryResult(winrt.system.Object):
44
44
  @staticmethod
45
45
  def _from(obj: winrt.system.Object, /) -> OfflineMapPackageQueryResult: ...
46
46
  @_property
47
- def packages(self) -> typing.Optional[winrt.windows.foundation.collections.IVectorView[OfflineMapPackage]]: ...
47
+ def packages(self) -> typing.Optional[windows_foundation_collections.IVectorView[OfflineMapPackage]]: ...
48
48
  @_property
49
49
  def status(self) -> OfflineMapPackageQueryStatus: ...
50
50
 
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
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.Services.Maps.OfflineMaps
3
- Version: 2.0.1
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,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,>=3.9
13
+ Requires-Python: <3.14,>=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.0.1
15
+ Requires-Dist: winrt-runtime==2.2.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Devices.Geolocation[all]==2.0.1; extra == "all"
18
- Requires-Dist: winrt-Windows.Foundation[all]==2.0.1; extra == "all"
19
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.0.1; extra == "all"
17
+ Requires-Dist: winrt-Windows.Devices.Geolocation[all]==2.2.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.2.0; extra == "all"
20
20
 
21
21
  <!-- warning: Please don't edit this file. It was automatically generated. -->
22
22
 
@@ -0,0 +1,6 @@
1
+ winrt-runtime==2.2.0
2
+
3
+ [all]
4
+ winrt-Windows.Devices.Geolocation[all]==2.2.0
5
+ winrt-Windows.Foundation[all]==2.2.0
6
+ winrt-Windows.Foundation.Collections[all]==2.2.0
@@ -1,5 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
2
-
3
- winrt-Windows.Devices.Geolocation[all]==2.0.1
4
- winrt-Windows.Foundation[all]==2.0.1
5
- winrt-Windows.Foundation.Collections[all]==2.0.1
@@ -1,6 +0,0 @@
1
- winrt-runtime==2.0.1
2
-
3
- [all]
4
- winrt-Windows.Devices.Geolocation[all]==2.0.1
5
- winrt-Windows.Foundation[all]==2.0.1
6
- winrt-Windows.Foundation.Collections[all]==2.0.1