From 34aa94236bd3a228e2f0eff07a3f8227d15e1851 Mon Sep 17 00:00:00 2001 From: dpryan79 Date: Mon, 3 Dec 2018 16:24:47 +0100 Subject: [PATCH] Fix the linting errors due to conda-forge having a different json format in its repodata --- bioconda_utils/linting.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bioconda_utils/linting.py b/bioconda_utils/linting.py index 535f48b8eb..552d0d9acd 100644 --- a/bioconda_utils/linting.py +++ b/bioconda_utils/linting.py @@ -120,13 +120,14 @@ def channel_dataframe(cache=None, channels=['bioconda', 'conda-forge', for platform in ['linux', 'osx']: for channel in channels: repo, noarch = utils.get_channel_repodata(channel, platform) + repo = {k: v for k, v in repo.items() if k in ["info", "packages"]} x = pd.DataFrame(repo) x = x.drop([ 'arch', 'default_numpy_version', 'default_python_version', 'platform', - 'subdir']) + 'subdir'], errors="ignore") # conda-forge actually lacks these now for k in [ 'build', 'build_number', 'name', 'version', 'license', 'platform'