update_pinnings

Determine which packages need updates after pinning change

Functions

check(recipe, build_config[, keep_metas])

Determine if a given recipe should have its build number increments (bumped) due to a recent change in pinnings.

have_variant(meta)

Checks if we have an exact match to name/version/buildstring

have_variant_but_for_python(meta)

Checks if we have an exact or py[23]_ prefixed match to name/version/buildstring

will_build_variant(meta)

Check if the recipe variant will be built as currently rendered

Classes

State

Recipe Pinning State

Documentation

class bioconda_utils.update_pinnings.State[source]

Bases: enum.Flag

Recipe Pinning State

BUMP = 16

Recipe has a variant that needs bumping

BUMPED = 8

Recipe has a variant that was bumped already

BUMP_PYTHON_ONLY = 32

Recipe has a variant that needs bumping only for python

FAIL = 1

Recipe had a failure rendering

HAVE = 4

Recipe has a variant that exists already

SKIP = 2

Recipe has a variant that will be skipped

failed()[source]

True if the update pinning check failed

Return type

bool

needs_bump(bump_python_only=True)[source]

Checks if the state indicates that the recipe needs to be bumped

Parameters

bump_python_only – FIXME

Return type

bool

bioconda_utils.update_pinnings.check(recipe, build_config, keep_metas=False)[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 check

  • build_config – conda build config object

  • keep_metas – If true, Recipe.conda_release is not called

Return type

State

Returns

Tuple of state and a list of rendered MetaYaml variant objects

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

bool

Returns

True if the variant’s build string exists already in the repodata

bioconda_utils.update_pinnings.have_variant_but_for_python(meta)[source]

Checks if we have an exact or py[23]_ prefixed match to name/version/buildstring

Ignores osx.

Parameters

meta (MetaData) – Variant MetaData object

Return type

bool

Returns

True if FIXME

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

bool

Returns

True if all extant build numbers are smaller than the one indicated by the variant MetaData.