Avoid duplicate keys in recipe YAML #235
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Checklist
conda-smithy
(Use the phrase@conda-forge-admin, please rerender
in a comment in this PR for automated rerendering)This update is purely to make it easier to perform our nightly feedstock builds in conda-forge-nightly-controller. In the script
update-recipe.py
, we edit the recipe, but this only keeps the first instance of a key, discarding any duplicates. Thus avoiding duplicate keys will ensure our nightly feedstock builds are accurately testing the actual recipe. Discovered in TileDB-Inc/conda-forge-nightly-controller#123Removing both instances of
skip
is an easy decision. Support for win32 was dropped from conda-forge in 2018 (conda-forge/staged-recipes#5640), and support for Python 2 was dropped in 2020 (conda-forge/conda-forge-pinning-feedstock#491).While using the
script
key directly in the recipe YAML is convenient (recently introduced in #232), these duplicate keys with jinja2 preprocessing selectors are difficult to programmatically edit (TileDB-Inc/conda-forge-nightly-controller#114, TileDB-Inc/conda-forge-nightly-controller#122). Since using separate build scripts is functionally equivalent, I reverted to this strategy.This change does not affect the binary itself, so I didn't bump the build number.