winrt-Windows.Networking 2.2.0__tar.gz → 3.0.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_networking-2.2.0 → winrt_windows_networking-3.0.0}/PKG-INFO +4 -4
  2. winrt_windows_networking-3.0.0/all-requirements.txt +3 -0
  3. {winrt_windows_networking-2.2.0 → winrt_windows_networking-3.0.0}/py.Windows.Networking.cpp +122 -52
  4. {winrt_windows_networking-2.2.0 → winrt_windows_networking-3.0.0}/pyproject.toml +2 -2
  5. winrt_windows_networking-3.0.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_networking-2.2.0 → winrt_windows_networking-3.0.0}/requirements.txt +2 -2
  7. {winrt_windows_networking-2.2.0 → winrt_windows_networking-3.0.0}/setup.py +1 -1
  8. winrt_windows_networking-3.0.0/winrt/_winrt_windows_networking.pyi +75 -0
  9. {winrt_windows_networking-2.2.0 → winrt_windows_networking-3.0.0}/winrt/windows/networking/__init__.py +5 -4
  10. {winrt_windows_networking-2.2.0 → winrt_windows_networking-3.0.0}/winrt_Windows.Networking.egg-info/PKG-INFO +4 -4
  11. winrt_windows_networking-3.0.0/winrt_Windows.Networking.egg-info/requires.txt +4 -0
  12. winrt_windows_networking-2.2.0/all-requirements.txt +0 -3
  13. winrt_windows_networking-2.2.0/pywinrt-version.txt +0 -1
  14. winrt_windows_networking-2.2.0/winrt/_winrt_windows_networking.pyi +0 -62
  15. winrt_windows_networking-2.2.0/winrt_Windows.Networking.egg-info/requires.txt +0 -4
  16. {winrt_windows_networking-2.2.0 → winrt_windows_networking-3.0.0}/README.md +0 -0
  17. {winrt_windows_networking-2.2.0 → winrt_windows_networking-3.0.0}/setup.cfg +0 -0
  18. {winrt_windows_networking-2.2.0 → winrt_windows_networking-3.0.0}/winrt/windows/networking/py.typed +0 -0
  19. {winrt_windows_networking-2.2.0 → winrt_windows_networking-3.0.0}/winrt_Windows.Networking.egg-info/SOURCES.txt +0 -0
  20. {winrt_windows_networking-2.2.0 → winrt_windows_networking-3.0.0}/winrt_Windows.Networking.egg-info/dependency_links.txt +0 -0
  21. {winrt_windows_networking-2.2.0 → winrt_windows_networking-3.0.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.2.0
3
+ Version: 3.0.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.14,>=3.9
13
+ Requires-Python: >=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.2.0
15
+ Requires-Dist: winrt-runtime==3.0.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Networking.Connectivity[all]==2.2.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Networking.Connectivity[all]==3.0.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 v3.0.0
2
+
3
+ winrt-Windows.Networking.Connectivity[all]==3.0.0
@@ -1,4 +1,4 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
2
 
3
3
  #include "py.Windows.Networking.h"
4
4
 
@@ -8,13 +8,13 @@ namespace py::cpp::Windows::Networking
8
8
 
9
9
  static PyObject* _new_EndpointPair(PyTypeObject* type, PyObject* args, PyObject* kwds) noexcept
10
10
  {
11
- if (kwds != nullptr)
11
+ if (kwds)
12
12
  {
13
13
  py::set_invalid_kwd_args_error();
14
14
  return nullptr;
15
15
  }
16
16
 
17
- auto arg_count = PyTuple_Size(args);
17
+ auto arg_count = PyTuple_GET_SIZE(args);
18
18
  if (arg_count == 4)
19
19
  {
20
20
  try
@@ -65,7 +65,11 @@ namespace py::cpp::Windows::Networking
65
65
  return nullptr;
66
66
  }
67
67
 
68
- return py::convert(self->obj.RemoteServiceName());
68
+ return py::convert([&]()
69
+ {
70
+ auto _gil = release_gil();
71
+ return self->obj.RemoteServiceName();
72
+ }());
69
73
  }
70
74
  catch (...)
71
75
  {
@@ -76,7 +80,7 @@ namespace py::cpp::Windows::Networking
76
80
 
77
81
  static int EndpointPair_put_RemoteServiceName(py::wrapper::Windows::Networking::EndpointPair* self, PyObject* arg, void* /*unused*/) noexcept
78
82
  {
79
- if (arg == nullptr)
83
+ if (!arg)
80
84
  {
81
85
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
82
86
  return -1;
@@ -99,7 +103,11 @@ namespace py::cpp::Windows::Networking
99
103
 
100
104
  auto param0 = py::convert_to<winrt::hstring>(arg);
101
105
 
102
- self->obj.RemoteServiceName(param0);
106
+ {
107
+ auto _gil = release_gil();
108
+ self->obj.RemoteServiceName(param0);
109
+ }
110
+
103
111
  return 0;
104
112
  }
105
113
  catch (...)
@@ -126,7 +134,11 @@ namespace py::cpp::Windows::Networking
126
134
  return nullptr;
127
135
  }
128
136
 
129
- return py::convert(self->obj.RemoteHostName());
137
+ return py::convert([&]()
138
+ {
139
+ auto _gil = release_gil();
140
+ return self->obj.RemoteHostName();
141
+ }());
130
142
  }
131
143
  catch (...)
132
144
  {
@@ -137,7 +149,7 @@ namespace py::cpp::Windows::Networking
137
149
 
138
150
  static int EndpointPair_put_RemoteHostName(py::wrapper::Windows::Networking::EndpointPair* self, PyObject* arg, void* /*unused*/) noexcept
139
151
  {
140
- if (arg == nullptr)
152
+ if (!arg)
141
153
  {
142
154
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
143
155
  return -1;
@@ -160,7 +172,11 @@ namespace py::cpp::Windows::Networking
160
172
 
161
173
  auto param0 = py::convert_to<winrt::Windows::Networking::HostName>(arg);
162
174
 
163
- self->obj.RemoteHostName(param0);
175
+ {
176
+ auto _gil = release_gil();
177
+ self->obj.RemoteHostName(param0);
178
+ }
179
+
164
180
  return 0;
165
181
  }
166
182
  catch (...)
@@ -187,7 +203,11 @@ namespace py::cpp::Windows::Networking
187
203
  return nullptr;
188
204
  }
189
205
 
190
- return py::convert(self->obj.LocalServiceName());
206
+ return py::convert([&]()
207
+ {
208
+ auto _gil = release_gil();
209
+ return self->obj.LocalServiceName();
210
+ }());
191
211
  }
192
212
  catch (...)
193
213
  {
@@ -198,7 +218,7 @@ namespace py::cpp::Windows::Networking
198
218
 
199
219
  static int EndpointPair_put_LocalServiceName(py::wrapper::Windows::Networking::EndpointPair* self, PyObject* arg, void* /*unused*/) noexcept
200
220
  {
201
- if (arg == nullptr)
221
+ if (!arg)
202
222
  {
203
223
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
204
224
  return -1;
@@ -221,7 +241,11 @@ namespace py::cpp::Windows::Networking
221
241
 
222
242
  auto param0 = py::convert_to<winrt::hstring>(arg);
223
243
 
224
- self->obj.LocalServiceName(param0);
244
+ {
245
+ auto _gil = release_gil();
246
+ self->obj.LocalServiceName(param0);
247
+ }
248
+
225
249
  return 0;
226
250
  }
227
251
  catch (...)
@@ -248,7 +272,11 @@ namespace py::cpp::Windows::Networking
248
272
  return nullptr;
249
273
  }
250
274
 
251
- return py::convert(self->obj.LocalHostName());
275
+ return py::convert([&]()
276
+ {
277
+ auto _gil = release_gil();
278
+ return self->obj.LocalHostName();
279
+ }());
252
280
  }
253
281
  catch (...)
254
282
  {
@@ -259,7 +287,7 @@ namespace py::cpp::Windows::Networking
259
287
 
260
288
  static int EndpointPair_put_LocalHostName(py::wrapper::Windows::Networking::EndpointPair* self, PyObject* arg, void* /*unused*/) noexcept
261
289
  {
262
- if (arg == nullptr)
290
+ if (!arg)
263
291
  {
264
292
  PyErr_SetString(PyExc_AttributeError, "can't delete attribute");
265
293
  return -1;
@@ -282,7 +310,11 @@ namespace py::cpp::Windows::Networking
282
310
 
283
311
  auto param0 = py::convert_to<winrt::Windows::Networking::HostName>(arg);
284
312
 
285
- self->obj.LocalHostName(param0);
313
+ {
314
+ auto _gil = release_gil();
315
+ self->obj.LocalHostName(param0);
316
+ }
317
+
286
318
  return 0;
287
319
  }
288
320
  catch (...)
@@ -319,24 +351,21 @@ namespace py::cpp::Windows::Networking
319
351
  static PyMethodDef _methods_EndpointPair[] = {
320
352
  { "_assign_array_", _assign_array_EndpointPair, METH_O | METH_STATIC, nullptr },
321
353
  { "_from", reinterpret_cast<PyCFunction>(_from_EndpointPair), METH_O | METH_STATIC, nullptr },
322
- { }
323
- };
354
+ { }};
324
355
 
325
356
  static PyGetSetDef _getset_EndpointPair[] = {
326
357
  { "remote_service_name", reinterpret_cast<getter>(EndpointPair_get_RemoteServiceName), reinterpret_cast<setter>(EndpointPair_put_RemoteServiceName), nullptr, nullptr },
327
358
  { "remote_host_name", reinterpret_cast<getter>(EndpointPair_get_RemoteHostName), reinterpret_cast<setter>(EndpointPair_put_RemoteHostName), nullptr, nullptr },
328
359
  { "local_service_name", reinterpret_cast<getter>(EndpointPair_get_LocalServiceName), reinterpret_cast<setter>(EndpointPair_put_LocalServiceName), nullptr, nullptr },
329
360
  { "local_host_name", reinterpret_cast<getter>(EndpointPair_get_LocalHostName), reinterpret_cast<setter>(EndpointPair_put_LocalHostName), nullptr, nullptr },
330
- { }
331
- };
361
+ { }};
332
362
 
333
363
  static PyType_Slot _type_slots_EndpointPair[] = {
334
364
  { Py_tp_new, reinterpret_cast<void*>(_new_EndpointPair) },
335
365
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_EndpointPair) },
336
366
  { Py_tp_methods, reinterpret_cast<void*>(_methods_EndpointPair) },
