Type object
File match conda-forge.yml
Schema URL https://catalog.lintel.tools/schemas/schemastore/conda-forge/latest.json
Source https://raw.githubusercontent.com/conda-forge/conda-smithy/main/conda_smithy/data/conda-forge.json

Validate with Lintel

npx @lintel/lintel check
Type: object

This model describes in detail the top-level fields in conda-forge.yml. General configuration options are described below within the Fields specifications. Additional examples are provided as part of the object description. Values and options are subject to change, and will be flagged as Deprecated as appropriate.

Properties

conda_build CondaBuildConfig | null

Settings in this block are used to control how conda build runs and produces artifacts. An example of the such configuration is:

conda_build:
    pkg_format: 2
    zstd_compression_level: 16
    error_overlinking: False
linter LinterConfig | null

Settings in this block are used to control how conda smithy lints An example of the such configuration is:

linter:
    skip:
        - lint_noarch_selectors
conda_build_tool string | null

Use this option to choose which tool is used to build your recipe.

Default: "conda-build"
conda_install_tool string | null

Use this option to choose which tool is used to provision the tooling in your feedstock. Defaults to micromamba.

If conda or mamba are chosen, the latest Miniforge will be used to provision the base environment. If micromamba or pixi are chosen, Miniforge is not involved; the environment is created directly by micromamba or pixi.

Default: "micromamba"
conda_forge_output_validation boolean | null

This field must be set to True for feedstocks in the conda-forge GitHub organization. It enables the required feedstock artifact validation as described in Output Validation and Feedstock Tokens.

Default: false
conda_solver string | Nullable | null

Choose which conda solver plugin to use for feedstock builds.

Default: "libmamba"
github GithubConfig | null

Mapping for GitHub-specific configuration options. The defaults are as follows:

github:
    user_or_org: conda-forge
    repo_name: "my_repo"
    branch_name: main
    tooling_branch_name: main
Default:
{}
build_platform build_platform | null

This is a mapping from the target platform to the build platform for the package to be built. For example, the following builds a osx-64 package on the linux-64 build platform using cross-compiling.

build_platform:
    osx_64: linux_64

Leaving this field empty implicitly requests to build a package natively. i.e.

build_platform:
    linux_64: linux_64
    linux_ppc64le: linux_ppc64le
    linux_aarch64: linux_aarch64
    osx_64: osx_64
    osx_arm64: osx_arm64
    win_64: win_64
channel_priority ChannelPriorityConfig | null

The channel priority level for the conda solver during feedstock builds. For extra information, see the Strict channel priority section on conda documentation.

Default: "strict"
choco string[] | null

This parameter allows for conda-smithy to run chocoloatey installs on Windows when additional system packages are needed. This is a list of strings that represent package names and any additional parameters. For example,

choco:
    # install a package
    - nvidia-display-driver

    # install a package with a specific version
    - cuda --version=11.0.3

This is currently only implemented for Azure Pipelines. The command that is run is choco install {entry} -fdv -y --debug. That is, choco install is executed with a standard set of additional flags that are useful on CI.

docker CondaForgeDocker | null

This is a mapping for Docker-specific configuration options. Some options are

docker:
    executable: docker
    command: "bash"
idle_timeout_minutes integer | Nullable | null

Configurable idle timeout. Used for packages that don't have chatty enough builds. Applicable only to circleci and travis.

idle_timeout_minutes: 60
Default: null
noarch_platforms Platforms | Platforms[] | null

Platforms on which to build noarch packages. The preferred default is a single build on linux_64.

noarch_platforms: linux_64

To build on multiple platforms, e.g. for simple packages with platform-specific dependencies, provide a list.

noarch_platforms:
  - linux_64
  - win_64
os_version os_version | null

This key is used to set the OS versions for linux_* platforms. Valid entries map a linux platform and arch to either alma9, alma8 or cos7. For CUDA 11.8 images, a choice equivalent to alma8 is ubi8.

Currently alma9 is the default, though alma10 is available for opt-in where necessary. rocky10 may be added in the future.

Note that the image version does not imply a matching glibc requirement (which can be set using c_stdlib_version in recipe/conda_build_config.yaml).

