winrt-Windows.UI.Composition.Core 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 (22) hide show
  1. {winrt_windows_ui_composition_core-2.2.0 → winrt_windows_ui_composition_core-3.0.0}/PKG-INFO +5 -5
  2. winrt_windows_ui_composition_core-3.0.0/all-requirements.txt +4 -0
  3. {winrt_windows_ui_composition_core-2.2.0 → winrt_windows_ui_composition_core-3.0.0}/py.Windows.UI.Composition.Core.cpp +51 -20
  4. {winrt_windows_ui_composition_core-2.2.0 → winrt_windows_ui_composition_core-3.0.0}/pyproject.toml +2 -2
  5. winrt_windows_ui_composition_core-3.0.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_ui_composition_core-2.2.0 → winrt_windows_ui_composition_core-3.0.0}/requirements.txt +2 -2
  7. {winrt_windows_ui_composition_core-2.2.0 → winrt_windows_ui_composition_core-3.0.0}/setup.py +1 -1
  8. winrt_windows_ui_composition_core-3.0.0/winrt/_winrt_windows_ui_composition_core.pyi +35 -0
  9. winrt_windows_ui_composition_core-3.0.0/winrt/windows/ui/composition/core/__init__.py +11 -0
  10. {winrt_windows_ui_composition_core-2.2.0 → winrt_windows_ui_composition_core-3.0.0}/winrt_Windows.UI.Composition.Core.egg-info/PKG-INFO +5 -5
  11. winrt_windows_ui_composition_core-3.0.0/winrt_Windows.UI.Composition.Core.egg-info/requires.txt +5 -0
  12. winrt_windows_ui_composition_core-2.2.0/all-requirements.txt +0 -4
  13. winrt_windows_ui_composition_core-2.2.0/pywinrt-version.txt +0 -1
  14. winrt_windows_ui_composition_core-2.2.0/winrt/_winrt_windows_ui_composition_core.pyi +0 -31
  15. winrt_windows_ui_composition_core-2.2.0/winrt/windows/ui/composition/core/__init__.py +0 -10
  16. winrt_windows_ui_composition_core-2.2.0/winrt_Windows.UI.Composition.Core.egg-info/requires.txt +0 -5
  17. {winrt_windows_ui_composition_core-2.2.0 → winrt_windows_ui_composition_core-3.0.0}/README.md +0 -0
  18. {winrt_windows_ui_composition_core-2.2.0 → winrt_windows_ui_composition_core-3.0.0}/setup.cfg +0 -0
  19. {winrt_windows_ui_composition_core-2.2.0 → winrt_windows_ui_composition_core-3.0.0}/winrt/windows/ui/composition/core/py.typed +0 -0
  20. {winrt_windows_ui_composition_core-2.2.0 → winrt_windows_ui_composition_core-3.0.0}/winrt_Windows.UI.Composition.Core.egg-info/SOURCES.txt +0 -0
  21. {winrt_windows_ui_composition_core-2.2.0 → winrt_windows_ui_composition_core-3.0.0}/winrt_Windows.UI.Composition.Core.egg-info/dependency_links.txt +0 -0
  22. {winrt_windows_ui_composition_core-2.2.0 → winrt_windows_ui_composition_core-3.0.0}/winrt_Windows.UI.Composition.Core.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.UI.Composition.Core
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,12 +10,12 @@ 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.Foundation[all]==2.2.0; extra == "all"
18
- Requires-Dist: winrt-Windows.UI.Composition[all]==2.2.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==3.0.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.UI.Composition[all]==3.0.0; extra == "all"
19
19
 
20
20
  <!-- warning: Please don't edit this file. It was automatically generated. -->
21
21
 
