cran_skeleton¶
This module cleans up conda CRAN skeletons to make it compliant with conda-forge requirements.
Functions
|
Append the contents of "maintainers.yaml" to the end of a YAML file. |
|
Cleans bld.bat file created by |
|
Cleans build.sh file created by |
|
Cleans output files created by |
|
Cleans the YAML file output by |
|
Substitutes substitute for every match to regex in each line of lines. |
|
Adding support for arguments here |
|
Removes consecutive empty lines in lines. |
|
Call out to to |
Documentation
- bioconda_utils.cran_skeleton.write_recipe(package, recipe_dir='.', recursive=False, force=False, no_windows=False, **kwargs)[source]¶
Call out to to
conda skeleton cran
.Kwargs are accepted for uniformity with
bioconductor_skeleton.write_recipe
; the only one handled here isrecursive
.- Parameters:
package (str) – Package name. Can be case-sensitive CRAN name, or sanitized “r-pkgname” conda package name.
recipe_dir (str) – Recipe will be created as a subdirectory in
recipe_dir
recursive (bool) – Add the
--recursive
argument toconda skeleton cran
to recursively build CRAN recipes.force (bool) – If True, then remove the directory
<recipe_dir>/<pkgname>
, where<pkgname>
the sanitized conda version of the package name, regardless of which format was provided aspackage
.no_windows (bool) – If True, then after creating the skeleton the files are then cleaned of any Windows-related lines and the bld.bat file is removed from the recipe.
- bioconda_utils.cran_skeleton.clean_skeleton_files(package, no_windows=True)[source]¶
Cleans output files created by
conda skeleton cran
to make them conda-forge compatible.
- bioconda_utils.cran_skeleton.clean_yaml_file(package, no_windows)[source]¶
Cleans the YAML file output by
conda skeleton cran
to make it conda-forge compatible.
- bioconda_utils.cran_skeleton.clean_build_file(package, no_windows=False)[source]¶
Cleans build.sh file created by
conda skeleton cran
to be compatible with conda-forge.
- bioconda_utils.cran_skeleton.clean_bld_file(package, no_windows)[source]¶
Cleans bld.bat file created by
conda skeleton cran
to be compatible with conda-forge.
- bioconda_utils.cran_skeleton.filter_lines_regex(lines, regex, substitute)[source]¶
Substitutes substitute for every match to regex in each line of lines.
- bioconda_utils.cran_skeleton.remove_empty_lines(lines)[source]¶
Removes consecutive empty lines in lines.
- Parameters:
lines (iterable of strings) –