Skip to content

Commit d382643

Browse files
authored
Zenodo fixes (#4758)
* Amend API calls to account for Zenodo rate limits. * Remove loopy from the list of packages. It was raising incomprehensible 404 failures and now that we are using loopy releases and loopy is relatively stable I think it is less critical that we archive it in Zenodo.
1 parent 1563a08 commit d382643

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

firedrake/scripts/firedrake-zenodo

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,12 @@ DESCRIPTIONS = {
2626
"ufl": "UFL: the Unified Form Language",
2727
"fiat": "FIAT: the Finite Element Automated Tabulator",
2828
"petsc": "PETSc: the Portable, Extensible Toolkit for Scientific Computation",
29-
"loopy": "loopy: Transformation-Based Generation of High-Performance CPU/GPU Code",
3029
}
3130

3231
PYPI_PACKAGE_NAMES = {
3332
"firedrake": "firedrake",
3433
"ufl": "fenics-ufl",
3534
"fiat": "firedrake-fiat",
36-
"loopy": "loopy",
3735
"petsc": "petsc4py",
3836
}
3937

@@ -295,11 +293,11 @@ def zenodo_records():
295293
result = None
296294
i = 1
297295
while True:
298-
if i > 20:
296+
if i > 8000//25:
299297
raise RuntimeError("More than 8000 uploads on zenodo?")
300298
response = requests.get(f"{ZENODO_URL}/records", params={"q": 'owners:19586 OR owners:19587',
301299
"all_versions": True,
302-
"size": 400,
300+
"size": 25,
303301
"sort": "mostrecent",
304302
"page": i})
305303
if response.status_code == 200:

0 commit comments

Comments
 (0)