nf_core.bump_version
Bumps the version number in all appropriate files for a nf-core pipeline.
- nf_core.bump_version.bump_nextflow_version(pipeline_obj, new_version)
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.bump_version.bump_pipeline_version(pipeline_obj, new_version)
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.bump_version.update_file_version(filename, pipeline_obj, patterns)
Updates the version number in a requested file.
- Parameters
filename (str) – File to scan.
pipeline_obj (nf_core.lint.PipelineLint) – A PipelineLint object that holds information about the pipeline contents and build files.
pattern (str) – Regex pattern to apply.
newstr (str) – The replaced string.
- Raises
ValueError, if the version number cannot be found. –