winrt-Windows.System.Update 3.2.1__tar.gz → 4!10.0.28000.2705__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 (24) hide show
  1. winrt_windows_system_update-4!10.0.28000.2705/.gitignore +5 -0
  2. winrt_windows_system_update-4!10.0.28000.2705/LICENSE +22 -0
  3. winrt_windows_system_update-4!10.0.28000.2705/PKG-INFO +46 -0
  4. winrt_windows_system_update-4!10.0.28000.2705/README.md +17 -0
  5. winrt_windows_system_update-4!10.0.28000.2705/pyproject.toml +58 -0
  6. winrt_windows_system_update-4!10.0.28000.2705/winrt/windows/system/update/__init__.py +17 -0
  7. winrt_windows_system_update-3.2.1/winrt/_winrt_windows_system_update.pyi → winrt_windows_system_update-4!10.0.28000.2705/winrt/windows/system/update/__init__.pyi +57 -12
  8. winrt_windows_system_update-4!10.0.28000.2705/winrt/windows/system/update/_table.pywinrt.txt +393 -0
  9. winrt_windows_system_update-3.2.1/PKG-INFO +0 -26
  10. winrt_windows_system_update-3.2.1/README.md +0 -7
  11. winrt_windows_system_update-3.2.1/all-requirements.txt +0 -4
  12. winrt_windows_system_update-3.2.1/py.Windows.System.Update.cpp +0 -1479
  13. winrt_windows_system_update-3.2.1/pyproject.toml +0 -47
  14. winrt_windows_system_update-3.2.1/pywinrt-version.txt +0 -1
  15. winrt_windows_system_update-3.2.1/requirements.txt +0 -3
  16. winrt_windows_system_update-3.2.1/setup.cfg +0 -4
  17. winrt_windows_system_update-3.2.1/setup.py +0 -33
  18. winrt_windows_system_update-3.2.1/winrt/windows/system/update/__init__.py +0 -57
  19. winrt_windows_system_update-3.2.1/winrt_Windows.System.Update.egg-info/PKG-INFO +0 -26
  20. winrt_windows_system_update-3.2.1/winrt_Windows.System.Update.egg-info/SOURCES.txt +0 -15
  21. winrt_windows_system_update-3.2.1/winrt_Windows.System.Update.egg-info/dependency_links.txt +0 -1
  22. winrt_windows_system_update-3.2.1/winrt_Windows.System.Update.egg-info/requires.txt +0 -5
  23. winrt_windows_system_update-3.2.1/winrt_Windows.System.Update.egg-info/top_level.txt +0 -1
  24. {winrt_windows_system_update-3.2.1 → winrt_windows_system_update-4!10.0.28000.2705}/winrt/windows/system/update/py.typed +0 -0
