The run_conda_forge_build_setup scripts read from conda-forge.yml to get the channel_priority, defaulting to strict if the setting is missing. But if conda-forge.yml is missing completely, the script would fail because shyaml does not return the default when there is no YAML to parse at all. This fixes that by ensuring that "strict" is returned in those cases as well.
While conda-forge.yml would never normally be missing, if https://github.com/conda-forge/conda-smithy/pull/1469 is merged then it becomes possible to put the feedstock configuration in another file. If that is done, then the existing scripts will fail. With this fix, that change to conda-smithy becomes usable, even though it would be impossible to override channel_priority (possibilities for doing this could be explored later, if necessary). At any rate, this change doesn't hurt and could provide some extra robustness.
[x] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase code>@<space/conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
The
run_conda_forge_build_setup
scripts read fromconda-forge.yml
to get thechannel_priority
, defaulting to strict if the setting is missing. But ifconda-forge.yml
is missing completely, the script would fail because shyaml does not return the default when there is no YAML to parse at all. This fixes that by ensuring that "strict" is returned in those cases as well.While
conda-forge.yml
would never normally be missing, if https://github.com/conda-forge/conda-smithy/pull/1469 is merged then it becomes possible to put the feedstock configuration in another file. If that is done, then the existing scripts will fail. With this fix, that change toconda-smithy
becomes usable, even though it would be impossible to overridechannel_priority
(possibilities for doing this could be explored later, if necessary). At any rate, this change doesn't hurt and could provide some extra robustness.Checklist
0
(if the version changed)conda-smithy
(Use the phrase code>@<space/conda-forge-admin, please rerender in a comment in this PR for automated rerendering)