winrt-Windows.System.RemoteDesktop 2.0.0b2__tar.gz → 2.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.0.0b2 → winrt_windows_system_remotedesktop-2.1.0}/PKG-INFO +2 -1
  2. {winrt-Windows.System.RemoteDesktop-2.0.0b2 → winrt_windows_system_remotedesktop-2.1.0}/py.Windows.System.RemoteDesktop.cpp +22 -27
  3. {winrt-Windows.System.RemoteDesktop-2.0.0b2 → winrt_windows_system_remotedesktop-2.1.0}/pyproject.toml +2 -2
  4. winrt_windows_system_remotedesktop-2.1.0/pywinrt-version.txt +1 -0
  5. {winrt-Windows.System.RemoteDesktop-2.0.0b2 → winrt_windows_system_remotedesktop-2.1.0}/requirements.txt +2 -2
  6. winrt_windows_system_remotedesktop-2.1.0/setup.py +31 -0
  7. {winrt-Windows.System.RemoteDesktop-2.0.0b2 → winrt_windows_system_remotedesktop-2.1.0}/winrt/_winrt_windows_system_remotedesktop.pyi +2 -3
  8. {winrt-Windows.System.RemoteDesktop-2.0.0b2 → winrt_windows_system_remotedesktop-2.1.0}/winrt/windows/system/remotedesktop/__init__.py +1 -1
  9. winrt_windows_system_remotedesktop-2.1.0/winrt/windows/system/remotedesktop/py.typed +0 -0
  10. {winrt-Windows.System.RemoteDesktop-2.0.0b2 → winrt_windows_system_remotedesktop-2.1.0}/winrt_Windows.System.RemoteDesktop.egg-info/PKG-INFO +2 -1
  11. {winrt-Windows.System.RemoteDesktop-2.0.0b2 → winrt_windows_system_remotedesktop-2.1.0}/winrt_Windows.System.RemoteDesktop.egg-info/SOURCES.txt +1 -0
  12. winrt_windows_system_remotedesktop-2.1.0/winrt_Windows.System.RemoteDesktop.egg-info/requires.txt +1 -0
  13. winrt-Windows.System.RemoteDesktop-2.0.0b2/pywinrt-version.txt +0 -1
  14. winrt-Windows.System.RemoteDesktop-2.0.0b2/setup.py +0 -16
  15. winrt-Windows.System.RemoteDesktop-2.0.0b2/winrt_Windows.System.RemoteDesktop.egg-info/requires.txt +0 -1
  16. {winrt-Windows.System.RemoteDesktop-2.0.0b2 → winrt_windows_system_remotedesktop-2.1.0}/README.md +0 -0
  17. {winrt-Windows.System.RemoteDesktop-2.0.0b2 → winrt_windows_system_remotedesktop-2.1.0}/setup.cfg +0 -0
  18. {winrt-Windows.System.RemoteDesktop-2.0.0b2 → winrt_windows_system_remotedesktop-2.1.0}/winrt_Windows.System.RemoteDesktop.egg-info/dependency_links.txt +0 -0
  19. {winrt-Windows.System.RemoteDesktop-2.0.0b2 → winrt_windows_system_remotedesktop-2.1.0}/winrt_Windows.System.RemoteDesktop.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.System.RemoteDesktop
3
- Version: 2.0.0b2
3
+ Version: 2.1.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -12,6 +12,7 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
13
  Requires-Python: <3.13,>=3.9
14
14
  Description-Content-Type: text/markdown
15
+ Requires-Dist: winrt-runtime==2.1.0
15
16
 
16
17
  <!-- warning: Please don't edit this file. It was automatically generated. -->
17
18
 
@@ -1,8 +1,7 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
2
 
3
3
  #include "py.Windows.System.RemoteDesktop.h"
4
4
 
5
-
6
5
  namespace py::cpp::Windows::System::RemoteDesktop
