Skip to content

Commit

Permalink
Update feedstock channel selection docs
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
jaimergp and carterbox committed Feb 26, 2024
1 parent 6cbd394 commit e9a7d19
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions docs/maintainer/conda_forge_yml.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
:::

<a id="choco"></a>

Expand Down

0 comments on commit e9a7d19

Please sign in to comment.