winrt-Windows.System.Profile.SystemManufacturers 3.2.0__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.
- winrt_windows_system_profile_systemmanufacturers-4!10.0.28000.2705/.gitignore +5 -0
- winrt_windows_system_profile_systemmanufacturers-4!10.0.28000.2705/LICENSE +22 -0
- winrt_windows_system_profile_systemmanufacturers-4!10.0.28000.2705/PKG-INFO +44 -0
- winrt_windows_system_profile_systemmanufacturers-4!10.0.28000.2705/README.md +17 -0
- winrt_windows_system_profile_systemmanufacturers-4!10.0.28000.2705/pyproject.toml +56 -0
- {winrt_windows_system_profile_systemmanufacturers-3.2.0 → winrt_windows_system_profile_systemmanufacturers-4!10.0.28000.2705}/winrt/windows/system/profile/systemmanufacturers/__init__.py +4 -7
- winrt_windows_system_profile_systemmanufacturers-3.2.0/winrt/_winrt_windows_system_profile_systemmanufacturers.pyi → winrt_windows_system_profile_systemmanufacturers-4!10.0.28000.2705/winrt/windows/system/profile/systemmanufacturers/__init__.pyi +17 -11
- winrt_windows_system_profile_systemmanufacturers-4!10.0.28000.2705/winrt/windows/system/profile/systemmanufacturers/_table.pywinrt.txt +84 -0
- winrt_windows_system_profile_systemmanufacturers-3.2.0/PKG-INFO +0 -25
- winrt_windows_system_profile_systemmanufacturers-3.2.0/README.md +0 -7
- winrt_windows_system_profile_systemmanufacturers-3.2.0/all-requirements.txt +0 -3
- winrt_windows_system_profile_systemmanufacturers-3.2.0/py.Windows.System.Profile.SystemManufacturers.cpp +0 -766
- winrt_windows_system_profile_systemmanufacturers-3.2.0/pyproject.toml +0 -47
- winrt_windows_system_profile_systemmanufacturers-3.2.0/pywinrt-version.txt +0 -1
- winrt_windows_system_profile_systemmanufacturers-3.2.0/requirements.txt +0 -3
- winrt_windows_system_profile_systemmanufacturers-3.2.0/setup.cfg +0 -4
- winrt_windows_system_profile_systemmanufacturers-3.2.0/setup.py +0 -33
- winrt_windows_system_profile_systemmanufacturers-3.2.0/winrt_Windows.System.Profile.SystemManufacturers.egg-info/PKG-INFO +0 -25
- winrt_windows_system_profile_systemmanufacturers-3.2.0/winrt_Windows.System.Profile.SystemManufacturers.egg-info/SOURCES.txt +0 -15
- winrt_windows_system_profile_systemmanufacturers-3.2.0/winrt_Windows.System.Profile.SystemManufacturers.egg-info/dependency_links.txt +0 -1
- winrt_windows_system_profile_systemmanufacturers-3.2.0/winrt_Windows.System.Profile.SystemManufacturers.egg-info/requires.txt +0 -4
- winrt_windows_system_profile_systemmanufacturers-3.2.0/winrt_Windows.System.Profile.SystemManufacturers.egg-info/top_level.txt +0 -1
- {winrt_windows_system_profile_systemmanufacturers-3.2.0 → winrt_windows_system_profile_systemmanufacturers-4!10.0.28000.2705}/winrt/windows/system/profile/systemmanufacturers/py.typed +0 -0
|
@@ -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,44 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: winrt-Windows.System.Profile.SystemManufacturers
|
|
3
|
+
Version: 4!10.0.28000.2705
|
|
4
|
+
Summary: PyWinRT projection of the Windows.System.Profile.SystemManufacturers 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>=4!10.0.28000.2705
|
|
24
|
+
Provides-Extra: all
|
|
25
|
+
Requires-Dist: winrt-windows-foundation[all]>=4!10.0.28000.2705; extra == 'all'
|
|
26
|
+
Description-Content-Type: text/markdown
|
|
27
|
+
|
|
28
|
+
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
29
|
+
|
|
30
|
+
# winrt-Windows.System.Profile.SystemManufacturers
|
|
31
|
+
|
|
32
|
+
Windows Runtime (WinRT) APIs for the `Windows.System.Profile.SystemManufacturers` namespace.
|
|
33
|
+
|
|
34
|
+
This package provides the `winrt.windows.system.profile.systemmanufacturers` module.
|
|
35
|
+
|
|
36
|
+
The WinRT APIs in it are those of version 10.0.28000.2705 of the
|
|
37
|
+
`Microsoft.Windows.SDK.CPP` NuGet package.
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
pip install winrt-Windows.System.Profile.SystemManufacturers
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Other WinRT namespaces are packages of their own, so install the package of
|
|
44
|
+
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.Profile.SystemManufacturers
|
|
4
|
+
|
|
5
|
+
Windows Runtime (WinRT) APIs for the `Windows.System.Profile.SystemManufacturers` namespace.
|
|
6
|
+
|
|
7
|
+
This package provides the `winrt.windows.system.profile.systemmanufacturers` 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.Profile.SystemManufacturers
|
|
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,56 @@
|
|
|
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.Profile.SystemManufacturers"
|
|
9
|
+
version = "4!10.0.28000.2705"
|
|
10
|
+
description = "PyWinRT projection of the Windows.System.Profile.SystemManufacturers 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
|
+
]
|
|
32
|
+
|
|
33
|
+
[project.optional-dependencies]
|
|
34
|
+
all = [
|
|
35
|
+
"winrt-Windows.Foundation[all]>=4!10.0.28000.2705",
|
|
36
|
+
]
|
|
37
|
+
|
|
38
|
+
[project.urls]
|
|
39
|
+
Documentation = "https://pywinrt.readthedocs.io"
|
|
40
|
+
Repository = "https://github.com/pywinrt/pywinrt"
|
|
41
|
+
Changelog = "https://github.com/pywinrt/pywinrt/blob/main/projection/winrt/CHANGELOG.md"
|
|
42
|
+
|
|
43
|
+
[tool.hatch.build.targets.sdist]
|
|
44
|
+
# The text form of the table is what the source distribution carries, and the
|
|
45
|
+
# compiled form is build output wherever it turns up. Hatchling reads no
|
|
46
|
+
# .gitignore above the package, so it has to be told about the latter.
|
|
47
|
+
only-include = ["winrt", "LICENSE", "README.md"]
|
|
48
|
+
exclude = ["**/_table.pywinrt"]
|
|
49
|
+
|
|
50
|
+
[tool.hatch.build.targets.wheel]
|
|
51
|
+
packages = ["winrt"]
|
|
52
|
+
exclude = ["**/_table.pywinrt.txt"]
|
|
53
|
+
|
|
54
|
+
# winrt.table.build_hooks in winrt-table-compiler, which compiles each table
|
|
55
|
+
# the package carries and puts the result beside the __init__.py that loads it.
|
|
56
|
+
[tool.hatch.build.targets.wheel.hooks.winrt-table-compiler]
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
2
2
|
|
|
3
|
+
import winrt.runtime._internals
|
|
3
4
|
import winrt.system
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
SmbiosInformation,
|
|
7
|
-
SystemSupportDeviceInfo,
|
|
8
|
-
SystemSupportInfo,
|
|
9
|
-
)
|
|
5
|
+
|
|
6
|
+
winrt.runtime._internals.load_projection(__spec__)
|
|
10
7
|
|
|
11
8
|
__all__ = [
|
|
12
9
|
"OemSupportInfo",
|
|
@@ -1,20 +1,22 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
2
2
|
|
|
3
|
-
import datetime
|
|
4
|
-
import sys
|
|
5
|
-
import types
|
|
6
3
|
import typing
|
|
7
|
-
import uuid as _uuid
|
|
8
4
|
from builtins import property as _property
|
|
9
5
|
|
|
10
|
-
import winrt._winrt
|
|
11
6
|
import winrt.system
|
|
12
7
|
import winrt.windows.foundation as windows_foundation
|
|
13
8
|
|
|
14
|
-
|
|
9
|
+
__all__ = [
|
|
10
|
+
"OemSupportInfo",
|
|
11
|
+
"SmbiosInformation",
|
|
12
|
+
"SystemSupportDeviceInfo",
|
|
13
|
+
"SystemSupportInfo",
|
|
14
|
+
]
|
|
15
15
|
|
|
16
16
|
@typing.final
|
|
17
17
|
class OemSupportInfo(winrt.system.Object):
|
|
18
|
+
def __new__(cls, _: typing.Never, /) -> typing.Self:
|
|
19
|
+
"""WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
|
|
18
20
|
# Windows.Foundation.Uri Windows.System.Profile.SystemManufacturers.OemSupportInfo::get_SupportAppLink()
|
|
19
21
|
@_property
|
|
20
22
|
def support_app_link(self) -> windows_foundation.Uri: ...
|
|
@@ -26,17 +28,20 @@ class OemSupportInfo(winrt.system.Object):
|
|
|
26
28
|
def support_provider(self) -> str: ...
|
|
27
29
|
|
|
28
30
|
@typing.final
|
|
29
|
-
class SmbiosInformation_Static(winrt.
|
|
31
|
+
class SmbiosInformation_Static(winrt.system.Object_Static):
|
|
30
32
|
# System.String Windows.System.Profile.SystemManufacturers.SmbiosInformation::get_SerialNumber()
|
|
31
33
|
@_property
|
|
32
34
|
def serial_number(cls) -> str: ...
|
|
33
35
|
|
|
34
36
|
@typing.final
|
|
35
37
|
class SmbiosInformation(winrt.system.Object, metaclass=SmbiosInformation_Static):
|
|
36
|
-
|
|
38
|
+
def __new__(cls, _: typing.Never, /) -> typing.Self:
|
|
39
|
+
"""A class of static members only, so there is nothing to create."""
|
|
37
40
|
|
|
38
41
|
@typing.final
|
|
39
42
|
class SystemSupportDeviceInfo(winrt.system.Object):
|
|
43
|
+
def __new__(cls, _: typing.Never, /) -> typing.Self:
|
|
44
|
+
"""WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
|
|
40
45
|
# System.String Windows.System.Profile.SystemManufacturers.SystemSupportDeviceInfo::get_FriendlyName()
|
|
41
46
|
@_property
|
|
42
47
|
def friendly_name(self) -> str: ...
|
|
@@ -60,7 +65,7 @@ class SystemSupportDeviceInfo(winrt.system.Object):
|
|
|
60
65
|
def system_sku(self) -> str: ...
|
|
61
66
|
|
|
62
67
|
@typing.final
|
|
63
|
-
class SystemSupportInfo_Static(winrt.
|
|
68
|
+
class SystemSupportInfo_Static(winrt.system.Object_Static):
|
|
64
69
|
# System.String Windows.System.Profile.SystemManufacturers.SystemSupportInfo::get_LocalSystemEdition()
|
|
65
70
|
@_property
|
|
66
71
|
def local_system_edition(cls) -> str: ...
|
|
@@ -73,5 +78,6 @@ class SystemSupportInfo_Static(winrt._winrt.IInspectable_Static):
|
|
|
73
78
|
|
|
74
79
|
@typing.final
|
|
75
80
|
class SystemSupportInfo(winrt.system.Object, metaclass=SystemSupportInfo_Static):
|
|
76
|
-
|
|
81
|
+
def __new__(cls, _: typing.Never, /) -> typing.Self:
|
|
82
|
+
"""A class of static members only, so there is nothing to create."""
|
|
77
83
|
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
format 4.0
|
|
2
|
+
census 2e30db26-66c8-4551-85b9-a537376d8f99 1
|
|
3
|
+
namespace Windows.System.Profile.SystemManufacturers
|
|
4
|
+
|
|
5
|
+
interface Windows.System.Profile.SystemManufacturers.IOemSupportInfo
|
|
6
|
+
guid 8d2eae55-87ef-4266-86d0-c4afbeb29bb9
|
|
7
|
+
|
|
8
|
+
interface Windows.System.Profile.SystemManufacturers.ISmbiosInformationStatics
|
|
9
|
+
guid 080cca7c-637c-48c4-b728-f9273812db8e
|
|
10
|
+
|
|
11
|
+
interface Windows.System.Profile.SystemManufacturers.ISystemSupportDeviceInfo
|
|
12
|
+
guid 05880b99-8247-441b-a996-a1784bab79a8
|
|
13
|
+
|
|
14
|
+
interface Windows.System.Profile.SystemManufacturers.ISystemSupportInfoStatics
|
|
15
|
+
guid ef750974-c422-45d7-a44d-5c1c0043a2b3
|
|
16
|
+
|
|
17
|
+
interface Windows.System.Profile.SystemManufacturers.ISystemSupportInfoStatics2
|
|
18
|
+
guid 33f349a4-3fa1-4986-aa4b-057420455e6d
|
|
19
|
+
|
|
20
|
+
class Windows.System.Profile.SystemManufacturers.OemSupportInfo python_type
|
|
21
|
+
py OemSupportInfo
|
|
22
|
+
signature rc(Windows.System.Profile.SystemManufacturers.OemSupportInfo;{8d2eae55-87ef-4266-86d0-c4afbeb29bb9})
|
|
23
|
+
default Windows.System.Profile.SystemManufacturers.IOemSupportInfo
|
|
24
|
+
requires Windows.System.Profile.SystemManufacturers.IOemSupportInfo
|
|
25
|
+
property support_app_link
|
|
26
|
+
get get_SupportAppLink slot=7 inputs=0 outputs=1 declaring=Windows.System.Profile.SystemManufacturers.IOemSupportInfo shape=4
|
|
27
|
+
out class type=Windows.Foundation.Uri return
|
|
28
|
+
property support_link
|
|
29
|
+
get get_SupportLink slot=6 inputs=0 outputs=1 declaring=Windows.System.Profile.SystemManufacturers.IOemSupportInfo shape=4
|
|
30
|
+
out class type=Windows.Foundation.Uri return
|
|
31
|
+
property support_provider
|
|
32
|
+
get get_SupportProvider slot=8 inputs=0 outputs=1 declaring=Windows.System.Profile.SystemManufacturers.IOemSupportInfo shape=4
|
|
33
|
+
out string return
|
|
34
|
+
|
|
35
|
+
class Windows.System.Profile.SystemManufacturers.SmbiosInformation static python_type
|
|
36
|
+
py SmbiosInformation
|
|
37
|
+
factory Windows.System.Profile.SystemManufacturers.ISmbiosInformationStatics
|
|
38
|
+
property serial_number static
|
|
39
|
+
get get_SerialNumber slot=6 inputs=0 outputs=1 declaring=Windows.System.Profile.SystemManufacturers.ISmbiosInformationStatics shape=4 static
|
|
40
|
+
out string return
|
|
41
|
+
|
|
42
|
+
class Windows.System.Profile.SystemManufacturers.SystemSupportDeviceInfo python_type
|
|
43
|
+
py SystemSupportDeviceInfo
|
|
44
|
+
signature rc(Windows.System.Profile.SystemManufacturers.SystemSupportDeviceInfo;{05880b99-8247-441b-a996-a1784bab79a8})
|
|
45
|
+
default Windows.System.Profile.SystemManufacturers.ISystemSupportDeviceInfo
|
|
46
|
+
requires Windows.System.Profile.SystemManufacturers.ISystemSupportDeviceInfo
|
|
47
|
+
property friendly_name
|
|
48
|
+
get get_FriendlyName slot=7 inputs=0 outputs=1 declaring=Windows.System.Profile.SystemManufacturers.ISystemSupportDeviceInfo shape=4
|
|
49
|
+
out string return
|
|
50
|
+
property operating_system
|
|
51
|
+
get get_OperatingSystem slot=6 inputs=0 outputs=1 declaring=Windows.System.Profile.SystemManufacturers.ISystemSupportDeviceInfo shape=4
|
|
52
|
+
out string return
|
|
53
|
+
property system_firmware_version
|
|
54
|
+
get get_SystemFirmwareVersion slot=12 inputs=0 outputs=1 declaring=Windows.System.Profile.SystemManufacturers.ISystemSupportDeviceInfo shape=4
|
|
55
|
+
out string return
|
|
56
|
+
property system_hardware_version
|
|
57
|
+
get get_SystemHardwareVersion slot=11 inputs=0 outputs=1 declaring=Windows.System.Profile.SystemManufacturers.ISystemSupportDeviceInfo shape=4
|
|
58
|
+
out string return
|
|
59
|
+
property system_manufacturer
|
|
60
|
+
get get_SystemManufacturer slot=8 inputs=0 outputs=1 declaring=Windows.System.Profile.SystemManufacturers.ISystemSupportDeviceInfo shape=4
|
|
61
|
+
out string return
|
|
62
|
+
property system_product_name
|
|
63
|
+
get get_SystemProductName slot=9 inputs=0 outputs=1 declaring=Windows.System.Profile.SystemManufacturers.ISystemSupportDeviceInfo shape=4
|
|
64
|
+
out string return
|
|
65
|
+
property system_sku
|
|
66
|
+
get get_SystemSku slot=10 inputs=0 outputs=1 declaring=Windows.System.Profile.SystemManufacturers.ISystemSupportDeviceInfo shape=4
|
|
67
|
+
out string return
|
|
68
|
+
|
|
69
|
+
class Windows.System.Profile.SystemManufacturers.SystemSupportInfo static python_type
|
|
70
|
+
py SystemSupportInfo
|
|
71
|
+
factory Windows.System.Profile.SystemManufacturers.ISystemSupportInfoStatics
|
|
72
|
+
factory Windows.System.Profile.SystemManufacturers.ISystemSupportInfoStatics2
|
|
73
|
+
property local_system_edition static
|
|
74
|
+
get get_LocalSystemEdition slot=6 inputs=0 outputs=1 declaring=Windows.System.Profile.SystemManufacturers.ISystemSupportInfoStatics shape=4 static
|
|
75
|
+
out string return
|
|
76
|
+
property oem_support_info static
|
|
77
|
+
get get_OemSupportInfo slot=7 inputs=0 outputs=1 declaring=Windows.System.Profile.SystemManufacturers.ISystemSupportInfoStatics shape=4 static
|
|
78
|
+
out class type=Windows.System.Profile.SystemManufacturers.OemSupportInfo return
|
|
79
|
+
property local_device_info static
|
|
80
|
+
get get_LocalDeviceInfo slot=6 inputs=0 outputs=1 declaring=Windows.System.Profile.SystemManufacturers.ISystemSupportInfoStatics2 shape=4 static
|
|
81
|
+
out class type=Windows.System.Profile.SystemManufacturers.SystemSupportDeviceInfo return
|
|
82
|
+
|
|
83
|
+
class Windows.Foundation.Uri external
|
|
84
|
+
py winrt.windows.foundation.Uri
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: winrt-Windows.System.Profile.SystemManufacturers
|
|
3
|
-
Version: 3.2.0
|
|
4
|
-
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
|
-
License-Expression: MIT
|
|
6
|
-
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
7
|
-
Project-URL: Repository, https://github.com/pywinrt/pywinrt
|
|
8
|
-
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
|
|
9
|
-
Classifier: Operating System :: Microsoft :: Windows
|
|
10
|
-
Classifier: Programming Language :: Python :: 3
|
|
11
|
-
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
|
-
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python: >=3.9
|
|
14
|
-
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==3.2.0
|
|
16
|
-
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==3.2.0; extra == "all"
|
|
18
|
-
|
|
19
|
-
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
20
|
-
|
|
21
|
-
# winrt-Windows.System.Profile.SystemManufacturers
|
|
22
|
-
|
|
23
|
-
Windows Runtime (WinRT) APIs for for the `Windows.System.Profile.SystemManufacturers` namespace.
|
|
24
|
-
|
|
25
|
-
This package provides the `winrt.windows.system.profile.systemmanufacturers` module.
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
2
|
-
|
|
3
|
-
# winrt-Windows.System.Profile.SystemManufacturers
|
|
4
|
-
|
|
5
|
-
Windows Runtime (WinRT) APIs for for the `Windows.System.Profile.SystemManufacturers` namespace.
|
|
6
|
-
|
|
7
|
-
This package provides the `winrt.windows.system.profile.systemmanufacturers` module.
|
|
@@ -1,766 +0,0 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.0
|
|
2
|
-
|
|
3
|
-
#include "py.Windows.System.Profile.SystemManufacturers.h"
|
|
4
|
-
|
|
5
|
-
namespace py::cpp::Windows::System::Profile::SystemManufacturers
|
|
6
|
-
{
|
|
7
|
-
// ----- OemSupportInfo class --------------------
|
|
8
|
-
|
|
9
|
-
static PyObject* _new_OemSupportInfo(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
|
|
10
|
-
{
|
|
11
|
-
static_assert(py::py_type<winrt::Windows::System::Profile::SystemManufacturers::OemSupportInfo>::type_name);
|
|
12
|
-
py::set_invalid_activation_error(py::py_type<winrt::Windows::System::Profile::SystemManufacturers::OemSupportInfo>::type_name);
|
|
13
|
-
return nullptr;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
static void _dealloc_OemSupportInfo(py::wrapper::Windows::System::Profile::SystemManufacturers::OemSupportInfo* self) noexcept
|
|
17
|
-
{
|
|
18
|
-
auto tp = Py_TYPE(self);
|
|
19
|
-
std::destroy_at(&self->obj);
|
|
20
|
-
tp->tp_free(self);
|
|
21
|
-
Py_DECREF(tp);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
static PyObject* OemSupportInfo_get_SupportAppLink(py::wrapper::Windows::System::Profile::SystemManufacturers::OemSupportInfo* self, void* /*unused*/) noexcept
|
|
25
|
-
{
|
|
26
|
-
try
|
|
27
|
-
{
|
|
28
|
-
static std::optional<bool> is_property_present{};
|
|
29
|
-
|
|
30
|
-
if (!is_property_present.has_value())
|
|
31
|
-
{
|
|
32
|
-
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.OemSupportInfo", L"SupportAppLink");
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
if (!is_property_present.value())
|
|
36
|
-
{
|
|
37
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
38
|
-
return nullptr;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
return py::convert([&]()
|
|
42
|
-
{
|
|
43
|
-
auto _gil = release_gil();
|
|
44
|
-
return self->obj.SupportAppLink();
|
|
45
|
-
}());
|
|
46
|
-
}
|
|
47
|
-
catch (...)
|
|
48
|
-
{
|
|
49
|
-
py::to_PyErr();
|
|
50
|
-
return nullptr;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
static PyObject* OemSupportInfo_get_SupportLink(py::wrapper::Windows::System::Profile::SystemManufacturers::OemSupportInfo* self, void* /*unused*/) noexcept
|
|
55
|
-
{
|
|
56
|
-
try
|
|
57
|
-
{
|
|
58
|
-
static std::optional<bool> is_property_present{};
|
|
59
|
-
|
|
60
|
-
if (!is_property_present.has_value())
|
|
61
|
-
{
|
|
62
|
-
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.OemSupportInfo", L"SupportLink");
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
if (!is_property_present.value())
|
|
66
|
-
{
|
|
67
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
68
|
-
return nullptr;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
return py::convert([&]()
|
|
72
|
-
{
|
|
73
|
-
auto _gil = release_gil();
|
|
74
|
-
return self->obj.SupportLink();
|
|
75
|
-
}());
|
|
76
|
-
}
|
|
77
|
-
catch (...)
|
|
78
|
-
{
|
|
79
|
-
py::to_PyErr();
|
|
80
|
-
return nullptr;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
static PyObject* OemSupportInfo_get_SupportProvider(py::wrapper::Windows::System::Profile::SystemManufacturers::OemSupportInfo* self, void* /*unused*/) noexcept
|
|
85
|
-
{
|
|
86
|
-
try
|
|
87
|
-
{
|
|
88
|
-
static std::optional<bool> is_property_present{};
|
|
89
|
-
|
|
90
|
-
if (!is_property_present.has_value())
|
|
91
|
-
{
|
|
92
|
-
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.OemSupportInfo", L"SupportProvider");
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
if (!is_property_present.value())
|
|
96
|
-
{
|
|
97
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
98
|
-
return nullptr;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
return py::convert([&]()
|
|
102
|
-
{
|
|
103
|
-
auto _gil = release_gil();
|
|
104
|
-
return self->obj.SupportProvider();
|
|
105
|
-
}());
|
|
106
|
-
}
|
|
107
|
-
catch (...)
|
|
108
|
-
{
|
|
109
|
-
py::to_PyErr();
|
|
110
|
-
return nullptr;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
static PyObject* _assign_array_OemSupportInfo(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
115
|
-
{
|
|
116
|
-
auto array = std::make_unique<py::ComArray<winrt::Windows::System::Profile::SystemManufacturers::OemSupportInfo>>();
|
|
117
|
-
if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
|
|
118
|
-
{
|
|
119
|
-
return nullptr;
|
|
120
|
-
}
|
|
121
|
-
Py_RETURN_NONE;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
static PyObject* _from_OemSupportInfo(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
125
|
-
{
|
|
126
|
-
try
|
|
127
|
-
{
|
|
128
|
-
auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
|
|
129
|
-
return py::convert(return_value.as<winrt::Windows::System::Profile::SystemManufacturers::OemSupportInfo>());
|
|
130
|
-
}
|
|
131
|
-
catch (...)
|
|
132
|
-
{
|
|
133
|
-
py::to_PyErr();
|
|
134
|
-
return nullptr;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
static PyMethodDef _methods_OemSupportInfo[] = {
|
|
139
|
-
{ "_assign_array_", _assign_array_OemSupportInfo, METH_O | METH_STATIC, nullptr },
|
|
140
|
-
{ "_from", reinterpret_cast<PyCFunction>(_from_OemSupportInfo), METH_O | METH_STATIC, nullptr },
|
|
141
|
-
{ }};
|
|
142
|
-
|
|
143
|
-
static PyGetSetDef _getset_OemSupportInfo[] = {
|
|
144
|
-
{ "support_app_link", reinterpret_cast<getter>(OemSupportInfo_get_SupportAppLink), nullptr, nullptr, nullptr },
|
|
145
|
-
{ "support_link", reinterpret_cast<getter>(OemSupportInfo_get_SupportLink), nullptr, nullptr, nullptr },
|
|
146
|
-
{ "support_provider", reinterpret_cast<getter>(OemSupportInfo_get_SupportProvider), nullptr, nullptr, nullptr },
|
|
147
|
-
{ }};
|
|
148
|
-
|
|
149
|
-
static PyType_Slot _type_slots_OemSupportInfo[] = {
|
|
150
|
-
{ Py_tp_new, reinterpret_cast<void*>(_new_OemSupportInfo) },
|
|
151
|
-
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_OemSupportInfo) },
|
|
152
|
-
{ Py_tp_methods, reinterpret_cast<void*>(_methods_OemSupportInfo) },
|
|
153
|
-
{ Py_tp_getset, reinterpret_cast<void*>(_getset_OemSupportInfo) },
|
|
154
|
-
{ }};
|
|
155
|
-
|
|
156
|
-
static PyType_Spec type_spec_OemSupportInfo = {
|
|
157
|
-
"winrt._winrt_windows_system_profile_systemmanufacturers.OemSupportInfo",
|
|
158
|
-
sizeof(py::wrapper::Windows::System::Profile::SystemManufacturers::OemSupportInfo),
|
|
159
|
-
0,
|
|
160
|
-
Py_TPFLAGS_DEFAULT,
|
|
161
|
-
_type_slots_OemSupportInfo};
|
|
162
|
-
|
|
163
|
-
// ----- SmbiosInformation class --------------------
|
|
164
|
-
|
|
165
|
-
static PyObject* _new_SmbiosInformation(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
|
|
166
|
-
{
|
|
167
|
-
static_assert(py::py_type<winrt::Windows::System::Profile::SystemManufacturers::SmbiosInformation>::type_name);
|
|
168
|
-
py::set_invalid_activation_error(py::py_type<winrt::Windows::System::Profile::SystemManufacturers::SmbiosInformation>::type_name);
|
|
169
|
-
return nullptr;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
static PyObject* SmbiosInformation_get_SerialNumber(PyObject* /*unused*/, void* /*unused*/) noexcept
|
|
173
|
-
{
|
|
174
|
-
try
|
|
175
|
-
{
|
|
176
|
-
static std::optional<bool> is_property_present{};
|
|
177
|
-
|
|
178
|
-
if (!is_property_present.has_value())
|
|
179
|
-
{
|
|
180
|
-
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.SmbiosInformation", L"SerialNumber");
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
if (!is_property_present.value())
|
|
184
|
-
{
|
|
185
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
186
|
-
return nullptr;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
return py::convert([&]()
|
|
190
|
-
{
|
|
191
|
-
auto _gil = release_gil();
|
|
192
|
-
return winrt::Windows::System::Profile::SystemManufacturers::SmbiosInformation::SerialNumber();
|
|
193
|
-
}());
|
|
194
|
-
}
|
|
195
|
-
catch (...)
|
|
196
|
-
{
|
|
197
|
-
py::to_PyErr();
|
|
198
|
-
return nullptr;
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
static PyMethodDef _methods_SmbiosInformation[] = {
|
|
203
|
-
{ }};
|
|
204
|
-
|
|
205
|
-
static PyGetSetDef _getset_SmbiosInformation[] = {
|
|
206
|
-
{ }};
|
|
207
|
-
|
|
208
|
-
static PyType_Slot _type_slots_SmbiosInformation[] = {
|
|
209
|
-
{ Py_tp_new, reinterpret_cast<void*>(_new_SmbiosInformation) },
|
|
210
|
-
{ Py_tp_methods, reinterpret_cast<void*>(_methods_SmbiosInformation) },
|
|
211
|
-
{ Py_tp_getset, reinterpret_cast<void*>(_getset_SmbiosInformation) },
|
|
212
|
-
{ }};
|
|
213
|
-
|
|
214
|
-
static PyType_Spec type_spec_SmbiosInformation = {
|
|
215
|
-
"winrt._winrt_windows_system_profile_systemmanufacturers.SmbiosInformation",
|
|
216
|
-
0,
|
|
217
|
-
0,
|
|
218
|
-
Py_TPFLAGS_DEFAULT,
|
|
219
|
-
_type_slots_SmbiosInformation};
|
|
220
|
-
|
|
221
|
-
static PyGetSetDef getset_SmbiosInformation_Static[] = {
|
|
222
|
-
{ "serial_number", reinterpret_cast<getter>(SmbiosInformation_get_SerialNumber), nullptr, nullptr, nullptr },
|
|
223
|
-
{ }};
|
|
224
|
-
|
|
225
|
-
static PyMethodDef methods_SmbiosInformation_Static[] = {
|
|
226
|
-
{ }};
|
|
227
|
-
|
|
228
|
-
static PyType_Slot type_slots_SmbiosInformation_Static[] =
|
|
229
|
-
{
|
|
230
|
-
{ Py_tp_base, reinterpret_cast<void*>(&PyType_Type) },
|
|
231
|
-
{ Py_tp_getset, reinterpret_cast<void*>(getset_SmbiosInformation_Static) },
|
|
232
|
-
{ Py_tp_methods, reinterpret_cast<void*>(methods_SmbiosInformation_Static) },
|
|
233
|
-
{ }
|
|
234
|
-
};
|
|
235
|
-
|
|
236
|
-
static PyType_Spec type_spec_SmbiosInformation_Static = {
|
|
237
|
-
"winrt._winrt_windows_system_profile_systemmanufacturers.SmbiosInformation_Static",
|
|
238
|
-
static_cast<int>(PyType_Type.tp_basicsize),
|
|
239
|
-
static_cast<int>(PyType_Type.tp_itemsize),
|
|
240
|
-
Py_TPFLAGS_DEFAULT,
|
|
241
|
-
type_slots_SmbiosInformation_Static};
|
|
242
|
-
|
|
243
|
-
// ----- SystemSupportDeviceInfo class --------------------
|
|
244
|
-
|
|
245
|
-
static PyObject* _new_SystemSupportDeviceInfo(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
|
|
246
|
-
{
|
|
247
|
-
static_assert(py::py_type<winrt::Windows::System::Profile::SystemManufacturers::SystemSupportDeviceInfo>::type_name);
|
|
248
|
-
py::set_invalid_activation_error(py::py_type<winrt::Windows::System::Profile::SystemManufacturers::SystemSupportDeviceInfo>::type_name);
|
|
249
|
-
return nullptr;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
static void _dealloc_SystemSupportDeviceInfo(py::wrapper::Windows::System::Profile::SystemManufacturers::SystemSupportDeviceInfo* self) noexcept
|
|
253
|
-
{
|
|
254
|
-
auto tp = Py_TYPE(self);
|
|
255
|
-
std::destroy_at(&self->obj);
|
|
256
|
-
tp->tp_free(self);
|
|
257
|
-
Py_DECREF(tp);
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
static PyObject* SystemSupportDeviceInfo_get_FriendlyName(py::wrapper::Windows::System::Profile::SystemManufacturers::SystemSupportDeviceInfo* self, void* /*unused*/) noexcept
|
|
261
|
-
{
|
|
262
|
-
try
|
|
263
|
-
{
|
|
264
|
-
static std::optional<bool> is_property_present{};
|
|
265
|
-
|
|
266
|
-
if (!is_property_present.has_value())
|
|
267
|
-
{
|
|
268
|
-
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.SystemSupportDeviceInfo", L"FriendlyName");
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
if (!is_property_present.value())
|
|
272
|
-
{
|
|
273
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
274
|
-
return nullptr;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
return py::convert([&]()
|
|
278
|
-
{
|
|
279
|
-
auto _gil = release_gil();
|
|
280
|
-
return self->obj.FriendlyName();
|
|
281
|
-
}());
|
|
282
|
-
}
|
|
283
|
-
catch (...)
|
|
284
|
-
{
|
|
285
|
-
py::to_PyErr();
|
|
286
|
-
return nullptr;
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
static PyObject* SystemSupportDeviceInfo_get_OperatingSystem(py::wrapper::Windows::System::Profile::SystemManufacturers::SystemSupportDeviceInfo* self, void* /*unused*/) noexcept
|
|
291
|
-
{
|
|
292
|
-
try
|
|
293
|
-
{
|
|
294
|
-
static std::optional<bool> is_property_present{};
|
|
295
|
-
|
|
296
|
-
if (!is_property_present.has_value())
|
|
297
|
-
{
|
|
298
|
-
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.SystemSupportDeviceInfo", L"OperatingSystem");
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
if (!is_property_present.value())
|
|
302
|
-
{
|
|
303
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
304
|
-
return nullptr;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
return py::convert([&]()
|
|
308
|
-
{
|
|
309
|
-
auto _gil = release_gil();
|
|
310
|
-
return self->obj.OperatingSystem();
|
|
311
|
-
}());
|
|
312
|
-
}
|
|
313
|
-
catch (...)
|
|
314
|
-
{
|
|
315
|
-
py::to_PyErr();
|
|
316
|
-
return nullptr;
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
static PyObject* SystemSupportDeviceInfo_get_SystemFirmwareVersion(py::wrapper::Windows::System::Profile::SystemManufacturers::SystemSupportDeviceInfo* self, void* /*unused*/) noexcept
|
|
321
|
-
{
|
|
322
|
-
try
|
|
323
|
-
{
|
|
324
|
-
static std::optional<bool> is_property_present{};
|
|
325
|
-
|
|
326
|
-
if (!is_property_present.has_value())
|
|
327
|
-
{
|
|
328
|
-
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.SystemSupportDeviceInfo", L"SystemFirmwareVersion");
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
if (!is_property_present.value())
|
|
332
|
-
{
|
|
333
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
334
|
-
return nullptr;
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
return py::convert([&]()
|
|
338
|
-
{
|
|
339
|
-
auto _gil = release_gil();
|
|
340
|
-
return self->obj.SystemFirmwareVersion();
|
|
341
|
-
}());
|
|
342
|
-
}
|
|
343
|
-
catch (...)
|
|
344
|
-
{
|
|
345
|
-
py::to_PyErr();
|
|
346
|
-
return nullptr;
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
static PyObject* SystemSupportDeviceInfo_get_SystemHardwareVersion(py::wrapper::Windows::System::Profile::SystemManufacturers::SystemSupportDeviceInfo* self, void* /*unused*/) noexcept
|
|
351
|
-
{
|
|
352
|
-
try
|
|
353
|
-
{
|
|
354
|
-
static std::optional<bool> is_property_present{};
|
|
355
|
-
|
|
356
|
-
if (!is_property_present.has_value())
|
|
357
|
-
{
|
|
358
|
-
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.SystemSupportDeviceInfo", L"SystemHardwareVersion");
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
if (!is_property_present.value())
|
|
362
|
-
{
|
|
363
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
364
|
-
return nullptr;
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
return py::convert([&]()
|
|
368
|
-
{
|
|
369
|
-
auto _gil = release_gil();
|
|
370
|
-
return self->obj.SystemHardwareVersion();
|
|
371
|
-
}());
|
|
372
|
-
}
|
|
373
|
-
catch (...)
|
|
374
|
-
{
|
|
375
|
-
py::to_PyErr();
|
|
376
|
-
return nullptr;
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
static PyObject* SystemSupportDeviceInfo_get_SystemManufacturer(py::wrapper::Windows::System::Profile::SystemManufacturers::SystemSupportDeviceInfo* self, void* /*unused*/) noexcept
|
|
381
|
-
{
|
|
382
|
-
try
|
|
383
|
-
{
|
|
384
|
-
static std::optional<bool> is_property_present{};
|
|
385
|
-
|
|
386
|
-
if (!is_property_present.has_value())
|
|
387
|
-
{
|
|
388
|
-
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.SystemSupportDeviceInfo", L"SystemManufacturer");
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
if (!is_property_present.value())
|
|
392
|
-
{
|
|
393
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
394
|
-
return nullptr;
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
return py::convert([&]()
|
|
398
|
-
{
|
|
399
|
-
auto _gil = release_gil();
|
|
400
|
-
return self->obj.SystemManufacturer();
|
|
401
|
-
}());
|
|
402
|
-
}
|
|
403
|
-
catch (...)
|
|
404
|
-
{
|
|
405
|
-
py::to_PyErr();
|
|
406
|
-
return nullptr;
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
static PyObject* SystemSupportDeviceInfo_get_SystemProductName(py::wrapper::Windows::System::Profile::SystemManufacturers::SystemSupportDeviceInfo* self, void* /*unused*/) noexcept
|
|
411
|
-
{
|
|
412
|
-
try
|
|
413
|
-
{
|
|
414
|
-
static std::optional<bool> is_property_present{};
|
|
415
|
-
|
|
416
|
-
if (!is_property_present.has_value())
|
|
417
|
-
{
|
|
418
|
-
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.SystemSupportDeviceInfo", L"SystemProductName");
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
if (!is_property_present.value())
|
|
422
|
-
{
|
|
423
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
424
|
-
return nullptr;
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
return py::convert([&]()
|
|
428
|
-
{
|
|
429
|
-
auto _gil = release_gil();
|
|
430
|
-
return self->obj.SystemProductName();
|
|
431
|
-
}());
|
|
432
|
-
}
|
|
433
|
-
catch (...)
|
|
434
|
-
{
|
|
435
|
-
py::to_PyErr();
|
|
436
|
-
return nullptr;
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
static PyObject* SystemSupportDeviceInfo_get_SystemSku(py::wrapper::Windows::System::Profile::SystemManufacturers::SystemSupportDeviceInfo* self, void* /*unused*/) noexcept
|
|
441
|
-
{
|
|
442
|
-
try
|
|
443
|
-
{
|
|
444
|
-
static std::optional<bool> is_property_present{};
|
|
445
|
-
|
|
446
|
-
if (!is_property_present.has_value())
|
|
447
|
-
{
|
|
448
|
-
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.SystemSupportDeviceInfo", L"SystemSku");
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
if (!is_property_present.value())
|
|
452
|
-
{
|
|
453
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
454
|
-
return nullptr;
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
return py::convert([&]()
|
|
458
|
-
{
|
|
459
|
-
auto _gil = release_gil();
|
|
460
|
-
return self->obj.SystemSku();
|
|
461
|
-
}());
|
|
462
|
-
}
|
|
463
|
-
catch (...)
|
|
464
|
-
{
|
|
465
|
-
py::to_PyErr();
|
|
466
|
-
return nullptr;
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
static PyObject* _assign_array_SystemSupportDeviceInfo(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
471
|
-
{
|
|
472
|
-
auto array = std::make_unique<py::ComArray<winrt::Windows::System::Profile::SystemManufacturers::SystemSupportDeviceInfo>>();
|
|
473
|
-
if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
|
|
474
|
-
{
|
|
475
|
-
return nullptr;
|
|
476
|
-
}
|
|
477
|
-
Py_RETURN_NONE;
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
static PyObject* _from_SystemSupportDeviceInfo(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
481
|
-
{
|
|
482
|
-
try
|
|
483
|
-
{
|
|
484
|
-
auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
|
|
485
|
-
return py::convert(return_value.as<winrt::Windows::System::Profile::SystemManufacturers::SystemSupportDeviceInfo>());
|
|
486
|
-
}
|
|
487
|
-
catch (...)
|
|
488
|
-
{
|
|
489
|
-
py::to_PyErr();
|
|
490
|
-
return nullptr;
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
static PyMethodDef _methods_SystemSupportDeviceInfo[] = {
|
|
495
|
-
{ "_assign_array_", _assign_array_SystemSupportDeviceInfo, METH_O | METH_STATIC, nullptr },
|
|
496
|
-
{ "_from", reinterpret_cast<PyCFunction>(_from_SystemSupportDeviceInfo), METH_O | METH_STATIC, nullptr },
|
|
497
|
-
{ }};
|
|
498
|
-
|
|
499
|
-
static PyGetSetDef _getset_SystemSupportDeviceInfo[] = {
|
|
500
|
-
{ "friendly_name", reinterpret_cast<getter>(SystemSupportDeviceInfo_get_FriendlyName), nullptr, nullptr, nullptr },
|
|
501
|
-
{ "operating_system", reinterpret_cast<getter>(SystemSupportDeviceInfo_get_OperatingSystem), nullptr, nullptr, nullptr },
|
|
502
|
-
{ "system_firmware_version", reinterpret_cast<getter>(SystemSupportDeviceInfo_get_SystemFirmwareVersion), nullptr, nullptr, nullptr },
|
|
503
|
-
{ "system_hardware_version", reinterpret_cast<getter>(SystemSupportDeviceInfo_get_SystemHardwareVersion), nullptr, nullptr, nullptr },
|
|
504
|
-
{ "system_manufacturer", reinterpret_cast<getter>(SystemSupportDeviceInfo_get_SystemManufacturer), nullptr, nullptr, nullptr },
|
|
505
|
-
{ "system_product_name", reinterpret_cast<getter>(SystemSupportDeviceInfo_get_SystemProductName), nullptr, nullptr, nullptr },
|
|
506
|
-
{ "system_sku", reinterpret_cast<getter>(SystemSupportDeviceInfo_get_SystemSku), nullptr, nullptr, nullptr },
|
|
507
|
-
{ }};
|
|
508
|
-
|
|
509
|
-
static PyType_Slot _type_slots_SystemSupportDeviceInfo[] = {
|
|
510
|
-
{ Py_tp_new, reinterpret_cast<void*>(_new_SystemSupportDeviceInfo) },
|
|
511
|
-
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_SystemSupportDeviceInfo) },
|
|
512
|
-
{ Py_tp_methods, reinterpret_cast<void*>(_methods_SystemSupportDeviceInfo) },
|
|
513
|
-
{ Py_tp_getset, reinterpret_cast<void*>(_getset_SystemSupportDeviceInfo) },
|
|
514
|
-
{ }};
|
|
515
|
-
|
|
516
|
-
static PyType_Spec type_spec_SystemSupportDeviceInfo = {
|
|
517
|
-
"winrt._winrt_windows_system_profile_systemmanufacturers.SystemSupportDeviceInfo",
|
|
518
|
-
sizeof(py::wrapper::Windows::System::Profile::SystemManufacturers::SystemSupportDeviceInfo),
|
|
519
|
-
0,
|
|
520
|
-
Py_TPFLAGS_DEFAULT,
|
|
521
|
-
_type_slots_SystemSupportDeviceInfo};
|
|
522
|
-
|
|
523
|
-
// ----- SystemSupportInfo class --------------------
|
|
524
|
-
|
|
525
|
-
static PyObject* _new_SystemSupportInfo(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
|
|
526
|
-
{
|
|
527
|
-
static_assert(py::py_type<winrt::Windows::System::Profile::SystemManufacturers::SystemSupportInfo>::type_name);
|
|
528
|
-
py::set_invalid_activation_error(py::py_type<winrt::Windows::System::Profile::SystemManufacturers::SystemSupportInfo>::type_name);
|
|
529
|
-
return nullptr;
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
static PyObject* SystemSupportInfo_get_LocalSystemEdition(PyObject* /*unused*/, void* /*unused*/) noexcept
|
|
533
|
-
{
|
|
534
|
-
try
|
|
535
|
-
{
|
|
536
|
-
static std::optional<bool> is_property_present{};
|
|
537
|
-
|
|
538
|
-
if (!is_property_present.has_value())
|
|
539
|
-
{
|
|
540
|
-
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.SystemSupportInfo", L"LocalSystemEdition");
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
if (!is_property_present.value())
|
|
544
|
-
{
|
|
545
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
546
|
-
return nullptr;
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
return py::convert([&]()
|
|
550
|
-
{
|
|
551
|
-
auto _gil = release_gil();
|
|
552
|
-
return winrt::Windows::System::Profile::SystemManufacturers::SystemSupportInfo::LocalSystemEdition();
|
|
553
|
-
}());
|
|
554
|
-
}
|
|
555
|
-
catch (...)
|
|
556
|
-
{
|
|
557
|
-
py::to_PyErr();
|
|
558
|
-
return nullptr;
|
|
559
|
-
}
|
|
560
|
-
}
|
|
561
|
-
|
|
562
|
-
static PyObject* SystemSupportInfo_get_OemSupportInfo(PyObject* /*unused*/, void* /*unused*/) noexcept
|
|
563
|
-
{
|
|
564
|
-
try
|
|
565
|
-
{
|
|
566
|
-
static std::optional<bool> is_property_present{};
|
|
567
|
-
|
|
568
|
-
if (!is_property_present.has_value())
|
|
569
|
-
{
|
|
570
|
-
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.SystemSupportInfo", L"OemSupportInfo");
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
if (!is_property_present.value())
|
|
574
|
-
{
|
|
575
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
576
|
-
return nullptr;
|
|
577
|
-
}
|
|
578
|
-
|
|
579
|
-
return py::convert([&]()
|
|
580
|
-
{
|
|
581
|
-
auto _gil = release_gil();
|
|
582
|
-
return winrt::Windows::System::Profile::SystemManufacturers::SystemSupportInfo::OemSupportInfo();
|
|
583
|
-
}());
|
|
584
|
-
}
|
|
585
|
-
catch (...)
|
|
586
|
-
{
|
|
587
|
-
py::to_PyErr();
|
|
588
|
-
return nullptr;
|
|
589
|
-
}
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
static PyObject* SystemSupportInfo_get_LocalDeviceInfo(PyObject* /*unused*/, void* /*unused*/) noexcept
|
|
593
|
-
{
|
|
594
|
-
try
|
|
595
|
-
{
|
|
596
|
-
static std::optional<bool> is_property_present{};
|
|
597
|
-
|
|
598
|
-
if (!is_property_present.has_value())
|
|
599
|
-
{
|
|
600
|
-
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.SystemManufacturers.SystemSupportInfo", L"LocalDeviceInfo");
|
|
601
|
-
}
|
|
602
|
-
|
|
603
|
-
if (!is_property_present.value())
|
|
604
|
-
{
|
|
605
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
606
|
-
return nullptr;
|
|
607
|
-
}
|
|
608
|
-
|
|
609
|
-
return py::convert([&]()
|
|
610
|
-
{
|
|
611
|
-
auto _gil = release_gil();
|
|
612
|
-
return winrt::Windows::System::Profile::SystemManufacturers::SystemSupportInfo::LocalDeviceInfo();
|
|
613
|
-
}());
|
|
614
|
-
}
|
|
615
|
-
catch (...)
|
|
616
|
-
{
|
|
617
|
-
py::to_PyErr();
|
|
618
|
-
return nullptr;
|
|
619
|
-
}
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
static PyMethodDef _methods_SystemSupportInfo[] = {
|
|
623
|
-
{ }};
|
|
624
|
-
|
|
625
|
-
static PyGetSetDef _getset_SystemSupportInfo[] = {
|
|
626
|
-
{ }};
|
|
627
|
-
|
|
628
|
-
static PyType_Slot _type_slots_SystemSupportInfo[] = {
|
|
629
|
-
{ Py_tp_new, reinterpret_cast<void*>(_new_SystemSupportInfo) },
|
|
630
|
-
{ Py_tp_methods, reinterpret_cast<void*>(_methods_SystemSupportInfo) },
|
|
631
|
-
{ Py_tp_getset, reinterpret_cast<void*>(_getset_SystemSupportInfo) },
|
|
632
|
-
{ }};
|
|
633
|
-
|
|
634
|
-
static PyType_Spec type_spec_SystemSupportInfo = {
|
|
635
|
-
"winrt._winrt_windows_system_profile_systemmanufacturers.SystemSupportInfo",
|
|
636
|
-
0,
|
|
637
|
-
0,
|
|
638
|
-
Py_TPFLAGS_DEFAULT,
|
|
639
|
-
_type_slots_SystemSupportInfo};
|
|
640
|
-
|
|
641
|
-
static PyGetSetDef getset_SystemSupportInfo_Static[] = {
|
|
642
|
-
{ "local_system_edition", reinterpret_cast<getter>(SystemSupportInfo_get_LocalSystemEdition), nullptr, nullptr, nullptr },
|
|
643
|
-
{ "oem_support_info", reinterpret_cast<getter>(SystemSupportInfo_get_OemSupportInfo), nullptr, nullptr, nullptr },
|
|
644
|
-
{ "local_device_info", reinterpret_cast<getter>(SystemSupportInfo_get_LocalDeviceInfo), nullptr, nullptr, nullptr },
|
|
645
|
-
{ }};
|
|
646
|
-
|
|
647
|
-
static PyMethodDef methods_SystemSupportInfo_Static[] = {
|
|
648
|
-
{ }};
|
|
649
|
-
|
|
650
|
-
static PyType_Slot type_slots_SystemSupportInfo_Static[] =
|
|
651
|
-
{
|
|
652
|
-
{ Py_tp_base, reinterpret_cast<void*>(&PyType_Type) },
|
|
653
|
-
{ Py_tp_getset, reinterpret_cast<void*>(getset_SystemSupportInfo_Static) },
|
|
654
|
-
{ Py_tp_methods, reinterpret_cast<void*>(methods_SystemSupportInfo_Static) },
|
|
655
|
-
{ }
|
|
656
|
-
};
|
|
657
|
-
|
|
658
|
-
static PyType_Spec type_spec_SystemSupportInfo_Static = {
|
|
659
|
-
"winrt._winrt_windows_system_profile_systemmanufacturers.SystemSupportInfo_Static",
|
|
660
|
-
static_cast<int>(PyType_Type.tp_basicsize),
|
|
661
|
-
static_cast<int>(PyType_Type.tp_itemsize),
|
|
662
|
-
Py_TPFLAGS_DEFAULT,
|
|
663
|
-
type_slots_SystemSupportInfo_Static};
|
|
664
|
-
|
|
665
|
-
// ----- Windows.System.Profile.SystemManufacturers Initialization --------------------
|
|
666
|
-
|
|
667
|
-
PyDoc_STRVAR(module_doc, "Windows.System.Profile.SystemManufacturers");
|
|
668
|
-
|
|
669
|
-
static PyModuleDef module_def = {
|
|
670
|
-
PyModuleDef_HEAD_INIT,
|
|
671
|
-
"_winrt_windows_system_profile_systemmanufacturers",
|
|
672
|
-
module_doc,
|
|
673
|
-
0,
|
|
674
|
-
nullptr,
|
|
675
|
-
nullptr,
|
|
676
|
-
nullptr,
|
|
677
|
-
nullptr,
|
|
678
|
-
nullptr};
|
|
679
|
-
} // py::cpp::Windows::System::Profile::SystemManufacturers
|
|
680
|
-
|
|
681
|
-
PyMODINIT_FUNC PyInit__winrt_windows_system_profile_systemmanufacturers(void) noexcept
|
|
682
|
-
{
|
|
683
|
-
using namespace py::cpp::Windows::System::Profile::SystemManufacturers;
|
|
684
|
-
|
|
685
|
-
if (py::import_winrt_runtime() == -1)
|
|
686
|
-
{
|
|
687
|
-
return nullptr;
|
|
688
|
-
}
|
|
689
|
-
|
|
690
|
-
py::pyobj_handle module{PyModule_Create(&module_def)};
|
|
691
|
-
|
|
692
|
-
if (!module)
|
|
693
|
-
{
|
|
694
|
-
return nullptr;
|
|
695
|
-
}
|
|
696
|
-
|
|
697
|
-
auto inspectable_meta_type = py::get_inspectable_meta_type();
|
|
698
|
-
if (!inspectable_meta_type)
|
|
699
|
-
{
|
|
700
|
-
return nullptr;
|
|
701
|
-
}
|
|
702
|
-
|
|
703
|
-
auto object_type = py::get_object_type();
|
|
704
|
-
if (!object_type)
|
|
705
|
-
{
|
|
706
|
-
return nullptr;
|
|
707
|
-
}
|
|
708
|
-
|
|
709
|
-
py::pyobj_handle object_bases{PyTuple_Pack(1, object_type)};
|
|
710
|
-
|
|
711
|
-
if (!object_bases)
|
|
712
|
-
{
|
|
713
|
-
return nullptr;
|
|
714
|
-
}
|
|
715
|
-
|
|
716
|
-
py::pytype_handle OemSupportInfo_type{py::register_python_type(module.get(), &type_spec_OemSupportInfo, object_bases.get(), inspectable_meta_type)};
|
|
717
|
-
if (!OemSupportInfo_type)
|
|
718
|
-
{
|
|
719
|
-
return nullptr;
|
|
720
|
-
}
|
|
721
|
-
|
|
722
|
-
py::pyobj_handle SmbiosInformation_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
|
|
723
|
-
if (!SmbiosInformation_Static_bases)
|
|
724
|
-
{
|
|
725
|
-
return nullptr;
|
|
726
|
-
}
|
|
727
|
-
|
|
728
|
-
py::pyobj_handle type_SmbiosInformation_Static{PyType_FromSpecWithBases(&type_spec_SmbiosInformation_Static, SmbiosInformation_Static_bases.get())};
|
|
729
|
-
if (!type_SmbiosInformation_Static)
|
|
730
|
-
{
|
|
731
|
-
return nullptr;
|
|
732
|
-
}
|
|
733
|
-
|
|
734
|
-
py::pytype_handle SmbiosInformation_type{py::register_python_type(module.get(), &type_spec_SmbiosInformation, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_SmbiosInformation_Static.get()))};
|
|
735
|
-
if (!SmbiosInformation_type)
|
|
736
|
-
{
|
|
737
|
-
return nullptr;
|
|
738
|
-
}
|
|
739
|
-
|
|
740
|
-
py::pytype_handle SystemSupportDeviceInfo_type{py::register_python_type(module.get(), &type_spec_SystemSupportDeviceInfo, object_bases.get(), inspectable_meta_type)};
|
|
741
|
-
if (!SystemSupportDeviceInfo_type)
|
|
742
|
-
{
|
|
743
|
-
return nullptr;
|
|
744
|
-
}
|
|
745
|
-
|
|
746
|
-
py::pyobj_handle SystemSupportInfo_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
|
|
747
|
-
if (!SystemSupportInfo_Static_bases)
|
|
748
|
-
{
|
|
749
|
-
return nullptr;
|
|
750
|
-
}
|
|
751
|
-
|
|
752
|
-
py::pyobj_handle type_SystemSupportInfo_Static{PyType_FromSpecWithBases(&type_spec_SystemSupportInfo_Static, SystemSupportInfo_Static_bases.get())};
|
|
753
|
-
if (!type_SystemSupportInfo_Static)
|
|
754
|
-
{
|
|
755
|
-
return nullptr;
|
|
756
|
-
}
|
|
757
|
-
|
|
758
|
-
py::pytype_handle SystemSupportInfo_type{py::register_python_type(module.get(), &type_spec_SystemSupportInfo, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_SystemSupportInfo_Static.get()))};
|
|
759
|
-
if (!SystemSupportInfo_type)
|
|
760
|
-
{
|
|
761
|
-
return nullptr;
|
|
762
|
-
}
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
return module.detach();
|
|
766
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
-
|
|
3
|
-
[build-system]
|
|
4
|
-
requires = ["setuptools>=78", "winrt-sdk"]
|
|
5
|
-
build-backend = "setuptools.build_meta"
|
|
6
|
-
|
|
7
|
-
[project]
|
|
8
|
-
name = "winrt-Windows.System.Profile.SystemManufacturers"
|
|
9
|
-
description = "Python projection of Windows Runtime (WinRT) APIs"
|
|
10
|
-
readme = "README.md"
|
|
11
|
-
license = "MIT"
|
|
12
|
-
classifiers = [
|
|
13
|
-
"Operating System :: Microsoft :: Windows",
|
|
14
|
-
"Programming Language :: Python :: 3",
|
|
15
|
-
"Programming Language :: Python :: Implementation :: CPython",
|
|
16
|
-
"Intended Audience :: Developers",
|
|
17
|
-
]
|
|
18
|
-
dynamic = ["version", "dependencies", "optional-dependencies"]
|
|
19
|
-
requires-python = ">=3.9"
|
|
20
|
-
|
|
21
|
-
[project.urls]
|
|
22
|
-
# Homepage = "https://github.com/pywinrt/pywinrt"
|
|
23
|
-
Documentation = "https://pywinrt.readthedocs.io"
|
|
24
|
-
Repository = "https://github.com/pywinrt/pywinrt"
|
|
25
|
-
Changelog = "https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md"
|
|
26
|
-
|
|
27
|
-
[tool.setuptools.dynamic]
|
|
28
|
-
version = { file = "pywinrt-version.txt" }
|
|
29
|
-
dependencies = { file = "requirements.txt" }
|
|
30
|
-
optional-dependencies.all = { file = "all-requirements.txt" }
|
|
31
|
-
|
|
32
|
-
[tool.setuptools.package-data]
|
|
33
|
-
"*" = ["*.pyi", "py.typed"]
|
|
34
|
-
|
|
35
|
-
[tool.cibuildwheel]
|
|
36
|
-
# use local winrt-sdk build dependency
|
|
37
|
-
environment = { PYTHONPATH="../../winrt-sdk/src" }
|
|
38
|
-
# don't install winrt-sdk from PyPI
|
|
39
|
-
build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
40
|
-
before-build = "uv pip install setuptools"
|
|
41
|
-
# don't build for PyPy
|
|
42
|
-
skip = "pp*"
|
|
43
|
-
# suppress warnings about ARM64 testing
|
|
44
|
-
test-skip = "*-win_arm64"
|
|
45
|
-
|
|
46
|
-
[tool.cibuildwheel.windows]
|
|
47
|
-
archs = ["x86", "AMD64", "ARM64"]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
3.2.0
|
|
@@ -1,33 +0,0 @@
|
|
|
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
|
-
# GCC 15 complains about some things that it didn't in the past
|
|
15
|
-
ext.extra_compile_args += ["-Wno-strict-aliasing", "-Wno-template-body"]
|
|
16
|
-
ext.extra_link_args = ["-loleaut32"]
|
|
17
|
-
else:
|
|
18
|
-
raise ValueError(f"Unsupported compiler: {self.compiler.compiler_type}")
|
|
19
|
-
|
|
20
|
-
build_ext.build_extension(self, ext)
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
setup(
|
|
24
|
-
cmdclass={"build_ext": build_ext_ex},
|
|
25
|
-
ext_modules=[
|
|
26
|
-
Extension(
|
|
27
|
-
"winrt._winrt_windows_system_profile_systemmanufacturers",
|
|
28
|
-
sources=["py.Windows.System.Profile.SystemManufacturers.cpp"],
|
|
29
|
-
include_dirs=get_include_dirs(),
|
|
30
|
-
libraries=["windowsapp"],
|
|
31
|
-
)
|
|
32
|
-
],
|
|
33
|
-
)
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: winrt-Windows.System.Profile.SystemManufacturers
|
|
3
|
-
Version: 3.2.0
|
|
4
|
-
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
|
-
License-Expression: MIT
|
|
6
|
-
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
7
|
-
Project-URL: Repository, https://github.com/pywinrt/pywinrt
|
|
8
|
-
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
|
|
9
|
-
Classifier: Operating System :: Microsoft :: Windows
|
|
10
|
-
Classifier: Programming Language :: Python :: 3
|
|
11
|
-
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
|
-
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python: >=3.9
|
|
14
|
-
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==3.2.0
|
|
16
|
-
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==3.2.0; extra == "all"
|
|
18
|
-
|
|
19
|
-
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
20
|
-
|
|
21
|
-
# winrt-Windows.System.Profile.SystemManufacturers
|
|
22
|
-
|
|
23
|
-
Windows Runtime (WinRT) APIs for for the `Windows.System.Profile.SystemManufacturers` namespace.
|
|
24
|
-
|
|
25
|
-
This package provides the `winrt.windows.system.profile.systemmanufacturers` module.
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
README.md
|
|
2
|
-
all-requirements.txt
|
|
3
|
-
py.Windows.System.Profile.SystemManufacturers.cpp
|
|
4
|
-
pyproject.toml
|
|
5
|
-
pywinrt-version.txt
|
|
6
|
-
requirements.txt
|
|
7
|
-
setup.py
|
|
8
|
-
winrt/_winrt_windows_system_profile_systemmanufacturers.pyi
|
|
9
|
-
winrt/windows/system/profile/systemmanufacturers/__init__.py
|
|
10
|
-
winrt/windows/system/profile/systemmanufacturers/py.typed
|
|
11
|
-
winrt_Windows.System.Profile.SystemManufacturers.egg-info/PKG-INFO
|
|
12
|
-
winrt_Windows.System.Profile.SystemManufacturers.egg-info/SOURCES.txt
|
|
13
|
-
winrt_Windows.System.Profile.SystemManufacturers.egg-info/dependency_links.txt
|
|
14
|
-
winrt_Windows.System.Profile.SystemManufacturers.egg-info/requires.txt
|
|
15
|
-
winrt_Windows.System.Profile.SystemManufacturers.egg-info/top_level.txt
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
winrt
|