If you need to opt into older images, here's an example how to do it:

os_version:
    linux_64: cos7
    linux_aarch64: cos7
    linux_ppc64le: cos7
provider provider | null

The provider field is a mapping from build platform (not target platform) to CI service. It determines which service handles each build platform. If a desired build platform is not available with a selected provider (either natively or with emulation), the build will be disabled. Use the build_platform field to manually specify cross-compilation when no providers offer a desired build platform.

The following are available as supported build platforms:

  • linux_64
  • osx_64
  • win_64
  • linux_aarch64
  • linux_ppc64le
  • linux_s390x
  • linux_armv7l

The following CI services are available:

  • azure
  • circle
  • travis
  • appveyor
  • None or False to disable a build platform.
  • default to choose an appropriate CI (only if available)
  • native to choose an appropriate CI for native compiling (only if available)
  • emulated to choose an appropriate CI for compiling inside an emulation of the target platform (only if available)

For example, making explicit that linux_64 & osx_64 build on azure (by default), and switching win_64 to Appveyor:

provider:
    linux_64: azure
    osx_64: azure
    win_64: appveyor

Currently, x86_64 platforms are enabled, but other build platforms are disabled by default. i.e. an empty provider entry is equivalent to the following:

provider:
    linux_64: azure
    osx_64: azure
    win_64: azure
    linux_ppc64le: None
    linux_aarch64: None

To enable linux_ppc64le and linux_aarch64 add the following:

provider:
    linux_ppc64le: default
    linux_aarch64: default
package string | Nullable | null

Default location for a package feedstock directory basename.

Default: null
recipe_dir string | null

The relative path to the recipe directory. The default is:

recipe_dir: recipe
Default: "recipe"
remote_ci_setup string | string[] | null

This option can be used to override the default conda-forge-ci-setup package. Can be given with ${url or channel_alias}::package_name, defaults to conda-forge channel_alias if no prefix is given.

remote_ci_setup: ["conda-forge-ci-setup=4", "conda-build>=24.1"]
shellcheck ShellCheck | Nullable | null

Shell scripts used for builds or activation scripts can be linted with shellcheck. This option can be used to enable shellcheck and configure its behavior. This is not enabled by default, but can be enabled like so:

shellcheck:
    enabled: True
skip_render string[] | null

This option specifies a list of files which conda smithy will skip rendering. This is useful for files that are not templates, but are still in the recipe directory. The default value is an empty list [], which will consider that all files can be rendered. For example, if you want to skip rendering the .gitignore and LICENSE.txt files, you can add the following:

skip_render:
    - .gitignore
    - LICENSE.txt
templates object | null

This is mostly an internal field for specifying where template files reside. You shouldn't need to modify it.

test_on_native_only boolean | null

This was used for disabling testing for cross-compiling.

This has been deprecated in favor of the top-level `test` field.
It is now mapped to `test: native_and_emulated`.
Default: false

This is used to configure on which platforms a recipe is tested.

test: native_and_emulated

Will do testing only if the platform is native or if there is an emulator.

test: native

Will do testing only if the platform is native.

Default: null
upload_on_branch string | Nullable | null

This parameter restricts uploading access on work from certain branches of the same repo. Only the branch listed in upload_on_branch will trigger uploading of packages to the target channel. The default is to skip this check if the key upload_on_branch is not in conda-forge.yml. To restrict uploads to the main branch:

upload_on_branch: main
Default: null
config_version string | null

The conda-smithy config version to be used for conda_build_config.yaml files in recipe and conda-forge-pinning. This should not be manually modified.

Default: "2"
exclusive_config_file string | Nullable | null

Exclusive conda-build config file to replace conda-forge-pinning. For advanced usage only.

Default: null
compiler_stack string | null

Compiler stack environment variable. This is used to specify the compiler stack to use for builds. Deprecated.

compiler_stack: comp7
Default: "comp7"
min_py_ver string | null

Minimum Python version. This is used to specify the minimum Python version to use for builds. Deprecated.

min_py_ver: 27
Default: "27"
max_py_ver string | null

Maximum Python version. This is used to specify the maximum Python version to use for builds. Deprecated.