337
367
  { Py_tp_getset, reinterpret_cast<void*>(_getset_EndpointPair) },
338
- { }
339
- };
368
+ { }};
340
369
 
341
370
  static PyType_Spec type_spec_EndpointPair = {
342
371
  "winrt._winrt_windows_networking.EndpointPair",
@@ -349,13 +378,13 @@ namespace py::cpp::Windows::Networking
349
378
 
350
379
  static PyObject* _new_HostName(PyTypeObject* type, PyObject* args, PyObject* kwds) noexcept
351
380
  {
352
- if (kwds != nullptr)
381
+ if (kwds)
353
382
  {
354
383
  py::set_invalid_kwd_args_error();
355
384
  return nullptr;
356
385
  }
357
386
 
358
- auto arg_count = PyTuple_Size(args);
387
+ auto arg_count = PyTuple_GET_SIZE(args);
359
388
  if (arg_count == 1)
360
389
  {
361
390
  try
@@ -388,7 +417,7 @@ namespace py::cpp::Windows::Networking
388
417
 
389
418
  static PyObject* HostName_Compare(PyObject* /*unused*/, PyObject* args) noexcept
390
419
  {
391
- auto arg_count = PyTuple_Size(args);
420
+ auto arg_count = PyTuple_GET_SIZE(args);
392
421
 
393
422
  if (arg_count == 2)
394
423
  {
@@ -410,7 +439,11 @@ namespace py::cpp::Windows::Networking
410
439
  auto param0 = py::convert_to<winrt::hstring>(args, 0);
411
440
  auto param1 = py::convert_to<winrt::hstring>(args, 1);
412
441
 
413
- return py::convert(winrt::Windows::Networking::HostName::Compare(param0, param1));
442
+ return py::convert([&]()
443
+ {
444
+ auto _gil = release_gil();
445
+ return winrt::Windows::Networking::HostName::Compare(param0, param1);
446
+ }());
414
447
  }
415
448
  catch (...)
416
449
  {
@@ -427,7 +460,7 @@ namespace py::cpp::Windows::Networking
427
460
 
428
461
  static PyObject* HostName_IsEqual(py::wrapper::Windows::Networking::HostName* self, PyObject* args) noexcept
429
462
  {
430
- auto arg_count = PyTuple_Size(args);
463
+ auto arg_count = PyTuple_GET_SIZE(args);
431
464
 
432
465
  if (arg_count == 1)
433
466
  {
@@ -448,7 +481,11 @@ namespace py::cpp::Windows::Networking
448
481
 
449
482
  auto param0 = py::convert_to<winrt::Windows::Networking::HostName>(args, 0);
450
483
 
451
- return py::convert(self->obj.IsEqual(param0));
484
+ return py::convert([&]()
485
+ {
486
+ auto _gil = release_gil();
487
+ return self->obj.IsEqual(param0);
488
+ }());
452
489
  }
453
490
  catch (...)
454
491
  {
@@ -465,7 +502,7 @@ namespace py::cpp::Windows::Networking
465
502
 
466
503
  static PyObject* HostName_ToString(py::wrapper::Windows::Networking::HostName* self, PyObject* args) noexcept
467
504
  {
468
- auto arg_count = PyTuple_Size(args);
505
+ auto arg_count = PyTuple_GET_SIZE(args);
469
506
 
470
507
  if (arg_count == 0)
471
508
  {
@@ -484,7 +521,11 @@ namespace py::cpp::Windows::Networking
484
521
  return nullptr;
485
522
  }
486
523
 
487
- return py::convert(self->obj.ToString());
524
+ return py::convert([&]()
525
+ {
526
+ auto _gil = release_gil();
527
+ return self->obj.ToString();
528
+ }());
488
529
  }
489
530
  catch (...)
490
531
  {
@@ -516,7 +557,11 @@ namespace py::cpp::Windows::Networking
516
557
  return nullptr;
517
558
  }
518
559
 
519
- return py::convert(self->obj.CanonicalName());
560
+ return py::convert([&]()
561
+ {
562
+ auto _gil = release_gil();
563
+ return self->obj.CanonicalName();
564
+ }());
520
565
  }
521
566
  catch (...)
522
567
  {
@@ -542,7 +587,11 @@ namespace py::cpp::Windows::Networking
542
587
  return nullptr;
543
588
  }
544
589
 
545
- return py::convert(self->obj.DisplayName());
590
+ return py::convert([&]()
591
+ {
592
+ auto _gil = release_gil();
593
+ return self->obj.DisplayName();
594
+ }());
546
595
  }
547
596
  catch (...)
548
597
  {
@@ -568,7 +617,11 @@ namespace py::cpp::Windows::Networking
568
617
  return nullptr;
569
618
  }
570
619
 
571
- return py::convert(self->obj.IPInformation());
620
+ return py::convert([&]()
621
+ {
622
+ auto _gil = release_gil();
623
+ return self->obj.IPInformation();
624
+ }());
572
625
  }
573
626
  catch (...)
574
627
  {
@@ -594,7 +647,11 @@ namespace py::cpp::Windows::Networking
594
647
  return nullptr;
595
648
  }
596
649
 
597
- return py::convert(self->obj.RawName());
650
+ return py::convert([&]()
651
+ {
652
+ auto _gil = release_gil();
653
+ return self->obj.RawName();
654
+ }());
598
655
  }
599
656
  catch (...)
600
657
  {
@@ -620,7 +677,11 @@ namespace py::cpp::Windows::Networking
620
677
  return nullptr;
621
678
  }
622
679
 
623
- return py::convert(self->obj.Type());
680
+ return py::convert([&]()
681
+ {
682
+ auto _gil = release_gil();
683
+ return self->obj.Type();
684
+ }());
624
685
  }
625
686
  catch (...)
626
687
  {
@@ -657,7 +718,11 @@ namespace py::cpp::Windows::Networking
657
718
  {
658
719
  try
659
720
  {
660
- return py::convert(self->obj.ToString());
721
+ return py::convert([&]()
722
+ {
723
+ auto _gil = py::release_gil();
724
+ return self->obj.ToString();
725
+ }());
661
726
  }
662
727
  catch (...)
663
728
  {
@@ -671,17 +736,15 @@ namespace py::cpp::Windows::Networking
671
736
  { "to_string", reinterpret_cast<PyCFunction>(HostName_ToString), METH_VARARGS, nullptr },
672
737
  { "_assign_array_", _assign_array_HostName, METH_O | METH_STATIC, nullptr },
673
738
  { "_from", reinterpret_cast<PyCFunction>(_from_HostName), METH_O | METH_STATIC, nullptr },
674
- { }
675
- };
739
+ { }};
676
740
 
677
741
  static PyGetSetDef _getset_HostName[] = {
678
742
  { "canonical_name", reinterpret_cast<getter>(HostName_get_CanonicalName), nullptr, nullptr, nullptr },
679
743
  { "display_name", reinterpret_cast<getter>(HostName_get_DisplayName), nullptr, nullptr, nullptr },
680
- { "i_p_information", reinterpret_cast<getter>(HostName_get_IPInformation), nullptr, nullptr, nullptr },
744
+ { "ip_information", reinterpret_cast<getter>(HostName_get_IPInformation), nullptr, nullptr, nullptr },
681
745
  { "raw_name", reinterpret_cast<getter>(HostName_get_RawName), nullptr, nullptr, nullptr },
682
746
  { "type", reinterpret_cast<getter>(HostName_get_Type), nullptr, nullptr, nullptr },
683
- { }
684
- };
747
+ { }};
685
748
 
686
749
  static PyType_Slot _type_slots_HostName[] = {
687
750
  { Py_tp_new, reinterpret_cast<void*>(_new_HostName) },
@@ -689,8 +752,7 @@ namespace py::cpp::Windows::Networking
689
752
  { Py_tp_methods, reinterpret_cast<void*>(_methods_HostName) },
690
753
  { Py_tp_getset, reinterpret_cast<void*>(_getset_HostName) },
691
754
  { Py_tp_str, reinterpret_cast<void*>(_str_HostName) },
692
- { }
693
- };
755
+ { }};
694
756
 
695
757
  static PyType_Spec type_spec_HostName = {
696
758
  "winrt._winrt_windows_networking.HostName",
@@ -700,13 +762,11 @@ namespace py::cpp::Windows::Networking
700
762
  _type_slots_HostName};
701
763
 
702
764
  static PyGetSetDef getset_HostName_Static[] = {
703
- { }
704
- };
765
+ { }};
705
766
 