@@ -0,0 +1,4 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
+
3
+ winrt-Windows.Foundation[all]==3.0.0
4
+ winrt-Windows.UI.Composition[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.UI.Composition.Core.h"
4
4
 
@@ -8,13 +8,13 @@ namespace py::cpp::Windows::UI::Composition::Core
8
8
 
9
9
  static PyObject* _new_CompositorController(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 == 0)
19
19
  {
20
20
  try
@@ -45,7 +45,7 @@ namespace py::cpp::Windows::UI::Composition::Core
45
45
 
46
46
  static PyObject* CompositorController_Close(py::wrapper::Windows::UI::Composition::Core::CompositorController* self, PyObject* args) noexcept
47
47
  {
48
- auto arg_count = PyTuple_Size(args);
48
+ auto arg_count = PyTuple_GET_SIZE(args);
49
49
 
50
50
  if (arg_count == 0)
51
51
  {
@@ -64,7 +64,11 @@ namespace py::cpp::Windows::UI::Composition::Core
64
64
  return nullptr;
65
65
  }
66
66
 
67
- self->obj.Close();
67
+ {
68
+ auto _gil = release_gil();
69
+ self->obj.Close();
70
+ }
71
+
68
72
  Py_RETURN_NONE;
69
73
  }
70
74
  catch (...)
@@ -82,7 +86,7 @@ namespace py::cpp::Windows::UI::Composition::Core
82
86
 
83
87
  static PyObject* CompositorController_Commit(py::wrapper::Windows::UI::Composition::Core::CompositorController* self, PyObject* args) noexcept
84
88
  {
85
- auto arg_count = PyTuple_Size(args);
89
+ auto arg_count = PyTuple_GET_SIZE(args);
86
90
 
87
91
  if (arg_count == 0)
88
92
  {
@@ -101,7 +105,11 @@ namespace py::cpp::Windows::UI::Composition::Core
101
105
  return nullptr;
102
106
  }
103
107
 
104
- self->obj.Commit();
108
+ {
109
+ auto _gil = release_gil();
110
+ self->obj.Commit();
111
+ }
112
+
105
113
  Py_RETURN_NONE;
106
114
  }
107
115
  catch (...)
@@ -119,7 +127,7 @@ namespace py::cpp::Windows::UI::Composition::Core
119
127
 
120
128
  static PyObject* CompositorController_EnsurePreviousCommitCompletedAsync(py::wrapper::Windows::UI::Composition::Core::CompositorController* self, PyObject* args) noexcept
121
129
  {
122
- auto arg_count = PyTuple_Size(args);
130
+ auto arg_count = PyTuple_GET_SIZE(args);
123
131
 
124
132
  if (arg_count == 0)
125
133
  {
@@ -138,7 +146,11 @@ namespace py::cpp::Windows::UI::Composition::Core
138
146
  return nullptr;
139
147
  }
140
148
 
141
- return py::convert(self->obj.EnsurePreviousCommitCompletedAsync());
149
+ return py::convert([&]()
150
+ {
151
+ auto _gil = release_gil();
152
+ return self->obj.EnsurePreviousCommitCompletedAsync();
153
+ }());
142
154
  }
143
155
  catch (...)
144
156
  {
@@ -170,7 +182,11 @@ namespace py::cpp::Windows::UI::Composition::Core
170
182
  return nullptr;
171
183
  }
172
184
 
173
- return py::convert(self->obj.Compositor());
185
+ return py::convert([&]()
186
+ {
187
+ auto _gil = release_gil();
188
+ return self->obj.Compositor();
189
+ }());
174
190
  }
175
191
  catch (...)
176
192
  {
@@ -198,7 +214,11 @@ namespace py::cpp::Windows::UI::Composition::Core
198
214
 
199
215
  auto param0 = py::convert_to<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::UI::Composition::Core::CompositorController, winrt::Windows::Foundation::IInspectable>>(arg);
200
216
 
201
- return py::convert(self->obj.CommitNeeded(param0));
217
+ return py::convert([&]()
218
+ {
219
+ auto _gil = release_gil();
220
+ return self->obj.CommitNeeded(param0);
221
+ }());
202
222
  }
203
223
  catch (...)
204
224
  {
@@ -226,7 +246,11 @@ namespace py::cpp::Windows::UI::Composition::Core
226
246
 
227
247
  auto param0 = py::convert_to<winrt::event_token>(arg);
228
248
 
229
- self->obj.CommitNeeded(param0);
249
+ {
250
+ auto _gil = release_gil();
251
+ self->obj.CommitNeeded(param0);
252
+ }
253
+
230
254
  Py_RETURN_NONE;
231
255
  }
232
256
  catch (...)
@@ -269,7 +293,11 @@ namespace py::cpp::Windows::UI::Composition::Core
269
293
  {
270
294
  try
271
295
  {
272
- self->obj.Close();
296
+ {
297
+ auto _gil = py::release_gil();
298
+ self->obj.Close();
299
+ }
300
+
273
301
  Py_RETURN_FALSE;
274
302
  }
275
303
  catch (...)
@@ -289,21 +317,18 @@ namespace py::cpp::Windows::UI::Composition::Core
289
317
  { "_from", reinterpret_cast<PyCFunction>(_from_CompositorController), METH_O | METH_STATIC, nullptr },
290
318
  { "__enter__", reinterpret_cast<PyCFunction>(_enter_CompositorController), METH_NOARGS, nullptr },
291
319
  { "__exit__", reinterpret_cast<PyCFunction>(_exit_CompositorController), METH_VARARGS, nullptr },
292
- { }
293
- };
320
+ { }};
294
321
 
