winrt-Windows.ApplicationModel.Calls.Provider 2.0.0b2__tar.gz → 2.1.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 (21) hide show
  1. {winrt-Windows.ApplicationModel.Calls.Provider-2.0.0b2 → winrt_windows_applicationmodel_calls_provider-2.1.0}/PKG-INFO +4 -1
  2. winrt_windows_applicationmodel_calls_provider-2.1.0/all-requirements.txt +4 -0
  3. {winrt-Windows.ApplicationModel.Calls.Provider-2.0.0b2 → winrt_windows_applicationmodel_calls_provider-2.1.0}/py.Windows.ApplicationModel.Calls.Provider.cpp +110 -118
  4. {winrt-Windows.ApplicationModel.Calls.Provider-2.0.0b2 → winrt_windows_applicationmodel_calls_provider-2.1.0}/pyproject.toml +2 -2
  5. winrt_windows_applicationmodel_calls_provider-2.1.0/pywinrt-version.txt +1 -0
  6. {winrt-Windows.ApplicationModel.Calls.Provider-2.0.0b2 → winrt_windows_applicationmodel_calls_provider-2.1.0}/requirements.txt +2 -2
  7. winrt_windows_applicationmodel_calls_provider-2.1.0/setup.py +31 -0
  8. {winrt-Windows.ApplicationModel.Calls.Provider-2.0.0b2 → winrt_windows_applicationmodel_calls_provider-2.1.0}/winrt/_winrt_windows_applicationmodel_calls_provider.pyi +8 -9
  9. {winrt-Windows.ApplicationModel.Calls.Provider-2.0.0b2 → winrt_windows_applicationmodel_calls_provider-2.1.0}/winrt/windows/applicationmodel/calls/provider/__init__.py +1 -1
  10. winrt_windows_applicationmodel_calls_provider-2.1.0/winrt/windows/applicationmodel/calls/provider/py.typed +0 -0
  11. {winrt-Windows.ApplicationModel.Calls.Provider-2.0.0b2 → winrt_windows_applicationmodel_calls_provider-2.1.0}/winrt_Windows.ApplicationModel.Calls.Provider.egg-info/PKG-INFO +4 -1
  12. {winrt-Windows.ApplicationModel.Calls.Provider-2.0.0b2 → winrt_windows_applicationmodel_calls_provider-2.1.0}/winrt_Windows.ApplicationModel.Calls.Provider.egg-info/SOURCES.txt +1 -0
  13. winrt_windows_applicationmodel_calls_provider-2.1.0/winrt_Windows.ApplicationModel.Calls.Provider.egg-info/requires.txt +5 -0
  14. winrt-Windows.ApplicationModel.Calls.Provider-2.0.0b2/all-requirements.txt +0 -4
  15. winrt-Windows.ApplicationModel.Calls.Provider-2.0.0b2/pywinrt-version.txt +0 -1
  16. winrt-Windows.ApplicationModel.Calls.Provider-2.0.0b2/setup.py +0 -16
  17. winrt-Windows.ApplicationModel.Calls.Provider-2.0.0b2/winrt_Windows.ApplicationModel.Calls.Provider.egg-info/requires.txt +0 -5
  18. {winrt-Windows.ApplicationModel.Calls.Provider-2.0.0b2 → winrt_windows_applicationmodel_calls_provider-2.1.0}/README.md +0 -0
  19. {winrt-Windows.ApplicationModel.Calls.Provider-2.0.0b2 → winrt_windows_applicationmodel_calls_provider-2.1.0}/setup.cfg +0 -0
  20. {winrt-Windows.ApplicationModel.Calls.Provider-2.0.0b2 → winrt_windows_applicationmodel_calls_provider-2.1.0}/winrt_Windows.ApplicationModel.Calls.Provider.egg-info/dependency_links.txt +0 -0
  21. {winrt-Windows.ApplicationModel.Calls.Provider-2.0.0b2 → winrt_windows_applicationmodel_calls_provider-2.1.0}/winrt_Windows.ApplicationModel.Calls.Provider.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.ApplicationModel.Calls.Provider
