Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit dae13a5

Browse files
committed
add the template for zenodo json, and the way to fill in it
1 parent f6250c2 commit dae13a5

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

.zenodo.json.in

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"description": "Mirror of the Sage https://sagemath.org/ source tree",
3+
"license": "other-open",
4+
"title": "sagemath/sage: ${SAGE_VERSION}",
5+
"version": "${SAGE_VERSION}",
6+
"upload_type": "software",
7+
"publication_date": "${SAGE_RELEASE_DATE}",
8+
"creators": [
9+
{
10+
"affiliation": "SageMath.org",
11+
"name": "The SageMath Developers"
12+
}
13+
],
14+
"access_right": "open",
15+
"related_identifiers": [
16+
{
17+
"scheme": "url",
18+
"identifier": "https://github.com/sagemath/sage/tree/${SAGE_VERSION}",
19+
"relation": "isSupplementTo"
20+
},
21+
{
22+
"scheme": "doi",
23+
"identifier": "10.5281/zenodo.593563",
24+
"relation": "isVersionOf"
25+
}
26+
]
27+
}

src/bin/sage-update-version

+5
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ echo "$SAGE_VERSION_BANNER" > "$SAGE_ROOT/VERSION.txt"
6262
# Regenerate auto-generated files tarball
6363
"$SAGE_ROOT/bootstrap" -s
6464

65+
# Create json file for Zenodo
66+
export SAGE_VERSION
67+
export SAGE_RELEASE_DATE
68+
envsubst <"$SAGE_ROOT/.zenodo.json.in" >"$SAGE_ROOT/.zenodo.json"
69+
6570
# Commit auto-generated changes
6671
git commit -m "Updated SageMath version to $SAGE_VERSION" -- \
6772
"$SAGE_ROOT/VERSION.txt" \

0 commit comments

Comments
 (0)