facile_rs.prepare_zenodo¶
Create an empty archive in Zenodo to reserve a DOI and a Zenodo ID.
Description¶
This script creates an empty archive in Zenodo in order to reserve a DOI and a Zenodo ID.
Both are stored in the CodeMeta metadata file provided as input and can be later used by the script create_zenodo.py
to populate the Zenodo archive.
Usage¶
usage: prepare_zenodo.py [-h] [--codemeta-location CODEMETA_LOCATION]
[--zenodo-url ZENODO_URL]
[--zenodo-token ZENODO_TOKEN] [--dry]
[--log-level LOG_LEVEL] [--log-file LOG_FILE]
Named Arguments¶
- --codemeta-location
Location of the main codemeta.json JSON file
- --zenodo-url
URL of the Zenodo service. Test environment available at https://sandbox.zenodo.org
- --zenodo-token
Zenodo personal token.
- --dry
Perform a dry run, do not upload anything.
Default:
False- --log-level
Log level (ERROR, WARN, INFO, or DEBUG)
- --log-file
Path to the log file
Module Contents¶
Functions¶
API¶
- create_parser(add_help=True)¶
- main()¶
- main_deprecated()¶