tasks/build.properties.ps1
# <copyright file="build.properties.ps1" company="Endjin Limited"> # Copyright (c) Endjin Limited. All rights reserved. # </copyright> # Synopsis: When true, the build will assume that Python Poetry is already installed and available in the PATH. $SkipInstallPythonPoetry = [Convert]::ToBoolean((property ZF_BUILD_PYTHON_SKIP_INSTALL_POETRY $false)) # Synopsis: When true, the build will not run 'poetry install' to initialise the virtual environment. $SkipInitialisePythonPoetry = [Convert]::ToBoolean((property ZF_BUILD_PYTHON_SKIP_INIT_POETRY $false)) # Synopsis: When true, the build will assume that Python uv is already installed and available in the PATH. $SkipInstallPythonUv = [Convert]::ToBoolean((property ZF_BUILD_PYTHON_SKIP_INSTALL_UV $false)) # Synopsis: When true, the build will not run 'uv sync' to initialise the virtual environment. $SkipInitialisePythonUv = [Convert]::ToBoolean((property ZF_BUILD_PYTHON_SKIP_INIT_UV $false)) # Synopsis: When true, the build will not run the flake8 linter. $SkipRunFlake8 = [Convert]::ToBoolean((property ZF_BUILD_PYTHON_SKIP_RUN_FLAKE8 $false)) # Synopsis: The project/package manager to use for the Python project. Supported values are "poetry" or "uv". Default is "poetry". $PythonProjectManager = property ZF_BUILD_PYTHON_PROJECT_MANAGER "poetry" # Synopsis: The root path of the Python project. For example, this is used to locate the 'pyproject.toml' file. $PythonProjectDir = property ZF_BUILD_PYTHON_PROJECT_PATH "" # Synopsis: The path to where the Python source code is located. $PythonSourceDirectory = property ZF_BUILD_PYTHON_SRC_DIRECTORY "src" # Synopsis: The version of Python Poetry to install, if not already available. $PythonPoetryVersion = property POETRY_VERSION "" # Synopsis: The path to where Python Poetry is installed. By default the build will attempt to locate it via the PATH environment variable. $PoetryPath = property ZF_BUILD_PYTHON_POETRY_PATH ((Get-Command poetry -ErrorAction SilentlyContinue | Select-Object -ExpandProperty Path) ?? "") # Synopsis: The version of uv to use for the build. Default is the latest version. $PythonUvVersion = property ZF_BUILD_PYTHON_UV_VERSION "" # Synopsis: The arguments passed to the Python flake8 linter, override to customise its behaviour. $PythonFlake8Args = "-v" # Synopsis: Array of the default arguments passed to 'poetry install', override to customise its behaviour. $PoetryInstallArgs = @() # Synopsis: Array of the arguments passed to 'poetry install' when running on CI/CD servers, override to customise its behaviour. $PoetryInstallCicdArgs = @("--without", "dev") # Synopsis: Array of the default arguments passed to 'uv sync', override to customise its behaviour. $UvSyncArgs = @("--all-groups") # Synopsis: Array of the arguments passed to 'uv sync' when running on CI/CD servers, override to customise its behaviour. $UvSyncCicdArgs = @("--no-dev") |