winrt-Windows.Management.Core 2.0.0b1__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.
@@ -0,0 +1,22 @@
1
+ Metadata-Version: 2.1
2
+ Name: winrt-Windows.Management.Core
3
+ Version: 2.0.0b1
4
+ Summary: Python projection of Windows Runtime (WinRT) APIs
5
+ License: MIT
6
+ Project-URL: Repository, https://github.com/pywrint/pywrinrt
7
+ Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
8
+ Classifier: Operating System :: Microsoft :: Windows
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: Programming Language :: Python :: Implementation :: CPython
11
+ Classifier: Intended Audience :: Developers
12
+ Requires-Python: <3.13,>=3.9
13
+ Description-Content-Type: text/markdown
14
+ Provides-Extra: all
15
+
16
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
17
+
18
+ # winrt-Windows.Management.Core
19
+
20
+ Windows Runtime (WinRT) APIs for for the `Windows.Management.Core` namespace.
21
+
22
+ This package provides the `winrt.windows.management.core` module.
@@ -0,0 +1,7 @@
1
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
2
+
3
+ # winrt-Windows.Management.Core
4
+
5
+ Windows Runtime (WinRT) APIs for for the `Windows.Management.Core` namespace.
6
+
7
+ This package provides the `winrt.windows.management.core` module.
@@ -0,0 +1,3 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
2
+
3
+ winrt-Windows.Storage[all]==2.0.0-beta.1
@@ -0,0 +1,193 @@
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
2
+
3
+ #include "py.Windows.Management.Core.h"
4
+
5
+
6
+ namespace py::cpp::Windows::Management::Core
7
+ {
8
+ // ----- ApplicationDataManager class --------------------
9
+
10
+ static PyObject* _new_ApplicationDataManager(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
11
+ {
12
+ static_assert(py::py_type<winrt::Windows::Management::Core::ApplicationDataManager>::type_name);
13
+ py::set_invalid_activation_error(py::py_type<winrt::Windows::Management::Core::ApplicationDataManager>::type_name);
14
+ return nullptr;
15
+ }
16
+
17
+ static void _dealloc_ApplicationDataManager(py::wrapper::Windows::Management::Core::ApplicationDataManager* self) noexcept
18
+ {
19
+ auto tp = Py_TYPE(self);
20
+ std::destroy_at(&self->obj);
21
+ tp->tp_free(self);
22
+ Py_DECREF(tp);
23
+ }
24
+
25
+ static PyObject* ApplicationDataManager_CreateForPackageFamily(PyObject* /*unused*/, PyObject* args) noexcept
26
+ {
27
+ auto arg_count = PyTuple_Size(args);
28
+
29
+ if (arg_count == 1)
30
+ {
31
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Management.Core.ApplicationDataManager", L"CreateForPackageFamily", 1))
32
+ {
33
+ py::set_arg_count_version_error(1);
34
+ return nullptr;
35
+ }
36
+
37
+ try
38
+ {
39
+ auto param0 = py::convert_to<winrt::hstring>(args, 0);
40
+
41
+ return py::convert(winrt::Windows::Management::Core::ApplicationDataManager::CreateForPackageFamily(param0));
42
+ }
43
+ catch (...)
44
+ {
45
+ py::to_PyErr();
46
+ return nullptr;
47
+ }
48
+ }
49
+ else
50
+ {
51
+ py::set_invalid_arg_count_error(arg_count);
52
+ return nullptr;
53
+ }
54
+ }
55
+
56
+ static PyObject* _assign_array_ApplicationDataManager(PyObject* /*unused*/, PyObject* arg) noexcept
57
+ {
58
+ auto array = std::make_unique<py::ComArray<winrt::Windows::Management::Core::ApplicationDataManager>>();
59
+ if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
60
+ {
61
+ return nullptr;
62
+ }
63
+ Py_RETURN_NONE;
64
+ }
65
+
66
+ static PyObject* _from_ApplicationDataManager(PyObject* /*unused*/, PyObject* arg) noexcept
67
+ {
68
+ try
69
+ {
70
+ auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
71
+ return py::convert(return_value.as<winrt::Windows::Management::Core::ApplicationDataManager>());
72
+ }
73
+ catch (...)
74
+ {
75
+ py::to_PyErr();
76
+ return nullptr;
77
+ }
78
+ }
79
+
80
+ static PyMethodDef _methods_ApplicationDataManager[] = {
81
+ { "_assign_array_", _assign_array_ApplicationDataManager, METH_O | METH_STATIC, nullptr },
82
+ { "_from", reinterpret_cast<PyCFunction>(_from_ApplicationDataManager), METH_O | METH_STATIC, nullptr },
83
+ { }
84
+ };
85
+
86
+ static PyGetSetDef _getset_ApplicationDataManager[] = {
87
+ { }
88
+ };
89
+
90
+ static PyType_Slot _type_slots_ApplicationDataManager[] =
91
+ {
92
+ { Py_tp_new, reinterpret_cast<void*>(_new_ApplicationDataManager) },
93
+ { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_ApplicationDataManager) },
94
+ { Py_tp_methods, reinterpret_cast<void*>(_methods_ApplicationDataManager) },
95
+ { Py_tp_getset, reinterpret_cast<void*>(_getset_ApplicationDataManager) },
96
+ { },
97
+ };
98
+
99
+ static PyType_Spec type_spec_ApplicationDataManager =
100
+ {
101
+ "winrt._winrt_windows_management_core.ApplicationDataManager",
102
+ sizeof(py::wrapper::Windows::Management::Core::ApplicationDataManager),
103
+ 0,
104
+ Py_TPFLAGS_DEFAULT,
105
+ _type_slots_ApplicationDataManager
106
+ };
107
+
108
+ static PyGetSetDef getset_ApplicationDataManager_Static[] = {
109
+ { }
110
+ };
111
+
112
+ static PyMethodDef methods_ApplicationDataManager_Static[] = {
113
+ { "create_for_package_family", reinterpret_cast<PyCFunction>(ApplicationDataManager_CreateForPackageFamily), METH_VARARGS, nullptr },
114
+ { }
115
+ };
116
+
117
+ static PyType_Slot type_slots_ApplicationDataManager_Static[] =
118
+ {
119
+ { Py_tp_base, reinterpret_cast<void*>(&PyType_Type) },
120
+ { Py_tp_getset, reinterpret_cast<void*>(getset_ApplicationDataManager_Static) },
121
+ { Py_tp_methods, reinterpret_cast<void*>(methods_ApplicationDataManager_Static) },
122
+ { }
123
+ };
124
+
125
+ static PyType_Spec type_spec_ApplicationDataManager_Static =
126
+ {
127
+ "winrt._winrt_windows_management_core.ApplicationDataManager_Static",
128
+ static_cast<int>(PyType_Type.tp_basicsize),
129
+ static_cast<int>(PyType_Type.tp_itemsize),
130
+ Py_TPFLAGS_DEFAULT,
131
+ type_slots_ApplicationDataManager_Static
132
+ };
133
+
134
+ // ----- Windows.Management.Core Initialization --------------------
135
+ PyDoc_STRVAR(module_doc, "Windows::Management::Core");
136
+
137
+
138
+ static PyModuleDef module_def
139
+ = {PyModuleDef_HEAD_INIT,
140
+ "_winrt_windows_management_core",
141
+ module_doc,
142
+ 0,
143
+ nullptr,
144
+ nullptr,
145
+ nullptr,
146
+ nullptr,
147
+ nullptr};
148
+
149
+ } // py::cpp::Windows::Management::Core
150
+
151
+ PyMODINIT_FUNC PyInit__winrt_windows_management_core(void) noexcept
152
+ {
153
+ using namespace py::cpp::Windows::Management::Core;
154
+
155
+ if (py::import_winrt_runtime() == -1)
156
+ {
157
+ return nullptr;
158
+ }
159
+
160
+ py::pyobj_handle module{PyModule_Create(&module_def)};
161
+
162
+ if (!module)
163
+ {
164
+ return nullptr;
165
+ }
166
+
167
+ auto object_type = py::get_object_type();
168
+ if (!object_type)
169
+ {
170
+ return nullptr;
171
+ }
172
+
173
+ py::pyobj_handle object_bases{PyTuple_Pack(1, object_type)};
174
+
175
+ if (!object_bases)
176
+ {
177
+ return nullptr;
178
+ }
179
+
180
+ py::pyobj_handle type_ApplicationDataManager_Static{PyType_FromSpec(&type_spec_ApplicationDataManager_Static)};
181
+ if (!type_ApplicationDataManager_Static)
182
+ {
183
+ return nullptr;
184
+ }
185
+
186
+ if (py::register_python_type(module.get(), &type_spec_ApplicationDataManager, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_ApplicationDataManager_Static.get())) == -1)
187
+ {
188
+ return nullptr;
189
+ }
190
+
191
+
192
+ return module.detach();
193
+ }
@@ -0,0 +1,43 @@
1
+ # WARNING: Please don't edit this file. It was automatically generated.
2
+
3
+ [build-system]
4
+ requires = ["setuptools", "setuptools-scm", "winrt-sdk"]
5
+ build-backend = "setuptools.build_meta"
6
+
7
+ [project]
8
+ name = "winrt-Windows.Management.Core"
9
+ description = "Python projection of Windows Runtime (WinRT) APIs"
10
+ readme = "README.md"
11
+ license = { text = "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,<3.13"
20
+
21
+ [project.urls]
22
+ # Homepage = "https://github.com/pywrint/pywrinrt"
23
+ # Documentation = "https://readthedocs.org"
24
+ Repository = "https://github.com/pywrint/pywrinrt"
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.cibuildwheel]
33
+ # use local winrt-sdk build dependency
34
+ environment = { PYTHONPATH="../winrt-sdk/src" }
35
+ # don't install winrt-sdk from PyPI
36
+ build-frontend = { name = "build", args = ["--skip-dependency-check", "--no-isolation"] }
37
+ # don't build for PyPy
38
+ skip = "pp*"
39
+ # suppress warnings about ARM64 testing
40
+ test-skip = "*-win_arm64"
41
+
42
+ [tool.cibuildwheel.windows]
43
+ archs = ["x86", "AMD64", "ARM64"]
@@ -0,0 +1 @@
1
+ 2.0.0-beta.1
@@ -0,0 +1,3 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
2
+
3
+ winrt-runtime==2.0.0-beta.1
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,17 @@
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_management_core",
10
+ sources=["py.Windows.Management.Core.cpp"],
11
+ include_dirs=get_include_dirs(),
12
+ extra_compile_args=["/std:c++20", "/permissive-"],
13
+ libraries=["windowsapp"],
14
+ )
15
+ ],
16
+ package_data={"winrt": ["*.pyi"]},
17
+ )
@@ -0,0 +1,22 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
2
+
3
+ import datetime
4
+ import sys
5
+ import types
6
+ import typing
7
+ import uuid as _uuid
8
+ from builtins import property as _property
9
+
10
+ import winrt._winrt
11
+ import winrt.system
12
+ import winrt.windows.storage
13
+
14
+ Self = typing.TypeVar('Self')
15
+
16
+ class ApplicationDataManager_Static(type):
17
+ def create_for_package_family(cls, package_family_name: str, /) -> typing.Optional[winrt.windows.storage.ApplicationData]: ...
18
+
19
+ class ApplicationDataManager(winrt.system.Object, metaclass=ApplicationDataManager_Static):
20
+ @staticmethod
21
+ def _from(obj: winrt.system.Object, /) -> ApplicationDataManager: ...
22
+
@@ -0,0 +1,10 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
2
+
3
+ import winrt.system
4
+ from winrt import _winrt_windows_management_core
5
+
6
+ __all__ = [
7
+ "ApplicationDataManager",
8
+ ]
9
+
10
+ ApplicationDataManager = _winrt_windows_management_core.ApplicationDataManager
@@ -0,0 +1,22 @@
1
+ Metadata-Version: 2.1
2
+ Name: winrt-Windows.Management.Core
3
+ Version: 2.0.0b1
4
+ Summary: Python projection of Windows Runtime (WinRT) APIs
5
+ License: MIT
6
+ Project-URL: Repository, https://github.com/pywrint/pywrinrt
7
+ Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
8
+ Classifier: Operating System :: Microsoft :: Windows
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: Programming Language :: Python :: Implementation :: CPython
11
+ Classifier: Intended Audience :: Developers
12
+ Requires-Python: <3.13,>=3.9
13
+ Description-Content-Type: text/markdown
14
+ Provides-Extra: all
15
+
16
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
17
+
18
+ # winrt-Windows.Management.Core
19
+
20
+ Windows Runtime (WinRT) APIs for for the `Windows.Management.Core` namespace.
21
+
22
+ This package provides the `winrt.windows.management.core` module.
@@ -0,0 +1,14 @@
1
+ README.md
2
+ all-requirements.txt
3
+ py.Windows.Management.Core.cpp
4
+ pyproject.toml
5
+ pywinrt-version.txt
6
+ requirements.txt
7
+ setup.py
8
+ winrt/_winrt_windows_management_core.pyi
9
+ winrt/windows/management/core/__init__.py
10
+ winrt_Windows.Management.Core.egg-info/PKG-INFO
11
+ winrt_Windows.Management.Core.egg-info/SOURCES.txt
12
+ winrt_Windows.Management.Core.egg-info/dependency_links.txt
13
+ winrt_Windows.Management.Core.egg-info/requires.txt
14
+ winrt_Windows.Management.Core.egg-info/top_level.txt
@@ -0,0 +1,4 @@
1
+ winrt-runtime==2.0.0-beta.1
2
+
3
+ [all]
4
+ winrt-Windows.Storage[all]==2.0.0-beta.1