winrt-Windows.UI 2.0.0b1__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.
@@ -1,9 +1,10 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.UI
3
- Version: 2.0.0b1
3
+ Version: 2.0.1
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
- Project-URL: Repository, https://github.com/pywrint/pywrinrt
6
+ Project-URL: Documentation, https://pywinrt.readthedocs.io
7
+ Project-URL: Repository, https://github.com/pywinrt/pywinrt
7
8
  Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
8
9
  Classifier: Operating System :: Microsoft :: Windows
9
10
  Classifier: Programming Language :: Python :: 3
@@ -11,6 +12,7 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
11
12
  Classifier: Intended Audience :: Developers
12
13
  Requires-Python: <3.13,>=3.9
13
14
  Description-Content-Type: text/markdown
15
+ Requires-Dist: winrt-runtime==2.0.1
14
16
 
15
17
  <!-- warning: Please don't edit this file. It was automatically generated. -->
16
18
 
@@ -1,4 +1,4 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
2
2
 
3
3
  #include "py.Windows.UI.h"
4
4
 
@@ -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", "setuptools-scm", "winrt-sdk"]
4
+ requires = ["setuptools", "winrt-sdk"]
5
5
  build-backend = "setuptools.build_meta"
6
6
 
7
7
  [project]
@@ -19,15 +19,18 @@ dynamic = ["version", "dependencies"]
19
19
  requires-python = ">=3.9,<3.13"
20
20
 
21
21
  [project.urls]
22
- # Homepage = "https://github.com/pywrint/pywrinrt"
23
- # Documentation = "https://readthedocs.org"
24
- Repository = "https://github.com/pywrint/pywrinrt"
22
+ # Homepage = "https://github.com/pywinrt/pywinrt"
23
+ Documentation = "https://pywinrt.readthedocs.io"
24
+ Repository = "https://github.com/pywinrt/pywinrt"
25
25
  Changelog = "https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md"
26
26
 
27
27
  [tool.setuptools.dynamic]
28
28
  version = { file = "pywinrt-version.txt" }
29
29
  dependencies = { file = "requirements.txt" }
30
30
 
31
+ [tool.setuptools.package-data]
32
+ "*" = ["*.pyi", "py.typed"]
33
+
31
34
  [tool.cibuildwheel]
32
35
  # use local winrt-sdk build dependency
33
36
  environment = { PYTHONPATH="../winrt-sdk/src" }
@@ -0,0 +1 @@
1
+ 2.0.1
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
2
2
 
3
- winrt-runtime==2.0.0-beta.1
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_ui",
26
+ sources=["py.Windows.UI.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.0-beta.1
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
@@ -12,6 +12,7 @@ import winrt.system
12
12
 
13
13
  Self = typing.TypeVar('Self')
14
14
 
15
+ @typing.final
15
16
  class Color:
16
17
  a: winrt.system.UInt8
17
18
  r: winrt.system.UInt8
@@ -19,18 +20,22 @@ class Color:
19
20
  b: winrt.system.UInt8
20
21
  def __init__(self, a: winrt.system.UInt8, r: winrt.system.UInt8, g: winrt.system.UInt8, b: winrt.system.UInt8) -> None: ...
21
22
 
23
+ @typing.final
22
24
  class WindowId:
23
25
  value: winrt.system.UInt64
24
26
  def __init__(self, value: winrt.system.UInt64) -> None: ...
25
27
 
28
+ @typing.final
26
29
  class ColorHelper_Static(type):
27
30
  def from_argb(cls, a: winrt.system.UInt8, r: winrt.system.UInt8, g: winrt.system.UInt8, b: winrt.system.UInt8, /) -> Color: ...
28
31
  def to_display_name(cls, color: Color, /) -> str: ...
29
32
 
33
+ @typing.final
30
34
  class ColorHelper(winrt.system.Object, metaclass=ColorHelper_Static):
31
35
  @staticmethod
32
36
  def _from(obj: winrt.system.Object, /) -> ColorHelper: ...
33
37
 
38
+ @typing.final
34
39
  class Colors_Static(type):
35
40
  @_property
36
41
  def alice_blue(cls) -> Color: ...
@@ -315,16 +320,19 @@ class Colors_Static(type):
315
320
  @_property
316
321
  def yellow_green(cls) -> Color: ...
317
322
 
323
+ @typing.final
318
324
  class Colors(winrt.system.Object, metaclass=Colors_Static):
319
325
  @staticmethod
320
326
  def _from(obj: winrt.system.Object, /) -> Colors: ...
321
327
 
328
+ @typing.final
322
329
  class UIContentRoot(winrt.system.Object):
323
330
  @staticmethod
324
331
  def _from(obj: winrt.system.Object, /) -> UIContentRoot: ...
325
332
  @_property
326
333
  def u_i_context(self) -> typing.Optional[UIContext]: ...
327
334
 
335
+ @typing.final
328
336
  class UIContext(winrt.system.Object):
329
337
  @staticmethod
330
338
  def _from(obj: winrt.system.Object, /) -> UIContext: ...
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
2
2
 
3
3
  import winrt.system
4
4
  from winrt import _winrt_windows_ui
File without changes
@@ -1,9 +1,10 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.UI
3
- Version: 2.0.0b1
3
+ Version: 2.0.1
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
- Project-URL: Repository, https://github.com/pywrint/pywrinrt
6
+ Project-URL: Documentation, https://pywinrt.readthedocs.io
7
+ Project-URL: Repository, https://github.com/pywinrt/pywinrt
7
8
  Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
8
9
  Classifier: Operating System :: Microsoft :: Windows
9
10
  Classifier: Programming Language :: Python :: 3
@@ -11,6 +12,7 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
11
12
  Classifier: Intended Audience :: Developers
12
13
  Requires-Python: <3.13,>=3.9
13
14
  Description-Content-Type: text/markdown
15
+ Requires-Dist: winrt-runtime==2.0.1
14
16
 
15
17
  <!-- warning: Please don't edit this file. It was automatically generated. -->
16
18
 
@@ -6,6 +6,7 @@ requirements.txt
6
6
  setup.py
7
7
  winrt/_winrt_windows_ui.pyi
8
8
  winrt/windows/ui/__init__.py
9
+ winrt/windows/ui/py.typed
9
10
  winrt_Windows.UI.egg-info/PKG-INFO
10
11
  winrt_Windows.UI.egg-info/SOURCES.txt
11
12
  winrt_Windows.UI.egg-info/dependency_links.txt
@@ -0,0 +1 @@
1
+ winrt-runtime==2.0.1
@@ -1 +0,0 @@
1
- 2.0.0-beta.1
@@ -1,17 +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_ui",
10
- sources=["py.Windows.UI.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
- )
@@ -1 +0,0 @@
1
- winrt-runtime==2.0.0-beta.1