From 64538149aab9c9ba4514b07bfb5fd2d5813e0c2b Mon Sep 17 00:00:00 2001 From: mboudet Date: Fri, 29 May 2026 20:38:53 +0200 Subject: [PATCH] Fix biotools output to keep only last version --- github-ci/src/biocontainersci/biotools.py | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/github-ci/src/biocontainersci/biotools.py b/github-ci/src/biocontainersci/biotools.py index cf98201..50d731a 100644 --- a/github-ci/src/biocontainersci/biotools.py +++ b/github-ci/src/biocontainersci/biotools.py @@ -163,8 +163,10 @@ def run(self, f, labels, branch=None): data = { 'software': name, - 'labels': deepcopy(clabels), - 'versions': [] + "url": "biocontainers/" + name + ":" + container_version, + "version": container_version, + "type": "Container file", + 'labels': deepcopy(clabels) } softwares = {'softwares': {}} @@ -172,17 +174,6 @@ def run(self, f, labels, branch=None): for file_path in files_to_write: - if name not in softwares["softwares"]: - softwares["softwares"][name] = data - - new_download = { - "url": "biocontainers/" + name + ":" + container_version, - "version": container_version, - "type": "Container file", - "labels": deepcopy(clabels) - } - softwares["softwares"][name]["versions"].append(new_download) - with open(file_path, 'w') as fp: dump(softwares, fp, Dumper=Dumper)