From d88dc49e440af8d5f6038f2510850259aeeaed88 Mon Sep 17 00:00:00 2001 From: Jorrick Sleijster Date: Fri, 21 Jun 2024 03:54:05 +0200 Subject: [PATCH] [python-package] Change build settings to set strict-config to false (#6493) --- .github/workflows/cuda.yml | 1 + .github/workflows/python_package.yml | 1 + .vsts-ci.yml | 1 + python-package/pyproject.toml | 2 +- 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cuda.yml b/.github/workflows/cuda.yml index a6005ec0344b..735bcef4a0d7 100644 --- a/.github/workflows/cuda.yml +++ b/.github/workflows/cuda.yml @@ -72,6 +72,7 @@ jobs: OS_NAME: linux PYTHON_VERSION: ${{ matrix.python_version }} TASK: ${{ matrix.task }} + SKBUILD_STRICT_CONFIG: true options: --gpus all timeout-minutes: 30 strategy: diff --git a/.github/workflows/python_package.yml b/.github/workflows/python_package.yml index 035340e2ec1b..cd16696336c7 100644 --- a/.github/workflows/python_package.yml +++ b/.github/workflows/python_package.yml @@ -15,6 +15,7 @@ concurrency: env: CMAKE_BUILD_PARALLEL_LEVEL: 4 + SKBUILD_STRICT_CONFIG: true jobs: test: diff --git a/.vsts-ci.yml b/.vsts-ci.yml index 2b1cdaa4058c..169b04fffe13 100644 --- a/.vsts-ci.yml +++ b/.vsts-ci.yml @@ -15,6 +15,7 @@ variables: skipComponentGovernanceDetection: true DOTNET_CLI_TELEMETRY_OPTOUT: true DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true + SKBUILD_STRICT_CONFIG: true resources: # The __work/ directory, where Azure DevOps writes the source files, needs to be read-write because # LightGBM's CI jobs write files in the source directory. diff --git a/python-package/pyproject.toml b/python-package/pyproject.toml index 3f016a841f80..39fc6d8f0566 100644 --- a/python-package/pyproject.toml +++ b/python-package/pyproject.toml @@ -79,7 +79,7 @@ logging.level = "INFO" sdist.reproducible = true wheel.py-api = "py3" experimental = false -strict-config = true +strict-config = false minimum-version = "0.9.3" # end:build-system