winrt-Windows.Networking 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_networking-2.1.0 → winrt_windows_networking-2.3.0}/PKG-INFO +4 -4
  2. winrt_windows_networking-2.3.0/all-requirements.txt +3 -0
  3. {winrt_windows_networking-2.1.0 → winrt_windows_networking-2.3.0}/py.Windows.Networking.cpp +135 -21
  4. {winrt_windows_networking-2.1.0 → winrt_windows_networking-2.3.0}/pyproject.toml +3 -2
  5. winrt_windows_networking-2.3.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_networking-2.1.0 → winrt_windows_networking-2.3.0}/requirements.txt +2 -2
  7. {winrt_windows_networking-2.1.0 → winrt_windows_networking-2.3.0}/winrt/_winrt_windows_networking.pyi +1 -1
  8. {winrt_windows_networking-2.1.0 → winrt_windows_networking-2.3.0}/winrt/windows/networking/__init__.py +1 -1
  9. {winrt_windows_networking-2.1.0 → winrt_windows_networking-2.3.0}/winrt_Windows.Networking.egg-info/PKG-INFO +4 -4
  10. winrt_windows_networking-2.3.0/winrt_Windows.Networking.egg-info/requires.txt +4 -0
  11. winrt_windows_networking-2.1.0/all-requirements.txt +0 -3
  12. winrt_windows_networking-2.1.0/pywinrt-version.txt +0 -1
  13. winrt_windows_networking-2.1.0/winrt_Windows.Networking.egg-info/requires.txt +0 -4
  14. {winrt_windows_networking-2.1.0 → winrt_windows_networking-2.3.0}/README.md +0 -0
  15. {winrt_windows_networking-2.1.0 → winrt_windows_networking-2.3.0}/setup.cfg +0 -0
  16. {winrt_windows_networking-2.1.0 → winrt_windows_networking-2.3.0}/setup.py +0 -0
  17. {winrt_windows_networking-2.1.0 → winrt_windows_networking-2.3.0}/winrt/windows/networking/py.typed +0 -0
  18. {winrt_windows_networking-2.1.0 → winrt_windows_networking-2.3.0}/winrt_Windows.Networking.egg-info/SOURCES.txt +0 -0
  19. {winrt_windows_networking-2.1.0 → winrt_windows_networking-2.3.0}/winrt_Windows.Networking.egg-info/dependency_links.txt +0 -0
  20. {winrt_windows_networking-2.1.0 → winrt_windows_networking-2.3.0}/winrt_Windows.Networking.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Networking
3
- Version: 2.1.0
3
+ Version: 2.3.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -10,11 +10,11 @@ Classifier: Operating System :: Microsoft :: Windows
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
- Requires-Python: <3.13,>=3.9
13
+ Requires-Python: <3.14,>=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.1.0
15
+ Requires-Dist: winrt-runtime==2.3.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Networking.Connectivity[all]==2.1.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Networking.Connectivity[all]==2.3.0; extra == "all"
18
18
 
19
19
  <!-- warning: Please don't edit this file. It was automatically generated. -->
20
20
 
@@ -0,0 +1,3 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
+
3
+ winrt-Windows.Networking.Connectivity[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.Networking.h"
4
4
 
@@ -24,7 +24,7 @@ namespace py::cpp::Windows::Networking
24
24
  auto param2 = py::convert_to<winrt::Windows::Networking::HostName>(args, 2);
25
25
  auto param3 = py::convert_to<winrt::hstring>(args, 3);
26
26
 
27
- winrt::Windows::Networking::EndpointPair instance{ param0, param1, param2, param3 };
27
+ winrt::Windows::Networking::EndpointPair instance{param0, param1, param2, param3};
28
28
  return py::wrap(instance, type);
29
29
  }
30
30
  catch (...)