@@ -0,0 +1,5 @@
1
+ *.egg-info
2
+ *.tar.gz
3
+ *.whl
4
+ build/
5
+ dist/
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) Microsoft Corporation. All rights reserved.
4
+ Copyright (c) 2021-2026 David Lechner <david@pybricks.com>
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE
@@ -0,0 +1,46 @@
1
+ Metadata-Version: 2.5
2
+ Name: winrt-Windows.System.Update
3
+ Version: 4!10.0.28000.2705
4
+ Summary: PyWinRT projection of the Windows.System.Update namespace
5
+ Project-URL: Documentation, https://pywinrt.readthedocs.io
6
+ Project-URL: Repository, https://github.com/pywinrt/pywinrt
7
+ Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/projection/winrt/CHANGELOG.md
8
+ License-Expression: MIT
9
+ License-File: LICENSE
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: Operating System :: Microsoft :: Windows
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3.11
14
+ Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Programming Language :: Python :: 3.13
16
+ Classifier: Programming Language :: Python :: 3.14
17
+ Classifier: Programming Language :: Python :: 3.15
18
+ Classifier: Programming Language :: Python :: Free Threading :: 2 - Beta
19
+ Classifier: Programming Language :: Python :: Implementation :: CPython
20
+ Classifier: Typing :: Typed
21
+ Requires-Python: >=3.11
22
+ Requires-Dist: winrt-runtime<5,>=4.0.0
23
+ Requires-Dist: winrt-windows-foundation-collections>=4!10.0.28000.2705
24
+ Requires-Dist: winrt-windows-foundation>=4!10.0.28000.2705
25
+ Provides-Extra: all
26
+ Requires-Dist: winrt-windows-foundation-collections[all]>=4!10.0.28000.2705; extra == 'all'
27
+ Requires-Dist: winrt-windows-foundation[all]>=4!10.0.28000.2705; extra == 'all'
28
+ Description-Content-Type: text/markdown
29
+
30
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
31
+
32
+ # winrt-Windows.System.Update
33
+
34
+ Windows Runtime (WinRT) APIs for the `Windows.System.Update` namespace.
35
+
36
+ This package provides the `winrt.windows.system.update` module.
37
+
38
+ The WinRT APIs in it are those of version 10.0.28000.2705 of the
39
+ `Microsoft.Windows.SDK.CPP` NuGet package.
40
+
41
+ ```
42
+ pip install winrt-Windows.System.Update
43
+ ```
44
+
45
+ Other WinRT namespaces are packages of their own, so install the package of
46
+ each namespace your code imports from.
@@ -0,0 +1,17 @@
1
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
2
+
3
+ # winrt-Windows.System.Update
4
+
5
+ Windows Runtime (WinRT) APIs for the `Windows.System.Update` namespace.
6
+
7
+ This package provides the `winrt.windows.system.update` module.
8
+
9
+ The WinRT APIs in it are those of version 10.0.28000.2705 of the
10
+ `Microsoft.Windows.SDK.CPP` NuGet package.
11
+
12
+ ```
13
+ pip install winrt-Windows.System.Update
14
+ ```
15
+
16
+ Other WinRT namespaces are packages of their own, so install the package of
17
+ each namespace your code imports from.
@@ -0,0 +1,58 @@
1
+ # WARNING: Please don't edit this file. It was automatically generated.
2
+
3
+ [build-system]
4
+ requires = ["hatchling", "winrt-table-compiler>=4.0.0,<5"]
5
+ build-backend = "hatchling.build"
6
+
7
+ [project]
8
+ name = "winrt-Windows.System.Update"
9
+ version = "4!10.0.28000.2705"
10
+ description = "PyWinRT projection of the Windows.System.Update namespace"
11
+ readme = "README.md"
12
+ license = "MIT"
13
+ license-files = ["LICENSE"]
14
+ classifiers = [
15
+ "Operating System :: Microsoft :: Windows",
16
+ "Programming Language :: Python :: 3",
17
+ "Programming Language :: Python :: 3.11",
18
+ "Programming Language :: Python :: 3.12",
19
+ "Programming Language :: Python :: 3.13",
20
+ "Programming Language :: Python :: 3.14",
21
+ "Programming Language :: Python :: 3.15",
22
+ "Programming Language :: Python :: Implementation :: CPython",
23
+ "Intended Audience :: Developers",
24
+ "Programming Language :: Python :: Free Threading :: 2 - Beta",
25
+ "Typing :: Typed",
26
+ ]
27
+ requires-python = ">=3.11"
28
+ dependencies = [
29
+ "winrt-runtime>=4.0.0,<5",
30
+ "winrt-Windows.Foundation>=4!10.0.28000.2705",
31
+ "winrt-Windows.Foundation.Collections>=4!10.0.28000.2705",
32
+ ]
33
+
34
+ [project.optional-dependencies]
35
+ all = [
36
+ "winrt-Windows.Foundation[all]>=4!10.0.28000.2705",
37
+ "winrt-Windows.Foundation.Collections[all]>=4!10.0.28000.2705",
38
+ ]
39
+
40
+ [project.urls]
41
+ Documentation = "https://pywinrt.readthedocs.io"
42
+ Repository = "https://github.com/pywinrt/pywinrt"
43
+ Changelog = "https://github.com/pywinrt/pywinrt/blob/main/projection/winrt/CHANGELOG.md"
44
+
45
+ [tool.hatch.build.targets.sdist]
46
+ # The text form of the table is what the source distribution carries, and the
47
+ # compiled form is build output wherever it turns up. Hatchling reads no
48
+ # .gitignore above the package, so it has to be told about the latter.
49
+ only-include = ["winrt", "LICENSE", "README.md"]
50
+ exclude = ["**/_table.pywinrt"]
51
+
52
+ [tool.hatch.build.targets.wheel]
53
+ packages = ["winrt"]
54
+ exclude = ["**/_table.pywinrt.txt"]
55
+
56
+ # winrt.table.build_hooks in winrt-table-compiler, which compiles each table
57
+ # the package carries and puts the result beside the __init__.py that loads it.
58
+ [tool.hatch.build.targets.wheel.hooks.winrt-table-compiler]
@@ -0,0 +1,17 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT
2
+
3
+ import winrt.runtime._internals
4
+ import winrt.system
5
+
6
+ winrt.runtime._internals.load_projection(__spec__)
7
+
8
+ __all__ = [
9
+ "SystemUpdateAttentionRequiredReason",
10
+ "SystemUpdateItemState",
11
+ "SystemUpdateManagerState",
12
+ "SystemUpdateStartInstallAction",
13
+ "SystemUpdateItem",
14
+ "SystemUpdateLastErrorInfo",
15
+ "SystemUpdateManager",
16
+ ]
17
+
@@ -1,23 +1,65 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.1
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT
2
2
 
