Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 4 additions & 13 deletions github-ci/src/biocontainersci/biotools.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,26 +163,17 @@ 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': {}}
softwares["softwares"][name] = data

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)

Expand Down