winrt-Windows.Security.Authentication.OnlineId 3.0.0__tar.gz → 3.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (20) hide show
  1. {winrt_windows_security_authentication_onlineid-3.0.0 → winrt_windows_security_authentication_onlineid-3.2.0}/PKG-INFO +7 -7
  2. winrt_windows_security_authentication_onlineid-3.2.0/all-requirements.txt +5 -0
  3. {winrt_windows_security_authentication_onlineid-3.0.0 → winrt_windows_security_authentication_onlineid-3.2.0}/py.Windows.Security.Authentication.OnlineId.cpp +106 -7
  4. {winrt_windows_security_authentication_onlineid-3.0.0 → winrt_windows_security_authentication_onlineid-3.2.0}/pyproject.toml +2 -2
  5. winrt_windows_security_authentication_onlineid-3.2.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_security_authentication_onlineid-3.0.0 → winrt_windows_security_authentication_onlineid-3.2.0}/requirements.txt +2 -2
  7. {winrt_windows_security_authentication_onlineid-3.0.0 → winrt_windows_security_authentication_onlineid-3.2.0}/setup.py +2 -0
  8. {winrt_windows_security_authentication_onlineid-3.0.0 → winrt_windows_security_authentication_onlineid-3.2.0}/winrt/_winrt_windows_security_authentication_onlineid.pyi +1 -3
  9. {winrt_windows_security_authentication_onlineid-3.0.0 → winrt_windows_security_authentication_onlineid-3.2.0}/winrt/windows/security/authentication/onlineid/__init__.py +1 -1
  10. {winrt_windows_security_authentication_onlineid-3.0.0 → winrt_windows_security_authentication_onlineid-3.2.0}/winrt_Windows.Security.Authentication.OnlineId.egg-info/PKG-INFO +7 -7
  11. winrt_windows_security_authentication_onlineid-3.2.0/winrt_Windows.Security.Authentication.OnlineId.egg-info/requires.txt +6 -0
  12. winrt_windows_security_authentication_onlineid-3.0.0/all-requirements.txt +0 -5
  13. winrt_windows_security_authentication_onlineid-3.0.0/pywinrt-version.txt +0 -1
  14. winrt_windows_security_authentication_onlineid-3.0.0/winrt_Windows.Security.Authentication.OnlineId.egg-info/requires.txt +0 -6
  15. {winrt_windows_security_authentication_onlineid-3.0.0 → winrt_windows_security_authentication_onlineid-3.2.0}/README.md +0 -0
  16. {winrt_windows_security_authentication_onlineid-3.0.0 → winrt_windows_security_authentication_onlineid-3.2.0}/setup.cfg +0 -0
  17. {winrt_windows_security_authentication_onlineid-3.0.0 → winrt_windows_security_authentication_onlineid-3.2.0}/winrt/windows/security/authentication/onlineid/py.typed +0 -0
  18. {winrt_windows_security_authentication_onlineid-3.0.0 → winrt_windows_security_authentication_onlineid-3.2.0}/winrt_Windows.Security.Authentication.OnlineId.egg-info/SOURCES.txt +0 -0
  19. {winrt_windows_security_authentication_onlineid-3.0.0 → winrt_windows_security_authentication_onlineid-3.2.0}/winrt_Windows.Security.Authentication.OnlineId.egg-info/dependency_links.txt +0 -0
  20. {winrt_windows_security_authentication_onlineid-3.0.0 → winrt_windows_security_authentication_onlineid-3.2.0}/winrt_Windows.Security.Authentication.OnlineId.egg-info/top_level.txt +0 -0
@@ -1,8 +1,8 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: winrt-Windows.Security.Authentication.OnlineId
3
- Version: 3.0.0
3
+ Version: 3.2.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
- License: MIT
5
+ License-Expression: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
7
7
  Project-URL: Repository, https://github.com/pywinrt/pywinrt
8
8
  Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
@@ -12,11 +12,11 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
13
  Requires-Python: >=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==3.0.0
15
+ Requires-Dist: winrt-runtime==3.2.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==3.0.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.0.0; extra == "all"
19
- Requires-Dist: winrt-Windows.System[all]==3.0.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==3.2.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.2.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.System[all]==3.2.0; extra == "all"
20
20
 
21
21
  <!-- warning: Please don't edit this file. It was automatically generated. -->
22
22
 
