winrt-Windows.Data.Xml.Xsl 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 (20) hide show
  1. {winrt_windows_data_xml_xsl-2.2.0 → winrt_windows_data_xml_xsl-3.0.0}/PKG-INFO +4 -4
  2. {winrt_windows_data_xml_xsl-2.2.0 → winrt_windows_data_xml_xsl-3.0.0}/all-requirements.txt +2 -2
  3. {winrt_windows_data_xml_xsl-2.2.0 → winrt_windows_data_xml_xsl-3.0.0}/py.Windows.Data.Xml.Xsl.cpp +25 -14
  4. {winrt_windows_data_xml_xsl-2.2.0 → winrt_windows_data_xml_xsl-3.0.0}/pyproject.toml +2 -2
  5. winrt_windows_data_xml_xsl-3.0.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_data_xml_xsl-2.2.0 → winrt_windows_data_xml_xsl-3.0.0}/requirements.txt +2 -2
  7. {winrt_windows_data_xml_xsl-2.2.0 → winrt_windows_data_xml_xsl-3.0.0}/setup.py +1 -1
  8. winrt_windows_data_xml_xsl-3.0.0/winrt/_winrt_windows_data_xml_xsl.pyi +23 -0
  9. {winrt_windows_data_xml_xsl-2.2.0 → winrt_windows_data_xml_xsl-3.0.0}/winrt/windows/data/xml/xsl/__init__.py +4 -3
  10. {winrt_windows_data_xml_xsl-2.2.0 → winrt_windows_data_xml_xsl-3.0.0}/winrt_Windows.Data.Xml.Xsl.egg-info/PKG-INFO +4 -4
  11. winrt_windows_data_xml_xsl-3.0.0/winrt_Windows.Data.Xml.Xsl.egg-info/requires.txt +4 -0
  12. winrt_windows_data_xml_xsl-2.2.0/pywinrt-version.txt +0 -1
  13. winrt_windows_data_xml_xsl-2.2.0/winrt/_winrt_windows_data_xml_xsl.pyi +0 -23
  14. winrt_windows_data_xml_xsl-2.2.0/winrt_Windows.Data.Xml.Xsl.egg-info/requires.txt +0 -4
  15. {winrt_windows_data_xml_xsl-2.2.0 → winrt_windows_data_xml_xsl-3.0.0}/README.md +0 -0
  16. {winrt_windows_data_xml_xsl-2.2.0 → winrt_windows_data_xml_xsl-3.0.0}/setup.cfg +0 -0
  17. {winrt_windows_data_xml_xsl-2.2.0 → winrt_windows_data_xml_xsl-3.0.0}/winrt/windows/data/xml/xsl/py.typed +0 -0
  18. {winrt_windows_data_xml_xsl-2.2.0 → winrt_windows_data_xml_xsl-3.0.0}/winrt_Windows.Data.Xml.Xsl.egg-info/SOURCES.txt +0 -0
  19. {winrt_windows_data_xml_xsl-2.2.0 → winrt_windows_data_xml_xsl-3.0.0}/winrt_Windows.Data.Xml.Xsl.egg-info/dependency_links.txt +0 -0
  20. {winrt_windows_data_xml_xsl-2.2.0 → winrt_windows_data_xml_xsl-3.0.0}/winrt_Windows.Data.Xml.Xsl.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Data.Xml.Xsl
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.Data.Xml.Dom[all]==2.2.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Data.Xml.Dom[all]==3.0.0; extra == "all"
18
18
 
19
19
  <!-- warning: Please don't edit this file. It was automatically generated. -->
20
20
 
@@ -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-Windows.Data.Xml.Dom[all]==2.2.0
3
+ winrt-Windows.Data.Xml.Dom[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.Data.Xml.Xsl.h"
4
4
 
@@ -8,13 +8,13 @@ namespace py::cpp::Windows::Data::Xml::Xsl
8
8
 
9
9
  static PyObject* _new_XsltProcessor(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 == 1)
19
19
  {
20
20
  try
@@ -47,7 +47,7 @@ namespace py::cpp::Windows::Data::Xml::Xsl
47
47
 
48
48
  static PyObject* XsltProcessor_TransformToDocument(py::wrapper::Windows::Data::Xml::Xsl::XsltProcessor* self, PyObject* args) noexcept
49
49
  {
50
- auto arg_count = PyTuple_Size(args);
50
+ auto arg_count = PyTuple_GET_SIZE(args);
51
51
 
52
52
  if (arg_count == 1)
53
53
  {
@@ -68,7 +68,11 @@ namespace py::cpp::Windows::Data::Xml::Xsl
68
68
 
69
69
  auto param0 = py::convert_to<winrt::Windows::Data::Xml::Dom::IXmlNode>(args, 0);
70
70
 
71
- return py::convert(self->obj.TransformToDocument(param0));
71
+ return py::convert([&]()
72
+ {
73
+ auto _gil = release_gil();
74
+ return self->obj.TransformToDocument(param0);
75
+ }());
72
76
  }
73
77
  catch (...)
74
78
  {
@@ -85,7 +89,7 @@ namespace py::cpp::Windows::Data::Xml::Xsl
85
89
 
86
90
  static PyObject* XsltProcessor_TransformToString(py::wrapper::Windows::Data::Xml::Xsl::XsltProcessor* self, PyObject* args) noexcept
87
91
  {
88
- auto arg_count = PyTuple_Size(args);
92
+ auto arg_count = PyTuple_GET_SIZE(args);
89
93
 
90
94
  if (arg_count == 1)
91
95
  {
@@ -106,7 +110,11 @@ namespace py::cpp::Windows::Data::Xml::Xsl
106
110
 
107
111
  auto param0 = py::convert_to<winrt::Windows::Data::Xml::Dom::IXmlNode>(args, 0);
108
112
 
109
- return py::convert(self->obj.TransformToString(param0));
113
+ return py::convert([&]()
114
+ {
115
+ auto _gil = release_gil();
116
+ return self->obj.TransformToString(param0);
117
+ }());
110
118
  }
111
119
  catch (...)
112
120
  {
@@ -150,20 +158,17 @@ namespace py::cpp::Windows::Data::Xml::Xsl
150
158
  { "transform_to_string", reinterpret_cast<PyCFunction>(XsltProcessor_TransformToString), METH_VARARGS, nullptr },
151
159
  { "_assign_array_", _assign_array_XsltProcessor, METH_O | METH_STATIC, nullptr },
152
160
  { "_from", reinterpret_cast<PyCFunction>(_from_XsltProcessor), METH_O | METH_STATIC, nullptr },
153
- { }
154
- };
161
+ { }};
155
162
 
156
163
  static PyGetSetDef _getset_XsltProcessor[] = {
157
- { }
158
- };
164
+ { }};
159
165
 
160
166
  static PyType_Slot _type_slots_XsltProcessor[] = {
161
167
  { Py_tp_new, reinterpret_cast<void*>(_new_XsltProcessor) },
162
168
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_XsltProcessor) },
163
169
  { Py_tp_methods, reinterpret_cast<void*>(_methods_XsltProcessor) },
164
170
  { Py_tp_getset, reinterpret_cast<void*>(_getset_XsltProcessor) },
165
- { }
166
- };
171
+ { }};
167
172
 
