update_pinnings¶
Determine which packages need updates after pinning change
Functions
|
Determine if a given recipe should have its build number increments (bumped) due to a recent change in pinnings. |
|
|
Checks if we have a noarch:python build with same version+build_number |
|
|
Checks if we have an exact match to name/version/buildstring |
|
Check if the recipe uses any given variant keys |
|
Checks if only new builds will be added (no divergent build ids exist) |
|
Check if the recipe variant will be built as currently rendered |
Classes
|
Recipe Pinning State |
Documentation
- bioconda_utils.update_pinnings.skip_for_variants(meta, variant_keys)[source]¶
Check if the recipe uses any given variant keys
- Parameters:
meta (
MetaData
) – Variant MetaData object- Return type:
- Returns:
True if any variant key from variant_keys is used
- bioconda_utils.update_pinnings.will_build_variant(meta)[source]¶
Check if the recipe variant will be built as currently rendered
- Parameters:
meta (
MetaData
) – Variant MetaData object- Return type:
- Returns:
True if all extant build numbers are smaller than the one indicated by the variant MetaData.
- bioconda_utils.update_pinnings.have_variant(meta)[source]¶
Checks if we have an exact match to name/version/buildstring
- Parameters:
meta (
MetaData
) – Variant MetaData object- Return type:
- Returns:
True if the variant’s build string exists already in the repodata
- bioconda_utils.update_pinnings.have_noarch_python_build_number(meta)[source]¶
Checks if we have a noarch:python build with same version+build_number
- Parameters:
meta (
MetaData
) – Variant MetaData object- Returns:
python and version+build_number exists already in repodata
- Return type:
True if noarch
- bioconda_utils.update_pinnings.will_build_only_missing(metas)[source]¶
Checks if only new builds will be added (no divergent build ids exist)
- class bioconda_utils.update_pinnings.State(value)[source]¶
Recipe Pinning State
- FAIL = 1¶
Recipe had a failure rendering
- SKIP = 2¶
Recipe has a variant that will be skipped
- HAVE = 4¶
Recipe has a variant that exists already
- BUMPED = 8¶
Recipe has a variant that was bumped already
- BUMP = 16¶
Recipe has a variant that needs bumping
- HAVE_NOARCH_PYTHON = 32¶
python variant that exists already
- Type:
Recipe has a noarch
- bioconda_utils.update_pinnings.check(recipe, build_config, keep_metas=False, skip_variant_keys=frozenset({}))[source]¶
Determine if a given recipe should have its build number increments (bumped) due to a recent change in pinnings.
- Parameters:
recipe (
Recipe
) – The recipe to checkbuild_config – conda build config object
keep_metas – If true,
Recipe.conda_release
is not calledskip_variant_keys (
AbstractSet
[str
]) – Variant keys to skip a recipe for if they are used
- Return type:
- Returns:
Tuple of state and a the input recipe