@@ -0,0 +1,5 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.0
2
+
3
+ winrt-Windows.Foundation[all]==3.2.0
4
+ winrt-Windows.Foundation.Collections[all]==3.2.0
5
+ winrt-Windows.System[all]==3.2.0
@@ -1,4 +1,4 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.0
2
2
 
3
3
  #include "py.Windows.Security.Authentication.OnlineId.h"
4
4
 
@@ -1604,15 +1604,64 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
1604
1604
  }
1605
1605
  }
1606
1606
 
1607
- static PyObject* _await_SignOutUserOperation(py::wrapper::Windows::Security::Authentication::OnlineId::SignOutUserOperation* self) noexcept
1607
+ static PyObject* get_SignOutUserOperation(py::wrapper::Windows::Security::Authentication::OnlineId::SignOutUserOperation* self, PyObject* /*unused*/) noexcept
1608
1608
  {
1609
- return py::dunder_await(self->obj);
1609
+ if (winrt::impl::is_sta_thread())
1610
+ {
1611
+ PyErr_SetString(PyExc_RuntimeError, "Cannot call blocking method from single-threaded apartment.");
1612
+ return nullptr;
1613
+ }
1614
+
1615
+ try
1616
+ {
1617
+ auto _gil = py::release_gil();
1618
+ self->obj.get();
1619
+ }
1620
+ catch (...)
1621
+ {
1622
+ py::to_PyErr();
1623
+ return nullptr;
1624
+ }
1625
+
1626
+ Py_RETURN_NONE;
1627
+ }
1628
+
1629
+ static PyObject* wait_SignOutUserOperation(py::wrapper::Windows::Security::Authentication::OnlineId::SignOutUserOperation* self, PyObject* arg) noexcept
1630
+ {
1631
+ if (winrt::impl::is_sta_thread())
1632
+ {
1633
+ PyErr_SetString(PyExc_RuntimeError, "Cannot call blocking method from single-threaded apartment.");
1634
+ return nullptr;
1635
+ }
1636
+
1637
+ auto timeout = PyFloat_AsDouble(arg);
1638
+ if (timeout == -1.0 && PyErr_Occurred())
1639
+ {
1640
+ return nullptr;
1641
+ }
1642
+
1643
+ try
1644
+ {
1645
+ return py::convert([&]()
1646
+ {
1647
+ auto _gil = py::release_gil();
1648
+ auto duration = std::chrono::duration_cast<winrt::Windows::Foundation::TimeSpan>(std::chrono::duration<double>(timeout));
1649
+ return self->obj.wait_for(duration);
1650
+ }());
1651
+ }
1652
+ catch (...)
1653
+ {
1654
+ py::to_PyErr();
1655
+ return nullptr;
1656
+ }
1610
1657
  }
1611
1658
 
1612
1659
  static PyMethodDef _methods_SignOutUserOperation[] = {
1613
1660
  { "cancel", reinterpret_cast<PyCFunction>(SignOutUserOperation_Cancel), METH_VARARGS, nullptr },
1614
1661
  { "close", reinterpret_cast<PyCFunction>(SignOutUserOperation_Close), METH_VARARGS, nullptr },
1615
1662
  { "get_results", reinterpret_cast<PyCFunction>(SignOutUserOperation_GetResults), METH_VARARGS, nullptr },
1663
+ { "get", reinterpret_cast<PyCFunction>(get_SignOutUserOperation), METH_NOARGS, nullptr },
1664
+ { "wait", reinterpret_cast<PyCFunction>(wait_SignOutUserOperation), METH_O, nullptr },
1616
1665
  { "_assign_array_", _assign_array_SignOutUserOperation, METH_O | METH_STATIC, nullptr },
1617
1666
  { "_from", reinterpret_cast<PyCFunction>(_from_SignOutUserOperation), METH_O | METH_STATIC, nullptr },
1618
1667
  { }};
@@ -1629,7 +1678,7 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
1629
1678
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_SignOutUserOperation) },
1630
1679
  { Py_tp_methods, reinterpret_cast<void*>(_methods_SignOutUserOperation) },
1631
1680
  { Py_tp_getset, reinterpret_cast<void*>(_getset_SignOutUserOperation) },
1632
- { Py_am_await, reinterpret_cast<void*>(_await_SignOutUserOperation) },
1681
+ { Py_am_await, reinterpret_cast<void*>(py::await_async) },
1633
1682
  { }};
1634
1683
 
1635
1684
  static PyType_Spec type_spec_SignOutUserOperation = {
@@ -1961,15 +2010,65 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
1961
2010
  }
