Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug: add support for old and new Zenodo APIs #375

Merged
merged 8 commits into from
Oct 24, 2023
Merged

Commits on Oct 17, 2023

  1. Fix bug: update Zenodo downloader for new API

    Update the Zenodo downloader to work with the new Zenodo API. Use the
    `filename` key for getting the filenames of all files in a repository.
    Update the generated download url based on heuristics: the link present
    in the API reference doesn't work at the moment). Update the method that
    populates the registry: use the new `filename` key and specify that the
    checksums are now md5.
    santisoler committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    ddfc2b2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c6be96a View commit details
    Browse the repository at this point in the history
  3. Restore unrelated line

    santisoler committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    de956d5 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    23e2057 View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2023

  1. Support both the legacy and the new Zenodo API

    Detect which API are we interacting with and generate the download url
    and/or populate the registry accordingly.
    santisoler committed Oct 20, 2023
    Configuration menu
    Copy the full SHA
    6db2a99 View commit details
    Browse the repository at this point in the history
  2. Use pytest-httpserver to test support for old and new APIs

    Test if `ZenodoRepository` correctly supports both the old and new
    Zenodo APIs. Use `pytest-httpserver` to run a local server that returns
    API response that mimics the Zenodo ones. Define a `base_api_url` class
    attribute for `ZenodoRepository` so we can override it in tests.
    santisoler committed Oct 20, 2023
    Configuration menu
    Copy the full SHA
    c5159ad View commit details
    Browse the repository at this point in the history
  3. Run black

    santisoler committed Oct 20, 2023
    Configuration menu
    Copy the full SHA
    3634bb3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d5bfc84 View commit details
    Browse the repository at this point in the history