Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .actrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--container-options "--network=host"
61 changes: 61 additions & 0 deletions .github/scripts/build_zenodo_metadata.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
#!/usr/bin/env -S uv run --script
# /// script
# requires-python = ">=3.11"
# dependencies = [
# "pyyaml",
# ]
# ///

# SPDX-FileCopyrightText: 2026 Hendrik Kleikamp, Petar Mlinarić, Stephan Rave, Felix Schindler
# SPDX-License-Identifier: BSD-2-Clause

import json
import sys

import yaml

version, sha = sys.argv[1], sys.argv[2]

with open("CITATION.cff", encoding="utf-8") as fh:
cff = yaml.safe_load(fh)

creators = []
for a in cff.get("authors", []):
entry = {"name": f"{a['family-names']}, {a['given-names']}"}
orcid = a.get("orcid")
if orcid:
# Zenodo wants the bare 0000-0000-0000-0000 identifier.
entry["orcid"] = orcid.rsplit("/", 1)[-1]
creators.append(entry)

repo = cff["repository-code"].rstrip("/")
metadata = {
"metadata": {
"upload_type": "software",
"title": cff["title"],
"description": cff.get("abstract", cff["title"]).strip(),
"creators": creators,
"access_right": "open",
"license": cff["license"],
"version": version,
"keywords": cff.get("keywords", []),
"related_identifiers": [
{
"relation": "isSupplementTo",
"identifier": repo,
"resource_type": "software",
},
{
"relation": "isDerivedFrom",
"identifier": f"{repo}/tree/{sha}",
"resource_type": "software",
},
],
}
}

with open("zenodo-metadata.json", "w", encoding="utf-8") as fh:
json.dump(metadata, fh, indent=2, ensure_ascii=False)

print(":: Zenodo metadata:")
print(json.dumps(metadata, indent=2, ensure_ascii=False))
4 changes: 2 additions & 2 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: 📦
name: Build and push Docker image

on:
push:
Expand Down Expand Up @@ -31,7 +31,7 @@ env:

jobs:
build_and_push:
name: Build and Push Docker Image
name: 📦
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/governance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,3 @@ jobs:

- name: Run pre-commit checks
uses: j178/prek-action@bdca6f102f98e2b4c7029491a53dfd366469e33d # v2.0.4

- name: Check REUSE/SPDX license compliance
uses: fsfe/reuse-action@bb774aa972c2a89ff34781233d275075cbddf542 # v5.0.0
Loading
Loading