1962
2011
  }
1963
2012
 
1964
- static PyObject* _await_UserAuthenticationOperation(py::wrapper::Windows::Security::Authentication::OnlineId::UserAuthenticationOperation* self) noexcept
2013
+ static PyObject* get_UserAuthenticationOperation(py::wrapper::Windows::Security::Authentication::OnlineId::UserAuthenticationOperation* self, PyObject* /*unused*/) noexcept
1965
2014
  {
1966
- return py::dunder_await(self->obj);
2015
+ if (winrt::impl::is_sta_thread())
2016
+ {
2017
+ PyErr_SetString(PyExc_RuntimeError, "Cannot call blocking method from single-threaded apartment.");
2018
+ return nullptr;
2019
+ }
2020
+
2021
+ try
2022
+ {
2023
+ return py::convert([&]()
2024
+ {
2025
+ auto _gil = py::release_gil();
2026
+ return self->obj.get();
2027
+ }());
2028
+ }
2029
+ catch (...)
2030
+ {
2031
+ py::to_PyErr();
2032
+ return nullptr;
2033
+ }
2034
+ }
2035
+
2036
+ static PyObject* wait_UserAuthenticationOperation(py::wrapper::Windows::Security::Authentication::OnlineId::UserAuthenticationOperation* self, PyObject* arg) noexcept
2037
+ {
2038
+ if (winrt::impl::is_sta_thread())
2039
+ {
2040
+ PyErr_SetString(PyExc_RuntimeError, "Cannot call blocking method from single-threaded apartment.");
2041
+ return nullptr;
2042
+ }
2043
+
2044
+ auto timeout = PyFloat_AsDouble(arg);
2045
+ if (timeout == -1.0 && PyErr_Occurred())
2046
+ {
2047
+ return nullptr;
2048
+ }
2049
+
2050
+ try
2051
+ {
2052
+ return py::convert([&]()
2053
+ {
2054
+ auto _gil = py::release_gil();
2055
+ auto duration = std::chrono::duration_cast<winrt::Windows::Foundation::TimeSpan>(std::chrono::duration<double>(timeout));
2056
+ return self->obj.wait_for(duration);
2057
+ }());
2058
+ }
2059
+ catch (...)
2060
+ {
2061
+ py::to_PyErr();
2062
+ return nullptr;
2063
+ }
1967
2064
  }
1968
2065
 
1969
2066
  static PyMethodDef _methods_UserAuthenticationOperation[] = {
1970
2067
  { "cancel", reinterpret_cast<PyCFunction>(UserAuthenticationOperation_Cancel), METH_VARARGS, nullptr },
1971
2068
  { "close", reinterpret_cast<PyCFunction>(UserAuthenticationOperation_Close), METH_VARARGS, nullptr },
1972
2069
  { "get_results", reinterpret_cast<PyCFunction>(UserAuthenticationOperation_GetResults), METH_VARARGS, nullptr },
2070
+ { "get", reinterpret_cast<PyCFunction>(get_UserAuthenticationOperation), METH_NOARGS, nullptr },
2071
+ { "wait", reinterpret_cast<PyCFunction>(wait_UserAuthenticationOperation), METH_O, nullptr },
1973
2072
  { "_assign_array_", _assign_array_UserAuthenticationOperation, METH_O | METH_STATIC, nullptr },
1974
2073
  { "_from", reinterpret_cast<PyCFunction>(_from_UserAuthenticationOperation), METH_O | METH_STATIC, nullptr },
1975
2074
  { }};
@@ -1986,7 +2085,7 @@ namespace py::cpp::Windows::Security::Authentication::OnlineId
1986
2085
  { Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_UserAuthenticationOperation) },
1987
2086
  { Py_tp_methods, reinterpret_cast<void*>(_methods_UserAuthenticationOperation) },
1988
2087
  { Py_tp_getset, reinterpret_cast<void*>(_getset_UserAuthenticationOperation) },
1989
- { Py_am_await, reinterpret_cast<void*>(_await_UserAuthenticationOperation) },
2088
+ { Py_am_await, reinterpret_cast<void*>(py::await_async) },
1990
2089
  { }};
1991
2090
 
