From c63cd64f78ed1e6b5c705e1ad76f79a7ef186c4f Mon Sep 17 00:00:00 2001 From: Alexandru Fikl Date: Sun, 28 Jun 2026 09:43:14 +0300 Subject: [PATCH 1/4] chore: bump pyright pythonVersion to 3.12 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index ec9768bb0..4176a3766 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -243,7 +243,7 @@ reportPrivateUsage = "hint" # we care about at this moment. # https://github.com/microsoft/pyright/issues/746 reportImportCycles = "none" -pythonVersion = "3.10" +pythonVersion = "3.12" pythonPlatform = "All" reportAny = "none" From c0e101d3cf1f03a57c5c2171ea9060e3072f15a8 Mon Sep 17 00:00:00 2001 From: Alexandru Fikl Date: Sun, 28 Jun 2026 09:56:34 +0300 Subject: [PATCH 2/4] feat: bump minimum cmake version --- scripts/build-ocl-windows.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/build-ocl-windows.sh b/scripts/build-ocl-windows.sh index ce23c154d..c74ef655d 100644 --- a/scripts/build-ocl-windows.sh +++ b/scripts/build-ocl-windows.sh @@ -8,14 +8,14 @@ git clone --branch v2022.01.04 https://github.com/KhronosGroup/OpenCL-ICD-Loader git clone --branch v2022.01.04 https://github.com/KhronosGroup/OpenCL-Headers -cmake -D CMAKE_INSTALL_PREFIX=./OpenCL-Headers/install -S ./OpenCL-Headers -B ./OpenCL-Headers/build +cmake -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -D CMAKE_INSTALL_PREFIX=./OpenCL-Headers/install -S ./OpenCL-Headers -B ./OpenCL-Headers/build cmake --build ./OpenCL-Headers/build --target install # if someone would like to try to create win32 wheels the below lines may be useful -# cmake -D CMAKE_PREFIX_PATH=${PWD}/OpenCL-Headers/install -DOPENCL_ICD_LOADER_HEADERS_DIR=${PWD}/OpenCL-Headers/install/include -S ./OpenCL-ICD-Loader -B ./OpenCL-ICD-Loader/build +# cmake -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -D CMAKE_PREFIX_PATH=${PWD}/OpenCL-Headers/install -DOPENCL_ICD_LOADER_HEADERS_DIR=${PWD}/OpenCL-Headers/install/include -S ./OpenCL-ICD-Loader -B ./OpenCL-ICD-Loader/build # cmake --build ./OpenCL-ICD-Loader/build --target install --config Release -cmake -D CMAKE_PREFIX_PATH=${PWD}/OpenCL-Headers/install -D OPENCL_ICD_LOADER_HEADERS_DIR=${PWD}/OpenCL-Headers/install/include -S ./OpenCL-ICD-Loader -B ./OpenCL-ICD-Loader/build2 -A x64 +cmake -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -D CMAKE_PREFIX_PATH=${PWD}/OpenCL-Headers/install -D OPENCL_ICD_LOADER_HEADERS_DIR=${PWD}/OpenCL-Headers/install/include -S ./OpenCL-ICD-Loader -B ./OpenCL-ICD-Loader/build2 -A x64 cmake --build ./OpenCL-ICD-Loader/build2 --target install --config Release echo "PyOpenCL wheel includes Khronos Group OpenCL-ICD-Loader which is licensed as below:" >> ${SCRIPT_DIR}/../LICENSE From 4e323cb22363386fe76175d642d23144fa92dace Mon Sep 17 00:00:00 2001 From: Alexandru Fikl Date: Sun, 28 Jun 2026 10:06:11 +0300 Subject: [PATCH 3/4] chore: ignore weird windows lib when repairing --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 4176a3766..926447e1e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -199,6 +199,7 @@ MACOSX_DEPLOYMENT_TARGET = "10.14" skip = [ "*-win32", ] +repair-wheel-command = "delvewheel repair -w {dest_dir} --exclude ext-ms-win-dx-dxdbhelper-l1-1-0.dll {wheel}" test-command = "" before-all = "bash {package}/scripts/build-ocl-windows.sh" From fdf6ad9f281197f8ee918c24889c1297a4eb040a Mon Sep 17 00:00:00 2001 From: Alexandru Fikl Date: Sun, 28 Jun 2026 09:42:06 +0300 Subject: [PATCH 4/4] chore: update baseline --- .basedpyright/baseline.json | 80 ++++++++++++++++--------------------- 1 file changed, 35 insertions(+), 45 deletions(-) diff --git a/.basedpyright/baseline.json b/.basedpyright/baseline.json index be117578a..6d920e136 100644 --- a/.basedpyright/baseline.json +++ b/.basedpyright/baseline.json @@ -962,34 +962,42 @@ } }, { - "code": "reportAssignmentType", + "code": "reportUnknownVariableType", "range": { - "startColumn": 12, - "endColumn": 27, + "startColumn": 8, + "endColumn": 15, "lineCount": 1 } }, { - "code": "reportUnknownVariableType", + "code": "reportUnknownArgumentType", "range": { - "startColumn": 4, - "endColumn": 9, + "startColumn": 29, + "endColumn": 36, "lineCount": 1 } }, { - "code": "reportUnknownMemberType", + "code": "reportUnknownArgumentType", + "range": { + "startColumn": 48, + "endColumn": 55, + "lineCount": 1 + } + }, + { + "code": "reportAssignmentType", "range": { "startColumn": 12, - "endColumn": 23, + "endColumn": 27, "lineCount": 1 } }, { - "code": "reportUnknownArgumentType", + "code": "reportArgumentType", "range": { - "startColumn": 11, - "endColumn": 16, + "startColumn": 8, + "endColumn": 28, "lineCount": 1 } }, @@ -2457,6 +2465,14 @@ "lineCount": 1 } }, + { + "code": "reportUnknownArgumentType", + "range": { + "startColumn": 37, + "endColumn": 40, + "lineCount": 1 + } + }, { "code": "reportUnknownVariableType", "range": { @@ -4243,6 +4259,14 @@ "lineCount": 1 } }, + { + "code": "reportArgumentType", + "range": { + "startColumn": 70, + "endColumn": 75, + "lineCount": 1 + } + }, { "code": "reportUnknownVariableType", "range": { @@ -4683,14 +4707,6 @@ "lineCount": 1 } }, - { - "code": "reportArgumentType", - "range": { - "startColumn": 59, - "endColumn": 69, - "lineCount": 1 - } - }, { "code": "reportUnknownArgumentType", "range": { @@ -18826,24 +18842,6 @@ } } ], - "./pyopencl/cltypes.py": [ - { - "code": "reportUnknownVariableType", - "range": { - "startColumn": 16, - "endColumn": 27, - "lineCount": 1 - } - }, - { - "code": "reportUnknownArgumentType", - "range": { - "startColumn": 36, - "endColumn": 81, - "lineCount": 1 - } - } - ], "./pyopencl/compyte/array.py": [ { "code": "reportUnknownParameterType", @@ -22775,14 +22773,6 @@ "lineCount": 1 } }, - { - "code": "reportCallIssue", - "range": { - "startColumn": 11, - "endColumn": 82, - "lineCount": 1 - } - }, { "code": "reportCallIssue", "range": {