From 3cb4b1f0e051d483439900446feef715805ff73e Mon Sep 17 00:00:00 2001 From: Elmar Pruesse Date: Thu, 8 Nov 2018 21:02:32 -0700 Subject: [PATCH] Fix parser error for some r packages YAML with multiple empty entries in an array and comments can't be parsed by ruamel yaml (NotImplementedError in ruamel/yaml/tokens.py:84). The recipe part causing issue looked like this: ``` requirements: build: - {{ compiler(cxx) }} # [not win] - {{ compiler(c) }} # [not win] - ... ``` after jinja like this: ``` requirements: build: - # [not win] - # [not win] - ... ``` --- bioconda_utils/update.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bioconda_utils/update.py b/bioconda_utils/update.py index d36588bab8..a77939dac3 100644 --- a/bioconda_utils/update.py +++ b/bioconda_utils/update.py @@ -62,7 +62,7 @@ - [ ] deal with multi-output packages - [ ] deal with linux/osx packages (selectors) - - [ ] deal with already open PRs + - [x] deal with already open PRs - [x] handle remote/local git correctly - [ ] collect editors from log - [ ] collect author from GithubHoster @@ -221,7 +221,8 @@ class HasSelector(RecipeError): #: Variables to pass to Jinja when rendering recipe JINJA_VARS = { - "cran_mirror": "https://cloud.r-project.org" + "cran_mirror": "https://cloud.r-project.org", + "compiler": lambda x: f"compiler_{x}", } #: Name of key under ``extra`` containing config