diff --git a/bioconda_utils/lint/check_syntax.py b/bioconda_utils/lint/check_syntax.py index 7336b92840..92d4357e86 100644 --- a/bioconda_utils/lint/check_syntax.py +++ b/bioconda_utils/lint/check_syntax.py @@ -23,7 +23,7 @@ def check_recipe(self, recipe): for section in ('build', 'run', 'host'): check_paths.append(f'requirements/{section}') - constraints = re.compile("(.*?)([!<=>].*)") + constraints = re.compile("(.*?)([!~<=>].*)") for path in check_paths: for n, spec in enumerate(recipe.get(path, [])): has_constraints = constraints.search(spec) @@ -37,7 +37,7 @@ def fix(self, _message, _data): for section in ('build', 'run', 'host'): check_paths.append(f'requirements/{section}') - constraints = re.compile("(.*?)([!<=>].*)") + constraints = re.compile("(.*?)([!~<=>].*)") for path in check_paths: for spec in self.recipe.get(path, []): has_constraints = constraints.search(spec)