winrt-Windows.System.RemoteDesktop 2.3.0__tar.gz → 3.1.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_remotedesktop-2.3.0 → winrt_windows_system_remotedesktop-3.1.0}/PKG-INFO +5 -5
  2. {winrt_windows_system_remotedesktop-2.3.0 → winrt_windows_system_remotedesktop-3.1.0}/py.Windows.System.RemoteDesktop.cpp +26 -17
  3. {winrt_windows_system_remotedesktop-2.3.0 → winrt_windows_system_remotedesktop-3.1.0}/pyproject.toml +4 -4
  4. winrt_windows_system_remotedesktop-3.1.0/pywinrt-version.txt +1 -0
  5. {winrt_windows_system_remotedesktop-2.3.0 → winrt_windows_system_remotedesktop-3.1.0}/requirements.txt +2 -2
  6. {winrt_windows_system_remotedesktop-2.3.0 → winrt_windows_system_remotedesktop-3.1.0}/setup.py +1 -1
  7. {winrt_windows_system_remotedesktop-2.3.0 → winrt_windows_system_remotedesktop-3.1.0}/winrt/_winrt_windows_system_remotedesktop.pyi +3 -2
  8. winrt_windows_system_remotedesktop-3.1.0/winrt/windows/system/remotedesktop/__init__.py +11 -0
  9. {winrt_windows_system_remotedesktop-2.3.0 → winrt_windows_system_remotedesktop-3.1.0}/winrt_Windows.System.RemoteDesktop.egg-info/PKG-INFO +5 -5
  10. winrt_windows_system_remotedesktop-3.1.0/winrt_Windows.System.RemoteDesktop.egg-info/requires.txt +1 -0
  11. winrt_windows_system_remotedesktop-2.3.0/pywinrt-version.txt +0 -1
  12. winrt_windows_system_remotedesktop-2.3.0/winrt/windows/system/remotedesktop/__init__.py +0 -10
  13. winrt_windows_system_remotedesktop-2.3.0/winrt_Windows.System.RemoteDesktop.egg-info/requires.txt +0 -1
  14. {winrt_windows_system_remotedesktop-2.3.0 → winrt_windows_system_remotedesktop-3.1.0}/README.md +0 -0
  15. {winrt_windows_system_remotedesktop-2.3.0 → winrt_windows_system_remotedesktop-3.1.0}/setup.cfg +0 -0
  16. {winrt_windows_system_remotedesktop-2.3.0 → winrt_windows_system_remotedesktop-3.1.0}/winrt/windows/system/remotedesktop/py.typed +0 -0
  17. {winrt_windows_system_remotedesktop-2.3.0 → winrt_windows_system_remotedesktop-3.1.0}/winrt_Windows.System.RemoteDesktop.egg-info/SOURCES.txt +0 -0
  18. {winrt_windows_system_remotedesktop-2.3.0 → winrt_windows_system_remotedesktop-3.1.0}/winrt_Windows.System.RemoteDesktop.egg-info/dependency_links.txt +0 -0
  19. {winrt_windows_system_remotedesktop-2.3.0 → winrt_windows_system_remotedesktop-3.1.0}/winrt_Windows.System.RemoteDesktop.egg-info/top_level.txt +0 -0
@@ -1,8 +1,8 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: winrt-Windows.System.RemoteDesktop
3
- Version: 2.3.0
3
+ Version: 3.1.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
- License: MIT
5
+ License-Expression: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
7
7
  Project-URL: Repository, https://github.com/pywinrt/pywinrt
8
8
  Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
@@ -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.1.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.1.0
2
2
 
3
3
  #include "py.Windows.System.RemoteDesktop.h"
4
4
 
@@ -30,7 +30,11 @@ namespace py::cpp::Windows::System::RemoteDesktop
30
30
  return nullptr;
31
31
  }
32
32
 
33
- return py::convert(winrt::Windows::System::RemoteDesktop::InteractiveSession::IsRemote());
33
+ return py::convert([&]()
34
+ {
35
+ auto _gil = release_gil();
36
+ return winrt::Windows::System::RemoteDesktop::InteractiveSession::IsRemote();
37
+ }());
34
38
  }
35
39
  catch (...)
36
40
  {
@@ -40,19 +44,16 @@ namespace py::cpp::Windows::System::RemoteDesktop
40
44
  }
41
45
 
42
46
  static PyMethodDef _methods_InteractiveSession[] = {
43
- { }
44
- };
47
+ { }};
45
48
 
46
49
  static PyGetSetDef _getset_InteractiveSession[] = {
47
- { }
48
- };
50
+ { }};
49
51
 
50
52
  static PyType_Slot _type_slots_InteractiveSession[] = {
51
53
  { Py_tp_new, reinterpret_cast<void*>(_new_InteractiveSession) },
52
54
  { Py_tp_methods, reinterpret_cast<void*>(_methods_InteractiveSession) },
53
55
  { Py_tp_getset, reinterpret_cast<void*>(_getset_InteractiveSession) },
54
- { }
55
- };
56
+ { }};
56
57
 