1992
2091
  static PyType_Spec type_spec_UserAuthenticationOperation = {
@@ -1,14 +1,14 @@
1
1
  # WARNING: Please don't edit this file. It was automatically generated.
2
2
 
3
3
  [build-system]
4
- requires = ["setuptools", "winrt-sdk"]
4
+ requires = ["setuptools>=78", "winrt-sdk"]
5
5
  build-backend = "setuptools.build_meta"
6
6
 
7
7
  [project]
8
8
  name = "winrt-Windows.Security.Authentication.OnlineId"
9
9
  description = "Python projection of Windows Runtime (WinRT) APIs"
10
10
  readme = "README.md"
11
- license = { text = "MIT" }
11
+ license = "MIT"
12
12
  classifiers = [
13
13
  "Operating System :: Microsoft :: Windows",
14
14
  "Programming Language :: Python :: 3",
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.0
2
2
 
3
- winrt-runtime==3.0.0
3
+ winrt-runtime==3.2.0
@@ -11,6 +11,8 @@ class build_ext_ex(build_ext):
11
11
  ext.extra_compile_args = ["/std:c++20", "/permissive-"]
12
12
  elif self.compiler.compiler_type == "mingw32":
13
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"]
14
16
  ext.extra_link_args = ["-loleaut32"]
15
17
  else:
16
18
  raise ValueError(f"Unsupported compiler: {self.compiler.compiler_type}")
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.0
2
2
 
3
3
  import datetime
4
4
  import sys
@@ -113,7 +113,6 @@ class OnlineIdSystemTicketResult(winrt.system.Object):
113
113
 
114
114
  @typing.final
115
115
  class SignOutUserOperation(winrt.system.Object, windows_foundation.IAsyncAction, windows_foundation.IAsyncInfo):
116
- def __await__(self) -> typing.Generator[typing.Any, None, None]: ...
117
116
  # System.Void Windows.Security.Authentication.OnlineId.SignOutUserOperation::Cancel()
118
117
  def cancel(self) -> None: ...
119
118
  # System.Void Windows.Security.Authentication.OnlineId.SignOutUserOperation::Close()
@@ -138,7 +137,6 @@ class SignOutUserOperation(winrt.system.Object, windows_foundation.IAsyncAction,
138
137
 
139
138
  @typing.final
140
139
  class UserAuthenticationOperation(winrt.system.Object, windows_foundation.IAsyncOperation[UserIdentity], windows_foundation.IAsyncInfo):
141
- def __await__(self) -> typing.Generator[typing.Any, None, UserIdentity]: ...
142
140
  # System.Void Windows.Security.Authentication.OnlineId.UserAuthenticationOperation::Cancel()
143
141
  def cancel(self) -> None: ...
144
142
  # System.Void Windows.Security.Authentication.OnlineId.UserAuthenticationOperation::Close()
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.0
2
2
 
3
3
  import enum
4
4
 
@@ -1,8 +1,8 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: winrt-Windows.Security.Authentication.OnlineId
3
- Version: 3.0.0
3
+ Version: 3.2.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
- License: MIT
5
+ License-Expression: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
7
7
  Project-URL: Repository, https://github.com/pywinrt/pywinrt
8
8
  Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
@@ -12,11 +12,11 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
13
  Requires-Python: >=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==3.0.0
15
+ Requires-Dist: winrt-runtime==3.2.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Foundation[all]==3.0.0; extra == "all"
18
- Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.0.0; extra == "all"
19
- Requires-Dist: winrt-Windows.System[all]==3.0.0; extra == "all"
17
+ Requires-Dist: winrt-Windows.Foundation[all]==3.2.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]==3.2.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.System[all]==3.2.0; extra == "all"
20
20
 
21
21
  <!-- warning: Please don't edit this file. It was automatically generated. -->
22
22
 
@@ -0,0 +1,6 @@
1
+ winrt-runtime==3.2.0
2
+
3
+ [all]
4
+ winrt-Windows.Foundation[all]==3.2.0
5
+ winrt-Windows.Foundation.Collections[all]==3.2.0
6
+ winrt-Windows.System[all]==3.2.0
@@ -1,5 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
2
-
3
- winrt-Windows.Foundation[all]==3.0.0
4
- winrt-Windows.Foundation.Collections[all]==3.0.0
5
- winrt-Windows.System[all]==3.0.0
@@ -1,6 +0,0 @@
1
- winrt-runtime==3.0.0
2
-
3
- [all]
4
- winrt-Windows.Foundation[all]==3.0.0
5
- winrt-Windows.Foundation.Collections[all]==3.0.0
6
- winrt-Windows.System[all]==3.0.0