From 2665ba7f781fb071941cb3b98f31b63eb19ef3c2 Mon Sep 17 00:00:00 2001 From: JalinWang Date: Fri, 3 Apr 2026 11:28:42 +0800 Subject: [PATCH] clean up --- pyproject.toml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index c45b39e..c7125a3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -189,9 +189,13 @@ environment = { CMAKE_GENERATOR = "Unix Makefiles", CMAKE_BUILD_PARALLEL_LEVEL = [tool.cibuildwheel.windows] archs = ["auto64"] -test-command = "cd /d {project} && pytest python/tests -v --tb=short --basetemp=./.pytest_tmp && if exist .pytest_tmp rmdir /s /q .pytest_tmp" +test-command = "cd /d {project} && pytest python/tests -v --tb=short --basetemp=./.pytest_tmp" environment = { CMAKE_GENERATOR = "Ninja" } -config-settings = { build-dir = "build/{wheel_tag}" } +#config-settings = { build-dir = "build/{wheel_tag}" } +#&& if exist .pytest_tmp rmdir /s /q .pytest_tmp" +before-build = [ + "python -c \"import shutil, glob, os; [shutil.rmtree(p, ignore_errors=True) for p in ['build', '.pytest_tmp']];\"" +] ###################################################################################################### # CODE QUALITY & FORMATTING (Ruff)