168
173
  static PyType_Spec type_spec_XsltProcessor = {
169
174
  "winrt._winrt_windows_data_xml_xsl.XsltProcessor",
@@ -204,6 +209,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_data_xml_xsl(void) noexcept
204
209
  return nullptr;
205
210
  }
206
211
 
212
+ auto inspectable_meta_type = py::get_inspectable_meta_type();
213
+ if (!inspectable_meta_type)
214
+ {
215
+ return nullptr;
216
+ }
217
+
207
218
  auto object_type = py::get_object_type();
208
219
  if (!object_type)
209
220
  {
@@ -217,7 +228,7 @@ PyMODINIT_FUNC PyInit__winrt_windows_data_xml_xsl(void) noexcept
217
228
  return nullptr;
218
229
  }
219
230
 
220
- py::pytype_handle XsltProcessor_type{py::register_python_type(module.get(), &type_spec_XsltProcessor, object_bases.get(), nullptr)};
231
+ py::pytype_handle XsltProcessor_type{py::register_python_type(module.get(), &type_spec_XsltProcessor, object_bases.get(), inspectable_meta_type)};
221
232
  if (!XsltProcessor_type)
222
233
  {
223
234
  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"
@@ -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_xml_xsl",
@@ -0,0 +1,23 @@
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.data.xml.dom as windows_data_xml_dom
13
+
14
+ Self = typing.TypeVar('Self')
15
+
16
+ @typing.final
17
+ class XsltProcessor(winrt.system.Object):
18
+ def __new__(cls: typing.Type[Self], document: windows_data_xml_dom.XmlDocument) -> Self: ...
19
+ # Windows.Data.Xml.Dom.XmlDocument Windows.Data.Xml.Xsl.XsltProcessor::TransformToDocument(Windows.Data.Xml.Dom.IXmlNode)
20
+ def transform_to_document(self, input_node: windows_data_xml_dom.IXmlNode, /) -> windows_data_xml_dom.XmlDocument: ...
21
+ # System.String Windows.Data.Xml.Xsl.XsltProcessor::TransformToString(Windows.Data.Xml.Dom.IXmlNode)
22
+ def transform_to_string(self, input_node: windows_data_xml_dom.IXmlNode, /) -> str: ...
23
+
@@ -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_xml_xsl
4
+ from winrt._winrt_windows_data_xml_xsl import (
5
+ XsltProcessor,
6
+ )
5
7
 
6
8
  __all__ = [
7
9
  "XsltProcessor",
8
10
  ]
9
11
 
10
- XsltProcessor = _winrt_windows_data_xml_xsl.XsltProcessor
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Data.Xml.Xsl
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.Data.Xml.Dom[all]==2.2.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Data.Xml.Dom[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.Data.Xml.Dom[all]==3.0.0
@@ -1 +0,0 @@
1
- 2.2.0
@@ -1,23 +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.data.xml.dom as windows_data_xml_dom
13
-
14
- Self = typing.TypeVar('Self')
15
-
16
- @typing.final
17
- class XsltProcessor(winrt.system.Object):
18
- @staticmethod
19
- def _from(obj: winrt.system.Object, /) -> XsltProcessor: ...
20
- def __new__(cls: typing.Type[XsltProcessor], document: typing.Optional[windows_data_xml_dom.XmlDocument]) -> XsltProcessor: ...
21
- def transform_to_document(self, input_node: typing.Optional[windows_data_xml_dom.IXmlNode], /) -> typing.Optional[windows_data_xml_dom.XmlDocument]: ...
22
- def transform_to_string(self, input_node: typing.Optional[windows_data_xml_dom.IXmlNode], /) -> str: ...
23
-
@@ -1,4 +0,0 @@
1
- winrt-runtime==2.2.0
2
-
3
- [all]
4
- winrt-Windows.Data.Xml.Dom[all]==2.2.0