@@ -52,7 +52,14 @@ namespace py::cpp::Windows::Networking
52
52
  {
53
53
  try
54
54
  {
55
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.EndpointPair", L"RemoteServiceName"))
55
+ static std::optional<bool> is_property_present{};
56
+
57
+ if (!is_property_present.has_value())
58
+ {
59
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.EndpointPair", L"RemoteServiceName");
60
+ }
61
+
62
+ if (!is_property_present.value())
56
63
  {
57
64
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
58
65
  return nullptr;
@@ -77,7 +84,14 @@ namespace py::cpp::Windows::Networking
77
84
 
78
85
  try
79
86
  {
80
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.EndpointPair", L"RemoteServiceName"))
87
+ static std::optional<bool> is_property_present{};
88
+
89
+ if (!is_property_present.has_value())
90
+ {
91
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.EndpointPair", L"RemoteServiceName");
92
+ }
93
+
94
+ if (!is_property_present.value())
81
95
  {
82
96
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
83
97
  return -1;
@@ -99,7 +113,14 @@ namespace py::cpp::Windows::Networking
99
113
  {
100
114
  try
101
115
  {
102
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.EndpointPair", L"RemoteHostName"))
116
+ static std::optional<bool> is_property_present{};
117
+
118
+ if (!is_property_present.has_value())
119
+ {
120
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.EndpointPair", L"RemoteHostName");
121
+ }
122
+
123
+ if (!is_property_present.value())
103
124
  {
104
125
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
105
126
  return nullptr;
@@ -124,7 +145,14 @@ namespace py::cpp::Windows::Networking
124
145
 
125
146
  try
126
147
  {
127
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.EndpointPair", L"RemoteHostName"))
148
+ static std::optional<bool> is_property_present{};
149
+
150
+ if (!is_property_present.has_value())
151
+ {
152
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.EndpointPair", L"RemoteHostName");
153
+ }
154
+
155
+ if (!is_property_present.value())
128
156
  {
129
157
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
130
158
  return -1;
@@ -146,7 +174,14 @@ namespace py::cpp::Windows::Networking
146
174
  {
147
175
  try
148
176
  {
149
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.EndpointPair", L"LocalServiceName"))
177
+ static std::optional<bool> is_property_present{};
178
+
179
+ if (!is_property_present.has_value())
180
+ {
181
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.EndpointPair", L"LocalServiceName");
182
+ }
183
+
184
+ if (!is_property_present.value())
150
185
  {
151
186
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
152
187
  return nullptr;
@@ -171,7 +206,14 @@ namespace py::cpp::Windows::Networking
171
206
 
172
207
  try
173
208
  {
174
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.EndpointPair", L"LocalServiceName"))
209
+ static std::optional<bool> is_property_present{};
210
+
211
+ if (!is_property_present.has_value())
212
+ {
213
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.EndpointPair", L"LocalServiceName");
214
+ }
215
+
216
+ if (!is_property_present.value())
175
217
  {
176
218
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
177
219
  return -1;
@@ -193,7 +235,14 @@ namespace py::cpp::Windows::Networking
193
235
  {
194
236
  try
195
237
  {
196
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.EndpointPair", L"LocalHostName"))
238
+ static std::optional<bool> is_property_present{};
239
+
240
+ if (!is_property_present.has_value())
241
+ {
242
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.EndpointPair", L"LocalHostName");
243
+ }
244
+
245
+ if (!is_property_present.value())
197
246
  {
198
247
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
199
248
  return nullptr;
@@ -218,7 +267,14 @@ namespace py::cpp::Windows::Networking
218
267
 
219
268
  try
220
269
  {
221
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.EndpointPair", L"LocalHostName"))
270
+ static std::optional<bool> is_property_present{};
271
+
272
+ if (!is_property_present.has_value())
273
+ {
274
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.EndpointPair", L"LocalHostName");
275
+ }
276
+
277
+ if (!is_property_present.value())
222
278
  {
223
279
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
224
280
  return -1;
@@ -306,7 +362,7 @@ namespace py::cpp::Windows::Networking
306
362
  {
307
363
  auto param0 = py::convert_to<winrt::hstring>(args, 0);
308
364
 
309
- winrt::Windows::Networking::HostName instance{ param0 };
365
+ winrt::Windows::Networking::HostName instance{param0};
310
366
  return py::wrap(instance, type);
311
367
  }
312
368
  catch (...)
@@ -338,7 +394,14 @@ namespace py::cpp::Windows::Networking
338
394
  {
339
395
  try
340
396
  {
341
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.HostName", L"Compare", 2))
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.Networking.HostName", L"Compare", 2);
402
+ }
403
+
404
+ if (!is_overload_present.value())
342
405
  {
343
406
  py::set_arg_count_version_error(2);
344
407
  return nullptr;
@@ -370,7 +433,14 @@ namespace py::cpp::Windows::Networking
370
433
  {
371
434
  try
372
435
  {
373
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.HostName", L"IsEqual", 1))
436
+ static std::optional<bool> is_overload_present{};
437
+
438
+ if (!is_overload_present.has_value())
439
+ {
440
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.HostName", L"IsEqual", 1);
441
+ }
442
+
443
+ if (!is_overload_present.value())
374
444
  {
375
445
  py::set_arg_count_version_error(1);
376
446
  return nullptr;
@@ -401,7 +471,14 @@ namespace py::cpp::Windows::Networking
401
471
  {
402
472
  try
403
473
  {
404
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.HostName", L"ToString", 0))
474
+ static std::optional<bool> is_overload_present{};
475
+
476
+ if (!is_overload_present.has_value())
477
+ {
478
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Networking.HostName", L"ToString", 0);
479
+ }
480
+
481
+ if (!is_overload_present.value())
405
482
  {
406
483
  py::set_arg_count_version_error(0);
407
484
  return nullptr;
@@ -426,7 +503,14 @@ namespace py::cpp::Windows::Networking
426
503
  {
427
504
  try
428
505
  {
429
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.HostName", L"CanonicalName"))
506
+ static std::optional<bool> is_property_present{};
507
+
508
+ if (!is_property_present.has_value())
509
+ {
510
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.HostName", L"CanonicalName");
511
+ }
512
+
513
+ if (!is_property_present.value())
430
514
  {
431
515
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
432
516
  return nullptr;
@@ -445,7 +529,14 @@ namespace py::cpp::Windows::Networking
445
529
  {
446
530
  try
447
531
  {
448
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.HostName", L"DisplayName"))
532
+ static std::optional<bool> is_property_present{};
533
+
534
+ if (!is_property_present.has_value())
535
+ {
536
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.HostName", L"DisplayName");
537
+ }
538
+
539
+ if (!is_property_present.value())
449
540
  {
450
541
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
451
542
  return nullptr;
@@ -464,7 +555,14 @@ namespace py::cpp::Windows::Networking
464
555
  {
465
556
  try
466
557
  {
467
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.HostName", L"IPInformation"))
558
+ static std::optional<bool> is_property_present{};
559
+
560
+ if (!is_property_present.has_value())
561
+ {
562
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.HostName", L"IPInformation");
563
+ }
564
+
565
+ if (!is_property_present.value())
468
566
  {
469
567
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
470
568
  return nullptr;
@@ -483,7 +581,14 @@ namespace py::cpp::Windows::Networking
483
581
  {
484
582
  try
485
583
  {
486
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.HostName", L"RawName"))
584
+ static std::optional<bool> is_property_present{};
585
+
586
+ if (!is_property_present.has_value())
587
+ {
588
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.HostName", L"RawName");
589
+ }
590
+
591
+ if (!is_property_present.value())
487
592
  {
488
593
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
489
594
  return nullptr;
@@ -502,7 +607,14 @@ namespace py::cpp::Windows::Networking
502
607
  {
503
608
  try
504
609
  {
505
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.HostName", L"Type"))
610
+ static std::optional<bool> is_property_present{};
611
+
612
+ if (!is_property_present.has_value())
613
+ {
614
+ is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Networking.HostName", L"Type");
615
+ }
616
+
617
+ if (!is_property_present.value())
506
618
  {
507
619
  PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
508
620
  return nullptr;
@@ -658,7 +770,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_networking(void) noexcept
658
770
  return nullptr;
659
771
  }
660
772
 
661
- if (py::register_python_type(module.get(), &type_spec_EndpointPair, object_bases.get(), nullptr) == -1)
773
+ py::pytype_handle EndpointPair_type{py::register_python_type(module.get(), &type_spec_EndpointPair, object_bases.get(), nullptr)};
774
+ if (!EndpointPair_type)
662
775
  {
663
776
  return nullptr;
664
777
  }
@@ -669,7 +782,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_networking(void) noexcept
669
782
  return nullptr;
670
783
  }
671
784
 
672
- if (py::register_python_type(module.get(), &type_spec_HostName, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_HostName_Static.get())) == -1)
785
+ py::pytype_handle HostName_type{py::register_python_type(module.get(), &type_spec_HostName, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_HostName_Static.get()))};
786
+ if (!HostName_type)
673
787
  {
674
788
  return nullptr;
675
789
  }
@@ -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
@@ -0,0 +1 @@
1
+ 2.3.0
@@ -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.Networking
3
- Version: 2.1.0
3
+ Version: 2.3.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -10,11 +10,11 @@ Classifier: Operating System :: Microsoft :: Windows
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
- Requires-Python: <3.13,>=3.9
13
+ Requires-Python: <3.14,>=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.1.0
15
+ Requires-Dist: winrt-runtime==2.3.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Networking.Connectivity[all]==2.1.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Networking.Connectivity[all]==2.3.0; extra == "all"
18
18
 
19
19
  <!-- warning: Please don't edit this file. It was automatically generated. -->
20
20
 
@@ -0,0 +1,4 @@
1
+ winrt-runtime==2.3.0
2
+
3
+ [all]
4
+ winrt-Windows.Networking.Connectivity[all]==2.3.0
@@ -1,3 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
-
3
- winrt-Windows.Networking.Connectivity[all]==2.1.0
@@ -1 +0,0 @@
1
- 2.1.0
@@ -1,4 +0,0 @@
1
- winrt-runtime==2.1.0
2
-
3
- [all]
4
- winrt-Windows.Networking.Connectivity[all]==2.1.0