3
- Version: 2.0.0b2
3
+ Version: 2.1.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -12,7 +12,10 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
13
  Requires-Python: <3.13,>=3.9
14
14
  Description-Content-Type: text/markdown
15
+ Requires-Dist: winrt-runtime==2.1.0
15
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"
16
19
 
17
20
  <!-- warning: Please don't edit this file. It was automatically generated. -->
18
21
 
@@ -0,0 +1,4 @@
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
@@ -1,8 +1,7 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
2
 
3
3
  #include "py.Windows.ApplicationModel.Calls.Provider.h"
4
4
 
5
-
6
5
  namespace py::cpp::Windows::ApplicationModel::Calls::Provider
7
6
  {
8
7
  // ----- PhoneCallOrigin class --------------------
@@ -46,14 +45,14 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
46
45
 
47
46
  static PyObject* PhoneCallOrigin_get_Location(py::wrapper::Windows::ApplicationModel::Calls::Provider::PhoneCallOrigin* self, void* /*unused*/) noexcept
48
47
  {
49
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin", L"Location"))
50
- {
51
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
52
- return nullptr;
53
- }
54
-
55
48
  try
56
49
  {
50
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin", L"Location"))
51
+ {
52
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
53
+ return nullptr;
54
+ }
55
+
57
56
  return py::convert(self->obj.Location());
58
57
  }
59
58
  catch (...)
@@ -65,12 +64,6 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
65
64
 
66
65
  static int PhoneCallOrigin_put_Location(py::wrapper::Windows::ApplicationModel::Calls::Provider::PhoneCallOrigin* self, PyObject* arg, void* /*unused*/) noexcept
67
66
  {
68
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin", L"Location"))
69
- {
70
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
71
- return -1;
72
- }
73
-
74
67
  if (arg == nullptr)
75
68
  {
76
69
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
@@ -79,6 +72,12 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
79
72
 
80
73
  try
81
74
  {
75
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin", L"Location"))
76
+ {
77
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
78
+ return -1;
79
+ }
80
+
82
81
  auto param0 = py::convert_to<winrt::hstring>(arg);
83
82
 
84
83
  self->obj.Location(param0);
@@ -93,14 +92,14 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
93
92
 
94
93
  static PyObject* PhoneCallOrigin_get_CategoryDescription(py::wrapper::Windows::ApplicationModel::Calls::Provider::PhoneCallOrigin* self, void* /*unused*/) noexcept
95
94
  {
96
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin", L"CategoryDescription"))
97
- {
98
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
99
- return nullptr;
100
- }
101
-
102
95
  try
103
96
  {
97
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin", L"CategoryDescription"))
98
+ {
99
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
100
+ return nullptr;
101
+ }
102
+
104
103
  return py::convert(self->obj.CategoryDescription());
105
104
  }
106
105
  catch (...)
@@ -112,12 +111,6 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
112
111
 
113
112
  static int PhoneCallOrigin_put_CategoryDescription(py::wrapper::Windows::ApplicationModel::Calls::Provider::PhoneCallOrigin* self, PyObject* arg, void* /*unused*/) noexcept
114
113
  {
115
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin", L"CategoryDescription"))
116
- {
117
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
118
- return -1;
119
- }
120
-
121
114
  if (arg == nullptr)
122
115
  {
123
116
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
@@ -126,6 +119,12 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
126
119
 
127
120
  try
128
121
  {
122
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin", L"CategoryDescription"))
123
+ {
124
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
125
+ return -1;
126
+ }
127
+
129
128
  auto param0 = py::convert_to<winrt::hstring>(arg);
130
129
 
131
130
  self->obj.CategoryDescription(param0);
@@ -140,14 +139,14 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
140
139
 
141
140
  static PyObject* PhoneCallOrigin_get_Category(py::wrapper::Windows::ApplicationModel::Calls::Provider::PhoneCallOrigin* self, void* /*unused*/) noexcept
142
141
  {
143
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin", L"Category"))
144
- {
145
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
146
- return nullptr;
147
- }
148
-
149
142
  try
150
143
  {
144
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin", L"Category"))
145
+ {
146
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
147
+ return nullptr;
148
+ }
149
+
151
150
  return py::convert(self->obj.Category());
152
151
  }
153
152
  catch (...)
@@ -159,12 +158,6 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
159
158
 
160
159
  static int PhoneCallOrigin_put_Category(py::wrapper::Windows::ApplicationModel::Calls::Provider::PhoneCallOrigin* self, PyObject* arg, void* /*unused*/) noexcept
161
160
  {
162
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin", L"Category"))
163
- {
164
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
165
- return -1;
166
- }
167
-
168
161
  if (arg == nullptr)
169
162
  {
170
163
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
@@ -173,6 +166,12 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
173
166
 
174
167
  try
175
168
  {
169
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin", L"Category"))
170
+ {
171
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
172
+ return -1;
173
+ }
174
+
176
175
  auto param0 = py::convert_to<winrt::hstring>(arg);
177
176
 
178
177
  self->obj.Category(param0);
@@ -187,14 +186,14 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
187
186
 
188
187
  static PyObject* PhoneCallOrigin_get_DisplayName(py::wrapper::Windows::ApplicationModel::Calls::Provider::PhoneCallOrigin* self, void* /*unused*/) noexcept
189
188
  {
190
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin", L"DisplayName"))
191
- {
192
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
193
- return nullptr;
194
- }
195
-
196
189
  try
197
190
  {
191
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin", L"DisplayName"))
192
+ {
193
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
194
+ return nullptr;
195
+ }
196
+
198
197
  return py::convert(self->obj.DisplayName());
199
198
  }
200
199
  catch (...)
@@ -206,12 +205,6 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
206
205
 
207
206
  static int PhoneCallOrigin_put_DisplayName(py::wrapper::Windows::ApplicationModel::Calls::Provider::PhoneCallOrigin* self, PyObject* arg, void* /*unused*/) noexcept
208
207
  {
209
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin", L"DisplayName"))
210
- {
211
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
212
- return -1;
213
- }
214
-
215
208
  if (arg == nullptr)
216
209
  {
217
210
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
@@ -220,6 +213,12 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
220
213
 
221
214
  try
222
215
  {
216
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin", L"DisplayName"))
217
+ {
218
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
219
+ return -1;
220
+ }
221
+
223
222
  auto param0 = py::convert_to<winrt::hstring>(arg);
224
223
 
225
224
  self->obj.DisplayName(param0);
@@ -234,14 +233,14 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
234
233
 
235
234
  static PyObject* PhoneCallOrigin_get_DisplayPicture(py::wrapper::Windows::ApplicationModel::Calls::Provider::PhoneCallOrigin* self, void* /*unused*/) noexcept
236
235
  {
237
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin", L"DisplayPicture"))
238
- {
239
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
240
- return nullptr;
241
- }
242
-
243
236
  try
244
237
  {
238
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin", L"DisplayPicture"))
239
+ {
240
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
241
+ return nullptr;
242
+ }
243
+
245
244
  return py::convert(self->obj.DisplayPicture());
246
245
  }
247
246
  catch (...)
@@ -253,12 +252,6 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
253
252
 
254
253
  static int PhoneCallOrigin_put_DisplayPicture(py::wrapper::Windows::ApplicationModel::Calls::Provider::PhoneCallOrigin* self, PyObject* arg, void* /*unused*/) noexcept
255
254
  {
256
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin", L"DisplayPicture"))
257
- {
258
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
259
- return -1;
260
- }
261
-
262
255
  if (arg == nullptr)
263
256
  {
264
257
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
@@ -267,6 +260,12 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
267
260
 
268
261
  try
269
262
  {
263
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOrigin", L"DisplayPicture"))
264
+ {
265
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
266
+ return -1;
267
+ }
268
+
270
269
  auto param0 = py::convert_to<winrt::Windows::Storage::StorageFile>(arg);
271
270
 
272
271
  self->obj.DisplayPicture(param0);
@@ -318,23 +317,20 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
318
317
  { }
319
318
  };
320
319
 
321
- static PyType_Slot _type_slots_PhoneCallOrigin[] =
322
- {
320
+ static PyType_Slot _type_slots_PhoneCallOrigin[] = {
323
321
  { Py_tp_new, reinterpret_cast<void*>(_new_PhoneCallOrigin) },
324
322
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PhoneCallOrigin) },
325
323
  { Py_tp_methods, reinterpret_cast<void*>(_methods_PhoneCallOrigin) },
326
324
  { Py_tp_getset, reinterpret_cast<void*>(_getset_PhoneCallOrigin) },
327
- { },
325
+ { }
328
326
  };
329
327
 
330
- static PyType_Spec type_spec_PhoneCallOrigin =
331
- {
328
+ static PyType_Spec type_spec_PhoneCallOrigin = {
332
329
  "winrt._winrt_windows_applicationmodel_calls_provider.PhoneCallOrigin",
333
330
  sizeof(py::wrapper::Windows::ApplicationModel::Calls::Provider::PhoneCallOrigin),
334
331
  0,
335
332
  Py_TPFLAGS_DEFAULT,
336
- _type_slots_PhoneCallOrigin
337
- };
333
+ _type_slots_PhoneCallOrigin};
338
334
 
339
335
  // ----- PhoneCallOriginManager class --------------------
340
336
 
@@ -351,14 +347,14 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
351
347
 
352
348
  if (arg_count == 0)
353
349
  {
354
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOriginManager", L"RequestSetAsActiveCallOriginAppAsync", 0))
355
- {
356
- py::set_arg_count_version_error(0);
357
- return nullptr;
358
- }
359
-
360
350
  try
361
351
  {
352
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOriginManager", L"RequestSetAsActiveCallOriginAppAsync", 0))
353
+ {
354
+ py::set_arg_count_version_error(0);
355
+ return nullptr;
356
+ }
357
+
362
358
  return py::convert(winrt::Windows::ApplicationModel::Calls::Provider::PhoneCallOriginManager::RequestSetAsActiveCallOriginAppAsync());
363
359
  }
364
360
  catch (...)
@@ -380,14 +376,14 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
380
376
 
381
377
  if (arg_count == 2)
382
378
  {
383
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOriginManager", L"SetCallOrigin", 2))
384
- {
385
- py::set_arg_count_version_error(2);
386
- return nullptr;
387
- }
388
-
389
379
  try
390
380
  {
381
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOriginManager", L"SetCallOrigin", 2))
382
+ {
383
+ py::set_arg_count_version_error(2);
384
+ return nullptr;
385
+ }
386
+
391
387
  auto param0 = py::convert_to<winrt::guid>(args, 0);
392
388
  auto param1 = py::convert_to<winrt::Windows::ApplicationModel::Calls::Provider::PhoneCallOrigin>(args, 1);
393
389
 
@@ -413,14 +409,14 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
413
409
 
414
410
  if (arg_count == 0)
415
411
  {
416
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOriginManager", L"ShowPhoneCallOriginSettingsUI", 0))
417
- {
418
- py::set_arg_count_version_error(0);
419
- return nullptr;
420
- }
421
-
422
412
  try
423
413
  {
414
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOriginManager", L"ShowPhoneCallOriginSettingsUI", 0))
415
+ {
416
+ py::set_arg_count_version_error(0);
417
+ return nullptr;
418
+ }
419
+
424
420
  winrt::Windows::ApplicationModel::Calls::Provider::PhoneCallOriginManager::ShowPhoneCallOriginSettingsUI();
425
421
  Py_RETURN_NONE;
426
422
  }
@@ -439,14 +435,14 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
439
435
 
440
436
  static PyObject* PhoneCallOriginManager_get_IsCurrentAppActiveCallOriginApp(PyObject* /*unused*/, void* /*unused*/) noexcept
441
437
  {
442
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOriginManager", L"IsCurrentAppActiveCallOriginApp"))
443
- {
444
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
445
- return nullptr;
446
- }
447
-
448
438
  try
449
439
  {
440
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOriginManager", L"IsCurrentAppActiveCallOriginApp"))
441
+ {
442
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
443
+ return nullptr;
444
+ }
445
+
450
446
  return py::convert(winrt::Windows::ApplicationModel::Calls::Provider::PhoneCallOriginManager::IsCurrentAppActiveCallOriginApp());
451
447
  }
452
448
  catch (...)
@@ -458,14 +454,14 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
458
454
 
459
455
  static PyObject* PhoneCallOriginManager_get_IsSupported(PyObject* /*unused*/, void* /*unused*/) noexcept
460
456
  {
461
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOriginManager", L"IsSupported"))
462
- {
463
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
464
- return nullptr;
465
- }
466
-
467
457
  try
468
458
  {
459
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.Calls.Provider.PhoneCallOriginManager", L"IsSupported"))
460
+ {
461
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
462
+ return nullptr;
463
+ }
464
+
469
465
  return py::convert(winrt::Windows::ApplicationModel::Calls::Provider::PhoneCallOriginManager::IsSupported());
470
466
  }
471
467
  catch (...)
@@ -483,22 +479,19 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
483
479
  { }
484
480
  };
485
481
 
486
- static PyType_Slot _type_slots_PhoneCallOriginManager[] =
487
- {
482
+ static PyType_Slot _type_slots_PhoneCallOriginManager[] = {
488
483
  { Py_tp_new, reinterpret_cast<void*>(_new_PhoneCallOriginManager) },
489
484
  { Py_tp_methods, reinterpret_cast<void*>(_methods_PhoneCallOriginManager) },
490
485
  { Py_tp_getset, reinterpret_cast<void*>(_getset_PhoneCallOriginManager) },
491
- { },
486
+ { }
492
487
  };
493
488
 
494
- static PyType_Spec type_spec_PhoneCallOriginManager =
495
- {
489
+ static PyType_Spec type_spec_PhoneCallOriginManager = {
496
490
  "winrt._winrt_windows_applicationmodel_calls_provider.PhoneCallOriginManager",
497
491
  0,
498
492
  0,
499
493
  Py_TPFLAGS_DEFAULT,
500
- _type_slots_PhoneCallOriginManager
501
- };
494
+ _type_slots_PhoneCallOriginManager};
502
495
 
503
496
  static PyGetSetDef getset_PhoneCallOriginManager_Static[] = {
504
497
  { "is_current_app_active_call_origin_app", reinterpret_cast<getter>(PhoneCallOriginManager_get_IsCurrentAppActiveCallOriginApp), nullptr, nullptr, nullptr },
@@ -531,20 +524,19 @@ namespace py::cpp::Windows::ApplicationModel::Calls::Provider
531
524
  };
532
525
 
533
526
  // ----- Windows.ApplicationModel.Calls.Provider Initialization --------------------
534
- PyDoc_STRVAR(module_doc, "Windows::ApplicationModel::Calls::Provider");
535
-
536
527
 
537
- static PyModuleDef module_def
538
- = {PyModuleDef_HEAD_INIT,
539
- "_winrt_windows_applicationmodel_calls_provider",
540
- module_doc,
541
- 0,
542
- nullptr,
543
- nullptr,
544
- nullptr,
545
- nullptr,
546
- nullptr};
528
+ PyDoc_STRVAR(module_doc, "Windows.ApplicationModel.Calls.Provider");
547
529
 
530
+ static PyModuleDef module_def = {
531
+ PyModuleDef_HEAD_INIT,
532
+ "_winrt_windows_applicationmodel_calls_provider",
533
+ module_doc,
534
+ 0,
535
+ nullptr,
536
+ nullptr,
537
+ nullptr,
538
+ nullptr,
539
+ nullptr};
548
540
  } // py::cpp::Windows::ApplicationModel::Calls::Provider
549
541
 
550
542
  PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_calls_provider(void) noexcept
@@ -1,7 +1,7 @@
1
1
  # WARNING: Please don't edit this file. It was automatically generated.
2
2
 
3
3
  [build-system]
4
- requires = ["setuptools", "setuptools-scm", "winrt-sdk"]
4
+ requires = ["setuptools", "winrt-sdk"]
5
5
  build-backend = "setuptools.build_meta"
6
6
 
7
7
  [project]
@@ -30,7 +30,7 @@ dependencies = { file = "requirements.txt" }
30
30
  optional-dependencies.all = { file = "all-requirements.txt" }
31
31
 
32
32
  [tool.setuptools.package-data]
33
- winrt = ["*.pyi"]
33
+ "*" = ["*.pyi", "py.typed"]
34
34
 
35
35
  [tool.cibuildwheel]
36
36
  # use local winrt-sdk build dependency
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
2
 
3
- winrt-runtime==2.0.0-beta.2
3
+ winrt-runtime==2.1.0
@@ -0,0 +1,31 @@
1
+ # WARNING: Please don't edit this file. It was automatically generated.
2
+
3
+ from setuptools import Extension, setup
4
+ from setuptools.command.build_ext import build_ext
5
+ from winrt_sdk import get_include_dirs
6
+
7
+
8
+ class build_ext_ex(build_ext):
9
+ def build_extension(self, ext):
10
+ if self.compiler.compiler_type == "msvc":
11
+ ext.extra_compile_args = ["/std:c++20", "/permissive-"]
12
+ elif self.compiler.compiler_type == "mingw32":
13
+ ext.extra_compile_args = ["-std=c++20", "-D_WIN32_WINNT=_WIN32_WINNT_WIN10"]
14
+ ext.extra_link_args = ["-loleaut32"]
15
+ else:
16
+ raise ValueError(f"Unsupported compiler: {self.compiler.compiler_type}")
17
+
18
+ build_ext.build_extension(self, ext)
19
+
20
+
21
+ setup(
22
+ cmdclass = {'build_ext': build_ext_ex},
23
+ ext_modules=[
24
+ Extension(
25
+ "winrt._winrt_windows_applicationmodel_calls_provider",
26
+ sources=["py.Windows.ApplicationModel.Calls.Provider.cpp"],
27
+ include_dirs=get_include_dirs(),
28
+ libraries=["windowsapp"],
29
+ )
30
+ ],
31
+ )
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
2
 
3
3
  import datetime
4
4
  import sys
@@ -9,8 +9,8 @@ from builtins import property as _property
9
9
 
10
10
  import winrt._winrt
11
11
  import winrt.system
12
- import winrt.windows.foundation
13
- import winrt.windows.storage
12
+ import winrt.windows.foundation as windows_foundation
13
+ import winrt.windows.storage as windows_storage
14
14
 
15
15
  Self = typing.TypeVar('Self')
16
16
 
@@ -18,7 +18,7 @@ Self = typing.TypeVar('Self')
18
18
  class PhoneCallOrigin(winrt.system.Object):
19
19
  @staticmethod
20
20
  def _from(obj: winrt.system.Object, /) -> PhoneCallOrigin: ...
21
- def __new__(cls: typing.Type[PhoneCallOrigin]) -> PhoneCallOrigin:...
21
+ def __new__(cls: typing.Type[PhoneCallOrigin]) -> PhoneCallOrigin: ...
22
22
  @_property
23
23
  def location(self) -> str: ...
24
24
  @location.setter
@@ -36,13 +36,13 @@ class PhoneCallOrigin(winrt.system.Object):
36
36
  @display_name.setter
37
37
  def display_name(self, value: str) -> None: ...
38
38
  @_property
39
- def display_picture(self) -> typing.Optional[winrt.windows.storage.StorageFile]: ...
39
+ def display_picture(self) -> typing.Optional[windows_storage.StorageFile]: ...
40
40
  @display_picture.setter
41
- def display_picture(self, value: typing.Optional[winrt.windows.storage.StorageFile]) -> None: ...
41
+ def display_picture(self, value: typing.Optional[windows_storage.StorageFile]) -> None: ...
42
42
 
43
43
  @typing.final
44
44
  class PhoneCallOriginManager_Static(type):
45
- def request_set_as_active_call_origin_app_async(cls) -> winrt.windows.foundation.IAsyncOperation[bool]: ...
45
+ def request_set_as_active_call_origin_app_async(cls) -> windows_foundation.IAsyncOperation[bool]: ...
46
46
  def set_call_origin(cls, request_id: _uuid.UUID, call_origin: typing.Optional[PhoneCallOrigin], /) -> None: ...
47
47
  def show_phone_call_origin_settings_u_i(cls) -> None: ...
48
48
  @_property
@@ -52,6 +52,5 @@ class PhoneCallOriginManager_Static(type):
52
52
 
53
53
  @typing.final
54
54
  class PhoneCallOriginManager(winrt.system.Object, metaclass=PhoneCallOriginManager_Static):
55
- @staticmethod
56
- def _from(obj: winrt.system.Object, /) -> PhoneCallOriginManager: ...
55
+ pass
57
56
 
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
2
 
3
3
  import winrt.system
4
4
  from winrt import _winrt_windows_applicationmodel_calls_provider
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.ApplicationModel.Calls.Provider
3
- Version: 2.0.0b2
3
+ Version: 2.1.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -12,7 +12,10 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
13
  Requires-Python: <3.13,>=3.9
14
14
  Description-Content-Type: text/markdown
15
+ Requires-Dist: winrt-runtime==2.1.0
15
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"
16
19
 
17
20
  <!-- warning: Please don't edit this file. It was automatically generated. -->
18
21
 
@@ -7,6 +7,7 @@ requirements.txt
7
7
  setup.py
8
8
  winrt/_winrt_windows_applicationmodel_calls_provider.pyi
9
9
  winrt/windows/applicationmodel/calls/provider/__init__.py
10
+ winrt/windows/applicationmodel/calls/provider/py.typed
10
11
  winrt_Windows.ApplicationModel.Calls.Provider.egg-info/PKG-INFO
11
12
  winrt_Windows.ApplicationModel.Calls.Provider.egg-info/SOURCES.txt
12
13
  winrt_Windows.ApplicationModel.Calls.Provider.egg-info/dependency_links.txt
@@ -0,0 +1,5 @@
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
@@ -1,4 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
2
-
3
- winrt-Windows.Foundation[all]==2.0.0-beta.2
4
- winrt-Windows.Storage[all]==2.0.0-beta.2
@@ -1,16 +0,0 @@
1
- # WARNING: Please don't edit this file. It was automatically generated.
2
-
3
- from setuptools import Extension, setup
4
- from winrt_sdk import get_include_dirs
5
-
6
- setup(
7
- ext_modules=[
8
- Extension(
9
- "winrt._winrt_windows_applicationmodel_calls_provider",
10
- sources=["py.Windows.ApplicationModel.Calls.Provider.cpp"],
11
- include_dirs=get_include_dirs(),
12
- extra_compile_args=["/std:c++20", "/permissive-"],
13
- libraries=["windowsapp"],
14
- )
15
- ],
16
- )
@@ -1,5 +0,0 @@
1
- winrt-runtime==2.0.0-beta.2
2
-
3
- [all]
4
- winrt-Windows.Foundation[all]==2.0.0-beta.2
5
- winrt-Windows.Storage[all]==2.0.0-beta.2