From e9a7d1987b83b1a5f712ae53316588380704dbb0 Mon Sep 17 00:00:00 2001 From: jaimergp Date: Mon, 26 Feb 2024 15:50:05 +0100 Subject: [PATCH] Update feedstock channel selection docs Documentation for channel sources and targets are out of date. This setting is now managed in conda_build_config Related conda-forge/conda-smithy#897 https://github.com/conda-forge/conda-smithy/blob/9f81a068e8f23f2aae670469b473da786d49d8ef/README.md Co-authored-by: Daniel Ching --- docs/maintainer/conda_forge_yml.md | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/docs/maintainer/conda_forge_yml.md b/docs/maintainer/conda_forge_yml.md index 4a8ccbfc2f..42a8a7e431 100644 --- a/docs/maintainer/conda_forge_yml.md +++ b/docs/maintainer/conda_forge_yml.md @@ -241,22 +241,18 @@ allowed here. ### channels -This represents the channels to grab packages from during builds and -which channels/labels to push to on anaconda.org after a package -has been built. The `channels` variable is a mapping with -`sources` and `targets`, as follows: - -```yaml -channels: - # sources selects the channels to pull packages from, in order. - sources: - - conda-forge - - defaults - # targets is a list of 2-lists, where the first element is the - # channel to push to and the second element is the label on that channel - targets: - - ["conda-forge", "main"] +:::warning +This parameter has been deprecated. Instead, specify channels in `recipe/conda_build_config.yaml` +using `channel_sources` and `channel_targets`. Note that all channels go on a single +line because each line represents a build variant. + +```yaml title="recipe/conda_build_config.yaml" +channel_sources: + - mysourcechannel1,mysourcechannel2,conda-forge,defaults +channel_targets: + - target_channel target_label ``` +:::