706
767
  static PyMethodDef methods_HostName_Static[] = {
707
768
  { "compare", reinterpret_cast<PyCFunction>(HostName_Compare), METH_VARARGS, nullptr },
708
- { }
709
- };
769
+ { }};
710
770
 
711
771
  static PyType_Slot type_slots_HostName_Static[] =
712
772
  {
@@ -716,14 +776,12 @@ namespace py::cpp::Windows::Networking
716
776
  { }
717
777
  };
718
778
 
719
- static PyType_Spec type_spec_HostName_Static =
720
- {
779
+ static PyType_Spec type_spec_HostName_Static = {
721
780
  "winrt._winrt_windows_networking.HostName_Static",
722
781
  static_cast<int>(PyType_Type.tp_basicsize),
723
782
  static_cast<int>(PyType_Type.tp_itemsize),
724
783
  Py_TPFLAGS_DEFAULT,
725
- type_slots_HostName_Static
726
- };
784
+ type_slots_HostName_Static};
727
785
 
728
786
  // ----- Windows.Networking Initialization --------------------
729
787
 
@@ -757,6 +815,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_networking(void) noexcept
757
815
  return nullptr;
758
816
  }
759
817
 
818
+ auto inspectable_meta_type = py::get_inspectable_meta_type();
819
+ if (!inspectable_meta_type)
820
+ {
821
+ return nullptr;
822
+ }
823
+
760
824
  auto object_type = py::get_object_type();
