winrt-Windows.ApplicationModel.DataTransfer.ShareTarget 2.1.0__tar.gz → 2.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {winrt_windows_applicationmodel_datatransfer_sharetarget-2.1.0 → winrt_windows_applicationmodel_datatransfer_sharetarget-2.2.0}/PKG-INFO +7 -7
- winrt_windows_applicationmodel_datatransfer_sharetarget-2.2.0/all-requirements.txt +6 -0
- {winrt_windows_applicationmodel_datatransfer_sharetarget-2.1.0 → winrt_windows_applicationmodel_datatransfer_sharetarget-2.2.0}/py.Windows.ApplicationModel.DataTransfer.ShareTarget.cpp +158 -23
- {winrt_windows_applicationmodel_datatransfer_sharetarget-2.1.0 → winrt_windows_applicationmodel_datatransfer_sharetarget-2.2.0}/pyproject.toml +3 -2
- winrt_windows_applicationmodel_datatransfer_sharetarget-2.2.0/pywinrt-version.txt +1 -0
- {winrt_windows_applicationmodel_datatransfer_sharetarget-2.1.0 → winrt_windows_applicationmodel_datatransfer_sharetarget-2.2.0}/requirements.txt +2 -2
- {winrt_windows_applicationmodel_datatransfer_sharetarget-2.1.0 → winrt_windows_applicationmodel_datatransfer_sharetarget-2.2.0}/winrt/_winrt_windows_applicationmodel_datatransfer_sharetarget.pyi +1 -1
- {winrt_windows_applicationmodel_datatransfer_sharetarget-2.1.0 → winrt_windows_applicationmodel_datatransfer_sharetarget-2.2.0}/winrt/windows/applicationmodel/datatransfer/sharetarget/__init__.py +1 -1
- {winrt_windows_applicationmodel_datatransfer_sharetarget-2.1.0 → winrt_windows_applicationmodel_datatransfer_sharetarget-2.2.0}/winrt_Windows.ApplicationModel.DataTransfer.ShareTarget.egg-info/PKG-INFO +7 -7
- winrt_windows_applicationmodel_datatransfer_sharetarget-2.2.0/winrt_Windows.ApplicationModel.DataTransfer.ShareTarget.egg-info/requires.txt +7 -0
- winrt_windows_applicationmodel_datatransfer_sharetarget-2.1.0/all-requirements.txt +0 -6
- winrt_windows_applicationmodel_datatransfer_sharetarget-2.1.0/pywinrt-version.txt +0 -1
- winrt_windows_applicationmodel_datatransfer_sharetarget-2.1.0/winrt_Windows.ApplicationModel.DataTransfer.ShareTarget.egg-info/requires.txt +0 -7
- {winrt_windows_applicationmodel_datatransfer_sharetarget-2.1.0 → winrt_windows_applicationmodel_datatransfer_sharetarget-2.2.0}/README.md +0 -0
- {winrt_windows_applicationmodel_datatransfer_sharetarget-2.1.0 → winrt_windows_applicationmodel_datatransfer_sharetarget-2.2.0}/setup.cfg +0 -0
- {winrt_windows_applicationmodel_datatransfer_sharetarget-2.1.0 → winrt_windows_applicationmodel_datatransfer_sharetarget-2.2.0}/setup.py +0 -0
- {winrt_windows_applicationmodel_datatransfer_sharetarget-2.1.0 → winrt_windows_applicationmodel_datatransfer_sharetarget-2.2.0}/winrt/windows/applicationmodel/datatransfer/sharetarget/py.typed +0 -0
- {winrt_windows_applicationmodel_datatransfer_sharetarget-2.1.0 → winrt_windows_applicationmodel_datatransfer_sharetarget-2.2.0}/winrt_Windows.ApplicationModel.DataTransfer.ShareTarget.egg-info/SOURCES.txt +0 -0
- {winrt_windows_applicationmodel_datatransfer_sharetarget-2.1.0 → winrt_windows_applicationmodel_datatransfer_sharetarget-2.2.0}/winrt_Windows.ApplicationModel.DataTransfer.ShareTarget.egg-info/dependency_links.txt +0 -0
- {winrt_windows_applicationmodel_datatransfer_sharetarget-2.1.0 → winrt_windows_applicationmodel_datatransfer_sharetarget-2.2.0}/winrt_Windows.ApplicationModel.DataTransfer.ShareTarget.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.ApplicationModel.DataTransfer.ShareTarget
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.2.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -10,14 +10,14 @@ Classifier: Operating System :: Microsoft :: Windows
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python: <3.
|
|
13
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.ApplicationModel.Contacts[all]==2.
|
|
18
|
-
Requires-Dist: winrt-Windows.ApplicationModel.DataTransfer[all]==2.
|
|
19
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.
|
|
20
|
-
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.
|
|
17
|
+
Requires-Dist: winrt-Windows.ApplicationModel.Contacts[all]==2.2.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.ApplicationModel.DataTransfer[all]==2.2.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.2.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.2.0; extra == "all"
|
|
21
21
|
|
|
22
22
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
23
23
|
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
|
+
|
|
3
|
+
winrt-Windows.ApplicationModel.Contacts[all]==2.2.0
|
|
4
|
+
winrt-Windows.ApplicationModel.DataTransfer[all]==2.2.0
|
|
5
|
+
winrt-Windows.Foundation.Collections[all]==2.2.0
|
|
6
|
+
winrt-Windows.Storage.Streams[all]==2.2.0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.ApplicationModel.DataTransfer.ShareTarget.h"
|
|
4
4
|
|
|
@@ -19,7 +19,7 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::ShareTarget
|
|
|
19
19
|
{
|
|
20
20
|
try
|
|
21
21
|
{
|
|
22
|
-
winrt::Windows::ApplicationModel::DataTransfer::ShareTarget::QuickLink instance{
|
|
22
|
+
winrt::Windows::ApplicationModel::DataTransfer::ShareTarget::QuickLink instance{};
|
|
23
23
|
return py::wrap(instance, type);
|
|
24
24
|
}
|
|
25
25
|
catch (...)
|
|
@@ -47,7 +47,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::ShareTarget
|
|
|
47
47
|
{
|
|
48
48
|
try
|
|
49
49
|
{
|
|
50
|
-
|
|
50
|
+
static std::optional<bool> is_property_present{};
|
|
51
|
+
|
|
52
|
+
if (!is_property_present.has_value())
|
|
53
|
+
{
|
|
54
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.ShareTarget.QuickLink", L"Title");
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
if (!is_property_present.value())
|
|
51
58
|
{
|
|
52
59
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
53
60
|
return nullptr;
|
|
@@ -72,7 +79,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::ShareTarget
|
|
|
72
79
|
|
|
73
80
|
try
|
|
74
81
|
{
|
|
75
|
-
|
|
82
|
+
static std::optional<bool> is_property_present{};
|
|
83
|
+
|
|
84
|
+
if (!is_property_present.has_value())
|
|
85
|
+
{
|
|
86
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.ShareTarget.QuickLink", L"Title");
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
if (!is_property_present.value())
|
|
76
90
|
{
|
|
77
91
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
78
92
|
return -1;
|
|
@@ -94,7 +108,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::ShareTarget
|
|
|
94
108
|
{
|
|
95
109
|
try
|
|
96
110
|
{
|
|
97
|
-
|
|
111
|
+
static std::optional<bool> is_property_present{};
|
|
112
|
+
|
|
113
|
+
if (!is_property_present.has_value())
|
|
114
|
+
{
|
|
115
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.ShareTarget.QuickLink", L"Thumbnail");
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
if (!is_property_present.value())
|
|
98
119
|
{
|
|
99
120
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
100
121
|
return nullptr;
|
|
@@ -119,7 +140,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::ShareTarget
|
|
|
119
140
|
|
|
120
141
|
try
|
|
121
142
|
{
|
|
122
|
-
|
|
143
|
+
static std::optional<bool> is_property_present{};
|
|
144
|
+
|
|
145
|
+
if (!is_property_present.has_value())
|
|
146
|
+
{
|
|
147
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.ShareTarget.QuickLink", L"Thumbnail");
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
if (!is_property_present.value())
|
|
123
151
|
{
|
|
124
152
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
125
153
|
return -1;
|
|
@@ -141,7 +169,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::ShareTarget
|
|
|
141
169
|
{
|
|
142
170
|
try
|
|
143
171
|
{
|
|
144
|
-
|
|
172
|
+
static std::optional<bool> is_property_present{};
|
|
173
|
+
|
|
174
|
+
if (!is_property_present.has_value())
|
|
175
|
+
{
|
|
176
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.ShareTarget.QuickLink", L"Id");
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
if (!is_property_present.value())
|
|
145
180
|
{
|
|
146
181
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
147
182
|
return nullptr;
|
|
@@ -166,7 +201,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::ShareTarget
|
|
|
166
201
|
|
|
167
202
|
try
|
|
168
203
|
{
|
|
169
|
-
|
|
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.ApplicationModel.DataTransfer.ShareTarget.QuickLink", L"Id");
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
if (!is_property_present.value())
|
|
170
212
|
{
|
|
171
213
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
172
214
|
return -1;
|
|
@@ -188,7 +230,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::ShareTarget
|
|
|
188
230
|
{
|
|
189
231
|
try
|
|
190
232
|
{
|
|
191
|
-
|
|
233
|
+
static std::optional<bool> is_property_present{};
|
|
234
|
+
|
|
235
|
+
if (!is_property_present.has_value())
|
|
236
|
+
{
|
|
237
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.ShareTarget.QuickLink", L"SupportedDataFormats");
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
if (!is_property_present.value())
|
|
192
241
|
{
|
|
193
242
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
194
243
|
return nullptr;
|
|
@@ -207,7 +256,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::ShareTarget
|
|
|
207
256
|
{
|
|
208
257
|
try
|
|
209
258
|
{
|
|
210
|
-
|
|
259
|
+
static std::optional<bool> is_property_present{};
|
|
260
|
+
|
|
261
|
+
if (!is_property_present.has_value())
|
|
262
|
+
{
|
|
263
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.ShareTarget.QuickLink", L"SupportedFileTypes");
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
if (!is_property_present.value())
|
|
211
267
|
{
|
|
212
268
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
213
269
|
return nullptr;
|
|
@@ -301,7 +357,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::ShareTarget
|
|
|
301
357
|
{
|
|
302
358
|
try
|
|
303
359
|
{
|
|
304
|
-
|
|
360
|
+
static std::optional<bool> is_overload_present{};
|
|
361
|
+
|
|
362
|
+
if (!is_overload_present.has_value())
|
|
363
|
+
{
|
|
364
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.DataTransfer.ShareTarget.ShareOperation", L"DismissUI", 0);
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
if (!is_overload_present.value())
|
|
305
368
|
{
|
|
306
369
|
py::set_arg_count_version_error(0);
|
|
307
370
|
return nullptr;
|
|
@@ -331,7 +394,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::ShareTarget
|
|
|
331
394
|
{
|
|
332
395
|
try
|
|
333
396
|
{
|
|
334
|
-
|
|
397
|
+
static std::optional<bool> is_overload_present{};
|
|
398
|
+
|
|
399
|
+
if (!is_overload_present.has_value())
|
|
400
|
+
{
|
|
401
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.DataTransfer.ShareTarget.ShareOperation", L"RemoveThisQuickLink", 0);
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
if (!is_overload_present.value())
|
|
335
405
|
{
|
|
336
406
|
py::set_arg_count_version_error(0);
|
|
337
407
|
return nullptr;
|
|
@@ -361,7 +431,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::ShareTarget
|
|
|
361
431
|
{
|
|
362
432
|
try
|
|
363
433
|
{
|
|
364
|
-
|
|
434
|
+
static std::optional<bool> is_overload_present{};
|
|
435
|
+
|
|
436
|
+
if (!is_overload_present.has_value())
|
|
437
|
+
{
|
|
438
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.DataTransfer.ShareTarget.ShareOperation", L"ReportCompleted", 0);
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
if (!is_overload_present.value())
|
|
365
442
|
{
|
|
366
443
|
py::set_arg_count_version_error(0);
|
|
367
444
|
return nullptr;
|
|
@@ -380,7 +457,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::ShareTarget
|
|
|
380
457
|
{
|
|
381
458
|
try
|
|
382
459
|
{
|
|
383
|
-
|
|
460
|
+
static std::optional<bool> is_overload_present{};
|
|
461
|
+
|
|
462
|
+
if (!is_overload_present.has_value())
|
|
463
|
+
{
|
|
464
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.DataTransfer.ShareTarget.ShareOperation", L"ReportCompleted", 1);
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
if (!is_overload_present.value())
|
|
384
468
|
{
|
|
385
469
|
py::set_arg_count_version_error(1);
|
|
386
470
|
return nullptr;
|
|
@@ -412,7 +496,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::ShareTarget
|
|
|
412
496
|
{
|
|
413
497
|
try
|
|
414
498
|
{
|
|
415
|
-
|
|
499
|
+
static std::optional<bool> is_overload_present{};
|
|
500
|
+
|
|
501
|
+
if (!is_overload_present.has_value())
|
|
502
|
+
{
|
|
503
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.DataTransfer.ShareTarget.ShareOperation", L"ReportDataRetrieved", 0);
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
if (!is_overload_present.value())
|
|
416
507
|
{
|
|
417
508
|
py::set_arg_count_version_error(0);
|
|
418
509
|
return nullptr;
|
|
@@ -442,7 +533,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::ShareTarget
|
|
|
442
533
|
{
|
|
443
534
|
try
|
|
444
535
|
{
|
|
445
|
-
|
|
536
|
+
static std::optional<bool> is_overload_present{};
|
|
537
|
+
|
|
538
|
+
if (!is_overload_present.has_value())
|
|
539
|
+
{
|
|
540
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.DataTransfer.ShareTarget.ShareOperation", L"ReportError", 1);
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
if (!is_overload_present.value())
|
|
446
544
|
{
|
|
447
545
|
py::set_arg_count_version_error(1);
|
|
448
546
|
return nullptr;
|
|
@@ -474,7 +572,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::ShareTarget
|
|
|
474
572
|
{
|
|
475
573
|
try
|
|
476
574
|
{
|
|
477
|
-
|
|
575
|
+
static std::optional<bool> is_overload_present{};
|
|
576
|
+
|
|
577
|
+
if (!is_overload_present.has_value())
|
|
578
|
+
{
|
|
579
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.DataTransfer.ShareTarget.ShareOperation", L"ReportStarted", 0);
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
if (!is_overload_present.value())
|
|
478
583
|
{
|
|
479
584
|
py::set_arg_count_version_error(0);
|
|
480
585
|
return nullptr;
|
|
@@ -504,7 +609,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::ShareTarget
|
|
|
504
609
|
{
|
|
505
610
|
try
|
|
506
611
|
{
|
|
507
|
-
|
|
612
|
+
static std::optional<bool> is_overload_present{};
|
|
613
|
+
|
|
614
|
+
if (!is_overload_present.has_value())
|
|
615
|
+
{
|
|
616
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.ApplicationModel.DataTransfer.ShareTarget.ShareOperation", L"ReportSubmittedBackgroundTask", 0);
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
if (!is_overload_present.value())
|
|
508
620
|
{
|
|
509
621
|
py::set_arg_count_version_error(0);
|
|
510
622
|
return nullptr;
|
|
@@ -530,7 +642,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::ShareTarget
|
|
|
530
642
|
{
|
|
531
643
|
try
|
|
532
644
|
{
|
|
533
|
-
|
|
645
|
+
static std::optional<bool> is_property_present{};
|
|
646
|
+
|
|
647
|
+
if (!is_property_present.has_value())
|
|
648
|
+
{
|
|
649
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.ShareTarget.ShareOperation", L"Data");
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
if (!is_property_present.value())
|
|
534
653
|
{
|
|
535
654
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
536
655
|
return nullptr;
|
|
@@ -549,7 +668,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::ShareTarget
|
|
|
549
668
|
{
|
|
550
669
|
try
|
|
551
670
|
{
|
|
552
|
-
|
|
671
|
+
static std::optional<bool> is_property_present{};
|
|
672
|
+
|
|
673
|
+
if (!is_property_present.has_value())
|
|
674
|
+
{
|
|
675
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.ShareTarget.ShareOperation", L"QuickLinkId");
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
if (!is_property_present.value())
|
|
553
679
|
{
|
|
554
680
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
555
681
|
return nullptr;
|
|
@@ -568,7 +694,14 @@ namespace py::cpp::Windows::ApplicationModel::DataTransfer::ShareTarget
|
|
|
568
694
|
{
|
|
569
695
|
try
|
|
570
696
|
{
|
|
571
|
-
|
|
697
|
+
static std::optional<bool> is_property_present{};
|
|
698
|
+
|
|
699
|
+
if (!is_property_present.has_value())
|
|
700
|
+
{
|
|
701
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.ApplicationModel.DataTransfer.ShareTarget.ShareOperation", L"Contacts");
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
if (!is_property_present.value())
|
|
572
705
|
{
|
|
573
706
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
574
707
|
return nullptr;
|
|
@@ -687,12 +820,14 @@ PyMODINIT_FUNC PyInit__winrt_windows_applicationmodel_datatransfer_sharetarget(v
|
|
|
687
820
|
return nullptr;
|
|
688
821
|
}
|
|
689
822
|
|
|
690
|
-
|
|
823
|
+
py::pytype_handle QuickLink_type{py::register_python_type(module.get(), &type_spec_QuickLink, object_bases.get(), nullptr)};
|
|
824
|
+
if (!QuickLink_type)
|
|
691
825
|
{
|
|
692
826
|
return nullptr;
|
|
693
827
|
}
|
|
694
828
|
|
|
695
|
-
|
|
829
|
+
py::pytype_handle ShareOperation_type{py::register_python_type(module.get(), &type_spec_ShareOperation, object_bases.get(), nullptr)};
|
|
830
|
+
if (!ShareOperation_type)
|
|
696
831
|
{
|
|
697
832
|
return nullptr;
|
|
698
833
|
}
|
|
@@ -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.
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.2.0
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.
|
|
3
|
+
winrt-runtime==2.2.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.ApplicationModel.DataTransfer.ShareTarget
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.2.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -10,14 +10,14 @@ Classifier: Operating System :: Microsoft :: Windows
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python: <3.
|
|
13
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.ApplicationModel.Contacts[all]==2.
|
|
18
|
-
Requires-Dist: winrt-Windows.ApplicationModel.DataTransfer[all]==2.
|
|
19
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.
|
|
20
|
-
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.
|
|
17
|
+
Requires-Dist: winrt-Windows.ApplicationModel.Contacts[all]==2.2.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.ApplicationModel.DataTransfer[all]==2.2.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.2.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.2.0; extra == "all"
|
|
21
21
|
|
|
22
22
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
23
23
|
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
|
-
|
|
3
|
-
winrt-Windows.ApplicationModel.Contacts[all]==2.1.0
|
|
4
|
-
winrt-Windows.ApplicationModel.DataTransfer[all]==2.1.0
|
|
5
|
-
winrt-Windows.Foundation.Collections[all]==2.1.0
|
|
6
|
-
winrt-Windows.Storage.Streams[all]==2.1.0
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.1.0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|