3
+ import collections.abc as _cabc
3
4
  import datetime
4
- import sys
5
- import types
5
+ import enum
6
6
  import typing
7
- import uuid as _uuid
8
7
  from builtins import property as _property
9
8
 
10
- import winrt._winrt
11
9
  import winrt.system
12
10
  import winrt.windows.foundation as windows_foundation
13
11
  import winrt.windows.foundation.collections as windows_foundation_collections
14
12
 
15
- from winrt.windows.system.update import SystemUpdateAttentionRequiredReason, SystemUpdateItemState, SystemUpdateManagerState, SystemUpdateStartInstallAction
13
+ __all__ = [
14
+ "SystemUpdateAttentionRequiredReason",
15
+ "SystemUpdateItemState",
16
+ "SystemUpdateManagerState",
17
+ "SystemUpdateStartInstallAction",
18
+ "SystemUpdateItem",
19
+ "SystemUpdateLastErrorInfo",
20
+ "SystemUpdateManager",
21
+ ]
16
22
 
17
- Self = typing.TypeVar('Self')
23
+ class SystemUpdateAttentionRequiredReason(enum.IntEnum):
24
+ NONE = 0
25
+ NETWORK_REQUIRED = 1
26
+ INSUFFICIENT_DISK_SPACE = 2
27
+ INSUFFICIENT_BATTERY = 3
28
+ UPDATE_BLOCKED = 4
29
+
30
+ class SystemUpdateItemState(enum.IntEnum):
31
+ NOT_STARTED = 0
32
+ INITIALIZING = 1
33
+ PREPARING = 2
34
+ CALCULATING = 3
35
+ DOWNLOADING = 4
36
+ INSTALLING = 5
37
+ COMPLETED = 6
38
+ REBOOT_REQUIRED = 7
39
+ ERROR = 8
40
+
41
+ class SystemUpdateManagerState(enum.IntEnum):
42
+ IDLE = 0
43
+ DETECTING = 1
44
+ READY_TO_DOWNLOAD = 2
45
+ DOWNLOADING = 3
46
+ READY_TO_INSTALL = 4
47
+ INSTALLING = 5
48
+ REBOOT_REQUIRED = 6
49
+ READY_TO_FINALIZE = 7
50
+ FINALIZING = 8
51
+ COMPLETED = 9
52
+ ATTENTION_REQUIRED = 10
53
+ ERROR = 11
54
+
55
+ class SystemUpdateStartInstallAction(enum.IntEnum):
56
+ UP_TO_REBOOT = 0
57
+ ALLOW_REBOOT = 1
18
58
 
19
59
  @typing.final
20
60
  class SystemUpdateItem(winrt.system.Object):