max_py_ver: 37
Default: "37"
min_r_ver string | null

Minimum R version. This is used to specify the minimum R version to use for builds. Deprecated.

min_r_ver: 34
Default: "34"
max_r_ver string | null

Maximum R version. This is used to specify the maximum R version to use for builds. Deprecated.

max_r_ver: 34
Default: "34"
private_upload boolean | null

Whether to upload to a private channel.

private_upload: False
Default: false
secrets string[] | null

List of secrets to be used in GitHub Actions. The default is an empty list and will not be used.

clone_depth integer | Nullable | null

The depth of the git clone.

Default: null
travis object | null

Travis CI settings. This is usually read-only and should not normally be manually modified. Tools like conda-smithy may modify this, as needed.

circle object | null

Circle CI settings. This is usually read-only and should not normally be manually modified. Tools like conda-smithy may modify this, as needed.

appveyor object | null

AppVeyor CI settings. This is usually read-only and should not normally be manually modified. Tools like conda-smithy may modify this, as needed.

azure AzureConfig | null

Azure Pipelines CI settings. This is usually read-only and should not normally be manually modified. Tools like conda-smithy may modify this, as needed. For example:

azure:
    # flag for forcing the building all supported providers
    force: False
    # toggle for storing the conda build_artifacts directory (including the
    # built packages) as an Azure pipeline artifact that can be downloaded
    store_build_artifacts: False
    # toggle for freeing up some extra space on the default Azure Pipelines
    # linux image before running the Docker container for building
    free_disk_space: False
    # limit the amount of CI jobs running concurrently at a given time
    # each OS will get its proportional share of the configured value
    max_parallel: 25

Below is an example configuration for setting up a self-hosted Azure agent for Linux:

azure:
    settings_linux:
        pool:
            name: your_local_pool_name
            demands:
                - some_key -equals some_value
        workspace:
            clean: all
        strategy:
            maxParallel: 1

Below is an example configuration for adding a swapfile on an Azure agent for Linux and Windows:

azure:
    settings_linux:
        swapfile_size: 10GiB
    settings_win:
        variables:
            SET_PAGEFILE: 'True'

If you need more space on Windows, you can use C: at the cost of IO performance:

azure:
    settings_win:
        variables:
            CONDA_BLD_PATH: "C:\bld"
            MINIFORGE_HOME: "C:\Miniforge"
drone object | null

Drone CI settings. This is usually read-only and should not normally be manually modified. Tools like conda-smithy may modify this, as needed.

github_actions GithubActionsConfig | null

GitHub Actions CI settings. This is usually read-only and should not normally be manually modified. Tools like conda-smithy may modify this, as needed.

woodpecker object | null

Woodpecker CI settings. This is usually read-only and should not normally be manually modified. Tools like conda-smithy may modify this, as needed.

build_with_mambabuild boolean | null

build_with_mambabuild is deprecated, use conda_build_tool instead.

Default: true
matrix object | null

Build matrices were used to specify a set of build configurations to run for each package pinned dependency. This has been deprecated in favor of the provider field. More information can be found in the Build Matrices section of the conda-forge docs.

Definitions

AzureConfig object