7
6
  {
8
7
  // ----- InteractiveSession class --------------------
@@ -16,14 +15,14 @@ namespace py::cpp::Windows::System::RemoteDesktop
16
15
 
17
16
  static PyObject* InteractiveSession_get_IsRemote(PyObject* /*unused*/, void* /*unused*/) noexcept
18
17
  {
19
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.RemoteDesktop.InteractiveSession", L"IsRemote"))
20
- {
21
- PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
22
- return nullptr;
23
- }
24
-
25
18
  try
26
19
  {
20
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.RemoteDesktop.InteractiveSession", L"IsRemote"))
21
+ {
22
+ PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
23
+ return nullptr;
24
+ }
25
+
27
26
  return py::convert(winrt::Windows::System::RemoteDesktop::InteractiveSession::IsRemote());
28
27
  }
29
28
  catch (...)
@@ -41,22 +40,19 @@ namespace py::cpp::Windows::System::RemoteDesktop
41
40
  { }
42
41
  };
43
42
 
44
- static PyType_Slot _type_slots_InteractiveSession[] =
45
- {
43
+ static PyType_Slot _type_slots_InteractiveSession[] = {
46
44
  { Py_tp_new, reinterpret_cast<void*>(_new_InteractiveSession) },
47
45
  { Py_tp_methods, reinterpret_cast<void*>(_methods_InteractiveSession) },
48
46
  { Py_tp_getset, reinterpret_cast<void*>(_getset_InteractiveSession) },
49
- { },
47
+ { }
50
48
  };
51
49
 
52
- static PyType_Spec type_spec_InteractiveSession =
53
- {
50
+ static PyType_Spec type_spec_InteractiveSession = {
54
51
  "winrt._winrt_windows_system_remotedesktop.InteractiveSession",
55
52
  0,
56
53
  0,
57
54
  Py_TPFLAGS_DEFAULT,
58
- _type_slots_InteractiveSession
59
- };
55
+ _type_slots_InteractiveSession};
60
56
 
61
57
  static PyGetSetDef getset_InteractiveSession_Static[] = {
62
58
  { "is_remote", reinterpret_cast<getter>(InteractiveSession_get_IsRemote), nullptr, nullptr, nullptr },
@@ -85,20 +81,19 @@ namespace py::cpp::Windows::System::RemoteDesktop
85
81
  };
86
82
 
87
83
  // ----- Windows.System.RemoteDesktop Initialization --------------------
88
- PyDoc_STRVAR(module_doc, "Windows::System::RemoteDesktop");
89
-
90
84
 
91
- static PyModuleDef module_def
92
- = {PyModuleDef_HEAD_INIT,
93
- "_winrt_windows_system_remotedesktop",
94
- module_doc,
95
- 0,
96
- nullptr,
97
- nullptr,
98
- nullptr,
99
- nullptr,
100
- nullptr};
85
+ PyDoc_STRVAR(module_doc, "Windows.System.RemoteDesktop");
101
86
 
87
+ static PyModuleDef module_def = {
88
+ PyModuleDef_HEAD_INIT,
89
+ "_winrt_windows_system_remotedesktop",
90
+ module_doc,
91
+ 0,
92
+ nullptr,
93
+ nullptr,
94
+ nullptr,
95
+ nullptr,
96
+ nullptr};
102
97
  } // py::cpp::Windows::System::RemoteDesktop
103
98
 
104
99
  PyMODINIT_FUNC PyInit__winrt_windows_system_remotedesktop(void) noexcept
@@ -1,7 +1,7 @@
1
1
  # WARNING: Please don't edit this file. It was automatically generated.
2
2
 
3
3
  [build-system]
4
- requires = ["setuptools", "setuptools-scm", "winrt-sdk"]
4
+ requires = ["setuptools", "winrt-sdk"]
5
5
  build-backend = "setuptools.build_meta"
6
6
 
7
7
  [project]
@@ -29,7 +29,7 @@ version = { file = "pywinrt-version.txt" }
29
29
  dependencies = { file = "requirements.txt" }
30
30
 
31
31
  [tool.setuptools.package-data]
32
- winrt = ["*.pyi"]
32
+ "*" = ["*.pyi", "py.typed"]
33
33
 
34
34
  [tool.cibuildwheel]
35
35
  # use local winrt-sdk build dependency
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
2
 
3
- winrt-runtime==2.0.0-beta.2
3
+ winrt-runtime==2.1.0
@@ -0,0 +1,31 @@
1
+ # WARNING: Please don't edit this file. It was automatically generated.
2
+
3
+ from setuptools import Extension, setup
4
+ from setuptools.command.build_ext import build_ext
5
+ from winrt_sdk import get_include_dirs
6
+
7
+
8
+ class build_ext_ex(build_ext):
9
+ def build_extension(self, ext):
10
+ if self.compiler.compiler_type == "msvc":
11
+ ext.extra_compile_args = ["/std:c++20", "/permissive-"]
12
+ elif self.compiler.compiler_type == "mingw32":
13
+ ext.extra_compile_args = ["-std=c++20", "-D_WIN32_WINNT=_WIN32_WINNT_WIN10"]
14
+ ext.extra_link_args = ["-loleaut32"]
15
+ else:
16
+ raise ValueError(f"Unsupported compiler: {self.compiler.compiler_type}")
17
+
18
+ build_ext.build_extension(self, ext)
19
+
20
+
21
+ setup(
22
+ cmdclass = {'build_ext': build_ext_ex},
23
+ ext_modules=[
24
+ Extension(
25
+ "winrt._winrt_windows_system_remotedesktop",
26
+ sources=["py.Windows.System.RemoteDesktop.cpp"],
27
+ include_dirs=get_include_dirs(),
28
+ libraries=["windowsapp"],
29
+ )
30
+ ],
31
+ )
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
2
 
3
3
  import datetime
4
4
  import sys
@@ -19,6 +19,5 @@ class InteractiveSession_Static(type):
19
19
 
20
20
  @typing.final
21
21
  class InteractiveSession(winrt.system.Object, metaclass=InteractiveSession_Static):
22
- @staticmethod
23
- def _from(obj: winrt.system.Object, /) -> InteractiveSession: ...
22
+ pass
24
23
 
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
2
2
 
3
3
  import winrt.system
4
4
  from winrt import _winrt_windows_system_remotedesktop
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.System.RemoteDesktop
3
- Version: 2.0.0b2
3
+ Version: 2.1.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -12,6 +12,7 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
13
  Requires-Python: <3.13,>=3.9
14
14
  Description-Content-Type: text/markdown
15
+ Requires-Dist: winrt-runtime==2.1.0
15
16
 
16
17
  <!-- warning: Please don't edit this file. It was automatically generated. -->
17
18
 
@@ -6,6 +6,7 @@ requirements.txt
6
6
  setup.py
7
7
  winrt/_winrt_windows_system_remotedesktop.pyi
8
8
  winrt/windows/system/remotedesktop/__init__.py
9
+ winrt/windows/system/remotedesktop/py.typed
9
10
  winrt_Windows.System.RemoteDesktop.egg-info/PKG-INFO
10
11
  winrt_Windows.System.RemoteDesktop.egg-info/SOURCES.txt
11
12
  winrt_Windows.System.RemoteDesktop.egg-info/dependency_links.txt
@@ -1 +0,0 @@
1
- 2.0.0-beta.2
@@ -1,16 +0,0 @@
1
- # WARNING: Please don't edit this file. It was automatically generated.
2
-
3
- from setuptools import Extension, setup
4
- from winrt_sdk import get_include_dirs
5
-
6
- setup(
7
- ext_modules=[
8
- Extension(
9
- "winrt._winrt_windows_system_remotedesktop",
10
- sources=["py.Windows.System.RemoteDesktop.cpp"],
11
- include_dirs=get_include_dirs(),
12
- extra_compile_args=["/std:c++20", "/permissive-"],
13
- libraries=["windowsapp"],
14
- )
15
- ],
16
- )