295
322
  static PyGetSetDef _getset_CompositorController[] = {
296
323
  { "compositor", reinterpret_cast<getter>(CompositorController_get_Compositor), nullptr, nullptr, nullptr },
297
- { }
298
- };
324
+ { }};
299
325
 
300
326
  static PyType_Slot _type_slots_CompositorController[] = {
301
327
  { Py_tp_new, reinterpret_cast<void*>(_new_CompositorController) },
302
328
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_CompositorController) },
303
329
  { Py_tp_methods, reinterpret_cast<void*>(_methods_CompositorController) },
304
330
  { Py_tp_getset, reinterpret_cast<void*>(_getset_CompositorController) },
305
- { }
306
- };
331
+ { }};
307
332
 
308
333
  static PyType_Spec type_spec_CompositorController = {
309
334
  "winrt._winrt_windows_ui_composition_core.CompositorController",
@@ -344,6 +369,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_ui_composition_core(void) noexcept
344
369
  return nullptr;
345
370
  }
346
371
 
372
+ auto inspectable_meta_type = py::get_inspectable_meta_type();
373
+ if (!inspectable_meta_type)
374
+ {
375
+ return nullptr;
376
+ }
377
+
347
378
  auto object_type = py::get_object_type();
348
379
  if (!object_type)
349
380
  {
@@ -357,7 +388,7 @@ PyMODINIT_FUNC PyInit__winrt_windows_ui_composition_core(void) noexcept
357
388
  return nullptr;
358
389
  }
359
390
 
360
- py::pytype_handle CompositorController_type{py::register_python_type(module.get(), &type_spec_CompositorController, object_bases.get(), nullptr)};
391
+ py::pytype_handle CompositorController_type{py::register_python_type(module.get(), &type_spec_CompositorController, object_bases.get(), inspectable_meta_type)};
361
392
  if (!CompositorController_type)
