winrt-runtime 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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-runtime
3
- Version: 2.0.0b2
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
@@ -106,7 +106,7 @@ namespace py::cpp::_winrt
106
106
  PyObject* arg0;
107
107
  PyObject* arg1 = nullptr;
108
108
 
109
- if (PyArg_UnpackTuple(args, "Array", 1, 2, &arg0, &arg1) < 0)
109
+ if (!PyArg_UnpackTuple(args, "Array", 1, 2, &arg0, &arg1))
110
110
  {
111
111
  return nullptr;
112
112
  }
@@ -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]
@@ -31,7 +31,7 @@ version = { file = "pywinrt-version.txt" }
31
31
  where = ["src"]
32
32
 
33
33
  [tool.setuptools.package-data]
34
- winrt = ["*.pyi", "py.typed"]
34
+ "*" = ["*.pyi", "py.typed"]
35
35
 
36
36
  [tool.cibuildwheel]
37
37
  # use local winrt-sdk build dependency
@@ -45,3 +45,4 @@ test-skip = "*-win_arm64"
45
45
 
46
46
  [tool.cibuildwheel.windows]
47
47
  archs = ["x86", "AMD64", "ARM64"]
48
+ repair-wheel-command = "python scripts/add_dlls.py {wheel} {dest_dir}"
@@ -0,0 +1 @@
1
+ 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",
26
+ sources=["_winrt.cpp", "_winrt_array.cpp", "runtime.cpp"],
27
+ include_dirs=get_include_dirs(),
28
+ libraries=["windowsapp"],
29
+ )
30
+ ],
31
+ )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-runtime
3
- Version: 2.0.0b2
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
@@ -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",
10
- sources=["_winrt.cpp", "_winrt_array.cpp", "runtime.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