This dictates the behavior of the Azure Pipelines CI service. It is a sub-mapping for Azure-specific configuration options. For more information and some variables specifications, see the [Azure Pipelines schema reference documentation]( https://learn.microsoft.com/en-us/azure/devops/pipelines/yaml-schema/?view=azure-pipelines).

force boolean | null

Force building all supported providers

Default: false
free_disk_space boolean | Nullable | string[] | null

Free up disk space before running the Docker container for building on Linux. The following components can be cleaned up: apt, cache, docker. When set to true, only apt and cache are cleaned up. Set it to the full list to clean up all components.

Default: false
max_parallel integer | null

Limit the amount of CI jobs running concurrently at a given time

Default: 50
project_id string | null

The ID of the Azure Pipelines project

Default: "84710dde-1620-425b-80d0-4cf5baca359d"
project_name string | null

The name of the Azure Pipelines project

Default: "feedstock-builds"
build_id integer | null

The build ID for the specific feedstock used for rendering the badges in the README file generated. When the value is None, conda-smithy will compute the build ID by calling the Azure API which requires a token for private azure projects.

Default: null
upload_packages boolean | null

Whether to upload the packages to Anaconda.org. Useful for testing.

Default: true
settings_linux object

This is the settings for runners.

5 nested properties
pool object | null

The pool of self-hosted runners, e.g. 'vmImage': 'ubuntu-latest'

swapfile_size string | Nullable | null

Swapfile size in GiB

Default: null
timeoutInMinutes integer | null

Timeout in minutes for the job

Default: 360
variables object | null

Variables

install_atl boolean | null

Whether to install ATL components for MSVC

Default: false
settings_osx object

This is the settings for runners.

5 nested properties
pool object | null

The pool of self-hosted runners, e.g. 'vmImage': 'ubuntu-latest'

swapfile_size string | Nullable | null

Swapfile size in GiB

Default: null
timeoutInMinutes integer | null

Timeout in minutes for the job

Default: 360
variables object | null

Variables

install_atl boolean | null

Whether to install ATL components for MSVC

Default: false
settings_win object

This is the settings for runners.

5 nested properties
pool object | null

The pool of self-hosted runners, e.g. 'vmImage': 'ubuntu-latest'

swapfile_size string | Nullable | null

Swapfile size in GiB

Default: null
timeoutInMinutes integer | null

Timeout in minutes for the job

Default: 360
variables object | null

Variables

install_atl boolean | null

Whether to install ATL components for MSVC

Default: false
user_or_org string | Nullable | null

The name of the Azure user or organization. Defaults to the value of github: user_or_org.

Default: null
store_build_artifacts boolean | null

Store the conda build_artifacts directory as an Azure pipeline artifact

Default: false
timeout_minutes integer | Nullable | null

The maximum amount of time (in minutes) that a job can run before it is automatically canceled

Default: null
AzureRunnerSettings object

This is the settings for runners.

pool object | null

The pool of self-hosted runners, e.g. 'vmImage': 'ubuntu-latest'

swapfile_size string | Nullable | null

Swapfile size in GiB

Default: null
timeoutInMinutes integer | null

Timeout in minutes for the job

Default: 360
variables object | null

Variables

install_atl boolean | null

Whether to install ATL components for MSVC

Default: false
CIservices string
ChannelPriorityConfig string
CondaBuildConfig object
pkg_format enum | null

The package version format for conda build.

Default: 2
zstd_compression_level integer | null

The compression level for the zstd compression algorithm for .conda artifacts. conda-forge uses a default value of 16 for a good compromise of performance and compression.

Default: 16
error_overlinking boolean | null

Enable error when shared libraries from transitive dependencies are directly linked to any executables or shared libraries in built packages. For more details, see the conda build documentation.

Default: false
CondaForgeDocker object
executable string | null

The executable for Docker

Default: "docker"
fallback_image string | null

The fallback image for Docker

Default: "quay.io/condaforge/linux-anvil-comp7"
command string | null

The command to run in Docker

Default: "bash"
interactive boolean | Nullable | null

Whether to run Docker in interactive mode

Default: null
DefaultTestPlatforms string
GithubActionsConfig object
artifact_retention_days integer | null

The number of days to retain artifacts

Default: 14
cancel_in_progress boolean | null

Whether to cancel jobs in the same build if one fails.

Default: true
free_disk_space boolean | Nullable | string[] | null

Free up disk space before running the Docker container for building on Linux. The following components can be cleaned up: apt, cache, docker. When set to true, only apt and cache are cleaned up. Set it to the full list to clean up all components.

Default: false
max_parallel integer | Nullable | null

The maximum number of jobs to run in parallel

Default: 50
resize_win_partitions boolean | null

Whether to resize partitions to use all space on Windows

Default: false
self_hosted boolean | null

Deprecated. Whether to use self-hosted runners. Use github_actions_labels in conda_build_config.yaml instead.

Default: false
store_build_artifacts boolean | null

Whether to store build artifacts

Default: false
timeout_minutes integer | null

The maximum amount of time (in minutes) that a job can run before it is automatically canceled

Default: 360
triggers array | null

Triggers for Github Actions. Defaults to push, pull_request, when not self-hosted and push when self-hosted

Default:
[]
upload_packages boolean | null

Whether to upload the packages to Anaconda.org. Useful for testing.

Default: true
GithubConfig object
user_or_org string | null

The name of the GitHub user or organization

Default: "conda-forge"
repo_name string | null

The name of the repository

Default: ""
branch_name string | null

The name of the branch to execute on

Default: "main"
tooling_branch_name string | null

The name of the branch to use for rerender+webservices github actions and conda-forge-ci-setup-feedstock references

Default: "main"
LinterConfig object
skip Lints[] | null

List of lints to skip

Lints string
Nullable enum

Created to avoid issue with schema validation of null values in lists or dicts.

Platforms string
ShellCheck object
enabled boolean

Whether to use shellcheck to lint shell scripts

Default: false
build_platform object
emscripten_wasm32 Platforms | null
Default: "emscripten_wasm32"
wasi_wasm32 Platforms | null
Default: "wasi_wasm32"
freebsd_64 Platforms | null
Default: "freebsd_64"
linux_32 Platforms | null
Default: "linux_32"
linux_64 Platforms | null
Default: "linux_64"
linux_aarch64 Platforms | null
Default: "linux_aarch64"
linux_armv6l Platforms | null
Default: "linux_armv6l"
linux_armv7l Platforms | null
Default: "linux_armv7l"
linux_ppc64 Platforms | null
Default: "linux_ppc64"
linux_ppc64le Platforms | null
Default: "linux_ppc64le"
linux_riscv64 Platforms | null
Default: "linux_riscv64"
linux_s390x Platforms | null
Default: "linux_s390x"
osx_64 Platforms | null
Default: "osx_64"
osx_arm64 Platforms | null
Default: "osx_arm64"
win_32 Platforms | null
Default: "win_32"
win_64 Platforms | null
Default: "win_64"
win_arm64 Platforms | null
Default: "win_arm64"
zos_z Platforms | null
Default: "zos_z"
os_version object
linux_32 string | null
Default: null
linux_64 string | null
Default: null
linux_aarch64 string | null
Default: null
linux_armv6l string | null
Default: null
linux_armv7l string | null
Default: null
linux_ppc64 string | null
Default: null
linux_ppc64le string | null
Default: null
linux_riscv64 string | null
Default: null
linux_s390x string | null
Default: null
provider object
linux CIservices[] | CIservices | boolean | Nullable | null
Default: null
win CIservices[] | CIservices | boolean | Nullable | null
Default: null
osx CIservices[] | CIservices | boolean | Nullable | null
Default: null
emscripten_wasm32 CIservices[] | CIservices | boolean | Nullable | null
Default: null
wasi_wasm32 CIservices[] | CIservices | boolean | Nullable | null
Default: null
freebsd_64 CIservices[] | CIservices | boolean | Nullable | null
Default: null
linux_32 CIservices[] | CIservices | boolean | Nullable | null
Default: null
linux_64 CIservices[] | CIservices | boolean | Nullable | null
Default: "github_actions"
linux_aarch64 CIservices[] | CIservices | boolean | Nullable | null
Default: null
linux_armv6l CIservices[] | CIservices | boolean | Nullable | null
Default: null
linux_armv7l CIservices[] | CIservices | boolean | Nullable | null
Default: null
linux_ppc64 CIservices[] | CIservices | boolean | Nullable | null
Default: null
linux_ppc64le CIservices[] | CIservices | boolean | Nullable | null
Default: null
linux_riscv64 CIservices[] | CIservices | boolean | Nullable | null
Default: null
linux_s390x CIservices[] | CIservices | boolean | Nullable | null
Default: null
osx_64 CIservices[] | CIservices | boolean | Nullable | null
Default: "azure"
osx_arm64 CIservices[] | CIservices | boolean | Nullable | null
Default: null
win_32 CIservices[] | CIservices | boolean | Nullable | null
Default: null
win_64 CIservices[] | CIservices | boolean | Nullable | null
Default: "azure"
win_arm64 CIservices[] | CIservices | boolean | Nullable | null
Default: null
zos_z CIservices[] | CIservices | boolean | Nullable | null
Default: null