feat: unified Zenodo download — Python public script, request URL support, orchestrator#73
Open
larsvilhuber wants to merge 14 commits intodevelopmentfrom
Open
feat: unified Zenodo download — Python public script, request URL support, orchestrator#73larsvilhuber wants to merge 14 commits intodevelopmentfrom
larsvilhuber wants to merge 14 commits intodevelopmentfrom
Conversation
…eration Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…om __file__ Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…nodo scripts Sort metadata CSV rows in save_checksums() (download_zenodo_draft.py) to match the sorted output produced by save_manifests() in download_zenodo_public.py. Both scripts now write filename,bytes rows in sorted path order for reproducibility. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…do downloads Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…L check, use sys.executable - Fix 1: Remove `or identifier` fallback in --print-id so UUID is not used as record_id when resolution fails - Fix 2: Use mod.get_access_token() in record_id_from_request() for .env file support - Fix 3: Tighten gate check to require zenodo.org (or DOI pattern) instead of just 'zenodo' substring - Fix 4: Replace hardcoded python3.12 with sys.executable; use _script_dir() for jira_get_info.py path Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ines Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… in commit step Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…script; deprecate shell wrapper
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tools/download_zenodo_public.py(new): pure-Python replacement fordownload_zenodo_public.sh; accepts record ID, URL, or DOI; generates SHA-256/MD5/metadata manifests ingenerated/matching the draft script's format; deprecated shell wrapper retained for external callerstools/download_zenodo_draft.py(updated): added support for Zenodo community-request URLs (/communities/.../requests/{uuid}); resolves UUID to record ID viaGET /api/requests/{uuid}before downloadingtools/download_zenodo.py(new): orchestrator — parses any Zenodo URL/DOI/ID, routes to the correct downloader, optionally queries Jira for the replication URL when no--zenodo-idis given;--print-idemitszenodo-NNNNfor pipeline shell capturebitbucket-pipelines.yml(updated): both1-populate-from-icpsrandw-big-populate-from-icpsrnow call the orchestrator;ZenodoIDpipeline variable now accepts full URLs, DOIs, or community request URLs in addition to numeric IDs; URL-to-ID resolution added in parallel processing stepstools/download_from_jira_url.py(updated): public Zenodo call switched from bash shell script to Python scriptTest Plan
python3.12 tools/download_zenodo_public.py --dry-run 10848594/records/,/record/, DOI,/deposit/,/communities/.../requests/)--print-idoutputszenodo-NNNNas last line for pipeline capturedownload_zenodo_draft.pyaccepts a community request URL and routes toresolve_request_to_record_id()(requires valid Zenodo token)ZenodoIDto verifyprojectIDis set correctlyZenodoIDto verify URL resolution worksNotes
download_zenodo_draft.pyCI git block still usesos.system()(pre-existing pattern); this is noted as a known issue for a follow-upZENODO_ACCESS_TOKEN; if the token is unavailable during pre-resolution for--print-id, the orchestrator omits the--print-idoutput rather than printing a wrong UUID🤖 Generated with Claude Code