nf_core.bump_version

Bumps the version number in all appropriate files for a nf-core pipeline.

nf_core.pipelines.bump_version.bump_nextflow_version(pipeline_obj:Pipeline, new_version: str) → None

Bumps the required Nextflow version number of a pipeline.

  • Parameters:
    • pipeline_obj (nf_core.utils.Pipeline) – A Pipeline object that holds information about the pipeline contents and build files.
    • new_version (str) – The new version tag for the required Nextflow version.

nf_core.pipelines.bump_version.bump_pipeline_version(pipeline_obj:Pipeline, new_version: str) → None

Bumps a pipeline version number.

  • Parameters:
    • pipeline_obj (nf_core.utils.Pipeline) – A Pipeline object that holds information about the pipeline contents and build files.
    • new_version (str) – The new version tag for the pipeline. Semantic versioning only.

nf_core.pipelines.bump_version.update_file_version(filename: str | Path, pipeline_obj:Pipeline, patterns: List[Tuple[str, str]]) → None

Updates the version number in a requested file.

  • Parameters:
    • filename (str) – File to scan.
    • pipeline_obj (nf_core.pipelines.lint.PipelineLint) – A PipelineLint object that holds information about the pipeline contents and build files.
    • pattern (str) – Regex pattern to apply.
  • Raises: ValueError**,** if the version number cannot be found.