61
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
62
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
21
63
  # System.String Windows.System.Update.SystemUpdateItem::get_Description()
22
64
  @_property
23
65
  def description(self) -> str: ...
@@ -45,6 +87,8 @@ class SystemUpdateItem(winrt.system.Object):
45
87
 
46
88
  @typing.final
47
89
  class SystemUpdateLastErrorInfo(winrt.system.Object):
90
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
91
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
48
92
  # Windows.Foundation.HResult Windows.System.Update.SystemUpdateLastErrorInfo::get_ExtendedError()
49
93
  @_property
50
94
  def extended_error(self) -> windows_foundation.HResult: ...
@@ -56,15 +100,15 @@ class SystemUpdateLastErrorInfo(winrt.system.Object):
56
100
  def state(self) -> SystemUpdateManagerState: ...
57
101
 
58
102
  @typing.final
59
- class SystemUpdateManager_Static(winrt._winrt.IInspectable_Static):
103
+ class SystemUpdateManager_Static(winrt.system.Object_Static):
60
104
  # Windows.Foundation.IAsyncOperation`1<System.Boolean> Windows.System.Update.SystemUpdateManager::BlockAutomaticRebootAsync(System.String)
61
105
  def block_automatic_reboot_async(cls, lock_id: str, /) -> windows_foundation.IAsyncOperation[bool]: ...
62
106
  # Windows.Foundation.Collections.IVectorView`1<System.String> Windows.System.Update.SystemUpdateManager::GetAutomaticRebootBlockIds()
63
- def get_automatic_reboot_block_ids(cls) -> typing.Sequence[str]: ...
107
+ def get_automatic_reboot_block_ids(cls) -> _cabc.Sequence[str]: ...
64
108
  # System.String Windows.System.Update.SystemUpdateManager::GetFlightRing()
65
109
  def get_flight_ring(cls) -> str: ...
66
110
  # Windows.Foundation.Collections.IVectorView`1<Windows.System.Update.SystemUpdateItem> Windows.System.Update.SystemUpdateManager::GetUpdateItems()
67
- def get_update_items(cls) -> typing.Sequence[SystemUpdateItem]: ...
111
+ def get_update_items(cls) -> _cabc.Sequence[SystemUpdateItem]: ...
68
112
  # System.Boolean Windows.System.Update.SystemUpdateManager::IsSupported()
69
113
  def is_supported(cls) -> bool: ...
70
114
  # System.Void Windows.System.Update.SystemUpdateManager::RebootToCompleteInstall()
@@ -82,7 +126,7 @@ class SystemUpdateManager_Static(winrt._winrt.IInspectable_Static):
82
126
  # Windows.Foundation.EventRegistrationToken Windows.System.Update.SystemUpdateManager::add_StateChanged(Windows.Foundation.EventHandler`1<System.Object>)
83
127
  def add_state_changed(cls, handler: windows_foundation.EventHandler[winrt.system.Object], /) -> windows_foundation.EventRegistrationToken: ...
84
128
  # System.Void Windows.System.Update.SystemUpdateManager::remove_StateChanged(Windows.Foundation.EventRegistrationToken)
85
- def remove_state_changed(cls, token: typing.Union[windows_foundation.EventRegistrationToken, typing.Tuple[winrt.system.Int64]], /) -> None: ...
129
+ def remove_state_changed(cls, token: windows_foundation.EventRegistrationToken, /) -> None: ...
86
130
  # Windows.System.Update.SystemUpdateAttentionRequiredReason Windows.System.Update.SystemUpdateManager::get_AttentionRequiredReason()
87
131
  @_property
88
132
  def attention_required_reason(cls) -> SystemUpdateAttentionRequiredReason: ...
@@ -119,5 +163,6 @@ class SystemUpdateManager_Static(winrt._winrt.IInspectable_Static):
119
163
 
120
164
  @typing.final
121
165
  class SystemUpdateManager(winrt.system.Object, metaclass=SystemUpdateManager_Static):
122
- pass
166
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
167
+ """A class of static members only, so there is nothing to create."""
123
168