facile_rs.create_zenodo¶
Create an archive in Zenodo.
Description¶
This script creates an archive in Zenodo and uploads the assets provided as positional arguments. The metadata is created similar to create_datacite.
If the Zenodo ID is already present in the CodeMeta file, the existing Zenodo archive is updated instead.
Usage¶
usage: create_zenodo.py [-h] [--codemeta-location CODEMETA_LOCATION]
[--creators-location CREATORS_LOCATIONS]
[--contributors-location CONTRIBUTORS_LOCATIONS]
[--no-sort-authors] [--zenodo-path ZENODO_PATH]
[--zenodo-url ZENODO_URL]
[--zenodo-token ZENODO_TOKEN]
[--smtp-server SMTP_SERVER]
[--notification-email NOTIFICATION_EMAIL] [--dry]
[--log-level LOG_LEVEL] [--log-file LOG_FILE]
[assets ...]
Positional Arguments¶
- assets
Assets to be added to the repository.
Default:
[]
Named Arguments¶
- --codemeta-location
Location of the main codemeta.json JSON file
- --creators-location
Locations of codemeta JSON files for additional creators
Default:
[]- --contributors-location
Locations of codemeta JSON files for additional contributors
Default:
[]- --no-sort-authors
Do not sort authors alphabetically, keep order in codemeta.json file
Default:
True- --zenodo-path
Path to the directory where the assets are collected before upload to Zenodo.
- --zenodo-url
URL of the Zenodo service. Test environment available at https://sandbox.zenodo.org
- --zenodo-token
Zenodo personal token.
- --smtp-server
SMTP server used to inform about new relase. No mail sent if empty.
- --notification-email
Recipient address to inform about new relase. No mail sent if empty.
- --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()¶
- main()¶