Skip to content
Snippets Groups Projects
Commit ed2122fb authored by Enrique Garcia's avatar Enrique Garcia
Browse files

improve conversion_codemeta2zenodo method

parent f64b4edb
No related branches found
No related tags found
1 merge request!6improve import metadata module and fix some formatting issues
Pipeline #134660 passed
......@@ -310,6 +310,9 @@ class ZenodoAPI:
parse_codemeta_and_write_zenodo_metadata_file(self.path_codemeta_file,
self.path_zenodo_metadata_file)
else:
print("\n ! NO codemeta.json file found. \n"
" Please add one to the ROOT directory of your project to ble able to perform the conversion.")
def check_upload_to_zenodo(self):
"""
......@@ -337,8 +340,7 @@ class ZenodoAPI:
if self.exist_codemeta_file:
self.conversion_codemeta2zenodo()
else:
print("\n ! NO codemeta.json NOR .zenodo.json file found. "
"Please add one to the ROOT directory of your project.")
# No codemeta.json nor .zenodo.json
sys.exit(-1)
print("\n * Using the .zenodo.json file to simulate a new upload to Zenodo... \n")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment