winrt-Windows.Data.Html 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 (18) hide show
  1. {winrt_windows_data_html-2.2.0 → winrt_windows_data_html-3.0.0}/PKG-INFO +3 -3
  2. {winrt_windows_data_html-2.2.0 → winrt_windows_data_html-3.0.0}/py.Windows.Data.Html.cpp +27 -18
  3. {winrt_windows_data_html-2.2.0 → winrt_windows_data_html-3.0.0}/pyproject.toml +2 -2
  4. winrt_windows_data_html-3.0.0/pywinrt-version.txt +1 -0
  5. {winrt_windows_data_html-2.2.0 → winrt_windows_data_html-3.0.0}/requirements.txt +2 -2
  6. {winrt_windows_data_html-2.2.0 → winrt_windows_data_html-3.0.0}/setup.py +1 -1
  7. {winrt_windows_data_html-2.2.0 → winrt_windows_data_html-3.0.0}/winrt/_winrt_windows_data_html.pyi +3 -2
  8. {winrt_windows_data_html-2.2.0 → winrt_windows_data_html-3.0.0}/winrt/windows/data/html/__init__.py +4 -3
  9. {winrt_windows_data_html-2.2.0 → winrt_windows_data_html-3.0.0}/winrt_Windows.Data.Html.egg-info/PKG-INFO +3 -3
  10. winrt_windows_data_html-3.0.0/winrt_Windows.Data.Html.egg-info/requires.txt +1 -0
  11. winrt_windows_data_html-2.2.0/pywinrt-version.txt +0 -1
  12. winrt_windows_data_html-2.2.0/winrt_Windows.Data.Html.egg-info/requires.txt +0 -1
  13. {winrt_windows_data_html-2.2.0 → winrt_windows_data_html-3.0.0}/README.md +0 -0
  14. {winrt_windows_data_html-2.2.0 → winrt_windows_data_html-3.0.0}/setup.cfg +0 -0
  15. {winrt_windows_data_html-2.2.0 → winrt_windows_data_html-3.0.0}/winrt/windows/data/html/py.typed +0 -0
  16. {winrt_windows_data_html-2.2.0 → winrt_windows_data_html-3.0.0}/winrt_Windows.Data.Html.egg-info/SOURCES.txt +0 -0
  17. {winrt_windows_data_html-2.2.0 → winrt_windows_data_html-3.0.0}/winrt_Windows.Data.Html.egg-info/dependency_links.txt +0 -0
  18. {winrt_windows_data_html-2.2.0 → winrt_windows_data_html-3.0.0}/winrt_Windows.Data.Html.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Data.Html
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,9 +10,9 @@ 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
 
17
17
  <!-- warning: Please don't edit this file. It was automatically generated. -->
18
18
 
@@ -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.Data.Html.h"
4
4
 
@@ -15,7 +15,7 @@ namespace py::cpp::Windows::Data::Html
15
15
 
16
16
  static PyObject* HtmlUtilities_ConvertToText(PyObject* /*unused*/, PyObject* args) noexcept
17
17
  {
18
- auto arg_count = PyTuple_Size(args);
18
+ auto arg_count = PyTuple_GET_SIZE(args);
19
19
 
20
20
  if (arg_count == 1)
21
21
  {
@@ -36,7 +36,11 @@ namespace py::cpp::Windows::Data::Html
36
36
 
37
37
  auto param0 = py::convert_to<winrt::hstring>(args, 0);
38
38
 
39
- return py::convert(winrt::Windows::Data::Html::HtmlUtilities::ConvertToText(param0));
39
+ return py::convert([&]()
40
+ {
41
+ auto _gil = release_gil();
42
+ return winrt::Windows::Data::Html::HtmlUtilities::ConvertToText(param0);
43
+ }());
40
44
  }
41
45
  catch (...)
42
46
  {
@@ -52,19 +56,16 @@ namespace py::cpp::Windows::Data::Html
52
56
  }
53
57
 
54
58
  static PyMethodDef _methods_HtmlUtilities[] = {
55
- { }
56
- };
59
+ { }};
57
60
 
58
61
  static PyGetSetDef _getset_HtmlUtilities[] = {
59
- { }
60
- };
62
+ { }};
61
63
 
62
64
  static PyType_Slot _type_slots_HtmlUtilities[] = {
63
65
  { Py_tp_new, reinterpret_cast<void*>(_new_HtmlUtilities) },
64
66
  { Py_tp_methods, reinterpret_cast<void*>(_methods_HtmlUtilities) },
65
67
  { Py_tp_getset, reinterpret_cast<void*>(_getset_HtmlUtilities) },
66
- { }
67
- };
68
+ { }};
68
69
 
69
70
  static PyType_Spec type_spec_HtmlUtilities = {
70
71
  "winrt._winrt_windows_data_html.HtmlUtilities",
@@ -74,13 +75,11 @@ namespace py::cpp::Windows::Data::Html
74
75
  _type_slots_HtmlUtilities};
75
76
 
76
77
  static PyGetSetDef getset_HtmlUtilities_Static[] = {
77
- { }
78
- };
78
+ { }};
79
79
 
80
80
  static PyMethodDef methods_HtmlUtilities_Static[] = {
81
81
  { "convert_to_text", reinterpret_cast<PyCFunction>(HtmlUtilities_ConvertToText), METH_VARARGS, nullptr },
82
- { }
83
- };
82
+ { }};
84
83
 
85
84
  static PyType_Slot type_slots_HtmlUtilities_Static[] =
86
85
  {
@@ -90,14 +89,12 @@ namespace py::cpp::Windows::Data::Html
90
89
  { }
91
90
  };
92
91
 
93
- static PyType_Spec type_spec_HtmlUtilities_Static =
94
- {
92
+ static PyType_Spec type_spec_HtmlUtilities_Static = {
95
93
  "winrt._winrt_windows_data_html.HtmlUtilities_Static",
96
94
  static_cast<int>(PyType_Type.tp_basicsize),
97
95
  static_cast<int>(PyType_Type.tp_itemsize),
98
96
  Py_TPFLAGS_DEFAULT,
99
- type_slots_HtmlUtilities_Static
100
- };
97
+ type_slots_HtmlUtilities_Static};
101
98
 
102
99
  // ----- Windows.Data.Html Initialization --------------------
103
100
 
@@ -131,6 +128,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_data_html(void) noexcept
131
128
  return nullptr;
132
129
  }
133
130
 
131
+ auto inspectable_meta_type = py::get_inspectable_meta_type();
132
+ if (!inspectable_meta_type)
133
+ {
134
+ return nullptr;
135
+ }
136
+
134
137
  auto object_type = py::get_object_type();
135
138
  if (!object_type)
136
139
  {
@@ -144,7 +147,13 @@ PyMODINIT_FUNC PyInit__winrt_windows_data_html(void) noexcept
144
147
  return nullptr;
145
148
  }
146
149
 
147
- py::pyobj_handle type_HtmlUtilities_Static{PyType_FromSpec(&type_spec_HtmlUtilities_Static)};
150
+ py::pyobj_handle HtmlUtilities_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
151
+ if (!HtmlUtilities_Static_bases)
152
+ {
153
+ return nullptr;
154
+ }
155
+
156
+ py::pyobj_handle type_HtmlUtilities_Static{PyType_FromSpecWithBases(&type_spec_HtmlUtilities_Static, HtmlUtilities_Static_bases.get())};
148
157
  if (!type_HtmlUtilities_Static)
149
158
  {
150
159
  return nullptr;
@@ -16,7 +16,7 @@ classifiers = [
16
16
  "Intended Audience :: Developers",
17
17
  ]
18
18
  dynamic = ["version", "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"
@@ -33,7 +33,7 @@ dependencies = { file = "requirements.txt" }
33
33
 
34
34
  [tool.cibuildwheel]
35
35
  # use local winrt-sdk build dependency
36
- environment = { PYTHONPATH="../winrt-sdk/src" }
36
+ environment = { PYTHONPATH="../../winrt-sdk/src" }
37
37
  # don't install winrt-sdk from PyPI
38
38
  build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
39
39
  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_data_html",
@@ -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
  import datetime
4
4
  import sys
@@ -13,7 +13,8 @@ import winrt.system
13
13
  Self = typing.TypeVar('Self')
14
14
 
15
15
  @typing.final
16
- class HtmlUtilities_Static(type):
16
+ class HtmlUtilities_Static(winrt._winrt.IInspectable_Static):
17
+ # System.String Windows.Data.Html.HtmlUtilities::ConvertToText(System.String)
17
18
  def convert_to_text(cls, html: str, /) -> str: ...
18
19
 
19
20
  @typing.final
@@ -1,10 +1,11 @@
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 winrt.system
4
- from winrt import _winrt_windows_data_html
4
+ from winrt._winrt_windows_data_html import (
5
+ HtmlUtilities,
6
+ )
5
7
 
6
8
  __all__ = [
7
9
  "HtmlUtilities",
8
10
  ]
9
11
 
10
- HtmlUtilities = _winrt_windows_data_html.HtmlUtilities
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Data.Html
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,9 +10,9 @@ 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
 
17
17
  <!-- warning: Please don't edit this file. It was automatically generated. -->
18
18
 
@@ -1 +0,0 @@
1
- 2.2.0
@@ -1 +0,0 @@
1
- winrt-runtime==2.2.0