Support pulling from zenodo sandbox too

Test uploads should go to the sandbox, rather than to
main zenodo. The installation is exactly the same.
pull/1169/head
YuviPanda 2022-07-27 17:40:14 -07:00
rodzic 484b29b6c4
commit ffdf544ee4
1 zmienionych plików z 11 dodań i 0 usunięć

Wyświetl plik

@ -20,6 +20,17 @@ class Zenodo(DoiProvider):
# filepath (path to files in metadata), filename (path to filename in
# metadata), download (path to file download URL), and type (path to item type in metadata)
self.hosts = [
{
"hostname": [
"https://sandbox.zenodo.org/record/",
"http://sandbox.zenodo.org/record/",
],
"api": "https://sandbox.zenodo.org/api/records/",
"filepath": "files",
"filename": "filename",
"download": "links.download",
"type": "metadata.upload_type",
},
{
"hostname": ["https://zenodo.org/record/", "http://zenodo.org/record/"],
"api": "https://zenodo.org/api/records/",