Skip to content

Commit e9a7d19

Browse files
jaimergpcarterbox
andcommitted
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 <[email protected]>
1 parent 6cbd394 commit e9a7d19

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed

docs/maintainer/conda_forge_yml.md

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -241,22 +241,18 @@ allowed here.
241241

242242
### channels
243243

244-
This represents the channels to grab packages from during builds and
245-
which channels/labels to push to on anaconda.org after a package
246-
has been built. The `channels` variable is a mapping with
247-
`sources` and `targets`, as follows:
248-
249-
```yaml
250-
channels:
251-
# sources selects the channels to pull packages from, in order.
252-
sources:
253-
- conda-forge
254-
- defaults
255-
# targets is a list of 2-lists, where the first element is the
256-
# channel to push to and the second element is the label on that channel
257-
targets:
258-
- ["conda-forge", "main"]
244+
:::warning
245+
This parameter has been deprecated. Instead, specify channels in `recipe/conda_build_config.yaml`
246+
using `channel_sources` and `channel_targets`. Note that all channels go on a single
247+
line because each line represents a build variant.
248+
249+
```yaml title="recipe/conda_build_config.yaml"
250+
channel_sources:
251+
- mysourcechannel1,mysourcechannel2,conda-forge,defaults
252+
channel_targets:
253+
- target_channel target_label
259254
```
255+
:::
260256

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

0 commit comments

Comments
 (0)