check_repo

Repository checks

These checks verify consistency with the repository (blacklisting, other channels, existing versions).

Classes

build_number_needs_bump(_linter)

The recipe build number should be incremented

build_number_needs_reset(_linter)

The recipe build number should be reset to 0

in_other_channels(_linter)

A package of the same name already exists in another channel

recipe_is_blacklisted(linter)

The recipe is currently blacklisted and will not be built.

Documentation

class bioconda_utils.lint.check_repo.build_number_needs_bump(_linter)[source]

Bases: bioconda_utils.lint.LintCheck

The recipe build number should be incremented

A package with the same name and version and a build number at least as high as specified in the recipe already exists in the channel. Please increase the build number.

check_recipe(recipe)[source]

Execute check on recipe

Override this method in subclasses, using self.message() to issue LintMessage as failures are encountered.

Parameters

recipe – The recipe under test.

fix(_message, data)[source]

Attempt to fix the problem

class bioconda_utils.lint.check_repo.build_number_needs_reset(_linter)[source]

Bases: bioconda_utils.lint.LintCheck

The recipe build number should be reset to 0

No previous build of a package of this name and this version exists, the build number should therefore be 0.

check_recipe(recipe)[source]

Execute check on recipe

Override this method in subclasses, using self.message() to issue LintMessage as failures are encountered.

Parameters

recipe – The recipe under test.

fix(_message, data)[source]

Attempt to fix the problem

class bioconda_utils.lint.check_repo.in_other_channels(_linter)[source]

Bases: bioconda_utils.lint.LintCheck

A package of the same name already exists in another channel

Bioconda and Conda-Forge occupy the same name space and have agreed not to add packages if a package of the same name is already present in the respective other channel.

If this is a new package, pease choose a different name (e.g. append -bio).

If you are updating a package, please continue in the package’s new home at conda-forge.

check_recipe(recipe)[source]

Execute check on recipe

Override this method in subclasses, using self.message() to issue LintMessage as failures are encountered.

Parameters

recipe – The recipe under test.

class bioconda_utils.lint.check_repo.recipe_is_blacklisted(linter)[source]

Bases: bioconda_utils.lint.LintCheck

The recipe is currently blacklisted and will not be built.

If you are intending to repair this recipe, remove it from the build fail blacklist.

check_recipe(recipe)[source]

Execute check on recipe

Override this method in subclasses, using self.message() to issue LintMessage as failures are encountered.

Parameters

recipe – The recipe under test.

fix(_message, _data)[source]

Attempt to fix the problem