winrt-Windows.System.Display 2.3.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 (19) hide show
  1. {winrt_windows_system_display-2.3.0 → winrt_windows_system_display-3.0.0}/PKG-INFO +3 -3
  2. {winrt_windows_system_display-2.3.0 → winrt_windows_system_display-3.0.0}/py.Windows.System.Display.cpp +25 -14
  3. {winrt_windows_system_display-2.3.0 → winrt_windows_system_display-3.0.0}/pyproject.toml +2 -2
  4. winrt_windows_system_display-3.0.0/pywinrt-version.txt +1 -0
  5. {winrt_windows_system_display-2.3.0 → winrt_windows_system_display-3.0.0}/requirements.txt +2 -2
  6. {winrt_windows_system_display-2.3.0 → winrt_windows_system_display-3.0.0}/setup.py +1 -1
  7. {winrt_windows_system_display-2.3.0 → winrt_windows_system_display-3.0.0}/winrt/_winrt_windows_system_display.pyi +4 -4
  8. winrt_windows_system_display-3.0.0/winrt/windows/system/display/__init__.py +11 -0
  9. {winrt_windows_system_display-2.3.0 → winrt_windows_system_display-3.0.0}/winrt_Windows.System.Display.egg-info/PKG-INFO +3 -3
  10. winrt_windows_system_display-3.0.0/winrt_Windows.System.Display.egg-info/requires.txt +1 -0
  11. winrt_windows_system_display-2.3.0/pywinrt-version.txt +0 -1
  12. winrt_windows_system_display-2.3.0/winrt/windows/system/display/__init__.py +0 -10
  13. winrt_windows_system_display-2.3.0/winrt_Windows.System.Display.egg-info/requires.txt +0 -1
  14. {winrt_windows_system_display-2.3.0 → winrt_windows_system_display-3.0.0}/README.md +0 -0
  15. {winrt_windows_system_display-2.3.0 → winrt_windows_system_display-3.0.0}/setup.cfg +0 -0
  16. {winrt_windows_system_display-2.3.0 → winrt_windows_system_display-3.0.0}/winrt/windows/system/display/py.typed +0 -0
  17. {winrt_windows_system_display-2.3.0 → winrt_windows_system_display-3.0.0}/winrt_Windows.System.Display.egg-info/SOURCES.txt +0 -0
  18. {winrt_windows_system_display-2.3.0 → winrt_windows_system_display-3.0.0}/winrt_Windows.System.Display.egg-info/dependency_links.txt +0 -0
  19. {winrt_windows_system_display-2.3.0 → winrt_windows_system_display-3.0.0}/winrt_Windows.System.Display.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.System.Display
3
- Version: 2.3.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.3.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.3.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.System.Display.h"
4
4
 
@@ -8,13 +8,13 @@ namespace py::cpp::Windows::System::Display
8
8
 
9
9
  static PyObject* _new_DisplayRequest(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::System::Display
45
45
 
46
46
  static PyObject* DisplayRequest_RequestActive(py::wrapper::Windows::System::Display::DisplayRequest* 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::System::Display
64
64
  return nullptr;
65
65
  }
66
66
 
67
- self->obj.RequestActive();
67
+ {
68
+ auto _gil = release_gil();
69
+ self->obj.RequestActive();
70
+ }
71
+
68
72
  Py_RETURN_NONE;
69
73
  }
70
74
  catch (...)
@@ -82,7 +86,7 @@ namespace py::cpp::Windows::System::Display
82
86
 
83
87
  static PyObject* DisplayRequest_RequestRelease(py::wrapper::Windows::System::Display::DisplayRequest* 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::System::Display
101
105
  return nullptr;
102
106
  }
103
107
 
104
- self->obj.RequestRelease();
108
+ {
109
+ auto _gil = release_gil();
110
+ self->obj.RequestRelease();
111
+ }
112
+
105
113
  Py_RETURN_NONE;
106
114
  }
107
115
  catch (...)
@@ -146,20 +154,17 @@ namespace py::cpp::Windows::System::Display
146
154
  { "request_release", reinterpret_cast<PyCFunction>(DisplayRequest_RequestRelease), METH_VARARGS, nullptr },
147
155
  { "_assign_array_", _assign_array_DisplayRequest, METH_O | METH_STATIC, nullptr },
148
156
  { "_from", reinterpret_cast<PyCFunction>(_from_DisplayRequest), METH_O | METH_STATIC, nullptr },
149
- { }
150
- };
157
+ { }};
151
158
 
152
159
  static PyGetSetDef _getset_DisplayRequest[] = {
153
- { }
154
- };
160
+ { }};
155
161
 
156
162
  static PyType_Slot _type_slots_DisplayRequest[] = {
157
163
  { Py_tp_new, reinterpret_cast<void*>(_new_DisplayRequest) },
158
164
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_DisplayRequest) },
159
165
  { Py_tp_methods, reinterpret_cast<void*>(_methods_DisplayRequest) },
160
166
  { Py_tp_getset, reinterpret_cast<void*>(_getset_DisplayRequest) },
161
- { }
162
- };
167
+ { }};
163
168
 
164
169
  static PyType_Spec type_spec_DisplayRequest = {
165
170
  "winrt._winrt_windows_system_display.DisplayRequest",
@@ -200,6 +205,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_display(void) noexcept
200
205
  return nullptr;
201
206
  }
202
207
 
208
+ auto inspectable_meta_type = py::get_inspectable_meta_type();
209
+ if (!inspectable_meta_type)
210
+ {
211
+ return nullptr;
212
+ }
213
+
203
214
  auto object_type = py::get_object_type();
204
215
  if (!object_type)
205
216
  {
@@ -213,7 +224,7 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_display(void) noexcept
213
224
  return nullptr;
214
225
  }
215
226
 
216
- py::pytype_handle DisplayRequest_type{py::register_python_type(module.get(), &type_spec_DisplayRequest, object_bases.get(), nullptr)};
227
+ py::pytype_handle DisplayRequest_type{py::register_python_type(module.get(), &type_spec_DisplayRequest, object_bases.get(), inspectable_meta_type)};
217
228
  if (!DisplayRequest_type)
218
229
  {
219
230
  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"
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
2
 
3
- winrt-runtime==2.3.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_system_display",
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.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
@@ -14,9 +14,9 @@ Self = typing.TypeVar('Self')
14
14
 
15
15
  @typing.final
16
16
  class DisplayRequest(winrt.system.Object):
17
- @staticmethod
18
- def _from(obj: winrt.system.Object, /) -> DisplayRequest: ...
19
- def __new__(cls: typing.Type[DisplayRequest]) -> DisplayRequest: ...
17
+ def __new__(cls: typing.Type[Self]) -> Self: ...
18
+ # System.Void Windows.System.Display.DisplayRequest::RequestActive()
20
19
  def request_active(self) -> None: ...
20
+ # System.Void Windows.System.Display.DisplayRequest::RequestRelease()
21
21
  def request_release(self) -> None: ...
22
22
 
@@ -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_system_display import (
5
+ DisplayRequest,
6
+ )
7
+
8
+ __all__ = [
9
+ "DisplayRequest",
10
+ ]
11
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.System.Display
3
- Version: 2.3.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.3.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.3.0
@@ -1,10 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
2
-
3
- import winrt.system
4
- from winrt import _winrt_windows_system_display
5
-
6
- __all__ = [
7
- "DisplayRequest",
8
- ]
9
-
10
- DisplayRequest = _winrt_windows_system_display.DisplayRequest