57
58
  static PyType_Spec type_spec_InteractiveSession = {
58
59
  "winrt._winrt_windows_system_remotedesktop.InteractiveSession",
@@ -63,12 +64,10 @@ namespace py::cpp::Windows::System::RemoteDesktop
63
64
 
64
65
  static PyGetSetDef getset_InteractiveSession_Static[] = {
65
66
  { "is_remote", reinterpret_cast<getter>(InteractiveSession_get_IsRemote), nullptr, nullptr, nullptr },
66
- { }
67
- };
67
+ { }};
68
68
 
69
69
  static PyMethodDef methods_InteractiveSession_Static[] = {
70
- { }
71
- };
70
+ { }};
72
71
 
73
72
  static PyType_Slot type_slots_InteractiveSession_Static[] =
74
73
  {
@@ -78,14 +77,12 @@ namespace py::cpp::Windows::System::RemoteDesktop
78
77
  { }
79
78
  };
80
79
 
81
- static PyType_Spec type_spec_InteractiveSession_Static =
82
- {
80
+ static PyType_Spec type_spec_InteractiveSession_Static = {
83
81
  "winrt._winrt_windows_system_remotedesktop.InteractiveSession_Static",
84
82
  static_cast<int>(PyType_Type.tp_basicsize),
85
83
  static_cast<int>(PyType_Type.tp_itemsize),
86
84
  Py_TPFLAGS_DEFAULT,
87
- type_slots_InteractiveSession_Static
88
- };
85
+ type_slots_InteractiveSession_Static};
89
86
 
90
87
  // ----- Windows.System.RemoteDesktop Initialization --------------------
91
88
 
@@ -119,6 +116,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_remotedesktop(void) noexcept
119
116
  return nullptr;
120
117
  }
121
118
 
119
+ auto inspectable_meta_type = py::get_inspectable_meta_type();
120
+ if (!inspectable_meta_type)
121
+ {
122
+ return nullptr;
123
+ }
124
+
122
125
  auto object_type = py::get_object_type();
123
126
  if (!object_type)
124
127
  {
@@ -132,7 +135,13 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_remotedesktop(void) noexcept
132
135
  return nullptr;
133
136
  }
134
137
 
135
- py::pyobj_handle type_InteractiveSession_Static{PyType_FromSpec(&type_spec_InteractiveSession_Static)};
138
+ py::pyobj_handle InteractiveSession_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
139
+ if (!InteractiveSession_Static_bases)
140
+ {
141
+ return nullptr;
142
+ }
143
+
144
+ py::pyobj_handle type_InteractiveSession_Static{PyType_FromSpecWithBases(&type_spec_InteractiveSession_Static, InteractiveSession_Static_bases.get())};
136
145
  if (!type_InteractiveSession_Static)
137
146
  {
138
147
  return nullptr;
@@ -1,14 +1,14 @@
1
1
  # WARNING: Please don't edit this file. It was automatically generated.
2
2
 
3
3
  [build-system]
4
- requires = ["setuptools", "winrt-sdk"]
4
+ requires = ["setuptools>=78", "winrt-sdk"]
5
5
  build-backend = "setuptools.build_meta"
6
6
 
7
7
  [project]
8
8
  name = "winrt-Windows.System.RemoteDesktop"
9
9
  description = "Python projection of Windows Runtime (WinRT) APIs"
10
10
  readme = "README.md"
11
- license = { text = "MIT" }
11
+ license = "MIT"
12
12
  classifiers = [
13
13
  "Operating System :: Microsoft :: Windows",
14
14
  "Programming Language :: Python :: 3",
@@ -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.1.0
2
2
 
3
- winrt-runtime==2.3.0
3
+ winrt-runtime==3.1.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_remotedesktop",
@@ -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.1.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 InteractiveSession_Static(type):
16
+ class InteractiveSession_Static(winrt._winrt.IInspectable_Static):
17
+ # System.Boolean Windows.System.RemoteDesktop.InteractiveSession::get_IsRemote()
17
18
  @_property
18
19
  def is_remote(cls) -> bool: ...
19
20
 
@@ -0,0 +1,11 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.1.0
2
+
3
+ import winrt.system
4
+ from winrt._winrt_windows_system_remotedesktop import (
5
+ InteractiveSession,
6
+ )
7
+
8
+ __all__ = [
9
+ "InteractiveSession",
10
+ ]
11
+
@@ -1,8 +1,8 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: winrt-Windows.System.RemoteDesktop
3
- Version: 2.3.0
3
+ Version: 3.1.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
- License: MIT
5
+ License-Expression: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
7
7
  Project-URL: Repository, https://github.com/pywinrt/pywinrt
8
8
  Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
@@ -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.1.0
16
16
 
17
17
  <!-- warning: Please don't edit this file. It was automatically generated. -->
18
18
 
@@ -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_remotedesktop
5
-
6
- __all__ = [
7
- "InteractiveSession",
8
- ]
9
-
10
- InteractiveSession = _winrt_windows_system_remotedesktop.InteractiveSession