761
825
  if (!object_type)
762
826
  {
@@ -770,13 +834,19 @@ PyMODINIT_FUNC PyInit__winrt_windows_networking(void) noexcept
770
834
  return nullptr;
771
835
  }
772
836
 
773
- py::pytype_handle EndpointPair_type{py::register_python_type(module.get(), &type_spec_EndpointPair, object_bases.get(), nullptr)};
837
+ py::pytype_handle EndpointPair_type{py::register_python_type(module.get(), &type_spec_EndpointPair, object_bases.get(), inspectable_meta_type)};
774
838
  if (!EndpointPair_type)
775
839
  {
776
840
  return nullptr;
777
841
  }
778
842
 
779
- py::pyobj_handle type_HostName_Static{PyType_FromSpec(&type_spec_HostName_Static)};
843
+ py::pyobj_handle HostName_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
844
+ if (!HostName_Static_bases)
845
+ {
846
+ return nullptr;
847
+ }
848
+
849
+ py::pyobj_handle type_HostName_Static{PyType_FromSpecWithBases(&type_spec_HostName_Static, HostName_Static_bases.get())};
780
850
  if (!type_HostName_Static)
781
851
  {
782
852
  return nullptr;
@@ -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.14"
19
+ requires-python = ">=3.9"
20
20
 
21
21
  [project.urls]
22
22
  # Homepage = "https://github.com/pywinrt/pywinrt"
@@ -34,7 +34,7 @@ optional-dependencies.all = { file = "all-requirements.txt" }
34
34
 
35
35
  [tool.cibuildwheel]
36
36
  # use local winrt-sdk build dependency
37
- environment = { PYTHONPATH="../winrt-sdk/src" }
37
+ environment = { PYTHONPATH="../../winrt-sdk/src" }
38
38
  # don't install winrt-sdk from PyPI
39
39
  build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
40
40
  before-build = "uv pip install setuptools"
@@ -0,0 +1 @@
1
+ 3.0.0
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
2
 
3
- winrt-runtime==2.2.0
3
+ winrt-runtime==3.0.0
@@ -19,7 +19,7 @@ class build_ext_ex(build_ext):
19
19
 
20
20
 
21
21
  setup(
22
- cmdclass = {'build_ext': build_ext_ex},
22
+ cmdclass={"build_ext": build_ext_ex},
23
23
  ext_modules=[
24
24
  Extension(
25
25
  "winrt._winrt_windows_networking",
@@ -0,0 +1,75 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
+
3
+ import datetime
4
+ import sys
5
+ import types
6
+ import typing
7
+ import uuid as _uuid
8
+ from builtins import property as _property
9
+
10
+ import winrt._winrt
11
+ import winrt.system
12
+ import winrt.windows.foundation as windows_foundation
13
+ import winrt.windows.networking.connectivity as windows_networking_connectivity
14
+
15
+ from winrt.windows.networking import DomainNameType, HostNameSortOptions, HostNameType
16
+
17
+ Self = typing.TypeVar('Self')
18
+
19
+ @typing.final
20
+ class EndpointPair(winrt.system.Object):
21
+ def __new__(cls: typing.Type[Self], local_host_name: HostName, local_service_name: str, remote_host_name: HostName, remote_service_name: str) -> Self: ...
22
+ # System.String Windows.Networking.EndpointPair::get_RemoteServiceName()
23
+ @_property
24
+ def remote_service_name(self) -> str: ...
25
+ # System.Void Windows.Networking.EndpointPair::put_RemoteServiceName(System.String)
26
+ @remote_service_name.setter
27
+ def remote_service_name(self, value: str) -> None: ...
28
+ # Windows.Networking.HostName Windows.Networking.EndpointPair::get_RemoteHostName()
29
+ @_property
30
+ def remote_host_name(self) -> HostName: ...
31
+ # System.Void Windows.Networking.EndpointPair::put_RemoteHostName(Windows.Networking.HostName)
32
+ @remote_host_name.setter
33
+ def remote_host_name(self, value: HostName) -> None: ...
34
+ # System.String Windows.Networking.EndpointPair::get_LocalServiceName()
35
+ @_property
36
+ def local_service_name(self) -> str: ...
37
+ # System.Void Windows.Networking.EndpointPair::put_LocalServiceName(System.String)
38
+ @local_service_name.setter
39
+ def local_service_name(self, value: str) -> None: ...
40
+ # Windows.Networking.HostName Windows.Networking.EndpointPair::get_LocalHostName()
41
+ @_property
42
+ def local_host_name(self) -> HostName: ...
43
+ # System.Void Windows.Networking.EndpointPair::put_LocalHostName(Windows.Networking.HostName)
44
+ @local_host_name.setter
45
+ def local_host_name(self, value: HostName) -> None: ...
46
+
47
+ @typing.final
48
+ class HostName_Static(winrt._winrt.IInspectable_Static):
49
+ # System.Int32 Windows.Networking.HostName::Compare(System.String,System.String)
50
+ def compare(cls, value1: str, value2: str, /) -> winrt.system.Int32: ...
51
+
52
+ @typing.final
53
+ class HostName(winrt.system.Object, windows_foundation.IStringable, metaclass=HostName_Static):
54
+ def __str__(self) -> str: ...
55
+ def __new__(cls: typing.Type[Self], host_name: str) -> Self: ...
56
+ # System.Boolean Windows.Networking.HostName::IsEqual(Windows.Networking.HostName)
57
+ def is_equal(self, host_name: HostName, /) -> bool: ...
58
+ # System.String Windows.Networking.HostName::ToString()
59
+ def to_string(self) -> str: ...
60
+ # System.String Windows.Networking.HostName::get_CanonicalName()
61
+ @_property
62
+ def canonical_name(self) -> str: ...
63
+ # System.String Windows.Networking.HostName::get_DisplayName()
64
+ @_property
65
+ def display_name(self) -> str: ...
66
+ # Windows.Networking.Connectivity.IPInformation Windows.Networking.HostName::get_IPInformation()
67
+ @_property
68
+ def ip_information(self) -> windows_networking_connectivity.IPInformation: ...
69
+ # System.String Windows.Networking.HostName::get_RawName()
70
+ @_property
71
+ def raw_name(self) -> str: ...
72
+ # Windows.Networking.HostNameType Windows.Networking.HostName::get_Type()
73
+ @_property
74
+ def type(self) -> HostNameType: ...
75
+
@@ -1,9 +1,12 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
2
 
3
3
  import enum
4
4
 
5
5
  import winrt.system
6
- from winrt import _winrt_windows_networking
6
+ from winrt._winrt_windows_networking import (
7
+ EndpointPair,
8
+ HostName,
9
+ )
7
10
 
8
11
  __all__ = [
9
12
  "DomainNameType",
@@ -27,5 +30,3 @@ class HostNameType(enum.IntEnum):
27
30
  IPV6 = 2
28
31
  BLUETOOTH = 3
29
32
 
30
- EndpointPair = _winrt_windows_networking.EndpointPair
31
- HostName = _winrt_windows_networking.HostName
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Networking
3
- Version: 2.2.0
3
+ Version: 3.0.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.14,>=3.9
13
+ Requires-Python: >=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.2.0
15
+ Requires-Dist: winrt-runtime==3.0.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Networking.Connectivity[all]==2.2.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Networking.Connectivity[all]==3.0.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==3.0.0
2
+
3
+ [all]
4
+ winrt-Windows.Networking.Connectivity[all]==3.0.0
@@ -1,3 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
-
3
- winrt-Windows.Networking.Connectivity[all]==2.2.0
@@ -1 +0,0 @@
1
- 2.2.0
@@ -1,62 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
-
3
- import datetime
4
- import sys
5
- import types
6
- import typing
7
- import uuid as _uuid
8
- from builtins import property as _property
9
-
10
- import winrt._winrt
11
- import winrt.system
12
- import winrt.windows.networking.connectivity as windows_networking_connectivity
13
-
14
- from winrt.windows.networking import DomainNameType, HostNameSortOptions, HostNameType
15
-
16
- Self = typing.TypeVar('Self')
17
-
18
- @typing.final
19
- class EndpointPair(winrt.system.Object):
20
- @staticmethod
21
- def _from(obj: winrt.system.Object, /) -> EndpointPair: ...
22
- def __new__(cls: typing.Type[EndpointPair], local_host_name: typing.Optional[HostName], local_service_name: str, remote_host_name: typing.Optional[HostName], remote_service_name: str) -> EndpointPair: ...
23
- @_property
24
- def remote_service_name(self) -> str: ...
25
- @remote_service_name.setter
26
- def remote_service_name(self, value: str) -> None: ...
27
- @_property
28
- def remote_host_name(self) -> typing.Optional[HostName]: ...
29
- @remote_host_name.setter
30
- def remote_host_name(self, value: typing.Optional[HostName]) -> None: ...
31
- @_property
32
- def local_service_name(self) -> str: ...
33
- @local_service_name.setter
34
- def local_service_name(self, value: str) -> None: ...
35
- @_property
36
- def local_host_name(self) -> typing.Optional[HostName]: ...
37
- @local_host_name.setter
38
- def local_host_name(self, value: typing.Optional[HostName]) -> None: ...
39
-
40
- @typing.final
41
- class HostName_Static(type):
42
- def compare(cls, value1: str, value2: str, /) -> winrt.system.Int32: ...
43
-
44
- @typing.final
45
- class HostName(winrt.system.Object, metaclass=HostName_Static):
46
- def __str__(self) -> str: ...
47
- @staticmethod
48
- def _from(obj: winrt.system.Object, /) -> HostName: ...
49
- def __new__(cls: typing.Type[HostName], host_name: str) -> HostName: ...
50
- def is_equal(self, host_name: typing.Optional[HostName], /) -> bool: ...
51
- def to_string(self) -> str: ...
52
- @_property
53
- def canonical_name(self) -> str: ...
54
- @_property
55
- def display_name(self) -> str: ...
56
- @_property
57
- def i_p_information(self) -> typing.Optional[windows_networking_connectivity.IPInformation]: ...
58
- @_property
59
- def raw_name(self) -> str: ...
60
- @_property
61
- def type(self) -> HostNameType: ...
62
-
@@ -1,4 +0,0 @@
1
- winrt-runtime==2.2.0
2
-
3
- [all]
4
- winrt-Windows.Networking.Connectivity[all]==2.2.0