winrt-Windows.System.Profile 2.0.0b2__tar.gz → 2.0.1__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-2.0.0b2 → winrt_windows_system_profile-2.0.1}/PKG-INFO +6 -1
- winrt_windows_system_profile-2.0.1/all-requirements.txt +6 -0
- {winrt-Windows.System.Profile-2.0.0b2 → winrt_windows_system_profile-2.0.1}/py.Windows.System.Profile.cpp +91 -1
- {winrt-Windows.System.Profile-2.0.0b2 → winrt_windows_system_profile-2.0.1}/pyproject.toml +2 -2
- winrt_windows_system_profile-2.0.1/pywinrt-version.txt +1 -0
- {winrt-Windows.System.Profile-2.0.0b2 → winrt_windows_system_profile-2.0.1}/requirements.txt +2 -2
- winrt_windows_system_profile-2.0.1/setup.py +31 -0
- {winrt-Windows.System.Profile-2.0.0b2 → winrt_windows_system_profile-2.0.1}/winrt/_winrt_windows_system_profile.pyi +12 -2
- {winrt-Windows.System.Profile-2.0.0b2 → winrt_windows_system_profile-2.0.1}/winrt/windows/system/profile/__init__.py +9 -1
- winrt_windows_system_profile-2.0.1/winrt/windows/system/profile/py.typed +0 -0
- {winrt-Windows.System.Profile-2.0.0b2 → winrt_windows_system_profile-2.0.1}/winrt_Windows.System.Profile.egg-info/PKG-INFO +6 -1
- {winrt-Windows.System.Profile-2.0.0b2 → winrt_windows_system_profile-2.0.1}/winrt_Windows.System.Profile.egg-info/SOURCES.txt +1 -0
- winrt_windows_system_profile-2.0.1/winrt_Windows.System.Profile.egg-info/requires.txt +7 -0
- winrt-Windows.System.Profile-2.0.0b2/all-requirements.txt +0 -6
- winrt-Windows.System.Profile-2.0.0b2/pywinrt-version.txt +0 -1
- winrt-Windows.System.Profile-2.0.0b2/setup.py +0 -16
- winrt-Windows.System.Profile-2.0.0b2/winrt_Windows.System.Profile.egg-info/requires.txt +0 -7
- {winrt-Windows.System.Profile-2.0.0b2 → winrt_windows_system_profile-2.0.1}/README.md +0 -0
- {winrt-Windows.System.Profile-2.0.0b2 → winrt_windows_system_profile-2.0.1}/setup.cfg +0 -0
- {winrt-Windows.System.Profile-2.0.0b2 → winrt_windows_system_profile-2.0.1}/winrt_Windows.System.Profile.egg-info/dependency_links.txt +0 -0
- {winrt-Windows.System.Profile-2.0.0b2 → winrt_windows_system_profile-2.0.1}/winrt_Windows.System.Profile.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.System.Profile
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.1
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -12,7 +12,12 @@ 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.0.1
|
|
15
16
|
Provides-Extra: all
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.0.1; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.0.1; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.0.1; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.System[all]==2.0.1; extra == "all"
|
|
16
21
|
|
|
17
22
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
18
23
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.System.Profile.h"
|
|
4
4
|
|
|
@@ -1154,6 +1154,85 @@ namespace py::cpp::Windows::System::Profile
|
|
|
1154
1154
|
type_slots_KnownRetailInfoProperties_Static
|
|
1155
1155
|
};
|
|
1156
1156
|
|
|
1157
|
+
// ----- PlatformAutomaticAppSignInManager class --------------------
|
|
1158
|
+
|
|
1159
|
+
static PyObject* _new_PlatformAutomaticAppSignInManager(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
|
|
1160
|
+
{
|
|
1161
|
+
static_assert(py::py_type<winrt::Windows::System::Profile::PlatformAutomaticAppSignInManager>::type_name);
|
|
1162
|
+
py::set_invalid_activation_error(py::py_type<winrt::Windows::System::Profile::PlatformAutomaticAppSignInManager>::type_name);
|
|
1163
|
+
return nullptr;
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
static PyObject* PlatformAutomaticAppSignInManager_get_Policy(PyObject* /*unused*/, void* /*unused*/) noexcept
|
|
1167
|
+
{
|
|
1168
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.System.Profile.PlatformAutomaticAppSignInManager", L"Policy"))
|
|
1169
|
+
{
|
|
1170
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
1171
|
+
return nullptr;
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
try
|
|
1175
|
+
{
|
|
1176
|
+
return py::convert(winrt::Windows::System::Profile::PlatformAutomaticAppSignInManager::Policy());
|
|
1177
|
+
}
|
|
1178
|
+
catch (...)
|
|
1179
|
+
{
|
|
1180
|
+
py::to_PyErr();
|
|
1181
|
+
return nullptr;
|
|
1182
|
+
}
|
|
1183
|
+
}
|
|
1184
|
+
|
|
1185
|
+
static PyMethodDef _methods_PlatformAutomaticAppSignInManager[] = {
|
|
1186
|
+
{ }
|
|
1187
|
+
};
|
|
1188
|
+
|
|
1189
|
+
static PyGetSetDef _getset_PlatformAutomaticAppSignInManager[] = {
|
|
1190
|
+
{ }
|
|
1191
|
+
};
|
|
1192
|
+
|
|
1193
|
+
static PyType_Slot _type_slots_PlatformAutomaticAppSignInManager[] =
|
|
1194
|
+
{
|
|
1195
|
+
{ Py_tp_new, reinterpret_cast<void*>(_new_PlatformAutomaticAppSignInManager) },
|
|
1196
|
+
{ Py_tp_methods, reinterpret_cast<void*>(_methods_PlatformAutomaticAppSignInManager) },
|
|
1197
|
+
{ Py_tp_getset, reinterpret_cast<void*>(_getset_PlatformAutomaticAppSignInManager) },
|
|
1198
|
+
{ },
|
|
1199
|
+
};
|
|
1200
|
+
|
|
1201
|
+
static PyType_Spec type_spec_PlatformAutomaticAppSignInManager =
|
|
1202
|
+
{
|
|
1203
|
+
"winrt._winrt_windows_system_profile.PlatformAutomaticAppSignInManager",
|
|
1204
|
+
0,
|
|
1205
|
+
0,
|
|
1206
|
+
Py_TPFLAGS_DEFAULT,
|
|
1207
|
+
_type_slots_PlatformAutomaticAppSignInManager
|
|
1208
|
+
};
|
|
1209
|
+
|
|
1210
|
+
static PyGetSetDef getset_PlatformAutomaticAppSignInManager_Static[] = {
|
|
1211
|
+
{ "policy", reinterpret_cast<getter>(PlatformAutomaticAppSignInManager_get_Policy), nullptr, nullptr, nullptr },
|
|
1212
|
+
{ }
|
|
1213
|
+
};
|
|
1214
|
+
|
|
1215
|
+
static PyMethodDef methods_PlatformAutomaticAppSignInManager_Static[] = {
|
|
1216
|
+
{ }
|
|
1217
|
+
};
|
|
1218
|
+
|
|
1219
|
+
static PyType_Slot type_slots_PlatformAutomaticAppSignInManager_Static[] =
|
|
1220
|
+
{
|
|
1221
|
+
{ Py_tp_base, reinterpret_cast<void*>(&PyType_Type) },
|
|
1222
|
+
{ Py_tp_getset, reinterpret_cast<void*>(getset_PlatformAutomaticAppSignInManager_Static) },
|
|
1223
|
+
{ Py_tp_methods, reinterpret_cast<void*>(methods_PlatformAutomaticAppSignInManager_Static) },
|
|
1224
|
+
{ }
|
|
1225
|
+
};
|
|
1226
|
+
|
|
1227
|
+
static PyType_Spec type_spec_PlatformAutomaticAppSignInManager_Static =
|
|
1228
|
+
{
|
|
1229
|
+
"winrt._winrt_windows_system_profile.PlatformAutomaticAppSignInManager_Static",
|
|
1230
|
+
static_cast<int>(PyType_Type.tp_basicsize),
|
|
1231
|
+
static_cast<int>(PyType_Type.tp_itemsize),
|
|
1232
|
+
Py_TPFLAGS_DEFAULT,
|
|
1233
|
+
type_slots_PlatformAutomaticAppSignInManager_Static
|
|
1234
|
+
};
|
|
1235
|
+
|
|
1157
1236
|
// ----- PlatformDiagnosticsAndUsageDataSettings class --------------------
|
|
1158
1237
|
|
|
1159
1238
|
static PyObject* _new_PlatformDiagnosticsAndUsageDataSettings(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
|
|
@@ -2390,6 +2469,17 @@ PyMODINIT_FUNC PyInit__winrt_windows_system_profile(void) noexcept
|
|
|
2390
2469
|
return nullptr;
|
|
2391
2470
|
}
|
|
2392
2471
|
|
|
2472
|
+
py::pyobj_handle type_PlatformAutomaticAppSignInManager_Static{PyType_FromSpec(&type_spec_PlatformAutomaticAppSignInManager_Static)};
|
|
2473
|
+
if (!type_PlatformAutomaticAppSignInManager_Static)
|
|
2474
|
+
{
|
|
2475
|
+
return nullptr;
|
|
2476
|
+
}
|
|
2477
|
+
|
|
2478
|
+
if (py::register_python_type(module.get(), &type_spec_PlatformAutomaticAppSignInManager, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_PlatformAutomaticAppSignInManager_Static.get())) == -1)
|
|
2479
|
+
{
|
|
2480
|
+
return nullptr;
|
|
2481
|
+
}
|
|
2482
|
+
|
|
2393
2483
|
py::pyobj_handle type_PlatformDiagnosticsAndUsageDataSettings_Static{PyType_FromSpec(&type_spec_PlatformDiagnosticsAndUsageDataSettings_Static)};
|
|
2394
2484
|
if (!type_PlatformDiagnosticsAndUsageDataSettings_Static)
|
|
2395
2485
|
{
|
|
@@ -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", "
|
|
4
|
+
requires = ["setuptools", "winrt-sdk"]
|
|
5
5
|
build-backend = "setuptools.build_meta"
|
|
6
6
|
|
|
7
7
|
[project]
|
|
@@ -30,7 +30,7 @@ dependencies = { file = "requirements.txt" }
|
|
|
30
30
|
optional-dependencies.all = { file = "all-requirements.txt" }
|
|
31
31
|
|
|
32
32
|
[tool.setuptools.package-data]
|
|
33
|
-
|
|
33
|
+
"*" = ["*.pyi", "py.typed"]
|
|
34
34
|
|
|
35
35
|
[tool.cibuildwheel]
|
|
36
36
|
# use local winrt-sdk build dependency
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.0.1
|
{winrt-Windows.System.Profile-2.0.0b2 → winrt_windows_system_profile-2.0.1}/requirements.txt
RENAMED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.0.
|
|
3
|
+
winrt-runtime==2.0.1
|
|
@@ -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_profile",
|
|
26
|
+
sources=["py.Windows.System.Profile.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.
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
|
|
2
2
|
|
|
3
3
|
import datetime
|
|
4
4
|
import sys
|
|
@@ -14,7 +14,7 @@ import winrt.windows.foundation.collections
|
|
|
14
14
|
import winrt.windows.storage.streams
|
|
15
15
|
import winrt.windows.system
|
|
16
16
|
|
|
17
|
-
from winrt.windows.system.profile import PlatformDataCollectionLevel, SystemIdentificationSource, SystemOutOfBoxExperienceState, UnsupportedAppRequirementReasons
|
|
17
|
+
from winrt.windows.system.profile import PlatformAutomaticAppSignInPolicy, PlatformDataCollectionLevel, SystemIdentificationSource, SystemOutOfBoxExperienceState, UnsupportedAppRequirementReasons
|
|
18
18
|
|
|
19
19
|
Self = typing.TypeVar('Self')
|
|
20
20
|
|
|
@@ -133,6 +133,16 @@ class KnownRetailInfoProperties(winrt.system.Object, metaclass=KnownRetailInfoPr
|
|
|
133
133
|
@staticmethod
|
|
134
134
|
def _from(obj: winrt.system.Object, /) -> KnownRetailInfoProperties: ...
|
|
135
135
|
|
|
136
|
+
@typing.final
|
|
137
|
+
class PlatformAutomaticAppSignInManager_Static(type):
|
|
138
|
+
@_property
|
|
139
|
+
def policy(cls) -> PlatformAutomaticAppSignInPolicy: ...
|
|
140
|
+
|
|
141
|
+
@typing.final
|
|
142
|
+
class PlatformAutomaticAppSignInManager(winrt.system.Object, metaclass=PlatformAutomaticAppSignInManager_Static):
|
|
143
|
+
@staticmethod
|
|
144
|
+
def _from(obj: winrt.system.Object, /) -> PlatformAutomaticAppSignInManager: ...
|
|
145
|
+
|
|
136
146
|
@typing.final
|
|
137
147
|
class PlatformDiagnosticsAndUsageDataSettings_Static(type):
|
|
138
148
|
def can_collect_diagnostics(cls, level: PlatformDataCollectionLevel, /) -> bool: ...
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
|
|
2
2
|
|
|
3
3
|
import enum
|
|
4
4
|
|
|
@@ -6,6 +6,7 @@ import winrt.system
|
|
|
6
6
|
from winrt import _winrt_windows_system_profile
|
|
7
7
|
|
|
8
8
|
__all__ = [
|
|
9
|
+
"PlatformAutomaticAppSignInPolicy",
|
|
9
10
|
"PlatformDataCollectionLevel",
|
|
10
11
|
"SystemIdentificationSource",
|
|
11
12
|
"SystemOutOfBoxExperienceState",
|
|
@@ -17,6 +18,7 @@ __all__ = [
|
|
|
17
18
|
"HardwareIdentification",
|
|
18
19
|
"HardwareToken",
|
|
19
20
|
"KnownRetailInfoProperties",
|
|
21
|
+
"PlatformAutomaticAppSignInManager",
|
|
20
22
|
"PlatformDiagnosticsAndUsageDataSettings",
|
|
21
23
|
"RetailInfo",
|
|
22
24
|
"SharedModeSettings",
|
|
@@ -28,6 +30,11 @@ __all__ = [
|
|
|
28
30
|
"WindowsIntegrityPolicy",
|
|
29
31
|
]
|
|
30
32
|
|
|
33
|
+
class PlatformAutomaticAppSignInPolicy(enum.IntEnum):
|
|
34
|
+
UNKNOWN = 0
|
|
35
|
+
PERMISSION_REQUIRED = 1
|
|
36
|
+
ALWAYS_ALLOWED = 2
|
|
37
|
+
|
|
31
38
|
class PlatformDataCollectionLevel(enum.IntEnum):
|
|
32
39
|
SECURITY = 0
|
|
33
40
|
BASIC = 1
|
|
@@ -56,6 +63,7 @@ EducationSettings = _winrt_windows_system_profile.EducationSettings
|
|
|
56
63
|
HardwareIdentification = _winrt_windows_system_profile.HardwareIdentification
|
|
57
64
|
HardwareToken = _winrt_windows_system_profile.HardwareToken
|
|
58
65
|
KnownRetailInfoProperties = _winrt_windows_system_profile.KnownRetailInfoProperties
|
|
66
|
+
PlatformAutomaticAppSignInManager = _winrt_windows_system_profile.PlatformAutomaticAppSignInManager
|
|
59
67
|
PlatformDiagnosticsAndUsageDataSettings = _winrt_windows_system_profile.PlatformDiagnosticsAndUsageDataSettings
|
|
60
68
|
RetailInfo = _winrt_windows_system_profile.RetailInfo
|
|
61
69
|
SharedModeSettings = _winrt_windows_system_profile.SharedModeSettings
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.System.Profile
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.1
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -12,7 +12,12 @@ 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.0.1
|
|
15
16
|
Provides-Extra: all
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.0.1; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.0.1; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.0.1; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.System[all]==2.0.1; extra == "all"
|
|
16
21
|
|
|
17
22
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
18
23
|
|
|
@@ -7,6 +7,7 @@ requirements.txt
|
|
|
7
7
|
setup.py
|
|
8
8
|
winrt/_winrt_windows_system_profile.pyi
|
|
9
9
|
winrt/windows/system/profile/__init__.py
|
|
10
|
+
winrt/windows/system/profile/py.typed
|
|
10
11
|
winrt_Windows.System.Profile.egg-info/PKG-INFO
|
|
11
12
|
winrt_Windows.System.Profile.egg-info/SOURCES.txt
|
|
12
13
|
winrt_Windows.System.Profile.egg-info/dependency_links.txt
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
|
|
2
|
-
|
|
3
|
-
winrt-Windows.Foundation[all]==2.0.0-beta.2
|
|
4
|
-
winrt-Windows.Foundation.Collections[all]==2.0.0-beta.2
|
|
5
|
-
winrt-Windows.Storage.Streams[all]==2.0.0-beta.2
|
|
6
|
-
winrt-Windows.System[all]==2.0.0-beta.2
|
|
@@ -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_profile",
|
|
10
|
-
sources=["py.Windows.System.Profile.cpp"],
|
|
11
|
-
include_dirs=get_include_dirs(),
|
|
12
|
-
extra_compile_args=["/std:c++20", "/permissive-"],
|
|
13
|
-
libraries=["windowsapp"],
|
|
14
|
-
)
|
|
15
|
-
],
|
|
16
|
-
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|