362
393
  {
363
394
  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_ui_composition_core",
@@ -0,0 +1,35 @@
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.ui.composition as windows_ui_composition
14
+
15
+ Self = typing.TypeVar('Self')
16
+
17
+ @typing.final
18
+ class CompositorController(winrt.system.Object, windows_foundation.IClosable):
19
+ def __enter__(self: Self) -> Self: ...
20
+ def __exit__(self, exc_type: typing.Optional[typing.Type[BaseException]], exc_value: typing.Optional[BaseException], traceback: typing.Optional[types.TracebackType]) -> None: ...
21
+ def __new__(cls: typing.Type[Self]) -> Self: ...
22
+ # System.Void Windows.UI.Composition.Core.CompositorController::Close()
23
+ def close(self) -> None: ...
24
+ # System.Void Windows.UI.Composition.Core.CompositorController::Commit()
25
+ def commit(self) -> None: ...
26
+ # Windows.Foundation.IAsyncAction Windows.UI.Composition.Core.CompositorController::EnsurePreviousCommitCompletedAsync()
27
+ def ensure_previous_commit_completed_async(self) -> windows_foundation.IAsyncAction: ...
28
+ # Windows.Foundation.EventRegistrationToken Windows.UI.Composition.Core.CompositorController::add_CommitNeeded(Windows.Foundation.TypedEventHandler`2<Windows.UI.Composition.Core.CompositorController,System.Object>)
29
+ def add_commit_needed(self, handler: windows_foundation.TypedEventHandler[CompositorController, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
30
+ # System.Void Windows.UI.Composition.Core.CompositorController::remove_CommitNeeded(Windows.Foundation.EventRegistrationToken)
31
+ def remove_commit_needed(self, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
32
+ # Windows.UI.Composition.Compositor Windows.UI.Composition.Core.CompositorController::get_Compositor()
33
+ @_property
34
+ def compositor(self) -> windows_ui_composition.Compositor: ...
35
+
@@ -0,0 +1,11 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
+
3
+ import winrt.system
4
+ from winrt._winrt_windows_ui_composition_core import (
5
+ CompositorController,
6
+ )
7
+
8
+ __all__ = [
9
+ "CompositorController",
10
+ ]
11
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.UI.Composition.Core
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,12 +10,12 @@ 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.Foundation[all]==2.2.0; extra == "all"
18
- Requires-Dist: winrt-Windows.UI.Composition[all]==2.2.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==3.0.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.UI.Composition[all]==3.0.0; extra == "all"
19
19
 
20
20
  <!-- warning: Please don't edit this file. It was automatically generated. -->
21
21
 
@@ -0,0 +1,5 @@
1
+ winrt-runtime==3.0.0
2
+
3
+ [all]
4
+ winrt-Windows.Foundation[all]==3.0.0
5
+ winrt-Windows.UI.Composition[all]==3.0.0
@@ -1,4 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
-
3
- winrt-Windows.Foundation[all]==2.2.0
4
- winrt-Windows.UI.Composition[all]==2.2.0
@@ -1,31 +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.foundation as windows_foundation
13
- import winrt.windows.ui.composition as windows_ui_composition
14
-
15
- Self = typing.TypeVar('Self')
16
-
17
- @typing.final
18
- class CompositorController(winrt.system.Object):
19
- def __enter__(self: Self) -> Self: ...
20
- def __exit__(self, *args) -> None: ...
21
- @staticmethod
22
- def _from(obj: winrt.system.Object, /) -> CompositorController: ...
23
- def __new__(cls: typing.Type[CompositorController]) -> CompositorController: ...
24
- def close(self) -> None: ...
25
- def commit(self) -> None: ...
26
- def ensure_previous_commit_completed_async(self) -> windows_foundation.IAsyncAction: ...
27
- def add_commit_needed(self, handler: windows_foundation.TypedEventHandler[CompositorController, winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
28
- def remove_commit_needed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
29
- @_property
30
- def compositor(self) -> typing.Optional[windows_ui_composition.Compositor]: ...
31
-
@@ -1,10 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
-
3
- import winrt.system
4
- from winrt import _winrt_windows_ui_composition_core
5
-
6
- __all__ = [
7
- "CompositorController",
8
- ]
9
-
10
- CompositorController = _winrt_windows_ui_composition_core.CompositorController
@@ -1,5 +0,0 @@
1
- winrt-runtime==2.2.0
2
-
3
- [all]
4
- winrt-Windows.Foundation[all]==2.2.0
5
- winrt-Windows.UI.Composition[all]==2.2.0