-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from NII-DG/develop
Bump to 0.1.1
- Loading branch information
Showing
52 changed files
with
317 additions
and
3,369 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
#!/usr/bin/env bash | ||
|
||
# rewrite version in: | ||
# | ||
# - nii_dg/module_info.py | ||
# - `GH_REF: str = "0.1.0"` | ||
# - docs/conf.py | ||
# - `version = '0.1.0'` | ||
# - `release = '0.1.0'` | ||
# - Dockerfile | ||
# - `LABEL org.opencontainers.image.version="0.1.0"` | ||
# - compose.yml | ||
# - `image: ghcr.io/NII-DG/nii-dg:0.1.0` | ||
# - compose.api.yml | ||
# - `image: ghcr.io/NII-DG/nii-dg:0.1.0` | ||
|
||
set -euxo pipefail | ||
|
||
if [[ $# -lt 1 ]]; then | ||
echo "Usage: $0 <new_version>" | ||
exit 1 | ||
fi | ||
|
||
PREV_VERSION=$(python3 ./nii_dg/module_info.py) | ||
NEW_VERSION=$1 | ||
|
||
read -p "Rewrite version from ${PREV_VERSION} to ${NEW_VERSION}? (y/n) :" YN | ||
|
||
if [[ "${YN}" != "y" ]]; then | ||
echo "Abort." | ||
exit 1 | ||
fi | ||
|
||
echo "Rewriting version from ${PREV_VERSION} to ${NEW_VERSION} ..." | ||
|
||
echo "Rewriting nii_dg/module_info.py ..." | ||
sed -i "s/GH_REF: str = \"${PREV_VERSION}\"/GH_REF: str = \"${NEW_VERSION}\"/g" ./nii_dg/module_info.py | ||
|
||
echo "Rewriting docs/conf.py ..." | ||
sed -i "s/version = '${PREV_VERSION}'/version = '${NEW_VERSION}'/g" ./docs/conf.py | ||
sed -i "s/release = '${PREV_VERSION}'/release = '${NEW_VERSION}'/g" ./docs/conf.py | ||
|
||
echo "Rewriting Dockerfile ..." | ||
sed -i "s/LABEL org.opencontainers.image.version=\"${PREV_VERSION}\"/LABEL org.opencontainers.image.version=\"${NEW_VERSION}\"/g" ./Dockerfile | ||
|
||
echo "Rewriting compose.yml ..." | ||
sed -i "s/image: ghcr.io\/NII-DG\/nii-dg:${PREV_VERSION}/image: ghcr.io\/NII-DG\/nii-dg:${NEW_VERSION}/g" ./compose.yml | ||
|
||
echo "Rewriting compose.api.yml ..." | ||
sed -i "s/image: ghcr.io\/NII-DG\/nii-dg:${PREV_VERSION}/image: ghcr.io\/NII-DG\/nii-dg:${NEW_VERSION}/g" ./compose.api.yml | ||
|
||
echo "Done." | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,63 @@ | ||
{ | ||
"@id": "https://raw.githubusercontent.com/NII-DG/nii_dg/0.1.0/schema/context/amed.jsonld", | ||
"@id": "https://raw.githubusercontent.com/NII-DG/nii-dg/0.1.0/schema/context/amed.jsonld", | ||
"@version": 1.1, | ||
"@context": { | ||
"DMPMetadata": { | ||
"@id": "https://raw.githubusercontent.com/NII-DG/nii_dg/0.1.0/nii_dg/schema/amed.yml#DMPMetadata", | ||
"@id": "https://raw.githubusercontent.com/NII-DG/nii-dg/0.1.0/nii_dg/schema/amed.yml#DMPMetadata", | ||
"@context": { | ||
"@id": "https://raw.githubusercontent.com/NII-DG/nii_dg/0.1.0/nii_dg/schema/amed.yml#DMPMetadata:@id", | ||
"about": "https://raw.githubusercontent.com/NII-DG/nii_dg/0.1.0/nii_dg/schema/amed.yml#DMPMetadata:about", | ||
"name": "https://raw.githubusercontent.com/NII-DG/nii_dg/0.1.0/nii_dg/schema/amed.yml#DMPMetadata:name", | ||
"funder": "https://raw.githubusercontent.com/NII-DG/nii_dg/0.1.0/nii_dg/schema/amed.yml#DMPMetadata:funder", | ||
"funding": "https://raw.githubusercontent.com/NII-DG/nii_dg/0.1.0/nii_dg/schema/amed.yml#DMPMetadata:funding", | ||
"chiefResearcher": "https://raw.githubusercontent.com/NII-DG/nii_dg/0.1.0/nii_dg/schema/amed.yml#DMPMetadata:chiefResearcher", | ||
"creator": "https://raw.githubusercontent.com/NII-DG/nii_dg/0.1.0/nii_dg/schema/amed.yml#DMPMetadata:creator", | ||
"hostingInstitution": "https://raw.githubusercontent.com/NII-DG/nii_dg/0.1.0/nii_dg/schema/amed.yml#DMPMetadata:hostingInstitution", | ||
"dataManager": "https://raw.githubusercontent.com/NII-DG/nii_dg/0.1.0/nii_dg/schema/amed.yml#DMPMetadata:dataManager", | ||
"repository": "https://raw.githubusercontent.com/NII-DG/nii_dg/0.1.0/nii_dg/schema/amed.yml#DMPMetadata:repository", | ||
"distribution": "https://raw.githubusercontent.com/NII-DG/nii_dg/0.1.0/nii_dg/schema/amed.yml#DMPMetadata:distribution", | ||
"hasPart": "https://raw.githubusercontent.com/NII-DG/nii_dg/0.1.0/nii_dg/schema/amed.yml#DMPMetadata:hasPart" | ||
"@id": "https://raw.githubusercontent.com/NII-DG/nii-dg/0.1.0/nii_dg/schema/amed.yml#DMPMetadata:@id", | ||
"about": "https://raw.githubusercontent.com/NII-DG/nii-dg/0.1.0/nii_dg/schema/amed.yml#DMPMetadata:about", | ||
"name": "https://raw.githubusercontent.com/NII-DG/nii-dg/0.1.0/nii_dg/schema/amed.yml#DMPMetadata:name", | ||
"funder": "https://raw.githubusercontent.com/NII-DG/nii-dg/0.1.0/nii_dg/schema/amed.yml#DMPMetadata:funder", | ||
"funding": "https://raw.githubusercontent.com/NII-DG/nii-dg/0.1.0/nii_dg/schema/amed.yml#DMPMetadata:funding", | ||
"chiefResearcher": "https://raw.githubusercontent.com/NII-DG/nii-dg/0.1.0/nii_dg/schema/amed.yml#DMPMetadata:chiefResearcher", | ||
"creator": "https://raw.githubusercontent.com/NII-DG/nii-dg/0.1.0/nii_dg/schema/amed.yml#DMPMetadata:creator", | ||
"hostingInstitution": "https://raw.githubusercontent.com/NII-DG/nii-dg/0.1.0/nii_dg/schema/amed.yml#DMPMetadata:hostingInstitution", | ||
"dataManager": "https://raw.githubusercontent.com/NII-DG/nii-dg/0.1.0/nii_dg/schema/amed.yml#DMPMetadata:dataManager", | ||
"repository": "https://raw.githubusercontent.com/NII-DG/nii-dg/0.1.0/nii_dg/schema/amed.yml#DMPMetadata:repository", | ||
"distribution": "https://raw.githubusercontent.com/NII-DG/nii-dg/0.1.0/nii_dg/schema/amed.yml#DMPMetadata:distribution", | ||
"hasPart": "https://raw.githubusercontent.com/NII-DG/nii-dg/0.1.0/nii_dg/schema/amed.yml#DMPMetadata:hasPart" | ||
} | ||
}, | ||
"DMP": { | ||
"@id": "https://raw.githubusercontent.com/NII-DG/nii_dg/0.1.0/nii_dg/schema/amed.yml#DMP", | ||
"@id": "https://raw.githubusercontent.com/NII-DG/nii-dg/0.1.0/nii_dg/schema/amed.yml#DMP", | ||
"@context": { | ||
"@id": "https://raw.githubusercontent.com/NII-DG/nii_dg/0.1.0/nii_dg/schema/amed.yml#DMP:@id", | ||
"dataNumber": "https://raw.githubusercontent.com/NII-DG/nii_dg/0.1.0/nii_dg/schema/amed.yml#DMP:dataNumber", | ||
"name": "https://raw.githubusercontent.com/NII-DG/nii_dg/0.1.0/nii_dg/schema/amed.yml#DMP:name", | ||
"description": "https://raw.githubusercontent.com/NII-DG/nii_dg/0.1.0/nii_dg/schema/amed.yml#DMP:description", | ||
"keyword": "https://raw.githubusercontent.com/NII-DG/nii_dg/0.1.0/nii_dg/schema/amed.yml#DMP:keyword", | ||
"accessRights": "https://raw.githubusercontent.com/NII-DG/nii_dg/0.1.0/nii_dg/schema/amed.yml#DMP:accessRights", | ||
"availabilityStarts": "https://raw.githubusercontent.com/NII-DG/nii_dg/0.1.0/nii_dg/schema/amed.yml#DMP:availabilityStarts", | ||
"reasonForConcealment": "https://raw.githubusercontent.com/NII-DG/nii_dg/0.1.0/nii_dg/schema/amed.yml#DMP:reasonForConcealment", | ||
"repository": "https://raw.githubusercontent.com/NII-DG/nii_dg/0.1.0/nii_dg/schema/amed.yml#DMP:repository", | ||
"distribution": "https://raw.githubusercontent.com/NII-DG/nii_dg/0.1.0/nii_dg/schema/amed.yml#DMP:distribution", | ||
"contentSize": "https://raw.githubusercontent.com/NII-DG/nii_dg/0.1.0/nii_dg/schema/amed.yml#DMP:contentSize", | ||
"gotInformedConsent": "https://raw.githubusercontent.com/NII-DG/nii_dg/0.1.0/nii_dg/schema/amed.yml#DMP:gotInformedConsent", | ||
"informedConsentFormat": "https://raw.githubusercontent.com/NII-DG/nii_dg/0.1.0/nii_dg/schema/amed.yml#DMP:informedConsentFormat", | ||
"identifier": "https://raw.githubusercontent.com/NII-DG/nii_dg/0.1.0/nii_dg/schema/amed.yml#DMP:identifier" | ||
"@id": "https://raw.githubusercontent.com/NII-DG/nii-dg/0.1.0/nii_dg/schema/amed.yml#DMP:@id", | ||
"dataNumber": "https://raw.githubusercontent.com/NII-DG/nii-dg/0.1.0/nii_dg/schema/amed.yml#DMP:dataNumber", | ||
"name": "https://raw.githubusercontent.com/NII-DG/nii-dg/0.1.0/nii_dg/schema/amed.yml#DMP:name", | ||
"description": "https://raw.githubusercontent.com/NII-DG/nii-dg/0.1.0/nii_dg/schema/amed.yml#DMP:description", | ||
"keyword": "https://raw.githubusercontent.com/NII-DG/nii-dg/0.1.0/nii_dg/schema/amed.yml#DMP:keyword", | ||
"accessRights": "https://raw.githubusercontent.com/NII-DG/nii-dg/0.1.0/nii_dg/schema/amed.yml#DMP:accessRights", | ||
"availabilityStarts": "https://raw.githubusercontent.com/NII-DG/nii-dg/0.1.0/nii_dg/schema/amed.yml#DMP:availabilityStarts", | ||
"reasonForConcealment": "https://raw.githubusercontent.com/NII-DG/nii-dg/0.1.0/nii_dg/schema/amed.yml#DMP:reasonForConcealment", | ||
"repository": "https://raw.githubusercontent.com/NII-DG/nii-dg/0.1.0/nii_dg/schema/amed.yml#DMP:repository", | ||
"distribution": "https://raw.githubusercontent.com/NII-DG/nii-dg/0.1.0/nii_dg/schema/amed.yml#DMP:distribution", | ||
"contentSize": "https://raw.githubusercontent.com/NII-DG/nii-dg/0.1.0/nii_dg/schema/amed.yml#DMP:contentSize", | ||
"gotInformedConsent": "https://raw.githubusercontent.com/NII-DG/nii-dg/0.1.0/nii_dg/schema/amed.yml#DMP:gotInformedConsent", | ||
"informedConsentFormat": "https://raw.githubusercontent.com/NII-DG/nii-dg/0.1.0/nii_dg/schema/amed.yml#DMP:informedConsentFormat", | ||
"identifier": "https://raw.githubusercontent.com/NII-DG/nii-dg/0.1.0/nii_dg/schema/amed.yml#DMP:identifier" | ||
} | ||
}, | ||
"File": { | ||
"@id": "https://raw.githubusercontent.com/NII-DG/nii_dg/0.1.0/nii_dg/schema/amed.yml#File", | ||
"@id": "https://raw.githubusercontent.com/NII-DG/nii-dg/0.1.0/nii_dg/schema/amed.yml#File", | ||
"@context": { | ||
"@id": "https://raw.githubusercontent.com/NII-DG/nii_dg/0.1.0/nii_dg/schema/amed.yml#File:@id", | ||
"name": "https://raw.githubusercontent.com/NII-DG/nii_dg/0.1.0/nii_dg/schema/amed.yml#File:name", | ||
"dmpDataNumber": "https://raw.githubusercontent.com/NII-DG/nii_dg/0.1.0/nii_dg/schema/amed.yml#File:dmpDataNumber", | ||
"contentSize": "https://raw.githubusercontent.com/NII-DG/nii_dg/0.1.0/nii_dg/schema/amed.yml#File:contentSize", | ||
"encodingFormat": "https://raw.githubusercontent.com/NII-DG/nii_dg/0.1.0/nii_dg/schema/amed.yml#File:encodingFormat", | ||
"sha256": "https://raw.githubusercontent.com/NII-DG/nii_dg/0.1.0/nii_dg/schema/amed.yml#File:sha256", | ||
"url": "https://raw.githubusercontent.com/NII-DG/nii_dg/0.1.0/nii_dg/schema/amed.yml#File:url", | ||
"sdDatePublished": "https://raw.githubusercontent.com/NII-DG/nii_dg/0.1.0/nii_dg/schema/amed.yml#File:sdDatePublished" | ||
"@id": "https://raw.githubusercontent.com/NII-DG/nii-dg/0.1.0/nii_dg/schema/amed.yml#File:@id", | ||
"name": "https://raw.githubusercontent.com/NII-DG/nii-dg/0.1.0/nii_dg/schema/amed.yml#File:name", | ||
"dmpDataNumber": "https://raw.githubusercontent.com/NII-DG/nii-dg/0.1.0/nii_dg/schema/amed.yml#File:dmpDataNumber", | ||
"contentSize": "https://raw.githubusercontent.com/NII-DG/nii-dg/0.1.0/nii_dg/schema/amed.yml#File:contentSize", | ||
"encodingFormat": "https://raw.githubusercontent.com/NII-DG/nii-dg/0.1.0/nii_dg/schema/amed.yml#File:encodingFormat", | ||
"sha256": "https://raw.githubusercontent.com/NII-DG/nii-dg/0.1.0/nii_dg/schema/amed.yml#File:sha256", | ||
"url": "https://raw.githubusercontent.com/NII-DG/nii-dg/0.1.0/nii_dg/schema/amed.yml#File:url", | ||
"sdDatePublished": "https://raw.githubusercontent.com/NII-DG/nii-dg/0.1.0/nii_dg/schema/amed.yml#File:sdDatePublished" | ||
} | ||
}, | ||
"ClinicalResearchRegistration": { | ||
"@id": "https://raw.githubusercontent.com/NII-DG/nii_dg/0.1.0/nii_dg/schema/amed.yml#ClinicalResearchRegistration", | ||
"@id": "https://raw.githubusercontent.com/NII-DG/nii-dg/0.1.0/nii_dg/schema/amed.yml#ClinicalResearchRegistration", | ||
"@context": { | ||
"@id": "https://raw.githubusercontent.com/NII-DG/nii_dg/0.1.0/nii_dg/schema/amed.yml#ClinicalResearchRegistration:@id", | ||
"name": "https://raw.githubusercontent.com/NII-DG/nii_dg/0.1.0/nii_dg/schema/amed.yml#ClinicalResearchRegistration:name", | ||
"value": "https://raw.githubusercontent.com/NII-DG/nii_dg/0.1.0/nii_dg/schema/amed.yml#ClinicalResearchRegistration:value" | ||
"@id": "https://raw.githubusercontent.com/NII-DG/nii-dg/0.1.0/nii_dg/schema/amed.yml#ClinicalResearchRegistration:@id", | ||
"name": "https://raw.githubusercontent.com/NII-DG/nii-dg/0.1.0/nii_dg/schema/amed.yml#ClinicalResearchRegistration:name", | ||
"value": "https://raw.githubusercontent.com/NII-DG/nii-dg/0.1.0/nii_dg/schema/amed.yml#ClinicalResearchRegistration:value" | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.